Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1126 | savelij | 1 | ifndef __5xxxfecinc ; avoid multiple inclusion |
2 | __5xxxfecinc equ 1 |
||
3 | |||
4 | save |
||
5 | listing off ; no listing over this file |
||
6 | |||
7 | ;**************************************************************************** |
||
8 | ;* * |
||
9 | ;* AS 1.42 - File 5XXXFEC.INC * |
||
10 | ;* * |
||
11 | ;* Contains SFR and Bit Definitions for ColdFire MCF5xxx Fast Ethernet * |
||
12 | ;* Controller * |
||
13 | ;* * |
||
14 | ;**************************************************************************** |
||
15 | |||
16 | __deffec macro PR,Base |
||
17 | {PR}EIR equ Base+$004 ; Interrupt Event Register (32b) |
||
18 | HBERR cfbit {PR}EIR,31 ; Heartbeat Error |
||
19 | BABR cfbit {PR}EIR,30 ; Babbling Receive Error |
||
20 | BABT cfbit {PR}EIR,29 ; Babbling Transmit Error |
||
21 | GRA cfbit {PR}EIR,28 ; Graceful Stop Complete |
||
22 | TXF cfbit {PR}EIR,27 ; Transmit Frame Interrupt |
||
23 | MII cfbit {PR}EIR,23 ; MII Interrupt |
||
24 | LC cfbit {PR}EIR,21 ; Late Collision |
||
25 | RL cfbit {PR}EIR,20 ; Collision Retry Limit |
||
26 | {PR}EIMR equ Base+$008 ; Interrupt Mask Register (32b) |
||
27 | HBERR cfbit {PR}EIMR,31 ; Heartbeat Error |
||
28 | BABR cfbit {PR}EIMR,30 ; Babbling Receive Error |
||
29 | BABT cfbit {PR}EIMR,29 ; Babbling Transmit Error |
||
30 | GRA cfbit {PR}EIMR,28 ; Graceful Stop Complete |
||
31 | TXF cfbit {PR}EIMR,27 ; Transmit Frame Interrupt |
||
32 | MII cfbit {PR}EIMR,23 ; MII Interrupt |
||
33 | LC cfbit {PR}EIMR,21 ; Late Collision |
||
34 | RL cfbit {PR}EIMR,20 ; Collision Retry Limit |
||
35 | {PR}ECR equ Base+$024 ; Ethernet Control Register (32b) |
||
36 | ETHER_EN cfbit {PR}ECR,1 ; Enable FEC |
||
37 | RESET cfbit {PR}ECR,0 ; Hardware Reset |
||
38 | {PR}MMFR equ Base+$040 ; MII Management Frame Register (32b) |
||
39 | ST cffield {PR}MMFR,30,2 ; Start of Frame Delimiter |
||
40 | OP cffield {PR}MMFR,28,2 ; Operation Code |
||
41 | PA cffield {PR}MMFR,23,5 ; PHY Address |
||
42 | RA cffield {PR}MMFR,18,5 ; Register Address |
||
43 | TA cffield {PR}MMFR,16,2 ; Turn Around |
||
44 | DATA cffield {PR}MMFR,0,16 ; Management Frame Data |
||
45 | {PR}MSCR equ Base+$044 ; MII Speed Control Register (32b) |
||
46 | DIS_PRE cfbit {PR}MSCR,7 ; Disable Preamble |
||
47 | MII_SPEED cffield {PR}MSCR,1,5 ; MII Clock |
||
48 | {PR}MIBC equ Base+$064 ; MIB Control/Status Register (32b) |
||
49 | MIB_DIS cfbit {PR}MIBC,31 ; Halt Counters |
||
50 | MIB_IDLE cfbit {PR}MIBC,30 ; Counters Idle? |
||
51 | {PR}FEC_RCR equ Base+$084 ; Receive Control Register (32b) |
||
52 | MAX_FL cffield {PR}FEC_RCR,16,11; Maximum Frame Length |
||
53 | FCE cfbit {PR}FEC_RCR,5 ; Flow control enable |
||
54 | BC_REJ cfbit {PR}FEC_RCR,4 ; Broadcast Frame Reject |
||
55 | PROM cfbit {PR}FEC_RCR,3 ; Promiscuous Mode |
||
56 | MII_MODE cfbit {PR}FEC_RCR,2 ; Media Independent Interface Mode |
||
57 | DRT cfbit {PR}FEC_RCR,1 ; Disable Receive on Transmit |
||
58 | LOOP cfbit {PR}FEC_RCR,0 ; Internal Loopback |
||
59 | {PR}TCR equ Base+$0C4 ; Transmit Control Register (32b) |
||
60 | RFC_PAUSE cfbit {PR}TCR,4 ; Receive Frame Control Pause |
||
61 | TFC_PAUSE cfbit {PR}TCR,3 ; Transmit Frame Control Pause |
||
62 | FDEN cfbit {PR}TCR,2 ; Full Duplex Enable |
||
63 | HBC cfbit {PR}TCR,1 ; Heartbeat Control |
||
64 | GTS cfbit {PR}TCR,0 ; Graceful Transmit Stop |
||
65 | {PR}PALR equ Base+$0E4 ; Physical Address Low Register (32b) |
||
66 | PADDR1 cffield {PR}PALR,0,32 ; bits 31..0 of MAC address |
||
67 | {PR}PAUR equ Base+$0E8 ; Physical Address High Register (32b) |
||
68 | PADDR2 cffield {PR}PAUR,16,16 ; bits 47..32 of MAC address |
||
69 | TYPE cffield {PR}PAUR0,016 ; Ethertype in PAUSE frames (0x8808) |
||
70 | {PR}OPD equ Base+$0EC ; Opcode/Pause Duration (32b) |
||
71 | OPCODE cffield {PR}OPD,16,16 ; Opcode Field Used in PAUSE Frames |
||
72 | PAUSE_DUR cffield {PR}OPD,0,16 ; Pause Duration Field Used in PAUSE Frames |
||
73 | {PR}IAUR equ Base+$118 ; Descriptor Individual Upper Address Register (32b) |
||
74 | {PR}IALR equ Base+$11C ; Descriptor Individual Lower Address Register (32b) |
||
75 | {PR}GAUR equ Base+$120 ; Descriptor Group Upper Address Register (32b) |
||
76 | {PR}GALR equ Base+$124 ; Descriptor Group Lower Address Register (32b) |
||
77 | {PR}TFWR equ Base+$144 ; Transmit FIFO Watermark (32b) |
||
78 | |||
79 | {PR}RMON_T_DROP equ Base+$200 ; Count of Frames not Counted Correctly |
||
80 | {PR}RMON_T_PACKETS equ Base+$204 ; RMON Tx Packet count |
||
81 | {PR}RMON_T_BC_PKT equ Base+$208 ; RMON Tx broadcast Packets |
||
82 | {PR}RMON_T_MC_PKT equ Base+$20C ; RMON Tx multicast Packets |
||
83 | {PR}RMON_T_CRC_ALIGN equ Base+$210 ; RMON Tx Packets With CRC/Align Error |
||
84 | {PR}RMON_T_UNDERSIZE equ Base+$214 ; RMON Tx Packets < 64 Bytes, Good CRC |
||
85 | {PR}RMON_T_OVERSIZE equ Base+$218 ; RMON Tx Packets > MAX_FL Bytes, Good CRC |
||
86 | {PR}RMON_T_FRAG equ Base+$21C ; RMON Tx Packets < 64 Bytes, Bad CRC |
||
87 | {PR}RMON_T_JAB equ Base+$220 ; RMON Tx Packets > MAX_FL Bytes, Bad CRC |
||
88 | {PR}RMON_T_COL equ Base+$224 ; RMON Tx Collision Count |
||
89 | {PR}RMON_T_P64 equ Base+$228 ; RMON Tx 64 Byte Packets |
||
90 | {PR}RMON_T_P65TO127 equ Base+$22C ; RMON Tx 65 to 127 Byte Packets |
||
91 | {PR}RMON_T_P128TO255 equ Base+$230 ; RMON Tx 128 to 255 Byte Packets |
||
92 | {PR}RMON_T_P256TO511 equ Base+$234 ; RMON Tx 256 to 511 Byte Packets |
||
93 | {PR}RMON_T_P512TO1023 equ Base+$238 ; RMON Tx 512 to 1023 Byte Packets |
||
94 | {PR}RMON_T_P1024TO2047 equ Base+$23C ; RMON Tx 1024 to 2047 Byte Packets |
||
95 | {PR}RMON_T_P_GTE2048 equ Base+$240 ; RMON Tx Packets With > 2048 Bytes |
||
96 | {PR}RMON_T_OCTETS equ Base+$244 ; RMON Tx Octets |
||
97 | {PR}IEEE_T_DROP equ Base+$248 ; Count of Transmitted Frames not Counted Correctly |
||
98 | {PR}IEEE_T_FRAME_OK equ Base+$24C ; Frames Transmitted OK |
||
99 | {PR}IEEE_T_1COL equ Base+$250 ; Frames Transmitted With Single Collision |
||
100 | {PR}IEEE_T_MCOL equ Base+$254 ; Frames Transmitted With Multiple Collisions |
||
101 | {PR}IEEE_T_DEF equ Base+$258 ; Frames Transmitted after Deferral Delay |
||
102 | {PR}IEEE_T_LCOL equ Base+$25C ; Frames Transmitted With Late Collision |
||
103 | {PR}IEEE_T_EXCOL equ Base+$260 ; Frames Transmitted With Excessive Collisions |
||
104 | {PR}IEEE_T_MACERR equ Base+$264 ; Frames Transmitted With Tx FIFO Underrun |
||
105 | {PR}IEEE_T_CSERR equ Base+$268 ; Frames Transmitted With Carrier Sense Error |
||
106 | {PR}IEEE_T_SQE equ Base+$26C ; Frames Transmitted With SQE Error |
||
107 | {PR}IEEE_T_FDXFC equ Base+$270 ; Flow control pause Frames Transmitted |
||
108 | {PR}IEEE_T_OCTETS_OK equ Base+$274 ; Octet Count for Frames Transmitted Without Error |
||
109 | {PR}RMON_R_DROP equ Base+$280 ; Count of Received Frames not Counted Correctly |
||
110 | {PR}RMON_R_PACKETS equ Base+$284 ; RMON Rx Packet Count |
||
111 | {PR}RMON_R_BC_PKT equ Base+$288 ; RMON Rx Broadcast Packets |
||
112 | {PR}RMON_R_MC_PKT equ Base+$28C ; RMON Rx Multicast Packets |
||
113 | {PR}RMON_R_CRC_ALIGN equ Base+$290 ; RMON Rx Packets With CRC/Align Error |
||
114 | {PR}RMON_R_UNDERSIZE equ Base+$294 ; RMON Rx Packets < 64 Bytes, Good CRC |
||
115 | {PR}RMON_R_OVERSIZE equ Base+$298 ; RMON Rx Packets > MAX_FL Bytes, Good CRC |
||
116 | {PR}RMON_R_FRAG equ Base+$29C ; RMON Rx Packets < 64 Bytes, Bad CRC |
||
117 | {PR}RMON_R_JAB equ Base+$2A0 ; RMON Rx Packets > MAX_FL Bytes, Bad CRC |
||
118 | {PR}RMON_R_RESVD_0 equ Base+$2A4 ; Reserved |
||
119 | {PR}RMON_R_P64 equ Base+$2A8 ; RMON Rx 64 Byte Packets |
||
120 | {PR}RMON_R_P65TO127 equ Base+$2AC ; RMON Rx 65 to 127 Byte Packets |
||
121 | {PR}RMON_R_P128TO255 equ Base+$2B0 ; RMON Rx 128 to 255 Byte Packets |
||
122 | {PR}RMON_R_P256TO511 equ Base+$2B4 ; RMON Rx 256 to 511 Byte Packets |
||
123 | {PR}RMON_R_P512TO1023 equ Base+$2B8 ; RMON Rx 512 to 1023 Byte Packets |
||
124 | {PR}RMON_R_P1024TO2047 equ Base+$2BC ; RMON Rx 1024 to 2047 Byte Packets |
||
125 | {PR}RMON_R_P_GTE2048 equ Base+$2C0 ; RMON Rx Packets With > 2048 Bytes |
||
126 | {PR}RMON_R_OCTETS equ Base+$2C4 ; RMON Rx octets |
||
127 | {PR}IEEE_R_DROP equ Base+$2C8 ; Count of Received Frames not Counted Correctly |
||
128 | {PR}IEEE_R_FRAME_OK equ Base+$2CC ; Frames Received OK |
||
129 | {PR}IEEE_R_CRC equ Base+$2D0 ; Frames Received With CRC Error |
||
130 | {PR}IEEE_R_ALIGN equ Base+$2D4 ; Frames Received With Alignment Error |
||
131 | {PR}IEEE_R_MACERR equ Base+$2D8 ; Receive FIFO Overflow Count |
||
132 | {PR}IEEE_R_FDXFC equ Base+$2DC ; Flow Control Pause Frames Received |
||
133 | {PR}IEEE_R_OCTETS_OK equ Base+$2E0 ; Octet Count for Frames Received Without Error |
||
134 | endm |
||
135 | |||
136 | restore ; re-enable listing |
||
137 | |||
138 | endif ; __5xxxfecinc |