|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Driver for ARM Generic Interrupt Controller V3 Interrupt Translation Service. More...
Go to the source code of this file.
Data Structures | |
| struct | its_driver_api |
| ITS driver API. More... | |
Typedefs | |
| typedef unsigned int(* | its_api_alloc_intid_t) (const struct device *dev) |
| Callback type for allocating an INTID. | |
| typedef 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. | |
| typedef 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. | |
| typedef int(* | its_api_send_int_t) (const struct device *dev, uint32_t device_id, uint32_t event_id) |
| Callback type for sending an interrupt. | |
| typedef uint64_t(* | its_api_get_msi_addr_t) (const struct device *dev) |
| Callback type for retrieving the physical MSI target address. | |
Functions | |
| static int | its_alloc_intid (const struct device *dev) |
| Allocate an INTID for an ITS device. | |
| 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. | |
| 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. | |
| static int | its_send_int (const struct device *dev, uint32_t device_id, uint32_t event_id) |
| Send an interrupt for an EventID. | |
| static uint64_t | its_get_msi_addr (const struct device *dev) |
| Get the physical MSI target address for an ITS device. | |
Driver for ARM Generic Interrupt Controller V3 Interrupt Translation Service.
The Generic Interrupt Controller (GIC) Interrupt Translation Service translates an input EventID from a device, identified by its DeviceID, determines a corresponding INTID for this input and the target Redistributor and, through this, the target PE for that INTID.
Callback type for allocating an INTID.
| dev | ITS device instance. |
Callback type for retrieving the physical MSI target address.
| dev | ITS device instance. |
| typedef 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.
| dev | ITS device instance. |
| device_id | Device ID of the endpoint. |
| event_id | Event ID to map. |
| intid | INTID the EventID is mapped to. |
| 0 | EventID mapped to INTID. |
| -EINVAL | INTID is less than 8192. |
| -EBUSY | ITS command queue is full. |
| -ETIMEDOUT | ITS command processing timed out. |
Callback type for sending an interrupt.
| dev | ITS device instance. |
| device_id | Device ID of the endpoint. |
| event_id | Event ID to trigger. |
| 0 | Interrupt command completed. |
| -EBUSY | ITS command queue is full. |
| -ETIMEDOUT | ITS command processing timed out. |
| typedef 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.
| dev | ITS device instance. |
| device_id | Device ID of the endpoint. |
| nites | Number of ITEs to allocate for the device. |
| 0 | Device ID set up. |
| -EINVAL | Device ID does not fit in the indirect device table. |
| -ENOMEM | Memory allocation failed. |
| -EBUSY | ITS command queue is full. |
| -ETIMEDOUT | ITS command processing timed out. |
|
inlinestatic |
Allocate an INTID for an ITS device.
| dev | ITS device instance. |
Get the physical MSI target address for an ITS device.
The return type is 64 bits wide on all targets. The address value may still be limited by the provider's underlying address width.
| dev | ITS device instance. |
|
inlinestatic |
Map an EventID to an INTID.
| dev | ITS device instance. |
| device_id | Device ID of the endpoint. |
| event_id | Event ID to map. |
| intid | INTID the EventID is mapped to. |
| 0 | EventID mapped to INTID. |
| -EINVAL | INTID is less than 8192. |
| -EBUSY | ITS command queue is full. |
| -ETIMEDOUT | ITS command processing timed out. |
Send an interrupt for an EventID.
| dev | ITS device instance. |
| device_id | Device ID of the endpoint. |
| event_id | Event ID to trigger. |
| 0 | Interrupt command completed. |
| -EBUSY | ITS command queue is full. |
| -ETIMEDOUT | ITS command processing timed out. |
|
inlinestatic |
Set up a device ID for an ITS device.
| dev | ITS device instance. |
| device_id | Device ID of the endpoint. |
| nites | Number of ITEs to allocate for the device. |
| 0 | Device ID set up. |
| -EINVAL | Device ID does not fit in the indirect device table. |
| -ENOMEM | Memory allocation failed. |
| -EBUSY | ITS command queue is full. |
| -ETIMEDOUT | ITS command processing timed out. |