![]() |
no-OS
|
Functions | |
| int32_t | latt_irq_ctrl_init (struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param) |
| Initialize the IRQ interrupts. | |
| int32_t | latt_trigger_level_set (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, enum no_os_irq_trig_level level) |
| Unused. | |
| int32_t | latt_irq_set_priority (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, uint32_t priority_level) |
| Set a priority level for an interrupt. | |
| int32_t | latt_irq_global_enable (struct no_os_irq_ctrl_desc *desc) |
| Enable global interrupts. | |
| int32_t | latt_irq_global_disable (struct no_os_irq_ctrl_desc *desc) |
| Disable global interrupts. | |
| int32_t | latt_irq_enable (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id) |
| Enable specific interrupt. | |
| int32_t | latt_irq_disable (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id) |
| Disable specific interrupt. | |
| int32_t | latt_irq_register_callback (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc) |
| Register a callback to handle the irq events. | |
| int32_t | latt_irq_unregister_callback (struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *cb) |
| Unregisters a generic IRQ handling function. | |
| int32_t | latt_irq_ctrl_remove (struct no_os_irq_ctrl_desc *desc) |
| Free the resources allocated by no_os_irq_ctrl_init(). | |
Variables | |
| struct interrupt_entry | plic_int_table [] |
| const struct no_os_irq_platform_ops | latt_irq_ops |
| Lattice platform specific IRQ platform ops structure. | |
| int32_t latt_irq_ctrl_init | ( | struct no_os_irq_ctrl_desc ** | desc, |
| const struct no_os_irq_init_param * | param ) |
Initialize the IRQ interrupts.
| desc | - The IRQ controller descriptor. |
| param | - The structure that contains the IRQ parameters. |
| int32_t latt_irq_ctrl_remove | ( | struct no_os_irq_ctrl_desc * | desc | ) |
Free the resources allocated by no_os_irq_ctrl_init().
| desc | - The IRQ control descriptor. |
| int32_t latt_irq_disable | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id ) |
Disable specific interrupt.
| desc | - The IRQ controller descriptor. |
| irq_id | - Interrupt identifier. |
| int32_t latt_irq_enable | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id ) |
Enable specific interrupt.
| desc | - The IRQ controller descriptor. |
| irq_id | - Interrupt identifier. |
| int32_t latt_irq_global_disable | ( | struct no_os_irq_ctrl_desc * | desc | ) |
Disable global interrupts.
| int32_t latt_irq_global_enable | ( | struct no_os_irq_ctrl_desc * | desc | ) |
Enable global interrupts.
| int32_t latt_irq_register_callback | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id, | ||
| struct no_os_callback_desc * | callback_desc ) |
Register a callback to handle the irq events.
| desc | - The IRQ controller descriptor. |
| irq_id | - Interrupt identifier. |
| callback_desc | - Callback descriptor |
| int32_t latt_irq_set_priority | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id, | ||
| uint32_t | priority_level ) |
Set a priority level for an interrupt.
| desc | - Interrupt controller descriptor. |
| irq_id | - The interrupt vector entry id of the peripheral. |
| priority_level | - The interrupt priority level. |
| int32_t latt_irq_unregister_callback | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id, | ||
| struct no_os_callback_desc * | cb ) |
Unregisters a generic IRQ handling function.
| desc | - The IRQ controller descriptor. |
| irq_id | - Interrupt identifier. |
| cb | - Callback descriptor. |
| int32_t latt_trigger_level_set | ( | struct no_os_irq_ctrl_desc * | desc, |
| uint32_t | irq_id, | ||
| enum no_os_irq_trig_level | level ) |
Unused.
| desc | - Irq descriptor. |
| irq_id | - The interrupt vector entry id of the peripheral. |
| level | - The trigger condition. |
| const struct no_os_irq_platform_ops latt_irq_ops |
Lattice platform specific IRQ platform ops structure.
Lattice specific IRQ platform ops structure.
|
extern |