00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #define MII_CTRL 0x0
00013 #define MII_CTRL_RST 0x8000
00014 #define MII_CTRL_LB 0x4000
00015 #define MII_CTRL_SP_LSB 0x2000
00016 #define MII_CTRL_ANE 0x1000
00017 #define MII_CTRL_PD 0x0800
00018 #define MII_CTRL_ISO 0x0400
00019 #define MII_CTRL_RAN 0x0200
00020 #define MII_CTRL_DM 0x0100
00021 #define MII_CTRL_CT 0x0080
00022 #define MII_CTRL_SP_MSB 0x0040
00023 #define MII_CTRL_SP_10 0x0000
00024 #define MII_CTRL_SP_100 0x2000
00025 #define MII_CTRL_SP_1000 0x0040
00026 #define MII_CTRL_SP_RES 0x2040
00027 #define MII_CTRL_RES 0x003F
00028 #define MII_STATUS 0x1
00029 #define MII_STATUS_100T4 0x8000
00030 #define MII_STATUS_100XFD 0x4000
00031 #define MII_STATUS_100XHD 0x2000
00032 #define MII_STATUS_10FD 0x1000
00033 #define MII_STATUS_10HD 0x0800
00034 #define MII_STATUS_100T2FD 0x0400
00035 #define MII_STATUS_100T2HD 0x0200
00036 #define MII_STATUS_EXT_STAT 0x0100
00037 #define MII_STATUS_RES 0x0080
00038 #define MII_STATUS_MFPS 0x0040
00039 #define MII_STATUS_ANC 0x0020
00040 #define MII_STATUS_RF 0x0010
00041 #define MII_STATUS_ANA 0x0008
00042 #define MII_STATUS_LS 0x0004
00043 #define MII_STATUS_JD 0x0002
00044 #define MII_STATUS_EC 0x0001
00045 #define MII_PHYID_H 0x2
00046 #define MII_PH_OUI_H_MASK 0xFFFF
00047 #define MII_PH_OUI_H_C_SHIFT 6
00048 #define MII_PHYID_L 0x3
00049 #define MII_PL_OUI_L_MASK 0xFC00
00050 #define MII_PL_OUI_L_SHIFT 10
00051 #define MII_PL_MODEL_MASK 0x03F0
00052 #define MII_PL_MODEL_SHIFT 4
00053 #define MII_PL_REV_MASK 0x000F
00054 #define MII_ANA 0x4
00055 #define MII_ANA_NP 0x8000
00056 #define MII_ANA_RES 0x4000
00057 #define MII_ANA_RF 0x2000
00058 #define MII_ANA_TAF_M 0x1FE0
00059 #define MII_ANA_TAF_S 5
00060 #define MII_ANA_TAF_RES 0x1000
00061 #define MII_ANA_PAUSE_ASYM 0x0800
00062 #define MII_ANA_PAUSE_SYM 0x0400
00063 #define MII_ANA_100T4 0x0200
00064 #define MII_ANA_100TXFD 0x0100
00065 #define MII_ANA_100TXHD 0x0080
00066 #define MII_ANA_10TFD 0x0040
00067 #define MII_ANA_10THD 0x0020
00068 #define MII_ANA_SEL_M 0x001F
00069 #define MII_ANA_SEL_802_3 0x0001
00070 #define MII_ANLPA 0x5
00071 #define MII_ANLPA_NP 0x8000
00072 #define MII_ANLPA_ACK 0x4000
00073 #define MII_ANLPA_RF 0x2000
00074 #define MII_ANLPA_TAF_M 0x1FC0
00075 #define MII_ANLPA_SEL_M 0x001F
00076 #define MII_ANE 0x6
00077 #define MII_ANE_RES 0xFFE0
00078 #define MII_ANE_PDF 0x0010
00079 #define MII_ANE_LPNPA 0x0008
00080 #define MII_ANE_NPA 0x0002
00081 #define MII_ANE_PR 0x0002
00082 #define MII_ANE_LPANA 0x0001
00083 #define MII_ANNPT 0x7
00084 #define MII_ANLPRNP 0x8
00085 #define MII_MS_CTRL 0x9
00086 #define MII_MSC_TEST_MODE 0xE000
00087 #define MII_MSC_MS_MANUAL 0x1000
00088 #define MII_MSC_MS_VAL 0x0800
00089 #define MII_MSC_MULTIPORT 0x0400
00090 #define MII_MSC_1000T_FD 0x0200
00091 #define MII_MSC_1000T_HD 0x0100
00092 #define MII_MSC_RES 0x00FF
00093 #define MII_MS_STATUS 0xA
00094 #define MII_MSS_FAULT 0x8000
00095 #define MII_MSS_MASTER 0x4000
00096 #define MII_MSS_LOCREC 0x2000
00097 #define MII_MSS_REMREC 0x1000
00098 #define MII_MSS_LP1000T_FD 0x0800
00099 #define MII_MSS_LP1000T_HD 0x0400
00100 #define MII_MSS_RES 0x0300
00101 #define MII_MSS_IDLE_ERR 0x00FF
00102
00103 #define MII_EXT_STATUS 0xF
00104 #define MII_ESTAT_1000XFD 0x8000
00105 #define MII_ESTAT_1000XHD 0x4000
00106 #define MII_ESTAT_1000TFD 0x2000
00107 #define MII_ESTAT_1000THD 0x1000
00108 #define MII_ESTAT_RES 0x0FFF
00109
00110
00111 _PROTOTYPE( void mii_print_stat_speed, (U16_t stat, U16_t extstat) );
00112 _PROTOTYPE( void mii_print_techab, (U16_t techab) );
00113
00114
00115
00116