From d314c28e74fad228397fe7016c254f0b7863f0d5 Mon Sep 17 00:00:00 2001 From: wpaul Date: Wed, 21 Feb 2001 20:54:22 +0000 Subject: Big round of minor updates: - Use pci_get_powerstate()/pci_set_powerstate() in all the other drivers that need them so we don't have to fiddle with the PCI power management registers directly. - Use pci_enable_busmaster()/pci_enable_io() to turn on busmastering and PIO/memory mapped accesses. - Add support to the RealTek driver for the D-Link DFE-530TX+ which has a RealTek 8139 with its own PCI ID. (Submitted by Jason Wright) - Have the SiS 900/National DP83815 driver be sure to disable PME mode in sis_reset(). This apparently fixes a problem on some motherboards where the DP83815 chip fails to receive packets. (Submitted by Chuck McCrobie ) --- sys/pci/if_sisreg.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/pci/if_sisreg.h') diff --git a/sys/pci/if_sisreg.h b/sys/pci/if_sisreg.h index 9e1c44c..10cc02f 100644 --- a/sys/pci/if_sisreg.h +++ b/sys/pci/if_sisreg.h @@ -75,6 +75,7 @@ #define SIS_GPIO 0xB8 /* NS DP83815 registers */ +#define NS_CLKRUN 0x3C #define NS_BMCR 0x80 #define NS_BMSR 0x84 #define NS_PHYIDR1 0x88 @@ -92,6 +93,10 @@ #define NS_PHY_SDCFG 0xF8 #define NS_PHY_TDATA 0xFC +#define NS_CLKRUN_PMESTS 0x00008000 +#define NS_CLKRUN_PMEENB 0x00000100 +#define NS_CLNRUN_CLKRUN_ENB 0x00000001 + #define SIS_CSR_TX_ENABLE 0x00000001 #define SIS_CSR_TX_DISABLE 0x00000002 #define SIS_CSR_RX_ENABLE 0x00000004 -- cgit v1.1