This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Second level interrupt controller | |
#define INTC_REG_RW (ARM_RP1_INTC + 0x000) | |
#define INTC_INT_STAT_LOW (ARM_RP1_INTC + 0x108) | |
#define INTC_INT_STAT_HIGH (ARM_RP1_INTC + 0x10C) | |
#define INTC_REG_SET (ARM_RP1_INTC + 0x800) | |
#define INTC_REG_CLR (ARM_RP1_INTC + 0xC00) | |
#define MSIX_CFG(irq) (0x008 + (irq)*4) | |
#define MSIX_CFG_ENABLE BIT (0) | |
#define MSIX_CFG_TEST BIT (1) // forces interrupt |