17#ifndef ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_GICV3_ITS_H_
18#define ZEPHYR_INCLUDE_DRIVERS_INTERRUPT_CONTROLLER_GICV3_ITS_H_
79 unsigned int count,
unsigned int *intid);
131 uint32_t event_id,
unsigned int intid);
237 unsigned int count,
unsigned int *intid)
239 return DEVICE_API_GET(its, dev)->alloc_map_intids(dev, device_id, count, intid);
268 return DEVICE_API_GET(its, dev)->setup_deviceid(dev, device_id, nites);
299 uint32_t event_id,
unsigned int intid)
301 return DEVICE_API_GET(its, dev)->map_intid(dev, device_id, event_id, intid);
328 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
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 LPI INTID.
Definition gicv3_its.h:130
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:137
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:146
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:100
unsigned int(* its_api_alloc_intid_t)(const struct device *dev)
Callback type for allocating an LPI INTID.
Definition gicv3_its.h:43
int(* its_api_alloc_map_intids_t)(const struct device *dev, uint32_t device_id, unsigned int count, unsigned int *intid)
Allocate and map consecutive LPI INTIDs to EventIDs starting at zero.
Definition gicv3_its.h:78
int(* its_api_alloc_intids_t)(const struct device *dev, unsigned int count, unsigned int *intid)
Allocate consecutive LPI INTIDs.
Definition gicv3_its.h:93
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:265
static int its_alloc_intid(const struct device *dev)
Allocate an LPI INTID.
Definition gicv3_its.h:180
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:326
static int its_alloc_intids(const struct device *dev, unsigned int count, unsigned int *intid)
Allocate consecutive LPI INTIDs.
Definition gicv3_its.h:197
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:341
static int its_alloc_map_intids(const struct device *dev, uint32_t device_id, unsigned int count, unsigned int *intid)
Allocate consecutive LPI INTIDs and map them to EventIDs.
Definition gicv3_its.h:236
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 LPI INTID.
Definition gicv3_its.h:298
__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
<span class="mlabel">Driver Operations</span> GICv3 ITS driver operations
Definition gicv3_its.h:151
its_api_map_intid_t map_intid
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition gicv3_its.h:157
its_api_setup_deviceid_t setup_deviceid
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition gicv3_its.h:155
its_api_get_msi_addr_t get_msi_addr
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition gicv3_its.h:161
its_api_alloc_intids_t alloc_intids
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition gicv3_its.h:163
its_api_alloc_map_intids_t alloc_map_intids
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition gicv3_its.h:165
its_api_send_int_t send_int
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition gicv3_its.h:159
its_api_alloc_intid_t alloc_intid
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition gicv3_its.h:153