Teach the GICv3 driver about a vgic child
This will be used by bhyve to attach a virtual GIC driver. Sponsored by: Innovate UK Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36590
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
#define GIC_IVAR_HW_REV 500
|
||||
#define GIC_IVAR_BUS 501
|
||||
#define GIC_IVAR_VGIC 502
|
||||
|
||||
/* GIC_IVAR_BUS values */
|
||||
#define GIC_BUS_UNKNOWN 0
|
||||
@@ -42,6 +43,7 @@
|
||||
|
||||
__BUS_ACCESSOR(gic, hw_rev, GIC, HW_REV, u_int);
|
||||
__BUS_ACCESSOR(gic, bus, GIC, BUS, u_int);
|
||||
__BUS_ACCESSOR(gic, vgic, GIC, VGIC, u_int);
|
||||
|
||||
/* Software Generated Interrupts */
|
||||
#define GIC_FIRST_SGI 0 /* Irqs 0-15 are SGIs/IPIs. */
|
||||
|
||||
Reference in New Issue
Block a user