diff options
Diffstat (limited to 'sys/dev/eisa')
-rw-r--r-- | sys/dev/eisa/ahc_eisa.c | 18 | ||||
-rw-r--r-- | sys/dev/eisa/if_fea.c | 8 |
2 files changed, 13 insertions, 13 deletions
diff --git a/sys/dev/eisa/ahc_eisa.c b/sys/dev/eisa/ahc_eisa.c index 994ed19cf28..3bbbfe714a7 100644 --- a/sys/dev/eisa/ahc_eisa.c +++ b/sys/dev/eisa/ahc_eisa.c @@ -29,13 +29,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ahc_eisa.c,v 1.2 1996/06/27 21:15:44 shawn Exp $ + * $Id: ahc_eisa.c,v 1.3 1996/08/21 22:27:24 deraadt Exp $ */ #if defined(__FreeBSD__) #include <eisa.h> #endif -#if NEISA > 0 || defined(__NetBSD__) +#if NEISA > 0 || defined(__NetBSD__) || defined(__OpenBSD__) #include <sys/param.h> #include <sys/systm.h> @@ -44,7 +44,7 @@ #endif #include <sys/kernel.h> -#if defined(__NetBSD__) +#if defined(__NetBSD__) || defined(__OpenBSD__) #include <sys/device.h> #include <machine/bus.h> #include <machine/intr.h> @@ -66,7 +66,7 @@ #define EISA_DEVICE_ID_ADAPTEC_284xB 0x04907756 /* BIOS enabled */ #define EISA_DEVICE_ID_ADAPTEC_284x 0x04907757 /* BIOS disabled*/ -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) #include <dev/eisa/eisareg.h> #include <dev/eisa/eisavar.h> @@ -185,7 +185,7 @@ aic7770probe(void) return count; } -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) #define bootverbose 1 @@ -266,7 +266,7 @@ ahc_eisa_match(parent, match, aux) static int aic7770_attach(e_dev) struct eisa_device *e_dev; -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) void ahc_eisa_attach(parent, self, aux) struct device *parent, *self; @@ -323,7 +323,7 @@ ahc_eisa_attach(parent, self, aux) } eisa_reg_end(e_dev); -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) struct ahc_data *ahc = (void *)self; struct eisa_attach_args *ea = aux; @@ -467,7 +467,7 @@ ahc_eisa_attach(parent, self, aux) */ eisa_release_intr(e_dev, irq, ahc_intr); return -1; -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) ahc_free(ahc); return; #endif @@ -489,7 +489,7 @@ ahc_eisa_attach(parent, self, aux) } e_dev->kdc->kdc_state = DC_BUSY; /* host adapters always busy */ -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) intrstr = eisa_intr_string(ec, ih); /* * The IRQMS bit enables level sensitive interrupts only allow diff --git a/sys/dev/eisa/if_fea.c b/sys/dev/eisa/if_fea.c index a02845a939f..68d4852d4fd 100644 --- a/sys/dev/eisa/if_fea.c +++ b/sys/dev/eisa/if_fea.c @@ -43,7 +43,7 @@ #include <sys/malloc.h> #if defined(__FreeBSD__) #include <sys/devconf.h> -#elif defined(__bsdi__) || defined(__NetBSD__) +#elif defined(__bsdi__) || defined(__NetBSD__) || defined(__OpenBSD__) #include <sys/device.h> #endif @@ -89,7 +89,7 @@ #include <i386/eisa/eisa.h> #include <i386/eisa/pdqvar.h> #include <i386/eisa/pdqreg.h> -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) #include <machine/cpu.h> #include <machine/bus.h> @@ -118,7 +118,7 @@ extern struct cfdriver feacd; #define DEFEA_INTRENABLE 0x28 /* edge interrupt */ static const int pdq_eisa_irqs[4] = { IRQ9, IRQ10, IRQ11, IRQ15 }; -#elif defined(__NetBSD__) +#elif defined(__NetBSD__) || defined(__OpenBSD__) #define DEFEA_INTRENABLE 0x8 /* level interrupt */ #define pdq_eisa_ifwatchdog NULL static const int pdq_eisa_irqs[4] = { 9, 10, 11, 15 }; @@ -436,7 +436,7 @@ struct cfdriver feacd = { }; #endif /* __bsdi__ */ -#if defined(__NetBSD__) +#if defined(__NetBSD__) || defined(__OpenBSD__) static int pdq_eisa_match( struct device *parent, |