aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/et131x/et1310_phy.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/et131x/et1310_phy.h')
-rw-r--r--drivers/staging/et131x/et1310_phy.h34
1 files changed, 5 insertions, 29 deletions
diff --git a/drivers/staging/et131x/et1310_phy.h b/drivers/staging/et131x/et1310_phy.h
index 104008ea053..82037ac7d93 100644
--- a/drivers/staging/et131x/et1310_phy.h
+++ b/drivers/staging/et131x/et1310_phy.h
@@ -61,6 +61,11 @@
61 61
62#include "et1310_address_map.h" 62#include "et1310_address_map.h"
63 63
64/*
65 * Defines for generic MII registers 0x00 -> 0x0F can be found in
66 * include/linux/mii.h
67 */
68
64/* some defines for modem registers that seem to be 'reserved' */ 69/* some defines for modem registers that seem to be 'reserved' */
65#define PHY_INDEX_REG 0x10 70#define PHY_INDEX_REG 0x10
66#define PHY_DATA_REG 0x11 71#define PHY_DATA_REG 0x11
@@ -80,35 +85,6 @@
80 /* TRU_VMI_LINK_CONTROL_REG 29 */ 85 /* TRU_VMI_LINK_CONTROL_REG 29 */
81 /* TRU_VMI_TIMING_CONTROL_REG */ 86 /* TRU_VMI_TIMING_CONTROL_REG */
82 87
83/* PHY Register Mapping(MI) Management Interface Regs */
84struct mi_regs {
85 u8 bmcr; /* Basic mode control reg(Reg 0x00) */
86 u8 bmsr; /* Basic mode status reg(Reg 0x01) */
87 u8 idr1; /* Phy identifier reg 1(Reg 0x02) */
88 u8 idr2; /* Phy identifier reg 2(Reg 0x03) */
89 u8 anar; /* Auto-Negotiation advertisement(Reg 0x04) */
90 u8 anlpar; /* Auto-Negotiation link Partner Ability(Reg 0x05) */
91 u8 aner; /* Auto-Negotiation expansion reg(Reg 0x06) */
92 u8 annptr; /* Auto-Negotiation next page transmit reg(Reg 0x07) */
93 u8 lpnpr; /* link partner next page reg(Reg 0x08) */
94 u8 gcr; /* Gigabit basic mode control reg(Reg 0x09) */
95 u8 gsr; /* Gigabit basic mode status reg(Reg 0x0A) */
96 u8 mi_res1[4]; /* Future use by MI working group(Reg 0x0B - 0x0E) */
97 u8 esr; /* Extended status reg(Reg 0x0F) */
98 u8 mi_res2[3]; /* Future use by MI working group(Reg 0x10 - 0x12) */
99 u8 loop_ctl; /* Loopback Control Reg(Reg 0x13) */
100 u8 mi_res3; /* Future use by MI working group(Reg 0x14) */
101 u8 mcr; /* MI Control Reg(Reg 0x15) */
102 u8 pcr; /* Configuration Reg(Reg 0x16) */
103 u8 phy_ctl; /* PHY Control Reg(Reg 0x17) */
104 u8 imr; /* Interrupt Mask Reg(Reg 0x18) */
105 u8 isr; /* Interrupt Status Reg(Reg 0x19) */
106 u8 psr; /* PHY Status Reg(Reg 0x1A) */
107 u8 lcr1; /* LED Control 1 Reg(Reg 0x1B) */
108 u8 lcr2; /* LED Control 2 Reg(Reg 0x1C) */
109 u8 mi_res4[3]; /* Future use by MI working group(Reg 0x1D - 0x1F) */
110};
111
112/* MI Register 10: Gigabit basic mode status reg(Reg 0x0A) */ 88/* MI Register 10: Gigabit basic mode status reg(Reg 0x0A) */
113#define ET_1000BT_MSTR_SLV 0x4000 89#define ET_1000BT_MSTR_SLV 0x4000
114 90