From 4cc9e3e7cc8487ab81903c446a7d50933c69804f Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Mon, 14 Aug 2006 05:36:26 +0000 Subject: [PATCH] The register offset is within 4K, not 256 bytes, for some QLogic cards. --- sys/dev/isp/isp_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/isp/isp_pci.c b/sys/dev/isp/isp_pci.c index 08c160f91634..52dab042b3d7 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)