summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-12-30 20:25:40 +0000
committerimp <imp@FreeBSD.org>2005-12-30 20:25:40 +0000
commit737f13e6f5ec1ac6de670ef2f9697f819ef0adeb (patch)
tree2be8ef647c9a0ff42b579b53ad12af81bcab093b /sys
parenta2370310e178fa83404306857dba702c84cc9260 (diff)
downloadFreeBSD-src-737f13e6f5ec1ac6de670ef2f9697f819ef0adeb.zip
FreeBSD-src-737f13e6f5ec1ac6de670ef2f9697f819ef0adeb.tar.gz
Make RID2BAR actually return a number that can be plugged into PCIR_BAR()
rather than a bitmask. Submitted by: ru@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pcireg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/pcireg.h b/sys/dev/pci/pcireg.h
index 253666c..ed6d206 100644
--- a/sys/dev/pci/pcireg.h
+++ b/sys/dev/pci/pcireg.h
@@ -116,7 +116,7 @@
#define PCIR_BARS 0x10
#define PCIR_BAR(x) (PCIR_BARS + (x) * 4)
-#define PCI_RID2BAR(rid) (1<<(((rid)-PCIR_BARS)/4))
+#define PCI_RID2BAR(rid) (((rid)-PCIR_BARS)/4)
#define PCIR_CIS 0x28
#define PCIM_CIS_ASI_MASK 0x7
#define PCIM_CIS_ASI_TUPLE 0
OpenPOWER on IntegriCloud