1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

0 is not an invalid interrupt in the PCI world (just in the ia32

world), do not treat it as such.  This fixes the alpha boot problem.

Reviewed by: drew, des
This commit is contained in:
Warner Losh 2002-06-07 15:28:16 +00:00
parent 1fe7722cb5
commit a1e85ec6fb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98017

View File

@ -246,10 +246,12 @@ PCIB_ACCESSOR(bus, BUS, u_int32_t)
#undef PCIB_ACCESSOR
/*
* PCI interrupt validation.
* PCI interrupt validation. Invalid interrupt values such as 0 or 128
* on i386 or other platforms should be mapped out in the MD pcireadconf
* code and not here, since the only MI invalid IRQ is 255.
*/
#define PCI_INVALID_IRQ 255
#define PCI_INTERRUPT_VALID(x) (((x) != 0) && ((x) != PCI_INVALID_IRQ))
#define PCI_INTERRUPT_VALID(x) ((x) != PCI_INVALID_IRQ)
/*
* Convenience functions.