[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC PATCH v2 11/22] xen/arm: its: Move its_device structure to header file
From: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx> The its_device structure can be reused in virtual ITS driver. So move this to gic-its.h file Also the physical LPI allocation code of physical ITS driver is used. Signed-off-by: Vijaya Kumar K <Vijaya.Kumar@xxxxxxxxxxxxxxxxxx> --- xen/arch/arm/gic-v3-its.c | 16 ---------------- xen/include/asm-arm/gic-its.h | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/xen/arch/arm/gic-v3-its.c b/xen/arch/arm/gic-v3-its.c index 0c55959..242cf65 100644 --- a/xen/arch/arm/gic-v3-its.c +++ b/xen/arch/arm/gic-v3-its.c @@ -90,22 +90,6 @@ struct its_node { #define ITS_ITT_ALIGN SZ_256 -/* - * The ITS view of a device - belongs to an ITS, a collection, owns an - * interrupt translation table, and a list of interrupts. - */ -struct its_device { - struct list_head entry; - struct its_node *its; - struct its_collection *collection; - void *itt; - unsigned long *lpi_map; - u32 lpi_base; - int nr_lpis; - u32 nr_ites; - u32 device_id; -}; - static LIST_HEAD(its_nodes); static DEFINE_SPINLOCK(its_lock); static struct dt_device_node *gic_root_node; diff --git a/xen/include/asm-arm/gic-its.h b/xen/include/asm-arm/gic-its.h index 9d6fd3e..fa1e305 100644 --- a/xen/include/asm-arm/gic-its.h +++ b/xen/include/asm-arm/gic-its.h @@ -29,6 +29,22 @@ struct its_cmd_block { u64 raw_cmd[4]; }; +/* + * The ITS view of a device - belongs to an ITS, a collection, owns an + * interrupt translation table, and a list of interrupts. + */ +struct its_device { + struct list_head entry; + struct its_node *its; + struct its_collection *collection; + void *itt; + unsigned long *lpi_map; + u32 lpi_base; + int nr_lpis; + u32 nr_ites; + u32 device_id; +}; + static inline uint8_t its_decode_cmd(struct its_cmd_block *cmd) { return cmd->raw_cmd[0] & 0xff; -- 1.7.9.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |