Changeset View
Changeset View
Standalone View
Standalone View
head/sys/arm64/arm64/gic_v3_var.h
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | |||||
struct gic_v3_its_softc { | struct gic_v3_its_softc { | ||||
device_t dev; | device_t dev; | ||||
struct resource * its_res; | struct resource * its_res; | ||||
struct its_cmd * its_cmdq_base; /* ITS command queue base */ | struct its_cmd * its_cmdq_base; /* ITS command queue base */ | ||||
struct its_cmd * its_cmdq_write; /* ITS command queue write ptr */ | struct its_cmd * its_cmdq_write; /* ITS command queue write ptr */ | ||||
struct its_ptab its_ptabs[GITS_BASER_NUM];/* ITS private tables */ | struct its_ptab its_ptabs[GITS_BASER_NUM];/* ITS private tables */ | ||||
struct its_col * its_cols; /* Per-CPU collections */ | struct its_col * its_cols[MAXCPU];/* Per-CPU collections */ | ||||
uint64_t its_flags; | uint64_t its_flags; | ||||
struct its_dev_list its_dev_list; | struct its_dev_list its_dev_list; | ||||
unsigned long * its_lpi_bitmap; | unsigned long * its_lpi_bitmap; | ||||
uint32_t its_lpi_maxid; | uint32_t its_lpi_maxid; | ||||
Show All 14 Lines | |||||
extern devclass_t gic_v3_its_devclass; | extern devclass_t gic_v3_its_devclass; | ||||
int gic_v3_its_detach(device_t); | int gic_v3_its_detach(device_t); | ||||
int gic_v3_its_alloc_msix(device_t, device_t, int *); | int gic_v3_its_alloc_msix(device_t, device_t, int *); | ||||
int gic_v3_its_alloc_msi(device_t, device_t, int, int *); | int gic_v3_its_alloc_msi(device_t, device_t, int, int *); | ||||
int gic_v3_its_map_msix(device_t, device_t, int, uint64_t *, uint32_t *); | int gic_v3_its_map_msix(device_t, device_t, int, uint64_t *, uint32_t *); | ||||
int its_init_cpu(struct gic_v3_its_softc *); | |||||
void lpi_unmask_irq(device_t, uint32_t); | void lpi_unmask_irq(device_t, uint32_t); | ||||
void lpi_mask_irq(device_t, uint32_t); | void lpi_mask_irq(device_t, uint32_t); | ||||
/* | /* | ||||
* GIC Distributor accessors. | * GIC Distributor accessors. | ||||
* Notice that only GIC sofc can be passed. | * Notice that only GIC sofc can be passed. | ||||
*/ | */ | ||||
#define gic_d_read(sc, len, reg) \ | #define gic_d_read(sc, len, reg) \ | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |