summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2007-03-31 20:41:00 +0000
committerjhb <jhb@FreeBSD.org>2007-03-31 20:41:00 +0000
commitc112f343639ce8adf5c65a38a9baea5307017959 (patch)
treea783da40a6034cb13d62666dd447919d139ca2b4 /sys/dev/pci/pci.c
parent83630794dc79e996b2b3f02e2eb2ae7729fc22b6 (diff)
downloadFreeBSD-src-c112f343639ce8adf5c65a38a9baea5307017959.zip
FreeBSD-src-c112f343639ce8adf5c65a38a9baea5307017959.tar.gz
- Add missing constants for subclasses.
- Add a few progif constants as well.
Diffstat (limited to 'sys/dev/pci/pci.c')
-rw-r--r--sys/dev/pci/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 43ebd8a..ab98be4 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1062,7 +1062,7 @@ pci_pending_msix(device_t dev, u_int index)
uint32_t offset, bit;
KASSERT(cfg->msix.msix_alloc > index, ("bogus index"));
- offset = cfg->msix.msix_pba_offset + (index / 4) * 4;
+ offset = cfg->msix.msix_pba_offset + (index / 32) * 4;
bit = 1 << index % 32;
return (bus_read_4(cfg->msix.msix_pba_res, offset) & bit);
}
OpenPOWER on IntegriCloud