summaryrefslogtreecommitdiffstats
path: root/sys/dev/alc/if_alcvar.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2010-08-08 00:43:41 +0000
committeryongari <yongari@FreeBSD.org>2010-08-08 00:43:41 +0000
commit08ccc1c1b2d4b08f092d43dcd5d8135cd00a1582 (patch)
treef36c690954179bc32ee5ec00b2f9760d175769a3 /sys/dev/alc/if_alcvar.h
parentae142ea6e91b41f8a7fb24258e5ef99da99b4bb9 (diff)
downloadFreeBSD-src-08ccc1c1b2d4b08f092d43dcd5d8135cd00a1582.zip
FreeBSD-src-08ccc1c1b2d4b08f092d43dcd5d8135cd00a1582.tar.gz
Cache PCIY_PMG and PCIY_EXPRESS capability pointer to softc and use
it instead of calling pci_find_extcap().
Diffstat (limited to 'sys/dev/alc/if_alcvar.h')
-rw-r--r--sys/dev/alc/if_alcvar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/alc/if_alcvar.h b/sys/dev/alc/if_alcvar.h
index b8f839d..b6f2753 100644
--- a/sys/dev/alc/if_alcvar.h
+++ b/sys/dev/alc/if_alcvar.h
@@ -211,11 +211,14 @@ struct alc_softc {
uint32_t alc_dma_rd_burst;
uint32_t alc_dma_wr_burst;
uint32_t alc_rcb;
+ int alc_expcap;
+ int alc_pmcap;
int alc_flags;
#define ALC_FLAG_PCIE 0x0001
#define ALC_FLAG_PCIX 0x0002
#define ALC_FLAG_MSI 0x0004
#define ALC_FLAG_MSIX 0x0008
+#define ALC_FLAG_PM 0x0010
#define ALC_FLAG_FASTETHER 0x0020
#define ALC_FLAG_JUMBO 0x0040
#define ALC_FLAG_ASPM_MON 0x0080
OpenPOWER on IntegriCloud