diff options
author | scottl <scottl@FreeBSD.org> | 2005-11-29 09:39:41 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2005-11-29 09:39:41 +0000 |
commit | 1f0c68ec7f53b7d25d3843ad0dcda4f384160de8 (patch) | |
tree | 2e9b50de25fb032ef39c47b9dfb6b562c1a37761 /sys/dev/ips/ips.c | |
parent | 8ec6103050ddca35beb6617eea771c75642cc225 (diff) | |
download | FreeBSD-src-1f0c68ec7f53b7d25d3843ad0dcda4f384160de8.zip FreeBSD-src-1f0c68ec7f53b7d25d3843ad0dcda4f384160de8.tar.gz |
Separate the hardware definitions into ipsreg.h so they can be used by
future userland tools.
Diffstat (limited to 'sys/dev/ips/ips.c')
-rw-r--r-- | sys/dev/ips/ips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ips/ips.c b/sys/dev/ips/ips.c index 684f87d..81e8339 100644 --- a/sys/dev/ips/ips.c +++ b/sys/dev/ips/ips.c @@ -28,6 +28,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); +#include <dev/ips/ipsreg.h> #include <dev/ips/ips.h> #include <sys/stat.h> #include <sys/time.h> @@ -440,7 +441,7 @@ int ips_morpheus_reinit(ips_softc_t *sc, int force) device_printf(sc->dev, "resetting adapter, this may take up to 5 minutes\n"); ips_write_4(sc, MORPHEUS_REG_IDR, 0x80000000); DELAY(5000000); - pci_read_config(sc->dev, 0, 4); + ips_read_4(sc, MORPHEUS_REG_OIMR); tmp = ips_read_4(sc, MORPHEUS_REG_OISR); for(i = 0; i < 45 && !(tmp & MORPHEUS_BIT_POST1); i++){ |