Add a macro to map from BAR to rid # (inverse of PCIR_BARS).
This commit is contained in:
parent
3ac604874c
commit
b60c6f4683
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153861
@ -116,6 +116,7 @@
|
||||
|
||||
#define PCIR_BARS 0x10
|
||||
#define PCIR_BAR(x) (PCIR_BARS + (x) * 4)
|
||||
#define PCI_RID2BAR(rid) (1<<(((rid)-PCIR_BARS)/4))
|
||||
#define PCIR_CIS 0x28
|
||||
#define PCIM_CIS_ASI_MASK 0x7
|
||||
#define PCIM_CIS_ASI_TUPLE 0
|
||||
|
Loading…
Reference in New Issue
Block a user