mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 09:12:44 +00:00
Use the DTS-generated symbols for accessing MMIO registers in the PLIC. Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
16 lines
346 B
C
16 lines
346 B
C
/*
|
|
* Copyright (c) 2018 Antmicro <www.antmicro.com>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_PLIC_H_
|
|
#define ZEPHYR_DRIVERS_INTERRUPT_CONTROLLER_PLIC_H_
|
|
|
|
#include <soc.h>
|
|
|
|
#define PLIC_IRQS (CONFIG_NUM_IRQS - RISCV_MAX_GENERIC_IRQ)
|
|
#define PLIC_EN_SIZE ((PLIC_IRQS >> 5) + 1)
|
|
|
|
#endif
|