ia32_pci: rename N_PIC_IRQS to NUM_STD_IRQS
That number is not representing the number of PIC IRQs, but rather the number of "standard", fixed-number IRQs on a (legacy) x86 PC platform. Change-Id: I1f0fff4c6d24f1d49764efef93f6e5ca3f181168 Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
c963861d47
commit
4c63796838
1 changed files with 4 additions and 4 deletions
|
@ -45,7 +45,7 @@ the 'ia32_pci' platform.
|
|||
#include <drivers/rand32.h>
|
||||
#endif
|
||||
|
||||
#define N_PIC_IRQS 16 /* number of PIC IRQs */
|
||||
#define NUM_STD_IRQS 16 /* number of "standard" IRQs on an x86 platform */
|
||||
#define INT_VEC_IRQ0 0x20 /* Vector number for IRQ0 */
|
||||
|
||||
/* serial port (aka COM port) information */
|
||||
|
@ -252,7 +252,7 @@ static inline int pci_pin2irq(int pin)
|
|||
{
|
||||
if ((pin < PCI_INTA) || (pin > PCI_INTD))
|
||||
return -1;
|
||||
return N_PIC_IRQS + pin - 1;
|
||||
return NUM_STD_IRQS + pin - 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -265,9 +265,9 @@ static inline int pci_pin2irq(int pin)
|
|||
|
||||
static inline int pci_irq2pin(int irq)
|
||||
{
|
||||
if ((irq < N_PIC_IRQS) || (irq > N_PIC_IRQS + PCI_INTD - 1))
|
||||
if ((irq < NUM_STD_IRQS) || (irq > NUM_STD_IRQS + PCI_INTD - 1))
|
||||
return -1;
|
||||
return irq - N_PIC_IRQS + 1;
|
||||
return irq - NUM_STD_IRQS + 1;
|
||||
}
|
||||
|
||||
extern void _SysIntVecProgram(unsigned int vector, unsigned int);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue