Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:04

0001 /**
0002  * @file
0003  *
0004  * @ingroup raspberrypi_interrupt
0005  *
0006  * @brief Interrupt definitions.
0007  */
0008 
0009 /**
0010  * Copyright (c) 2013 Alan Cudmore
0011  *
0012  *  The license and distribution terms for this file may be
0013  *  found in the file LICENSE in this distribution or at
0014  *
0015  *  http://www.rtems.org/license/LICENSE
0016  *
0017  */
0018 
0019 #ifndef LIBBSP_ARM_RASPBERRYPI_IRQ_H
0020 #define LIBBSP_ARM_RASPBERRYPI_IRQ_H
0021 
0022 #ifndef ASM
0023 
0024 #include <rtems.h>
0025 
0026 /**
0027  * @defgroup raspberrypi_interrupt Interrrupt Support
0028  *
0029  * @ingroup RTEMSBSPsARMRaspberryPi
0030  *
0031  * @brief Interrupt support.
0032  */
0033 
0034 #define BCM2835_INTC_TOTAL_IRQ       (64 + 8)
0035 
0036 #define BCM2835_IRQ_SET1_MIN         0
0037 #define BCM2835_IRQ_SET2_MIN         32
0038 
0039 #define BCM2835_IRQ_ID_GPU_TIMER_M0  0
0040 #define BCM2835_IRQ_ID_GPU_TIMER_M1  1
0041 #define BCM2835_IRQ_ID_GPU_TIMER_M2  2
0042 #define BCM2835_IRQ_ID_GPU_TIMER_M3  3
0043 
0044 #define BCM2835_IRQ_ID_USB           9
0045 #define BCM2835_IRQ_ID_AUX           29
0046 #define BCM2835_IRQ_ID_SPI_SLAVE     43
0047 #define BCM2835_IRQ_ID_PWA0          45
0048 #define BCM2835_IRQ_ID_PWA1          46
0049 #define BCM2835_IRQ_ID_SMI           48
0050 #define BCM2835_IRQ_ID_GPIO_0        49
0051 #define BCM2835_IRQ_ID_GPIO_1        50
0052 #define BCM2835_IRQ_ID_GPIO_2        51
0053 #define BCM2835_IRQ_ID_GPIO_3        52
0054 #define BCM2835_IRQ_ID_I2C           53
0055 #define BCM2835_IRQ_ID_SPI           54
0056 #define BCM2835_IRQ_ID_PCM           55
0057 #define BCM2835_IRQ_ID_UART          57
0058 #define BCM2835_IRQ_ID_SD            62
0059 
0060 #define BCM2835_IRQ_ID_BASIC_BASE_ID 64
0061 #define BCM2835_IRQ_ID_TIMER_0       64
0062 #define BCM2835_IRQ_ID_MAILBOX_0     65
0063 #define BCM2835_IRQ_ID_DOORBELL_0    66
0064 #define BCM2835_IRQ_ID_DOORBELL_1    67
0065 #define BCM2835_IRQ_ID_GPU0_HALTED   68
0066 #define BCM2835_IRQ_ID_GPU1_HALTED   69
0067 #define BCM2835_IRQ_ID_ILL_ACCESS_1  70
0068 #define BCM2835_IRQ_ID_ILL_ACCESS_0  71
0069 
0070 #define BSP_INTERRUPT_VECTOR_COUNT    BCM2835_INTC_TOTAL_IRQ
0071 #define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
0072 
0073 #define BSP_IRQ_COUNT               (BCM2835_INTC_TOTAL_IRQ)
0074 
0075 #endif /* ASM */
0076 #endif /* LIBBSP_ARM_RASPBERRYPI_IRQ_H */