-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
versal: split lpd iou slcr state into header file
Create a header file for LPD IOU SLCR control registers so that the the device state can be included as a member of the Versal SoC definition. Signed-off-by: Nelson Ho <[email protected]>
- Loading branch information
Showing
2 changed files
with
52 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* xlnx-versal-lpd-iou-slcr.h | ||
* | ||
* QEMU model of Xilinx LPD System Level Control Registers for IOU | ||
* | ||
* Copyright (c) 2024 Wind River Systems, Inc. | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | ||
*/ | ||
|
||
#ifndef XLNX_VERSAL_LPD_IOU_SLCR_H | ||
#define XLNX_VERSAL_LPD_IOU_SLCR_H | ||
|
||
#include "hw/register.h" | ||
#include "qom/object.h" | ||
|
||
#define TYPE_XLNX_LPD_IOU_SLCR "xlnx.versal-lpd-iou-slcr" | ||
|
||
OBJECT_DECLARE_SIMPLE_TYPE(LPD_IOU_SLCR, XLNX_LPD_IOU_SLCR) | ||
|
||
#define XILINX_LPD_IOU_SLCR(obj) \ | ||
OBJECT_CHECK(LPD_IOU_SLCR, (obj), TYPE_XLNX_LPD_IOU_SLCR) | ||
|
||
#define LPD_IOU_SLCR_R_MAX 459 | ||
|
||
typedef struct LPD_IOU_SLCR { | ||
SysBusDevice parent_obj; | ||
MemoryRegion iomem; | ||
qemu_irq irq_parity_imr; | ||
qemu_irq irq_imr; | ||
|
||
uint32_t regs[LPD_IOU_SLCR_R_MAX]; | ||
RegisterInfo regs_info[LPD_IOU_SLCR_R_MAX]; | ||
} LPD_IOU_SLCR; | ||
|
||
#endif /* XLNX_VERSAL_LPD_IOU_SLCR_H */ |