diff options
author | mjacob <mjacob@FreeBSD.org> | 2006-08-14 05:36:26 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2006-08-14 05:36:26 +0000 |
commit | 04e08ae813b583753760d5d13c6cf8974d42c62f (patch) | |
tree | 834a63cd89cc7aa2f1cde01c58982114aaf290ea /sys/dev/isp | |
parent | a1c57a399600661917075b91496f457d2f3c0acc (diff) | |
download | FreeBSD-src-04e08ae813b583753760d5d13c6cf8974d42c62f.zip FreeBSD-src-04e08ae813b583753760d5d13c6cf8974d42c62f.tar.gz |
The register offset is within 4K, not 256 bytes, for some QLogic cards.
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/isp_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 08c160f9..52dab04 100644 --- a/sys/dev/isp/isp_pci.c +++ b/sys/dev/isp/isp_pci.c @@ -1127,7 +1127,7 @@ isp_pci_intr(void *arg) #define IspVirt2Off(a, x) \ (((struct isp_pcisoftc *)a)->pci_poff[((x) & _BLK_REG_MASK) >> \ - _BLK_REG_SHFT] + ((x) & 0xff)) + _BLK_REG_SHFT] + ((x) & 0xfff)) #define BXR2(pcs, off) \ bus_space_read_2(pcs->pci_st, pcs->pci_sh, off) |