Add a macro to map from BAR to rid # (inverse of PCIR_BARS).

This commit is contained in:
Warner Losh 2005-12-29 23:40:41 +00:00
parent 3ac604874c
commit b60c6f4683
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=153861

View File

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