Home
last modified time | relevance | path

Searched refs:base_irq (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-3.4.0/drivers/gpio/
Dgpio_sifive.c72 static inline unsigned int gpio_sifive_pin_irq(unsigned int base_irq, int pin) in gpio_sifive_pin_irq() argument
74 unsigned int level = irq_get_level(base_irq); in gpio_sifive_pin_irq()
78 pin_irq = base_irq + pin; in gpio_sifive_pin_irq()
80 pin_irq = base_irq + (pin << 8); in gpio_sifive_pin_irq()
89 static inline int gpio_sifive_plic_to_pin(unsigned int base_irq, int plic_irq) in gpio_sifive_plic_to_pin() argument
91 unsigned int level = irq_get_level(base_irq); in gpio_sifive_plic_to_pin()
94 base_irq = irq_from_level_2(base_irq); in gpio_sifive_plic_to_pin()
97 return (plic_irq - base_irq); in gpio_sifive_plic_to_pin()