PebbleOS v4.48.0-75-g7416f78a1
Loading...
Searching...
No Matches
pbl_intc_ops Struct Reference

Interrupt controller driver operations, called with interrupts locked. More...

#include <driver.h>

Data Fields

int(* configure )(const struct pbl_intc *intc, uint32_t hwirq, uint32_t type)
 Set the trigger type of a disabled line.
 
int(* enable )(const struct pbl_intc *intc, uint32_t hwirq)
 Unmask a line.
 
int(* disable )(const struct pbl_intc *intc, uint32_t hwirq)
 Mask a line.
 
int(* set_wake )(const struct pbl_intc *intc, uint32_t hwirq, uint32_t type)
 Make a line a wake source from power-off with a wake type (see pbl_intc_set_wake()), or not with 0.
 
void(* free )(const struct pbl_intc *intc, uint32_t hwirq)
 Release what configure() took for a disabled line, and its wake setting.
 
int(* trigger )(const struct pbl_intc *intc, uint32_t hwirq)
 Raise a line by software.
 

Detailed Description

Interrupt controller driver operations, called with interrupts locked.

Field Documentation

◆ configure

int(* pbl_intc_ops::configure) (const struct pbl_intc *intc, uint32_t hwirq, uint32_t type)

Set the trigger type of a disabled line.

Returns 0, -ENOTSUP or a negative errno.

◆ disable

int(* pbl_intc_ops::disable) (const struct pbl_intc *intc, uint32_t hwirq)

Mask a line.

Returns 0 or a negative errno.

◆ enable

int(* pbl_intc_ops::enable) (const struct pbl_intc *intc, uint32_t hwirq)

Unmask a line.

Returns 0 or a negative errno.

◆ free

void(* pbl_intc_ops::free) (const struct pbl_intc *intc, uint32_t hwirq)

Release what configure() took for a disabled line, and its wake setting.

Optional.

◆ set_wake

int(* pbl_intc_ops::set_wake) (const struct pbl_intc *intc, uint32_t hwirq, uint32_t type)

Make a line a wake source from power-off with a wake type (see pbl_intc_set_wake()), or not with 0.

Optional. Returns 0, -ENOTSUP or a negative errno.

◆ trigger

int(* pbl_intc_ops::trigger) (const struct pbl_intc *intc, uint32_t hwirq)

Raise a line by software.

Optional. Returns 0, -ENOTSUP or a negative errno.


The documentation for this struct was generated from the following file: