From 08ccc1c1b2d4b08f092d43dcd5d8135cd00a1582 Mon Sep 17 00:00:00 2001 From: yongari Date: Sun, 8 Aug 2010 00:43:41 +0000 Subject: Cache PCIY_PMG and PCIY_EXPRESS capability pointer to softc and use it instead of calling pci_find_extcap(). --- sys/dev/alc/if_alcvar.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/dev/alc/if_alcvar.h') 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 -- cgit v1.1