diff options
author | mdodd <mdodd@FreeBSD.org> | 2000-04-07 07:29:31 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2000-04-07 07:29:31 +0000 |
commit | 367c61d5d32a0a50edbaffa1dde5a2fc2de6f472 (patch) | |
tree | 5900c4a6fe8d351fba80e03ff2e4c6c86881e490 /sys/dev/dpt | |
parent | bcaa5ea35b04af42346a4c1fa1b72f54e9fddb4d (diff) | |
download | FreeBSD-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.c | 3 |
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; |