summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_wxreg.h
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2000-06-16 06:28:31 +0000
committermjacob <mjacob@FreeBSD.org>2000-06-16 06:28:31 +0000
commita7ab185a1767324b14d3d98bb6c15df789826a15 (patch)
treec26a8e3357188f31f5107f249fe1194a04ed4c33 /sys/pci/if_wxreg.h
parenta916ed2bd76dedfa8f866ef60cb59170eecb48dd (diff)
downloadFreeBSD-src-a7ab185a1767324b14d3d98bb6c15df789826a15.zip
FreeBSD-src-a7ab185a1767324b14d3d98bb6c15df789826a15.tar.gz
Fix this driver to (finally) work with switches. Some more black
magic from the linux driver.
Diffstat (limited to 'sys/pci/if_wxreg.h')
-rw-r--r--sys/pci/if_wxreg.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/sys/pci/if_wxreg.h b/sys/pci/if_wxreg.h
index 7692054..9a7309b 100644
--- a/sys/pci/if_wxreg.h
+++ b/sys/pci/if_wxreg.h
@@ -166,6 +166,13 @@ typedef struct {
#define WXDCR_SLU 0x40 /* Set Link Up */
#define WXDCR_ILOS 0x80 /* Invert Loss-of-Signal */
+/*
+ * General purpose I/O pins
+ *
+ * Pin 0 is for the LED.
+ *
+ * Pin 1 is to detect loss of signal (LOS)- if it is set, we've lost signal.
+ */
#define WXDCR_SWDPINS_SHIFT 18
#define WXDCR_SWDPINS_MASK 0xf
#define WXDCR_SWDPIN0 (1 << 18)
@@ -179,6 +186,7 @@ typedef struct {
#define WXDCR_SWDPIO2 (1 << 24)
#define WXDCR_SWDPIO3 (1 << 25)
+
#define WXDCR_RST 0x04000000 /* Device Reset (self clearing) */
#define WXDCR_RFCE 0x08000000 /* Receive Flow Control Enable */
#define WXDCR_TFCE 0x10000000 /* Transmit Flow Control Enable */
@@ -283,6 +291,30 @@ typedef struct {
#define WX_HDX_COLLISION_DX 512
/*
+ * Receive Configuration Word defines
+ */
+
+#define WXRXCW_CWMASK 0x0000ffff
+#define WXRXCW_NC 0x04000000
+#define WXRXCW_IV 0x08000000
+#define WXRXCW_CC 0x10000000
+#define WXRXCW_C 0x20000000
+#define WXRXCW_SYNCH 0x40000000
+#define WXRXCW_ANC 0x80000000
+
+/*
+ * Receive Configuration Word defines
+ */
+
+#define WXRXCW_CWMASK 0x0000ffff
+#define WXRXCW_NC 0x04000000
+#define WXRXCW_IV 0x08000000
+#define WXRXCW_CC 0x10000000
+#define WXRXCW_C 0x20000000
+#define WXRXCW_SYNCH 0x40000000
+#define WXRXCW_ANC 0x80000000
+
+/*
* Miscellaneous
*/
#define WX_EEPROM_MAC_OFF 0
OpenPOWER on IntegriCloud