summaryrefslogtreecommitdiffstats
path: root/sys/dev/cardbus/cardbus_cis.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-12-29 23:41:29 +0000
committerimp <imp@FreeBSD.org>2005-12-29 23:41:29 +0000
commit523c9373671757228152851e9f806352c24b378b (patch)
tree39f3d648aa765d16eb6ad4487073d9429eee65f2 /sys/dev/cardbus/cardbus_cis.c
parente57b04f29b1ff21e1c921174a40471f0f21b64c2 (diff)
downloadFreeBSD-src-523c9373671757228152851e9f806352c24b378b.zip
FreeBSD-src-523c9373671757228152851e9f806352c24b378b.tar.gz
Retire BARBIT in favor of new PCI_RID2BAR.
Diffstat (limited to 'sys/dev/cardbus/cardbus_cis.c')
-rw-r--r--sys/dev/cardbus/cardbus_cis.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/cardbus/cardbus_cis.c b/sys/dev/cardbus/cardbus_cis.c
index 552d32d..6269889 100644
--- a/sys/dev/cardbus/cardbus_cis.c
+++ b/sys/dev/cardbus/cardbus_cis.c
@@ -316,7 +316,7 @@ decode_tuple_bar(device_t cbdev, device_t child, int id,
if (type == SYS_RES_MEMORY) {
if (reg & TPL_BAR_REG_PREFETCHABLE)
- dinfo->mprefetchable |= BARBIT(bar);
+ dinfo->mprefetchable |= PCI_RID2BAR(bar);
#if 0
/*
* XXX: It appears from a careful reading of the spec
@@ -338,7 +338,7 @@ decode_tuple_bar(device_t cbdev, device_t child, int id,
* correctness.
*/
if (reg & TPL_BAR_REG_BELOW1MB)
- dinfo->mbelow1mb |= BARBIT(bar);
+ dinfo->mbelow1mb |= PCI_RID2BAR(bar);
#endif
}
@@ -360,9 +360,9 @@ decode_tuple_bar(device_t cbdev, device_t child, int id,
DEVPRINTF((cbdev, "Opening BAR: type=%s, bar=%02x, len=%04x%s%s\n",
(type == SYS_RES_MEMORY) ? "MEM" : "IO", bar, len,
- (type == SYS_RES_MEMORY && dinfo->mprefetchable & BARBIT(bar)) ?
+ (type == SYS_RES_MEMORY && dinfo->mprefetchable & PCI_RID2BAR(bar)) ?
" (Prefetchable)" : "", type == SYS_RES_MEMORY ?
- ((dinfo->mbelow1mb & BARBIT(bar)) ? " (Below 1Mb)" : "") : ""));
+ ((dinfo->mbelow1mb & PCI_RID2BAR(bar)) ? " (Below 1Mb)" : "") : ""));
resource_list_add(&dinfo->pci.resources, type, bar, 0UL, ~0UL, len);
OpenPOWER on IntegriCloud