summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2000-04-07 07:29:31 +0000
committermdodd <mdodd@FreeBSD.org>2000-04-07 07:29:31 +0000
commit367c61d5d32a0a50edbaffa1dde5a2fc2de6f472 (patch)
tree5900c4a6fe8d351fba80e03ff2e4c6c86881e490 /sys/dev/dpt
parentbcaa5ea35b04af42346a4c1fa1b72f54e9fddb4d (diff)
downloadFreeBSD-src-367c61d5d32a0a50edbaffa1dde5a2fc2de6f472.zip
FreeBSD-src-367c61d5d32a0a50edbaffa1dde5a2fc2de6f472.tar.gz
Use correct offset into register window.
Noticed by: Manfred Antar <mantar@pacbell.net>
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r--sys/dev/dpt/dpt_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/dpt/dpt_pci.c b/sys/dev/dpt/dpt_pci.c
index 3bb3ee6..ee2116c 100644
--- a/sys/dev/dpt/dpt_pci.c
+++ b/sys/dev/dpt/dpt_pci.c
@@ -126,7 +126,8 @@ dpt_pci_attach (device_t dev)
goto bad;
}
- dpt = dpt_alloc(dev, rman_get_bustag(io), rman_get_bushandle(io));
+ /* Device registers are offset 0x10 into the register window. FEH */
+ dpt = dpt_alloc(dev, rman_get_bustag(io), rman_get_bushandle(io) + 0x10);
if (dpt == NULL) {
error = ENXIO;
goto bad;
OpenPOWER on IntegriCloud