summaryrefslogtreecommitdiff
path: root/sys/dev/em
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2006-01-29 21:14:28 +0000
committerWarner Losh <imp@FreeBSD.org>2006-01-29 21:14:28 +0000
commit33bf28a2a985cbb81238ae97e586a626e013031e (patch)
treeff6e4e66c3759a9251ee9434ebb84e46e74409eb /sys/dev/em
parentdfb9c554b102d6a1eadaac935a175608b07c89bd (diff)
Notes
Diffstat (limited to 'sys/dev/em')
-rw-r--r--sys/dev/em/if_em.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c
index 2f1d95aaad70..8e8f3ad297c9 100644
--- a/sys/dev/em/if_em.c
+++ b/sys/dev/em/if_em.c
@@ -1865,7 +1865,7 @@ em_allocate_pci_resources(struct adapter * adapter)
if (adapter->hw.mac_type > em_82543) {
/* Figure our where our IO BAR is ? */
- for (rid = PCIR_BAR(0); rid < PCIR_CARDBUSCIS;) {
+ for (rid = PCIR_BAR(0); rid < PCIR_CIS;) {
val = pci_read_config(dev, rid, 4);
if (E1000_BAR_TYPE(val) == E1000_BAR_TYPE_IO) {
adapter->io_rid = rid;
@@ -1876,7 +1876,7 @@ em_allocate_pci_resources(struct adapter * adapter)
if (E1000_BAR_MEM_TYPE(val) == E1000_BAR_MEM_TYPE_64BIT)
rid += 4;
}
- if (rid >= PCIR_CARDBUSCIS) {
+ if (rid >= PCIR_CIS) {
printf("em%d: Unable to locate IO BAR\n", adapter->unit);
return (ENXIO);
}