diff options
author | Warner Losh <imp@FreeBSD.org> | 2005-10-28 05:29:41 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2005-10-28 05:29:41 +0000 |
commit | abca52f4ac5840faf64fdadc9728b4bd7cf4a10e (patch) | |
tree | 7e50b22aabf2ed2294ed35e57d6eed30109beaa6 /sys/dev/cardbus | |
parent | bcb02fd532ab511a91a538afb943497457c1f540 (diff) | |
download | src-abca52f4ac5840faf64fdadc9728b4bd7cf4a10e.tar.gz src-abca52f4ac5840faf64fdadc9728b4bd7cf4a10e.zip |
Use PCIR_BARS rather than CARDBUS_BASE0_REG
Style nit.
Notes
Notes:
svn path=/head/; revision=151782
Diffstat (limited to 'sys/dev/cardbus')
-rw-r--r-- | sys/dev/cardbus/cardbusvar.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/cardbus/cardbusvar.h b/sys/dev/cardbus/cardbusvar.h index 1e067ea2d64b..edb98bbeec40 100644 --- a/sys/dev/cardbus/cardbusvar.h +++ b/sys/dev/cardbus/cardbusvar.h @@ -29,12 +29,13 @@ /* * Structure definitions for the Cardbus Bus driver */ -struct cardbus_devinfo { +struct cardbus_devinfo +{ struct pci_devinfo pci; uint8_t mprefetchable; /* bit mask of prefetchable BARs */ uint8_t mbelow1mb; /* bit mask of BARs which require below 1Mb */ uint8_t ibelow1mb; /* bit mask of BARs which require below 1Mb */ -#define BARBIT(RID) (1<<(((RID)-CARDBUS_BASE0_REG)/4)) +#define BARBIT(RID) (1<<(((RID)-PCIR_BARS)/4)) uint16_t mfrid; /* manufacturer id */ uint16_t prodid; /* product id */ u_int funcid; /* function id */ |