blob: b330026e6f7ff2d95cdb8fb3ad8b0642462379aa [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#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 */