summaryrefslogtreecommitdiffstats
path: root/sys/pci/xmaciireg.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-04-22 02:16:41 +0000
committerwpaul <wpaul@FreeBSD.org>2000-04-22 02:16:41 +0000
commitffc1f10e0bf55eb5612e560d3660d7dd9ae68234 (patch)
treeacde787f0bb34b1705de38d7202e48232b0d48cb /sys/pci/xmaciireg.h
parentd98654ae0128bb79d63a6df0231ebed9c121ae5d (diff)
downloadFreeBSD-src-ffc1f10e0bf55eb5612e560d3660d7dd9ae68234.zip
FreeBSD-src-ffc1f10e0bf55eb5612e560d3660d7dd9ae68234.tar.gz
Reoganize/update the SysKonnect driver:
- Break out the support for the XMAC II's PHY into an miibus driver. - Reorganize the probe/attach stuff using newbus. Each XMAC is now attached to the parent GEnesis controller using newbus. This is necessary since each XMAC must also have an attached miibus, and the miibus read/write register routines need to be able to get at the softc struct for each XMAC, not the one for the parent controller. This allows me to get rid of the grotty code I added for selecting the unit numbers for the ifnet interfaces: the unit numbers are now derived from the newbus-assigned unit numbers, which should track with the ifnet interface numbers. I think. At the very least, there should never be any collisions. - Add support for the SK-9821 and SK-9822 1000baseTX adapters. Special thanks to SysKonnect for loaning me two adapters for testing.
Diffstat (limited to 'sys/pci/xmaciireg.h')
-rw-r--r--sys/pci/xmaciireg.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/sys/pci/xmaciireg.h b/sys/pci/xmaciireg.h
index f649e93..137f47ee 100644
--- a/sys/pci/xmaciireg.h
+++ b/sys/pci/xmaciireg.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 1998, 1999
+ * Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -227,6 +227,12 @@
#define XM_RXCMD_BIGPKTOK 0x0080
#define XM_RXCMD_LENERROK 0x0100
+#define XM_GPIO_GP0_SET 0x0001
+#define XM_GPIO_RESETSTATS 0x0004
+#define XM_GPIO_RESETMAC 0x0008
+#define XM_GPIO_FORCEINT 0x0020
+#define XM_GPIO_ANEGINPROG 0x0040
+
#define XM_IMR_RX_EOF 0x0001
#define XM_IMR_TX_EOF 0x0002
#define XM_IMR_TX_UNDERRUN 0x0004
@@ -244,7 +250,7 @@
#define XM_IMR_LINKEVENT 0x4000
#define XM_INTRS \
- (~(XM_IMR_LINKEVENT|XM_IMR_AUTONEG_DONE|XM_IMR_TX_UNDERRUN))
+ (~(XM_IMR_GP0_SET|XM_IMR_AUTONEG_DONE|XM_IMR_TX_UNDERRUN))
#define XM_ISR_RX_EOF 0x0001
#define XM_ISR_TX_EOF 0x0002
@@ -262,6 +268,10 @@
#define XM_ISR_TX_ABORT 0x2000
#define XM_ISR_LINKEVENT 0x4000
+#define XM_HWCFG_GENEOP 0x0008
+#define XM_HWCFG_SIGSTATCKH 0x0004
+#define XM_HWCFG_GMIIMODE 0x0001
+
#define XM_MODE_FLUSH_RXFIFO 0x00000001
#define XM_MODE_FLUSH_TXFIFO 0x00000002
#define XM_MODE_BIGENDIAN 0x00000004
OpenPOWER on IntegriCloud