PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
driver.h File Reference
#include <stdint.h>
#include <pbl/device.h>
#include <pbl/drivers/intc.h>

Data Structures

struct  pbl_intc_ops
 Interrupt controller driver operations, called with interrupts locked. More...
 
struct  pbl_intc_line
 Runtime state of a line. More...
 
struct  pbl_intc
 An interrupt controller. More...
 

Macros

#define PBL_INTC_STATE_DEFINE(sym, _num_irqs)
 Define the class state of interrupt controller sym, for the driver's define macro.
 
#define PBL_INTC_INIT(sym, _name, _init, _parent, _ops)
 Initializer for the struct pbl_intc of controller sym.
 

Functions

void pbl_intc_dispatch (const struct pbl_intc *intc, uint32_t hwirq)
 Run the handler of a pending line.
 

Variables

const struct pbl_device_class pbl_intc_class
 Class of the interrupt controllers.