Check IRQ 9, not IRQ 2.

This commit is contained in:
mycroft 1994-11-15 00:00:24 +00:00
parent b341f7a8c0
commit a2727ec558
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbreg.h,v 1.5 1994/11/04 18:35:20 mycroft Exp $ */
/* $NetBSD: sbreg.h,v 1.6 1994/11/15 00:00:24 mycroft Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@ -141,10 +141,10 @@
* Macros to detect valid hardware configuration data.
*/
#ifdef SBPRO
#define SB_IRQ_VALID(irq) ((irq) == 2 || (irq) == 5 || (irq) == 7 || (irq) == 10)
#define SB_IRQ_VALID(irq) ((irq) == 5 || (irq) == 7 || (irq) == 9 || (irq) == 10)
#define SB_DRQ_VALID(drq) ((drq) == 0 || (drq) == 1 || (drq) == 3)
#else /* !SBPRO */
#define SB_IRQ_VALID(irq) ((irq) == 2 || (irq) == 3 || (irq) == 5 || (irq) == 7)
#define SB_IRQ_VALID(irq) ((irq) == 3 || (irq) == 5 || (irq) == 7 || (irq) == 9)
#define SB_DRQ_VALID(drq) ((drq) == 1)
#endif /* !SBPRO */
#define SB_BASE_VALID(base) ((base) == 0x220 || (base) == 0x240)

View File

@ -1,4 +1,4 @@
/* $NetBSD: sbreg.h,v 1.5 1994/11/04 18:35:20 mycroft Exp $ */
/* $NetBSD: sbreg.h,v 1.6 1994/11/15 00:00:24 mycroft Exp $ */
/*
* Copyright (c) 1991-1993 Regents of the University of California.
@ -141,10 +141,10 @@
* Macros to detect valid hardware configuration data.
*/
#ifdef SBPRO
#define SB_IRQ_VALID(irq) ((irq) == 2 || (irq) == 5 || (irq) == 7 || (irq) == 10)
#define SB_IRQ_VALID(irq) ((irq) == 5 || (irq) == 7 || (irq) == 9 || (irq) == 10)
#define SB_DRQ_VALID(drq) ((drq) == 0 || (drq) == 1 || (drq) == 3)
#else /* !SBPRO */
#define SB_IRQ_VALID(irq) ((irq) == 2 || (irq) == 3 || (irq) == 5 || (irq) == 7)
#define SB_IRQ_VALID(irq) ((irq) == 3 || (irq) == 5 || (irq) == 7 || (irq) == 9)
#define SB_DRQ_VALID(drq) ((drq) == 1)
#endif /* !SBPRO */
#define SB_BASE_VALID(base) ((base) == 0x220 || (base) == 0x240)