16#ifndef ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_GICV3_ITS_H_
17#define ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_GICV3_ITS_H_
58 uint32_t event_id,
unsigned int intid);
126 return DEVICE_API_GET(its, dev)->setup_deviceid(dev, device_id, nites);
143 uint32_t event_id,
unsigned int intid)
145 return DEVICE_API_GET(its, dev)->map_intid(dev, device_id, event_id, intid);
161 return DEVICE_API_GET(its, dev)->send_int(dev, device_id, event_id);
#define DEVICE_API_GET(_class, _dev)
Expands to the pointer of a device's API for a given class.
Definition device.h:1505
static int its_setup_deviceid(const struct device *dev, uint32_t device_id, unsigned int nites)
Set up a device ID for an ITS device.
Definition gicv3_its.h:123
int(* its_api_map_intid_t)(const struct device *dev, uint32_t device_id, uint32_t event_id, unsigned int intid)
Callback type for mapping an EventID to an INTID.
Definition gicv3_its.h:57
int(* its_api_send_int_t)(const struct device *dev, uint32_t device_id, uint32_t event_id)
Callback type for sending an interrupt.
Definition gicv3_its.h:71
uint64_t(* its_api_get_msi_addr_t)(const struct device *dev)
Callback type for retrieving the physical MSI target address.
Definition gicv3_its.h:80
int(* its_api_setup_deviceid_t)(const struct device *dev, uint32_t device_id, unsigned int nites)
Callback type for setting up a device ID.
Definition gicv3_its.h:41
unsigned int(* its_api_alloc_intid_t)(const struct device *dev)
Callback type for allocating an INTID.
Definition gicv3_its.h:26
static int its_alloc_intid(const struct device *dev)
Allocate an INTID for an ITS device.
Definition gicv3_its.h:105
static int its_send_int(const struct device *dev, uint32_t device_id, uint32_t event_id)
Send an interrupt for an EventID.
Definition gicv3_its.h:159
static uint64_t its_get_msi_addr(const struct device *dev)
Get the physical MSI target address for an ITS device.
Definition gicv3_its.h:174
static int its_map_intid(const struct device *dev, uint32_t device_id, uint32_t event_id, unsigned int intid)
Map an EventID to an INTID.
Definition gicv3_its.h:142
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
Runtime device structure (in ROM) per driver instance.
Definition device.h:543
ITS driver API.
Definition gicv3_its.h:85
its_api_map_intid_t map_intid
Map an EventID to an INTID.
Definition gicv3_its.h:91
its_api_setup_deviceid_t setup_deviceid
Set up a device ID.
Definition gicv3_its.h:89
its_api_get_msi_addr_t get_msi_addr
Get the physical MSI target address.
Definition gicv3_its.h:95
its_api_send_int_t send_int
Send an interrupt.
Definition gicv3_its.h:93
its_api_alloc_intid_t alloc_intid
Allocate an INTID.
Definition gicv3_its.h:87