[PATCH v2 10/12] bsps/irq: Remove BSP_INTERRUPT_VECTOR_MAX

Sebastian Huber sebastian.huber at embedded-brains.de
Sat Jun 19 14:04:46 UTC 2021


This define is no longer used.

Update #3269.
---
 bsps/aarch64/a53/include/bsp/irq.h              | 1 -
 bsps/aarch64/a72/include/bsp/irq.h              | 1 -
 bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h    | 1 -
 bsps/arm/altera-cyclone-v/include/bsp/irq.h     | 1 -
 bsps/arm/atsam/include/bsp/irq.h                | 1 -
 bsps/arm/beagle/include/bsp/irq.h               | 1 -
 bsps/arm/csb336/include/bsp/irq.h               | 1 -
 bsps/arm/csb337/include/bsp/irq.h               | 1 -
 bsps/arm/edb7312/include/bsp/irq.h              | 1 -
 bsps/arm/fvp/include/bsp/irq.h                  | 1 -
 bsps/arm/gumstix/include/bsp/irq.h              | 1 -
 bsps/arm/imx/include/bsp/irq.h                  | 1 -
 bsps/arm/imxrt/include/bsp/irq.h                | 1 -
 bsps/arm/lm3s69xx/include/bsp/irq.h             | 1 -
 bsps/arm/lpc176x/include/bsp/irq.h              | 1 -
 bsps/arm/lpc24xx/include/bsp/irq.h              | 2 --
 bsps/arm/lpc32xx/include/bsp/irq.h              | 1 -
 bsps/arm/raspberrypi/include/bsp/irq.h          | 2 --
 bsps/arm/realview-pbx-a9/include/bsp/irq.h      | 1 -
 bsps/arm/rtl22xx/include/bsp/irq.h              | 1 -
 bsps/arm/smdk2410/include/bsp/irq.h             | 1 -
 bsps/arm/stm32f4/include/bsp/irq.h              | 1 -
 bsps/arm/stm32h7/include/bsp/irq.h              | 1 -
 bsps/arm/tms570/include/bsp/irq.h               | 1 -
 bsps/arm/xen/include/bsp/irq.h                  | 1 -
 bsps/arm/xilinx-zynq/include/bsp/irq.h          | 1 -
 bsps/arm/xilinx-zynqmp/include/bsp/irq.h        | 1 -
 bsps/i386/include/bsp/irq.h                     | 1 -
 bsps/include/bsp/irq-default.h                  | 1 -
 bsps/include/bsp/irq-generic.h                  | 8 --------
 bsps/lm32/include/bsp/irq.h                     | 1 -
 bsps/m68k/genmcf548x/include/bsp/irq.h          | 1 -
 bsps/mips/csb350/include/bsp/irq.h              | 1 -
 bsps/mips/hurricane/include/bsp/irq.h           | 1 -
 bsps/mips/jmr3904/include/bsp/irq.h             | 1 -
 bsps/mips/malta/include/bsp/irq.h               | 1 -
 bsps/mips/rbtx4925/include/bsp/irq.h            | 1 -
 bsps/mips/rbtx4938/include/bsp/irq.h            | 1 -
 bsps/powerpc/gen5200/include/bsp/irq.h          | 1 -
 bsps/powerpc/gen83xx/include/bsp/irq.h          | 1 -
 bsps/powerpc/motorola_powerpc/include/bsp/irq.h | 1 -
 bsps/powerpc/mpc55xxevb/include/bsp/irq.h       | 1 -
 bsps/powerpc/mpc8260ads/include/bsp/irq.h       | 1 -
 bsps/powerpc/psim/include/bsp/irq.h             | 1 -
 bsps/powerpc/qemuppc/include/bsp/irq.h          | 1 -
 bsps/powerpc/qoriq/include/bsp/irq.h            | 2 --
 bsps/powerpc/t32mppc/include/bsp/irq.h          | 1 -
 bsps/powerpc/tqm8xx/include/bsp/irq.h           | 1 -
 bsps/powerpc/virtex/include/bsp/irq.h           | 1 -
 bsps/riscv/griscv/include/bsp/irq.h             | 1 -
 bsps/riscv/riscv/include/bsp/irq.h              | 1 -
 bsps/sparc/erc32/include/bsp/irq.h              | 1 -
 bsps/sparc/leon2/include/bsp/irq.h              | 1 -
 bsps/sparc/leon3/include/bsp/irq.h              | 1 -
 bsps/x86_64/include/bsp/irq.h                   | 1 -
 55 files changed, 65 deletions(-)

diff --git a/bsps/aarch64/a53/include/bsp/irq.h b/bsps/aarch64/a53/include/bsp/irq.h
index 2816c9abd8..b797408ca5 100644
--- a/bsps/aarch64/a53/include/bsp/irq.h
+++ b/bsps/aarch64/a53/include/bsp/irq.h
@@ -48,7 +48,6 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#define BSP_INTERRUPT_VECTOR_MAX 1023
 #define BSP_INTERRUPT_VECTOR_COUNT 1024
 
 /* Interrupts vectors */
diff --git a/bsps/aarch64/a72/include/bsp/irq.h b/bsps/aarch64/a72/include/bsp/irq.h
index e96cde7216..c2e86ec0a9 100644
--- a/bsps/aarch64/a72/include/bsp/irq.h
+++ b/bsps/aarch64/a72/include/bsp/irq.h
@@ -48,7 +48,6 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#define BSP_INTERRUPT_VECTOR_MAX 1023
 #define BSP_INTERRUPT_VECTOR_COUNT 1024
 
 /* Interrupts vectors */
