Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1186 | savelij | 1 | ifndef __52xxfecinc ; avoid multiple inclusion |
2 | __52xxfecinc equ 1 |
||
3 | |||
4 | save |
||
5 | listing off ; no listing over this file |
||
6 | |||
7 | ;**************************************************************************** |
||
8 | ;* * |
||
9 | ;* AS 1.42 - File 52XXFEC.INC * |
||
10 | ;* * |
||
11 | ;* Contains SFR and Bit Definitions for ColdFire MCF52xx Fast Ethernet * |
||
12 | ;* Controller * |
||
13 | ;* * |
||
14 | ;**************************************************************************** |
||
15 | |||
16 | include "coldfire/5xxxfec.inc" |
||
17 | __deffec "",MBAR_FEC ; No 52xx/53xx device with more than one FEC |
||
18 | |||
19 | TXB cfbit EIR,26 ; Transmit Buffer Interrupt |
||
20 | RXF cfbit EIR,25 ; Receive Frame Interrupt |
||
21 | RXB cfbit EIR,24 ; Receive Buffer Interrupt |
||
22 | EBERR cfbit EIR,22 ; Ethernet Bus Error |
||
23 | UN cfbit EIR,19 ; Transmit FIFO Underrun |
||
24 | |||
25 | TXB cfbit EIMR,26 ; Transmit Buffer Interrupt |
||
26 | RXF cfbit EIMR,25 ; Receive Frame Interrupt |
||
27 | RXB cfbit EIMR,24 ; Receive Buffer Interrupt |
||
28 | EBERR cfbit EIMR,22 ; Ethernet Bus Error |
||
29 | UN cfbit EIMR,19 ; Transmit FIFO Underrun |
||
30 | |||
31 | RDAR equ MBAR_FEC+$010 ; Receive Descriptor Active Register (32b) |
||
32 | RDAR cfbit RDAR,24 |
||
33 | TDAR equ MBAR_FEC+$014 ; Transmit Descriptor Active Register (32b) |
||
34 | TDAR cfbit TDAR,24 |
||
35 | FRBR equ MBAR_FEC+$14C ; FIFO Receive Bound Register (32b) |
||
36 | R_BOUND cffield FRBR,2,8 ; Highest valid FIFO RAM Address |
||
37 | FRSR equ MBAR_FEC+$150 ; FIFO Receive FIFO Start Register (32b) |
||
38 | R_FSTART cffield FRSR,2,8 ; Address of First Receive FIFO Location |
||
39 | ERDSR equ MBAR_FEC+$180 ; Pointer to Receive Descriptor Ring (32b) |
||
40 | ETDSR equ MBAR_FEC+$184 ; Pointer to Transmit Descriptor Ring (32b) |
||
41 | EMRBR equ MBAR_FEC+$188 ; Maximum Receive Buffer Size (32b) |
||
42 | R_BUF_SIZE cffield EMRBR,4,7 ; Maximum size of Receive Buffer |
||
43 | |||
44 | restore ; re-enable listing |
||
45 | |||
46 | endif ; __52xxfecinc |