diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2008-07-19 18:13:07 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2008-07-19 18:13:07 +0000 |
commit | 78874dd9bcf2cf9c69fb1f2e4475cb62f6bf64b9 (patch) | |
tree | c9158aa680c770ec8d3ef93360d3016b872ff7e8 /sys/arch/alpha/pci | |
parent | a5e2012f2a5a4280032679f8430a5db1768b4724 (diff) |
Add code to walk the eisa configuration, from NetBSD. This configuration
is not used yet, but this seems to ``warm up'' the eisa chips so that
accesses to the eisa bus later do not cause machine checks.
Diffstat (limited to 'sys/arch/alpha/pci')
-rw-r--r-- | sys/arch/alpha/pci/sio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/alpha/pci/sio.c b/sys/arch/alpha/pci/sio.c index ab38f434d9b..f1d0bd9ace4 100644 --- a/sys/arch/alpha/pci/sio.c +++ b/sys/arch/alpha/pci/sio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio.c,v 1.31 2006/01/02 05:21:26 brad Exp $ */ +/* $OpenBSD: sio.c,v 1.32 2008/07/19 18:13:06 miod Exp $ */ /* $NetBSD: sio.c,v 1.15 1996/12/05 01:39:36 cgd Exp $ */ /* @@ -45,6 +45,7 @@ #include <alpha/pci/siovar.h> +#include "eisa.h" #include "isadma.h" struct sio_softc { @@ -224,8 +225,9 @@ sio_eisa_attach_hook(parent, self, eba) struct device *parent, *self; struct eisabus_attach_args *eba; { - - /* Nothing to do. */ +#if NEISA > 0 + eisa_init(eba->eba_ec); +#endif } int |