summaryrefslogtreecommitdiff
path: root/sys/include/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include/dev')
-rw-r--r--sys/include/dev/phy/et131xregs.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/include/dev/phy/et131xregs.h b/sys/include/dev/phy/et131xregs.h
index 0e05c94..1f8bfcb 100644
--- a/sys/include/dev/phy/et131xregs.h
+++ b/sys/include/dev/phy/et131xregs.h
@@ -225,9 +225,16 @@ struct mac_regs {
#define MAC_MGMT_BUSY 0x00000001
#define MAC_MGMT_WAIT 0x00000005
+/* MAC management config values */
+#define MAC_MIIMGMT_CLK_RST 0x00007
+
/* LED register defines */
#define PHY_LED2 0x1C
+/* PCI config space offsets */
+#define PCI_EEPROM_STATUS 0xB2
+#define PCI_MAC_ADDRESS 0xA4
+
/*
* LED control register 2 values
*/
@@ -247,7 +254,6 @@ struct mac_regs {
#define LED_TXRX_SHIFT 8
#define LED_LINK_SHIFT 12
-
struct et131x_iospace {
#define _IO_PAD(NAME, REGSET) uint8_t NAME[4096 - sizeof(struct REGSET)]
struct global_regs global;