From abca52f4ac5840faf64fdadc9728b4bd7cf4a10e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 28 Oct 2005 05:29:41 +0000 Subject: [PATCH] Use PCIR_BARS rather than CARDBUS_BASE0_REG Style nit. --- sys/dev/cardbus/cardbusvar.h | 5 +++-- 1 file 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 */