source: rtems/c/src/lib/libbsp/lm32/shared/tsmac/dp83848phy.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 6.3 KB
Line 
1/*
2 *  This file contains definitions for LatticeMico32 TSMAC (Tri-Speed MAC)
3 *
4 *  COPYRIGHT (c) 1989-1999.
5 *  On-Line Applications Research Corporation (OAR).
6 *
7 *  The license and distribution terms for this file may be
8 *  found in the file LICENSE in this distribution or at
9 *  http://www.rtems.com/license/LICENSE.
10 *
11 *  Jukka Pietarinen <jukka.pietarinen@mrf.fi>, 2008,
12 *  Micro-Research Finland Oy
13 */
14
15#ifndef _DP83848PHY_H
16#define _DP83848PHY_H
17
18#define DEFAULT_PHY_ADDRESS   (0x01)
19
20#define PHY_BMCR              (0x00)
21#define PHY_BMCR_RESET        (1<<15)
22#define PHY_BMCR_LOOPBACK     (1<<14)
23#define PHY_BMCR_SPEEDSEL     (1<<13)
24#define PHY_BMCR_AN_ENA       (1<<12)
25#define PHY_BMCR_PWRDWN       (1<<11)
26#define PHY_BMCR_ISOLATE      (1<<10)
27#define PHY_BMCR_RESTART_AN   (1<<9)
28#define PHY_BMCR_DUPLEX_MODE  (1<<8)
29#define PHY_BMCR_COLL_TEST    (1<<7)
30#define PHY_BMSR              (0x01)
31#define PHY_BMSR_100_T4       (1<<15)
32#define PHY_BMSR_100_TX_FD    (1<<14)
33#define PHY_BMSR_100_TX_HD    (1<<13)
34#define PHY_BMSR_10_T_FD      (1<<12)
35#define PHY_BMSR_10_T_HD      (1<<11)
36#define PHY_BMSR_PRESUP       (1<<6)
37#define PHY_BMSR_AN_CMPL      (1<<5)
38#define PHY_BMSR_REM_FLT      (1<<4)
39#define PHY_BMSR_AN_AB        (1<<3)
40#define PHY_BMSR_LINK_STAT    (1<<2)
41#define PHY_BMSR_JABBDET      (1<<1)
42#define PHY_BMSR_EXT_CAP      (1<<0)
43#define PHY_PHYIDR1           (0x02)
44#define DEFAULT_PHYIDR1       (0x2000)
45#define PHY_PHYIDR2           (0x03)
46#define DEFAULT_PHYIDR2       (0x5C90)
47#define PHY_ANAR              (0x04)
48#define PHY_ANAR_NP           (1<<15)
49#define PHY_ANAR_RF           (1<<13)
50#define PHY_ANAR_ASM_DIR      (1<<11)
51#define PHY_ANAR_PAUSE        (1<<10)
52#define PHY_ANAR_T4           (1<<9)
53#define PHY_ANAR_TX_FD        (1<<8)
54#define PHY_ANAR_TX           (1<<7)
55#define PHY_ANAR_10_FD        (1<<6)
56#define PHY_ANAR_10           (1<<5)
57#define PHY_ANAR_SEL_MASK     (0x0f)
58#define PHY_ANAR_SEL_SHIFT    (0)
59#define PHY_ANAR_SEL_DEF      (1)
60#define PHY_ANLPAR            (0x05)
61#define PHY_ANLPAR_NP         (1<<15)
62#define PHY_ANLPAR_ACK        (1<<14)
63#define PHY_ANLPAR_RF         (1<<13)
64#define PHY_ANLPAR_ASM_DIR    (1<<11)
65#define PHY_ANLPAR_PAUSE      (1<<10)
66#define PHY_ANLPAR_T4         (1<<9)
67#define PHY_ANLPAR_TX_FD      (1<<8)
68#define PHY_ANLPAR_TX         (1<<7)
69#define PHY_ANLPAR_10_FD      (1<<6)
70#define PHY_ANLPAR_10         (1<<5)
71#define PHY_ANLPAR_SEL_MASK   (0x0f)
72#define PHY_ANLPAR_SEL_SHIFT  (0)
73#define PHY_ANLPARNP          (0x05)
74#define PHY_ANLPARNP_NP       (1<<15)
75#define PHY_ANLPARNP_ACK      (1<<14)
76#define PHY_ANLPARNP_MP       (1<<13)
77#define PHY_ANLPARNP_ACK2     (1<<12)
78#define PHY_ANLPARNP_TOGGLE   (1<<11)
79#define PHY_ANLPARNP_CDE_MASK (0x03ff)
80#define PHY_ANER              (0x06)
81#define PHY_ANER_PDF          (1<<4)
82#define PHY_ANER_LP_NP_ABLE   (1<<3)
83#define PHY_ANER_NP_ABLE      (1<<2)
84#define PHY_ANER_PAGE_RX      (1<<1)
85#define PHY_ANER_LP_AN_ABLE   (1<<0)
86#define PHY_ANNPTR            (0x07)
87#define PHY_ANNPTR_NP         (1<<15)
88#define PHY_ANNPTR_MP         (1<<13)
89#define PHY_ANNPTR_ACK2       (1<<12)
90#define PHY_ANNPTR_TOG_TX     (1<<11)
91#define PHY_ANNPTR_CDE_MASK   (0x03ff)
92#define PHY_PHYSTS            (0x10)
93#define PHY_PHYSTS_MDIX_MDE   (1<<14)
94#define PHY_PHYSTS_RCV_ERRL   (1<<13)
95#define PHY_PHYSTS_POLSTAT    (1<<12)
96#define PHY_PHYSTS_FCSL       (1<<11)
97#define PHY_PHYSTS_SD         (1<<10)
98#define PHY_PHYSTS_DESCL      (1<<9)
99#define PHY_PHYSTS_PGREC      (1<<8)
100#define PHY_PHYSTS_MIIIRQ     (1<<7)
101#define PHY_PHYSTS_REM_FLT    (1<<6)
102#define PHY_PHYSTS_JABBDET    (1<<5)
103#define PHY_PHYSTS_AN_CMP     (1<<4)
104#define PHY_PHYSTS_LOOPBACK   (1<<3)
105#define PHY_PHYSTS_DUPLEX     (1<<2)
106#define PHY_PHYSTS_SPEED      (1<<1)
107#define PHY_PHYSTS_LINK       (1<<0)
108#define PHY_MICR              (0x11)
109#define PHY_MICR_TINT         (1<<2)
110#define PHY_MICR_INTEN        (1<<1)
111#define PHY_MICR_INT_OE       (1<<0)
112#define PHY_MISR              (0x12)
113#define PHY_MISR_ED_INT       (1<<14)
114#define PHY_MISR_LINK_INT     (1<<13)
115#define PHY_MISR_SPD_INT      (1<<12)
116#define PHY_MISR_DUP_INT      (1<<11)
117#define PHY_MISR_ANC_INT      (1<<10)
118#define PHY_MISR_FHF_INT      (1<<9)
119#define PHY_MISR_RHF_INT      (1<<8)
120#define PHY_MISR_ED_INT_EN    (1<<6)
121#define PHY_MISR_LINK_INT_EN  (1<<5)
122#define PHY_MISR_SPD_INT_EN   (1<<4)
123#define PHY_MISR_DUP_INT_EN   (1<<3)
124#define PHY_MISR_ANC_INT_EN   (1<<2)
125#define PHY_MISR_FHF_INT_EN   (1<<1)
126#define PHY_MISR_RHF_INT_EN   (1<<0)
127#define PHY_FCSCR             (0x14)
128#define PHY_RECR              (0x15)
129#define PHY_PCSR              (0x16)
130#define PHY_PCSR_TQ_EN        (1<<10)
131#define PHY_PCSR_SDFPMA       (1<<9)
132#define PHY_PCSR_SD_OPT       (1<<8)
133#define PHY_PCSR_DESC_TIME    (1<<7)
134#define PHY_PCSR_F_100_OK     (1<<5)
135#define PHY_PCSR_NRZI_BYPASS  (1<<2)
136#define PHY_RBR               (0x17)
137#define PHY_RBR_RMII_MODE     (1<<5)
138#define PHY_RBR_RMII_REV1_0   (1<<4)
139#define PHY_RBR_RX_OVF_STS    (1<<3)
140#define PHY_RBR_RX_UNF_STS    (1<<2)
141#define PHY_RBR_ELAST_BUF1    (1<<1)
142#define PHY_RBR_ELAST_BUF0    (1<<0)
143#define PHY_LEDCR             (0x18)
144#define PHY_LEDCR_DRV_SPDLED  (1<<5)
145#define PHY_LEDCR_DRV_LNKLED  (1<<4)
146#define PHY_LEDCR_DRV_ACTLED  (1<<3)
147#define PHY_LEDCR_SPDLED      (1<<2)
148#define PHY_LEDCR_LNKLED      (1<<1)
149#define PHY_LEDCR_ACTLED      (1<<0)
150#define PHY_PHYCR             (0x19)
151#define PHY_PHYCR_MDIX_EN     (1<<15)
152#define PHY_PHYCR_FORCE_MDIX  (1<<14)
153#define PHY_PHYCR_PAUSE_RX    (1<<13)
154#define PHY_PHYCR_PAUSE_TX    (1<<12)
155#define PHY_PHYCR_BIST_FE     (1<<11)
156#define PHY_PHYCR_PSR_15      (1<<10)
157#define PHY_PHYCR_BIST_STATUS (1<<9)
158#define PHY_PHYCR_BIST_START  (1<<8)
159#define PHY_PHYCR_BP_STRETCH  (1<<7)
160#define PHY_PHYCR_LED_CNFG1   (1<<6)
161#define PHY_PHYCR_LED_CNFG0   (1<<5)
162#define PHY_PHYCR_ADDR4       (1<<4)
163#define PHY_PHYCR_ADDR3       (1<<3)
164#define PHY_PHYCR_ADDR2       (1<<2)
165#define PHY_PHYCR_ADDR1       (1<<1)
166#define PHY_PHYCR_ADDR0       (1<<0)
167#define PHY_10BTSCR           (0x1A)
168#define PHY_10BTSCR_SERIAL    (1<<15)
169#define PHY_10BTSCR_SQ_MASK   (0x07)
170#define PHY_10BTSCR_SQ_SHIFT  (9)
171#define PHY_10BTSCR_LP_10_DIS (1<<8)
172#define PHY_10BTSCR_LP_DIS    (1<<7)
173#define PHY_10BTSCR_FLINK_10  (1<<1)
174#define PHY_10BTSCR_POL       (1<<4)
175#define PHY_10BTSCR_HB_DIS    (1<<1)
176#define PHY_10BTSCR_JAB_DIS   (1<<0)
177#define PHY_CDCTRL1           (0x1B)
178#define PHY_EDCR              (0x1D)
179
180#endif /* _DP83848PHY_H */
Note: See TracBrowser for help on using the repository browser.