summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_sisreg.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2001-02-21 20:54:22 +0000
committerwpaul <wpaul@FreeBSD.org>2001-02-21 20:54:22 +0000
commitd314c28e74fad228397fe7016c254f0b7863f0d5 (patch)
treef0ddb6671f9dc8b3b92c6340ff6494e08c374f82 /sys/pci/if_sisreg.h
parente9eddbfc4a0506b08f0f036101a6f3d1b152c265 (diff)
downloadFreeBSD-src-d314c28e74fad228397fe7016c254f0b7863f0d5.zip
FreeBSD-src-d314c28e74fad228397fe7016c254f0b7863f0d5.tar.gz
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 <mccrobie@cablespeed.com>)
Diffstat (limited to 'sys/pci/if_sisreg.h')
-rw-r--r--sys/pci/if_sisreg.h5
1 files changed, 5 insertions, 0 deletions
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
OpenPOWER on IntegriCloud