Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef _ASM_IRQ_VECTORS_LIMITS_H |
| 2 | #define _ASM_IRQ_VECTORS_LIMITS_H |
| 3 | |
| 4 | #ifdef CONFIG_PCI_MSI |
| 5 | #define NR_IRQS FIRST_SYSTEM_VECTOR |
| 6 | #define NR_IRQ_VECTORS NR_IRQS |
| 7 | #else |
| 8 | #ifdef CONFIG_X86_IO_APIC |
| 9 | #define NR_IRQS 224 |
| 10 | # if (224 >= 32 * NR_CPUS) |
| 11 | # define NR_IRQ_VECTORS NR_IRQS |
| 12 | # else |
| 13 | # define NR_IRQ_VECTORS (32 * NR_CPUS) |
| 14 | # endif |
| 15 | #else |
| 16 | #define NR_IRQS 16 |
| 17 | #define NR_IRQ_VECTORS NR_IRQS |
| 18 | #endif |
| 19 | #endif |
| 20 | |
| 21 | #endif /* _ASM_IRQ_VECTORS_LIMITS_H */ |