diff --git a/bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h b/bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h
index 7974b0b4eb..b67d7d0f8e 100644
--- a/bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h
+++ b/bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h
@@ -48,7 +48,6 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#define BSP_INTERRUPT_VECTOR_MAX 1023
 #define BSP_INTERRUPT_VECTOR_COUNT 1024
 
 /* Interrupts vectors */
diff --git a/bsps/arm/altera-cyclone-v/include/bsp/irq.h b/bsps/arm/altera-cyclone-v/include/bsp/irq.h
index e9837ae9e3..496645c23f 100644
--- a/bsps/arm/altera-cyclone-v/include/bsp/irq.h
+++ b/bsps/arm/altera-cyclone-v/include/bsp/irq.h
@@ -47,7 +47,6 @@ extern "C" {
  */
 
 /* Use interrupt IDs as defined in alt_interrupt_common.h */
-#define BSP_INTERRUPT_VECTOR_MAX ALT_INT_INTERRUPT_RAM_ECC_UNCORRECTED_IRQ
 #define BSP_INTERRUPT_VECTOR_COUNT \
   (ALT_INT_INTERRUPT_RAM_ECC_UNCORRECTED_IRQ + 1)
 
diff --git a/bsps/arm/atsam/include/bsp/irq.h b/bsps/arm/atsam/include/bsp/irq.h
index e7a4add25a..fa3d56ab1e 100644
--- a/bsps/arm/atsam/include/bsp/irq.h
+++ b/bsps/arm/atsam/include/bsp/irq.h
@@ -23,7 +23,6 @@
   #include <rtems/irq-extension.h>
 #endif
 
-#define BSP_INTERRUPT_VECTOR_MAX 64
 #define BSP_INTERRUPT_VECTOR_COUNT 65
 
 #endif /* LIBBSP_ARM_ATSAM_ESV_70_IRQ_H */
diff --git a/bsps/arm/beagle/include/bsp/irq.h b/bsps/arm/beagle/include/bsp/irq.h
index fc583fe8bb..a4e0addd4c 100644
--- a/bsps/arm/beagle/include/bsp/irq.h
+++ b/bsps/arm/beagle/include/bsp/irq.h
@@ -15,7 +15,6 @@
 #include <rtems/irq.h>
 #include <rtems/irq-extension.h>
 
-#define BSP_INTERRUPT_VECTOR_MAX 127
 #define BSP_INTERRUPT_VECTOR_COUNT 128
 
 #endif /* ASM */
diff --git a/bsps/arm/csb336/include/bsp/irq.h b/bsps/arm/csb336/include/bsp/irq.h
index f082c7c34e..4402a7d6a5 100644
--- a/bsps/arm/csb336/include/bsp/irq.h
+++ b/bsps/arm/csb336/include/bsp/irq.h
@@ -88,7 +88,6 @@
 #define BSP_INT_WDT              63
 #define BSP_MAX_INT              64
 
-#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT BSP_MAX_INT
 
 #endif /* __IRQ_H__ */
diff --git a/bsps/arm/csb337/include/bsp/irq.h b/bsps/arm/csb337/include/bsp/irq.h
index 2dfbff8eac..6a60caad33 100644
--- a/bsps/arm/csb337/include/bsp/irq.h
+++ b/bsps/arm/csb337/include/bsp/irq.h
@@ -72,7 +72,6 @@
 #define AT91RM9200_INT_IRQ6      31
 #define AT91RM9200_MAX_INT       32
 
-#define BSP_INTERRUPT_VECTOR_MAX (AT91RM9200_MAX_INT - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT AT91RM9200_MAX_INT
 
 #endif /* __IRQ_H__ */
diff --git a/bsps/arm/edb7312/include/bsp/irq.h b/bsps/arm/edb7312/include/bsp/irq.h
index d0c0c7dd9f..66a17b8dda 100644
--- a/bsps/arm/edb7312/include/bsp/irq.h
+++ b/bsps/arm/edb7312/include/bsp/irq.h
@@ -83,7 +83,6 @@
 
 /** @} */
 
-#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT BSP_MAX_INT
 
 /** @} */
diff --git a/bsps/arm/fvp/include/bsp/irq.h b/bsps/arm/fvp/include/bsp/irq.h
index ba558c5122..d5240dcc2d 100644
--- a/bsps/arm/fvp/include/bsp/irq.h
+++ b/bsps/arm/fvp/include/bsp/irq.h
@@ -40,7 +40,6 @@
 
 #include <bspopts.h>
 
-#define BSP_INTERRUPT_VECTOR_MAX (32 + BSP_ARM_SHARED_PERIPHERAL_INTERRUPT_COUNT)
 #define BSP_INTERRUPT_VECTOR_COUNT \
   (32 + BSP_ARM_SHARED_PERIPHERAL_INTERRUPT_COUNT + 1)
 
diff --git a/bsps/arm/gumstix/include/bsp/irq.h b/bsps/arm/gumstix/include/bsp/irq.h
index b69f559e74..af7832e92c 100644
--- a/bsps/arm/gumstix/include/bsp/irq.h
+++ b/bsps/arm/gumstix/include/bsp/irq.h
@@ -20,7 +20,6 @@
 
 #include <pxa255.h>
 
-#define BSP_INTERRUPT_VECTOR_MAX (PRIMARY_IRQS - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT PRIMARY_IRQS
 
 #endif /* __asm__ */
diff --git a/bsps/arm/imx/include/bsp/irq.h b/bsps/arm/imx/include/bsp/irq.h
index 26b0f348d5..000623aa43 100644
--- a/bsps/arm/imx/include/bsp/irq.h
+++ b/bsps/arm/imx/include/bsp/irq.h
@@ -26,7 +26,6 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#define BSP_INTERRUPT_VECTOR_MAX 159
 #define BSP_INTERRUPT_VECTOR_COUNT 160
 #define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
 
diff --git a/bsps/arm/imxrt/include/bsp/irq.h b/bsps/arm/imxrt/include/bsp/irq.h
index 0732136570..6fcd055f03 100644
--- a/bsps/arm/imxrt/include/bsp/irq.h
+++ b/bsps/arm/imxrt/include/bsp/irq.h
@@ -43,7 +43,6 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#define BSP_INTERRUPT_VECTOR_MAX 159
 #define BSP_INTERRUPT_VECTOR_COUNT 160
 #define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
 
diff --git a/bsps/arm/lm3s69xx/include/bsp/irq.h b/bsps/arm/lm3s69xx/include/bsp/irq.h
index bf98b4e785..f342c1a361 100644
--- a/bsps/arm/lm3s69xx/include/bsp/irq.h
+++ b/bsps/arm/lm3s69xx/include/bsp/irq.h
@@ -101,7 +101,6 @@
 #define LM3S69XX_IRQ_PRIORITY_LOWEST LM3S69XX_IRQ_PRIORITY_VALUE_MAX
 
 /* NOTE: for lm3s6965 - 43 */
-#define BSP_INTERRUPT_VECTOR_MAX 47
 #define BSP_INTERRUPT_VECTOR_COUNT 48
 
 #endif /* LIBBSP_ARM_LM3S69XX_IRQ_H */
diff --git a/bsps/arm/lpc176x/include/bsp/irq.h b/bsps/arm/lpc176x/include/bsp/irq.h
index f108d90366..7b9cbcbb72 100644
--- a/bsps/arm/lpc176x/include/bsp/irq.h
+++ b/bsps/arm/lpc176x/include/bsp/irq.h
@@ -68,7 +68,6 @@
 #define LPC176X_IRQ_PWM 39U
 #define LPC176X_IRQ_EEPROM 40U
 
-#define BSP_INTERRUPT_VECTOR_MAX 40
 #define BSP_INTERRUPT_VECTOR_COUNT 41
 
 #define LPC176X_IRQ_PRIORITY_VALUE_MIN 0U
diff --git a/bsps/arm/lpc24xx/include/bsp/irq.h b/bsps/arm/lpc24xx/include/bsp/irq.h
index 92afe7d904..9794a01546 100644
--- a/bsps/arm/lpc24xx/include/bsp/irq.h
+++ b/bsps/arm/lpc24xx/include/bsp/irq.h
@@ -69,7 +69,6 @@
   #define LPC24XX_IRQ_I2C_2 30
   #define LPC24XX_IRQ_I2S 31
 
-  #define BSP_INTERRUPT_VECTOR_MAX 31
   #define BSP_INTERRUPT_VECTOR_COUNT 32
 #else
   #define LPC24XX_IRQ_WDT 0
@@ -113,7 +112,6 @@
   #define LPC24XX_IRQ_PWM 39
   #define LPC24XX_IRQ_EEPROM 40
 
-  #define BSP_INTERRUPT_VECTOR_MAX 40
   #define BSP_INTERRUPT_VECTOR_COUNT 41
 #endif
 
diff --git a/bsps/arm/lpc32xx/include/bsp/irq.h b/bsps/arm/lpc32xx/include/bsp/irq.h
index 02fce3258a..84b296431b 100644
--- a/bsps/arm/lpc32xx/include/bsp/irq.h
+++ b/bsps/arm/lpc32xx/include/bsp/irq.h
@@ -139,7 +139,6 @@ extern "C" {
 #define LPC32XX_IRQ_PRIORITY_HIGHEST LPC32XX_IRQ_PRIORITY_VALUE_MIN
 #define LPC32XX_IRQ_PRIORITY_LOWEST LPC32XX_IRQ_PRIORITY_VALUE_MAX
 
-#define BSP_INTERRUPT_VECTOR_MAX LPC32XX_IRQ_SYSCLK
 #define BSP_INTERRUPT_VECTOR_COUNT (LPC32XX_IRQ_SYSCLK + 1)
 
 #define LPC32XX_IRQ_COUNT BSP_INTERRUPT_VECTOR_COUNT
diff --git a/bsps/arm/raspberrypi/include/bsp/irq.h b/bsps/arm/raspberrypi/include/bsp/irq.h
index 889d76341c..fae147124f 100644
--- a/bsps/arm/raspberrypi/include/bsp/irq.h
+++ b/bsps/arm/raspberrypi/include/bsp/irq.h
@@ -33,7 +33,6 @@
  * @brief Interrupt support.
  */
 
-#define BCM2835_INTC_TOTAL_IRQ       64 + 8
 #define BCM2835_INTC_TOTAL_IRQ       (64 + 8)
 
 #define BCM2835_IRQ_SET1_MIN         0
@@ -70,7 +69,6 @@
 #define BCM2835_IRQ_ID_ILL_ACCESS_1  70
 #define BCM2835_IRQ_ID_ILL_ACCESS_0  71
 
-#define BSP_INTERRUPT_VECTOR_MAX    (BCM2835_INTC_TOTAL_IRQ - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT    BCM2835_INTC_TOTAL_IRQ
 #define BSP_INTERRUPT_VECTOR_INVALID (UINT32_MAX)
 
diff --git a/bsps/arm/realview-pbx-a9/include/bsp/irq.h b/bsps/arm/realview-pbx-a9/include/bsp/irq.h
index 8226e162d8..6563d1ba1a 100644
--- a/bsps/arm/realview-pbx-a9/include/bsp/irq.h
+++ b/bsps/arm/realview-pbx-a9/include/bsp/irq.h
@@ -90,7 +90,6 @@ extern "C" {
 #define RVPBXA9_IRQ_P_NINT_6 88
 #define RVPBXA9_IRQ_P_NINT_7 89
 
-#define BSP_INTERRUPT_VECTOR_MAX 89
 #define BSP_INTERRUPT_VECTOR_COUNT 90
 
 #ifdef __cplusplus
diff --git a/bsps/arm/rtl22xx/include/bsp/irq.h b/bsps/arm/rtl22xx/include/bsp/irq.h
index 7b7a7c73a7..7e94bf171a 100644
--- a/bsps/arm/rtl22xx/include/bsp/irq.h
+++ b/bsps/arm/rtl22xx/include/bsp/irq.h
@@ -53,7 +53,6 @@
 #define LPC22xx_INTERRUPT_CAN4RX 27	/* CAN2 Rx interrupt */
 #define BSP_MAX_INT              28
 
-#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT BSP_MAX_INT
 
 #define UNDEFINED_INSTRUCTION_VECTOR_ADDR   (*(u_long *)0x00000004L)
diff --git a/bsps/arm/smdk2410/include/bsp/irq.h b/bsps/arm/smdk2410/include/bsp/irq.h
index 08a3e9162c..d848eb5568 100644
--- a/bsps/arm/smdk2410/include/bsp/irq.h
+++ b/bsps/arm/smdk2410/include/bsp/irq.h
@@ -90,7 +90,6 @@
 #error "Undefined Samsung CPU model"
 #endif
 
-#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT BSP_MAX_INT
 
 #endif /* _IRQ_H_ */
diff --git a/bsps/arm/stm32f4/include/bsp/irq.h b/bsps/arm/stm32f4/include/bsp/irq.h
index 7ca6eee7c1..586d68af82 100644
--- a/bsps/arm/stm32f4/include/bsp/irq.h
+++ b/bsps/arm/stm32f4/include/bsp/irq.h
@@ -133,7 +133,6 @@ extern "C" {
 #define STM32F4_IRQ_PRIORITY_HIGHEST STM32F4_IRQ_PRIORITY_VALUE_MIN
 #define STM32F4_IRQ_PRIORITY_LOWEST STM32F4_IRQ_PRIORITY_VALUE_MAX
 
-#define BSP_INTERRUPT_VECTOR_MAX 81
 #define BSP_INTERRUPT_VECTOR_COUNT 82
 
 /** @} */
diff --git a/bsps/arm/stm32h7/include/bsp/irq.h b/bsps/arm/stm32h7/include/bsp/irq.h
index a06e052393..15ebe5c48a 100644
--- a/bsps/arm/stm32h7/include/bsp/irq.h
+++ b/bsps/arm/stm32h7/include/bsp/irq.h
@@ -36,7 +36,6 @@
 
 #endif /* ASM */
 
-#define BSP_INTERRUPT_VECTOR_MAX 239
 #define BSP_INTERRUPT_VECTOR_COUNT 240
 
 #endif /* LIBBSP_ARM_STM32H7_IRQ_H */
diff --git a/bsps/arm/tms570/include/bsp/irq.h b/bsps/arm/tms570/include/bsp/irq.h
index 10ab11630f..0fab45655d 100644
--- a/bsps/arm/tms570/include/bsp/irq.h
+++ b/bsps/arm/tms570/include/bsp/irq.h
@@ -112,7 +112,6 @@
 #define TMS570_IRQ_DCC2_DONE_INTERRUPT 83
 #define TMS570_IRQ_HWAG1_INT_REQ_L 88
 #define TMS570_IRQ_HWAG2_INT_REQ_L 89
-#define BSP_INTERRUPT_VECTOR_MAX 94
 #define BSP_INTERRUPT_VECTOR_COUNT 95
 
 #define TMS570_IRQ_PRIORITY_VALUE_MIN 0U
diff --git a/bsps/arm/xen/include/bsp/irq.h b/bsps/arm/xen/include/bsp/irq.h
index 264095e052..58ce78ffd2 100644
--- a/bsps/arm/xen/include/bsp/irq.h
+++ b/bsps/arm/xen/include/bsp/irq.h
@@ -40,7 +40,6 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#define BSP_INTERRUPT_VECTOR_MAX 1023
 #define BSP_INTERRUPT_VECTOR_COUNT 1024
 
 /* Xen guest interrupts */
diff --git a/bsps/arm/xilinx-zynq/include/bsp/irq.h b/bsps/arm/xilinx-zynq/include/bsp/irq.h
index f2c57eb1dd..f4579ae614 100644
--- a/bsps/arm/xilinx-zynq/include/bsp/irq.h
+++ b/bsps/arm/xilinx-zynq/include/bsp/irq.h
@@ -114,7 +114,6 @@ extern "C" {
 #define ZYNQ_IRQ_FPGA_15 91
 #define ZYNQ_IRQ_PARITY 92
 
-#define BSP_INTERRUPT_VECTOR_MAX 92
 #define BSP_INTERRUPT_VECTOR_COUNT 93
 
 /** @} */
diff --git a/bsps/arm/xilinx-zynqmp/include/bsp/irq.h b/bsps/arm/xilinx-zynqmp/include/bsp/irq.h
index a4d676b9ed..9aae8168db 100644
--- a/bsps/arm/xilinx-zynqmp/include/bsp/irq.h
+++ b/bsps/arm/xilinx-zynqmp/include/bsp/irq.h
@@ -67,7 +67,6 @@ extern "C" {
 #define ZYNQMP_IRQ_UART_0 53
 #define ZYNQMP_IRQ_UART_1 54
 
-#define BSP_INTERRUPT_VECTOR_MAX 187
 #define BSP_INTERRUPT_VECTOR_COUNT 188
 
 /** @} */
diff --git a/bsps/i386/include/bsp/irq.h b/bsps/i386/include/bsp/irq.h
index be11b5c496..c5ef954142 100644
--- a/bsps/i386/include/bsp/irq.h
+++ b/bsps/i386/include/bsp/irq.h
@@ -79,7 +79,6 @@ extern "C" {
 #define BSP_RT_TIMER3		10
 #define BSP_SMP_IPI   		16 /* not part of the ATPIC */
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_IRQ_VECTOR_MAX_OFFSET
 #define BSP_INTERRUPT_VECTOR_COUNT BSP_IRQ_VECTOR_NUMBER
 
 /** @brief
diff --git a/bsps/include/bsp/irq-default.h b/bsps/include/bsp/irq-default.h
index aedd80caf1..4521624b31 100644
--- a/bsps/include/bsp/irq-default.h
+++ b/bsps/include/bsp/irq-default.h
@@ -47,7 +47,6 @@ extern "C" {
 /**
  * @brief Default maximum interrupt vector.
  */
-#define BSP_INTERRUPT_VECTOR_MAX 0
 #define BSP_INTERRUPT_VECTOR_COUNT 1
 
 /** @} */
diff --git a/bsps/include/bsp/irq-generic.h b/bsps/include/bsp/irq-generic.h
index ad64c457d6..5b9ad3ed50 100644
--- a/bsps/include/bsp/irq-generic.h
+++ b/bsps/include/bsp/irq-generic.h
@@ -58,18 +58,10 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#if !defined(BSP_INTERRUPT_VECTOR_MAX)
-  #error "BSP_INTERRUPT_VECTOR_MAX shall be defined"
-#endif
-
 #if !defined(BSP_INTERRUPT_VECTOR_COUNT)
   #error "BSP_INTERRUPT_VECTOR_COUNT shall be defined"
 #endif
 
-#if BSP_INTERRUPT_VECTOR_MAX + 1 != BSP_INTERRUPT_VECTOR_COUNT
-  #error "BSP_INTERRUPT_VECTOR_COUNT is not equal to BSP_INTERRUPT_VECTOR_MAX + 1"
-#endif
-
 #if defined(BSP_INTERRUPT_USE_INDEX_TABLE) && !defined(BSP_INTERRUPT_HANDLER_TABLE_SIZE)
   #error "if you define BSP_INTERRUPT_USE_INDEX_TABLE, you have to define BSP_INTERRUPT_HANDLER_TABLE_SIZE etc. as well"
 #endif
diff --git a/bsps/lm32/include/bsp/irq.h b/bsps/lm32/include/bsp/irq.h
index 92fe327d20..416af841a7 100644
--- a/bsps/lm32/include/bsp/irq.h
+++ b/bsps/lm32/include/bsp/irq.h
@@ -35,7 +35,6 @@
 /**
  * @brief Maximum vector number.
  */
-#define BSP_INTERRUPT_VECTOR_MAX 31
 #define BSP_INTERRUPT_VECTOR_COUNT 32
 
 /** @} */
diff --git a/bsps/m68k/genmcf548x/include/bsp/irq.h b/bsps/m68k/genmcf548x/include/bsp/irq.h
index bfa97a3b3b..63e623bfdd 100644
--- a/bsps/m68k/genmcf548x/include/bsp/irq.h
+++ b/bsps/m68k/genmcf548x/include/bsp/irq.h
@@ -89,7 +89,6 @@
 #define MCF548X_IRQ_GPT1 61
 #define MCF548X_IRQ_GPT0 62
 
-#define BSP_INTERRUPT_VECTOR_MAX 63
 #define BSP_INTERRUPT_VECTOR_COUNT 64
 
 #endif /* LIBBSP_M68K_MCF548X_IRQ_H */
diff --git a/bsps/mips/csb350/include/bsp/irq.h b/bsps/mips/csb350/include/bsp/irq.h
index 10c59b3879..804c3d11a4 100644
--- a/bsps/mips/csb350/include/bsp/irq.h
+++ b/bsps/mips/csb350/include/bsp/irq.h
@@ -115,7 +115,6 @@
 
 #define AU1X00_MAXIMUM_VECTORS        (MIPS_INTERRUPT_BASE + 72)
 
-#define BSP_INTERRUPT_VECTOR_MAX      AU1X00_MAXIMUM_VECTORS 
 #define BSP_INTERRUPT_VECTOR_COUNT    (AU1X00_MAXIMUM_VECTORS + 1)
 
 /** @} */
diff --git a/bsps/mips/hurricane/include/bsp/irq.h b/bsps/mips/hurricane/include/bsp/irq.h
index 47e6df6738..d52ae913e0 100644
--- a/bsps/mips/hurricane/include/bsp/irq.h
+++ b/bsps/mips/hurricane/include/bsp/irq.h
@@ -32,7 +32,6 @@
  */
 
 #define RM5231_MAXIMUM_VECTORS      (MIPS_INTERRUPT_BASE+8)
-#define BSP_INTERRUPT_VECTOR_MAX    RM5231_MAXIMUM_VECTORS
 #define BSP_INTERRUPT_VECTOR_COUNT  (RM5231_MAXIMUM_VECTORS + 1)
 
 /** @} */
diff --git a/bsps/mips/jmr3904/include/bsp/irq.h b/bsps/mips/jmr3904/include/bsp/irq.h
index c591a57add..5633b11b77 100644
--- a/bsps/mips/jmr3904/include/bsp/irq.h
+++ b/bsps/mips/jmr3904/include/bsp/irq.h
@@ -59,7 +59,6 @@
   #define TX3904_IRQ_SOFTWARE_2  MIPS_INTERRUPT_BASE+18
   #define TX3904_MAXIMUM_VECTORS MIPS_INTERRUPT_BASE+19
 
-#define BSP_INTERRUPT_VECTOR_MAX TX3904_MAXIMUM_VECTORS
 #define BSP_INTERRUPT_VECTOR_COUNT (TX3904_MAXIMUM_VECTORS + 1)
 
 /** @} */
diff --git a/bsps/mips/malta/include/bsp/irq.h b/bsps/mips/malta/include/bsp/irq.h
index 6fc7f54b80..b5ef128760 100644
--- a/bsps/mips/malta/include/bsp/irq.h
+++ b/bsps/mips/malta/include/bsp/irq.h
@@ -79,7 +79,6 @@
 #define MALTA_PCI_ADP_LAST            MALTA_PCI_ADP31
 #
 
-#define BSP_INTERRUPT_VECTOR_MAX   MALTA_PCI_ADP_LAST
 #define BSP_INTERRUPT_VECTOR_COUNT   (MALTA_PCI_ADP_LAST + 1)
 
 /*
diff --git a/bsps/mips/rbtx4925/include/bsp/irq.h b/bsps/mips/rbtx4925/include/bsp/irq.h
index 4fec677926..31a648081c 100644
--- a/bsps/mips/rbtx4925/include/bsp/irq.h
+++ b/bsps/mips/rbtx4925/include/bsp/irq.h
@@ -72,7 +72,6 @@
 #define TX4925_IRQ_SOFTWARE_2  MIPS_INTERRUPT_BASE+33
 #define TX4925_MAXIMUM_VECTORS MIPS_INTERRUPT_BASE+34
 
-#define BSP_INTERRUPT_VECTOR_MAX TX4925_MAXIMUM_VECTORS
 #define BSP_INTERRUPT_VECTOR_COUNT (TX4925_MAXIMUM_VECTORS + 1)
 
 /** @} */
diff --git a/bsps/mips/rbtx4938/include/bsp/irq.h b/bsps/mips/rbtx4938/include/bsp/irq.h
index cc06397762..0dd02e3c95 100644
--- a/bsps/mips/rbtx4938/include/bsp/irq.h
+++ b/bsps/mips/rbtx4938/include/bsp/irq.h
@@ -72,7 +72,6 @@
 #define TX4938_IRQ_SOFTWARE_2  MIPS_INTERRUPT_BASE+33
 #define TX4938_MAXIMUM_VECTORS MIPS_INTERRUPT_BASE+34
 
-#define BSP_INTERRUPT_VECTOR_MAX TX4938_MAXIMUM_VECTORS
 #define BSP_INTERRUPT_VECTOR_COUNT (TX4938_MAXIMUM_VECTORS + 1)
 
 /** @} */
diff --git a/bsps/powerpc/gen5200/include/bsp/irq.h b/bsps/powerpc/gen5200/include/bsp/irq.h
index 58c6e5ad01..d54f98a2af 100644
--- a/bsps/powerpc/gen5200/include/bsp/irq.h
+++ b/bsps/powerpc/gen5200/include/bsp/irq.h
@@ -203,7 +203,6 @@ typedef enum {
 #define BSP_CRIT_IRQ_PRIO_LEVELS	  		  4
 #define BSP_PERIODIC_TIMER                    BSP_SIU_IRQ_TMR6
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_MAX_OFFSET + 1)
 
 #endif
diff --git a/bsps/powerpc/gen83xx/include/bsp/irq.h b/bsps/powerpc/gen83xx/include/bsp/irq.h
index 3a015d2bd6..5d896d2609 100644
--- a/bsps/powerpc/gen83xx/include/bsp/irq.h
+++ b/bsps/powerpc/gen83xx/include/bsp/irq.h
@@ -162,7 +162,6 @@ extern "C" {
     BSP_IPIC_IRQ_LAST     = BSP_IPIC_IRQ_MAX_OFFSET,
   } rtems_irq_symbolic_name;
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_MAX_OFFSET + 1)
 
 rtems_status_code mpc83xx_ipic_set_mask( rtems_vector_number vector, rtems_vector_number mask_vector, bool mask);
diff --git a/bsps/powerpc/motorola_powerpc/include/bsp/irq.h b/bsps/powerpc/motorola_powerpc/include/bsp/irq.h
index b6831bd2fa..fea2859c3e 100644
--- a/bsps/powerpc/motorola_powerpc/include/bsp/irq.h
+++ b/bsps/powerpc/motorola_powerpc/include/bsp/irq.h
@@ -115,7 +115,6 @@ extern "C" {
 #define BSP_IRQ_NUMBER			(BSP_MISC_IRQ_MAX_OFFSET + 1)
 #define BSP_LOWEST_OFFSET		(BSP_ISA_IRQ_LOWEST_OFFSET)
 #define BSP_MAX_OFFSET			(BSP_MISC_IRQ_MAX_OFFSET)
-#define BSP_INTERRUPT_VECTOR_MAX	(BSP_MAX_OFFSET)
 #define BSP_INTERRUPT_VECTOR_COUNT	(BSP_MAX_OFFSET + 1)
 /*
  * Some ISA IRQ symbolic name definition
diff --git a/bsps/powerpc/mpc55xxevb/include/bsp/irq.h b/bsps/powerpc/mpc55xxevb/include/bsp/irq.h
index 2b21ff637d..f6688bff86 100644
--- a/bsps/powerpc/mpc55xxevb/include/bsp/irq.h
+++ b/bsps/powerpc/mpc55xxevb/include/bsp/irq.h
@@ -477,7 +477,6 @@ rtems_status_code mpc55xx_intc_clear_software_irq(rtems_vector_number vector);
  * @{
  */
 
-#define BSP_INTERRUPT_VECTOR_MAX MPC55XX_IRQ_MAX
 #define BSP_INTERRUPT_VECTOR_COUNT (MPC55XX_IRQ_MAX + 1)
 
 #ifdef BSP_INTERRUPT_HANDLER_TABLE_SIZE
diff --git a/bsps/powerpc/mpc8260ads/include/bsp/irq.h b/bsps/powerpc/mpc8260ads/include/bsp/irq.h
index 38e47db842..22b547e404 100644
--- a/bsps/powerpc/mpc8260ads/include/bsp/irq.h
+++ b/bsps/powerpc/mpc8260ads/include/bsp/irq.h
@@ -141,7 +141,6 @@ extern volatile unsigned int ppc_cached_irq_mask;
 #define BSP_DECREMENTER			(BSP_PROCESSOR_IRQ_LOWEST_OFFSET)
 #define BSP_PERIODIC_TIMER		(BSP_DECREMENTER)
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_MAX_OFFSET + 1)
 
 #define CPM_INTERRUPT
diff --git a/bsps/powerpc/psim/include/bsp/irq.h b/bsps/powerpc/psim/include/bsp/irq.h
index f5ce672a47..5cd17e7daa 100644
--- a/bsps/powerpc/psim/include/bsp/irq.h
+++ b/bsps/powerpc/psim/include/bsp/irq.h
@@ -57,7 +57,6 @@
 
 #include <bsp/irq_supp.h>
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
 #define BSP_INTERRUPT_VECTOR_COUNT BSP_IRQ_NUMBER
 
 #ifdef __cplusplus
diff --git a/bsps/powerpc/qemuppc/include/bsp/irq.h b/bsps/powerpc/qemuppc/include/bsp/irq.h
index 9388add2a4..38ee77fc41 100644
--- a/bsps/powerpc/qemuppc/include/bsp/irq.h
+++ b/bsps/powerpc/qemuppc/include/bsp/irq.h
@@ -56,7 +56,6 @@
    */
 #define BSP_DECREMENTER			(BSP_PROCESSOR_IRQ_LOWEST_OFFSET)
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
 #define BSP_INTERRUPT_VECTOR_COUNT BSP_IRQ_NUMBER
 
 /* #include <bsp/irq_supp.h> */
diff --git a/bsps/powerpc/qoriq/include/bsp/irq.h b/bsps/powerpc/qoriq/include/bsp/irq.h
index 9dbfa86191..cf46832045 100644
--- a/bsps/powerpc/qoriq/include/bsp/irq.h
+++ b/bsps/powerpc/qoriq/include/bsp/irq.h
@@ -34,7 +34,6 @@ extern "C" {
 
 #ifdef QORIQ_IS_HYPERVISOR_GUEST
 
-#define BSP_INTERRUPT_VECTOR_MAX 1023
 #define BSP_INTERRUPT_VECTOR_COUNT 1024
 
 #else /* !QORIQ_IS_HYPERVISOR_GUEST */
@@ -351,7 +350,6 @@ extern "C" {
 #define QORIQ_IRQ_GT_B_2 (QORIQ_IRQ_GT_BASE + 6)
 #define QORIQ_IRQ_GT_B_3 (QORIQ_IRQ_GT_BASE + 7)
 
-#define BSP_INTERRUPT_VECTOR_MAX QORIQ_IRQ_GT_B_3
 #define BSP_INTERRUPT_VECTOR_COUNT (QORIQ_IRQ_GT_B_3 + 1)
 
 /** @} */
diff --git a/bsps/powerpc/t32mppc/include/bsp/irq.h b/bsps/powerpc/t32mppc/include/bsp/irq.h
index 81f93f3323..998eadf3df 100644
--- a/bsps/powerpc/t32mppc/include/bsp/irq.h
+++ b/bsps/powerpc/t32mppc/include/bsp/irq.h
@@ -24,7 +24,6 @@
 extern "C" {
 #endif /* __cplusplus */
 
-#define BSP_INTERRUPT_VECTOR_MAX 0
 #define BSP_INTERRUPT_VECTOR_COUNT 1
 
 RTEMS_INLINE_ROUTINE void bsp_interrupt_set_affinity(
diff --git a/bsps/powerpc/tqm8xx/include/bsp/irq.h b/bsps/powerpc/tqm8xx/include/bsp/irq.h
index 9704b5e7d3..c3dfbed0d1 100644
--- a/bsps/powerpc/tqm8xx/include/bsp/irq.h
+++ b/bsps/powerpc/tqm8xx/include/bsp/irq.h
@@ -146,7 +146,6 @@ extern "C" {
 #define BSP_PERIODIC_TIMER	BSP_SIU_INT_IRQ_6
 #define BSP_FAST_ETHERNET_CTRL	BSP_SIU_INT_IRQ_3
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_MAX_OFFSET
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_MAX_OFFSET + 1)
 
 extern int BSP_irq_enabled_at_cpm(const rtems_irq_number irqLine);
diff --git a/bsps/powerpc/virtex/include/bsp/irq.h b/bsps/powerpc/virtex/include/bsp/irq.h
index 57a5ecbde3..892f18be5e 100644
--- a/bsps/powerpc/virtex/include/bsp/irq.h
+++ b/bsps/powerpc/virtex/include/bsp/irq.h
@@ -61,7 +61,6 @@
           (BSP_IS_PROCESSOR_IRQ(irqnum)	\
            || BSP_IS_OPBINTC_IRQ(irqnum))
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_PROCESSOR_IRQ_MAX_OFFSET
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_PROCESSOR_IRQ_MAX_OFFSET + 1)
 
 #ifndef ASM
diff --git a/bsps/riscv/griscv/include/bsp/irq.h b/bsps/riscv/griscv/include/bsp/irq.h
index 520425d2ba..f9e280d5a9 100644
--- a/bsps/riscv/griscv/include/bsp/irq.h
+++ b/bsps/riscv/griscv/include/bsp/irq.h
@@ -54,7 +54,6 @@
 
 #define RISCV_INTERRUPT_VECTOR_EXTERNAL_TO_INDEX(x) ((x) - 2)
 
-#define BSP_INTERRUPT_VECTOR_MAX RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS)
 
 void bsp_interrupt_set_affinity(
diff --git a/bsps/riscv/riscv/include/bsp/irq.h b/bsps/riscv/riscv/include/bsp/irq.h
index 1c7cec5a02..306988d5e3 100644
--- a/bsps/riscv/riscv/include/bsp/irq.h
+++ b/bsps/riscv/riscv/include/bsp/irq.h
@@ -54,7 +54,6 @@
 
 #define RISCV_INTERRUPT_VECTOR_EXTERNAL_TO_INDEX(x) ((x) - 2)
 
-#define BSP_INTERRUPT_VECTOR_MAX RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS - 1)
 #define BSP_INTERRUPT_VECTOR_COUNT RISCV_INTERRUPT_VECTOR_EXTERNAL(RISCV_MAXIMUM_EXTERNAL_INTERRUPTS)
 
 void bsp_interrupt_set_affinity(
diff --git a/bsps/sparc/erc32/include/bsp/irq.h b/bsps/sparc/erc32/include/bsp/irq.h
index eace63e5dd..9e0f511b55 100644
--- a/bsps/sparc/erc32/include/bsp/irq.h
+++ b/bsps/sparc/erc32/include/bsp/irq.h
@@ -21,7 +21,6 @@
 #include <rtems/score/processormask.h>
 
 #define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
-#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_STD
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_INTERRUPT_VECTOR_MAX_STD + 1)
 
 /* No extra check is needed */
diff --git a/bsps/sparc/leon2/include/bsp/irq.h b/bsps/sparc/leon2/include/bsp/irq.h
index 1a56105ca0..5f2359014a 100644
--- a/bsps/sparc/leon2/include/bsp/irq.h
+++ b/bsps/sparc/leon2/include/bsp/irq.h
@@ -19,7 +19,6 @@
 #define LIBBSP_LEON2_IRQ_CONFIG_H
 
 #define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
-#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_STD
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_INTERRUPT_VECTOR_MAX_STD + 1)
 
 /* No extra check is needed */
diff --git a/bsps/sparc/leon3/include/bsp/irq.h b/bsps/sparc/leon3/include/bsp/irq.h
index 908fef5d79..bc1b5775e7 100644
--- a/bsps/sparc/leon3/include/bsp/irq.h
+++ b/bsps/sparc/leon3/include/bsp/irq.h
@@ -24,7 +24,6 @@
 #define BSP_INTERRUPT_VECTOR_MAX_STD 15 /* Standard IRQ controller */
 #define BSP_INTERRUPT_VECTOR_MAX_EXT 31 /* Extended IRQ controller */
 
-#define BSP_INTERRUPT_VECTOR_MAX BSP_INTERRUPT_VECTOR_MAX_EXT
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_INTERRUPT_VECTOR_MAX_EXT + 1)
 
 /* The check is different depending on IRQ controller, runtime detected */
diff --git a/bsps/x86_64/include/bsp/irq.h b/bsps/x86_64/include/bsp/irq.h
index d8dd588859..ba765678d0 100644
--- a/bsps/x86_64/include/bsp/irq.h
+++ b/bsps/x86_64/include/bsp/irq.h
@@ -39,7 +39,6 @@
 #include <rtems/irq-extension.h>
 
 #define BSP_IRQ_VECTOR_NUMBER     34
-#define BSP_INTERRUPT_VECTOR_MAX  BSP_IRQ_VECTOR_NUMBER
 #define BSP_INTERRUPT_VECTOR_COUNT (BSP_IRQ_VECTOR_NUMBER + 1)
 
 #endif /* !ASM */
-- 
2.26.2



More information about the devel mailing list