Make RID2BAR actually return a number that can be plugged into PCIR_BAR()

rather than a bitmask.

Submitted by: ru@
This commit is contained in:
imp 2005-12-30 20:25:40 +00:00
parent a2370310e1
commit 737f13e6f5

View File

@ -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