1 | /* |
---|
2 | * The authors hereby grant permission to use, copy, modify, distribute, |
---|
3 | * and license this software and its documentation for any purpose, provided |
---|
4 | * that existing copyright notices are retained in all copies and that this |
---|
5 | * notice is included verbatim in any distributions. No written agreement, |
---|
6 | * license, or royalty fee is required for any of the authorized uses. |
---|
7 | * Modifications to this software may be copyrighted by their authors |
---|
8 | * and need not follow the licensing terms described here, provided that |
---|
9 | * the new terms are clearly indicated on the first page of each file where |
---|
10 | * they apply. |
---|
11 | */ |
---|
12 | |
---|
13 | /* |
---|
14 | ** Copyright (C) 2004 Analog Devices Inc., All Rights Reserved. |
---|
15 | ** |
---|
16 | ************************************************************************************ |
---|
17 | ** |
---|
18 | ** This include file contains a list of macro "defines" to enable the programmer |
---|
19 | ** to use symbolic names for register-access. |
---|
20 | ** |
---|
21 | **/ |
---|
22 | |
---|
23 | /********************************************************************************** |
---|
24 | ** System MMR Register Map |
---|
25 | ***********************************************************************************/ |
---|
26 | |
---|
27 | #ifndef _CDEF_BF537_H |
---|
28 | #define _CDEF_BF537_H |
---|
29 | |
---|
30 | /* Include MMRs Common to BF534 */ |
---|
31 | #include <cdefBF534.h> |
---|
32 | |
---|
33 | /* Include all Core registers and bit definitions */ |
---|
34 | #include <defBF537.h> |
---|
35 | |
---|
36 | /* Include Macro "Defines" For EMAC (Unique to BF536/BF537 */ |
---|
37 | /* 10/100 Ethernet Controller (0xFFC03000 - 0xFFC031FF) */ |
---|
38 | #define pEMAC_OPMODE ((volatile unsigned long *)EMAC_OPMODE) |
---|
39 | #define pEMAC_ADDRLO ((volatile unsigned long *)EMAC_ADDRLO) |
---|
40 | #define pEMAC_ADDRHI ((volatile unsigned long *)EMAC_ADDRHI) |
---|
41 | #define pEMAC_HASHLO ((volatile unsigned long *)EMAC_HASHLO) |
---|
42 | #define pEMAC_HASHHI ((volatile unsigned long *)EMAC_HASHHI) |
---|
43 | #define pEMAC_STAADD ((volatile unsigned long *)EMAC_STAADD) |
---|
44 | #define pEMAC_STADAT ((volatile unsigned long *)EMAC_STADAT) |
---|
45 | #define pEMAC_FLC ((volatile unsigned long *)EMAC_FLC) |
---|
46 | #define pEMAC_VLAN1 ((volatile unsigned long *)EMAC_VLAN1) |
---|
47 | #define pEMAC_VLAN2 ((volatile unsigned long *)EMAC_VLAN2) |
---|
48 | #define pEMAC_WKUP_CTL ((volatile unsigned long *)EMAC_WKUP_CTL) |
---|
49 | #define pEMAC_WKUP_FFMSK0 ((volatile unsigned long *)EMAC_WKUP_FFMSK0) |
---|
50 | #define pEMAC_WKUP_FFMSK1 ((volatile unsigned long *)EMAC_WKUP_FFMSK1) |
---|
51 | #define pEMAC_WKUP_FFMSK2 ((volatile unsigned long *)EMAC_WKUP_FFMSK2) |
---|
52 | #define pEMAC_WKUP_FFMSK3 ((volatile unsigned long *)EMAC_WKUP_FFMSK3) |
---|
53 | #define pEMAC_WKUP_FFCMD ((volatile unsigned long *)EMAC_WKUP_FFCMD) |
---|
54 | #define pEMAC_WKUP_FFOFF ((volatile unsigned long *)EMAC_WKUP_FFOFF) |
---|
55 | #define pEMAC_WKUP_FFCRC0 ((volatile unsigned long *)EMAC_WKUP_FFCRC0) |
---|
56 | #define pEMAC_WKUP_FFCRC1 ((volatile unsigned long *)EMAC_WKUP_FFCRC1) |
---|
57 | |
---|
58 | #define pEMAC_SYSCTL ((volatile unsigned long *)EMAC_SYSCTL) |
---|
59 | #define pEMAC_SYSTAT ((volatile unsigned long *)EMAC_SYSTAT) |
---|
60 | #define pEMAC_RX_STAT ((volatile unsigned long *)EMAC_RX_STAT) |
---|
61 | #define pEMAC_RX_STKY ((volatile unsigned long *)EMAC_RX_STKY) |
---|
62 | #define pEMAC_RX_IRQE ((volatile unsigned long *)EMAC_RX_IRQE) |
---|
63 | #define pEMAC_TX_STAT ((volatile unsigned long *)EMAC_TX_STAT) |
---|
64 | #define pEMAC_TX_STKY ((volatile unsigned long *)EMAC_TX_STKY) |
---|
65 | #define pEMAC_TX_IRQE ((volatile unsigned long *)EMAC_TX_IRQE) |
---|
66 | |
---|
67 | #define pEMAC_MMC_CTL ((volatile unsigned long *)EMAC_MMC_CTL) |
---|
68 | #define pEMAC_MMC_RIRQS ((volatile unsigned long *)EMAC_MMC_RIRQS) |
---|
69 | #define pEMAC_MMC_RIRQE ((volatile unsigned long *)EMAC_MMC_RIRQE) |
---|
70 | #define pEMAC_MMC_TIRQS ((volatile unsigned long *)EMAC_MMC_TIRQS) |
---|
71 | #define pEMAC_MMC_TIRQE ((volatile unsigned long *)EMAC_MMC_TIRQE) |
---|
72 | |
---|
73 | #define pEMAC_RXC_OK ((volatile unsigned long *)EMAC_RXC_OK) |
---|
74 | #define pEMAC_RXC_FCS ((volatile unsigned long *)EMAC_RXC_FCS) |
---|
75 | #define pEMAC_RXC_ALIGN ((volatile unsigned long *)EMAC_RXC_ALIGN) |
---|
76 | #define pEMAC_RXC_OCTET ((volatile unsigned long *)EMAC_RXC_OCTET) |
---|
77 | #define pEMAC_RXC_DMAOVF ((volatile unsigned long *)EMAC_RXC_DMAOVF) |
---|
78 | #define pEMAC_RXC_UNICST ((volatile unsigned long *)EMAC_RXC_UNICST) |
---|
79 | #define pEMAC_RXC_MULTI ((volatile unsigned long *)EMAC_RXC_MULTI) |
---|
80 | #define pEMAC_RXC_BROAD ((volatile unsigned long *)EMAC_RXC_BROAD) |
---|
81 | #define pEMAC_RXC_LNERRI ((volatile unsigned long *)EMAC_RXC_LNERRI) |
---|
82 | #define pEMAC_RXC_LNERRO ((volatile unsigned long *)EMAC_RXC_LNERRO) |
---|
83 | #define pEMAC_RXC_LONG ((volatile unsigned long *)EMAC_RXC_LONG) |
---|
84 | #define pEMAC_RXC_MACCTL ((volatile unsigned long *)EMAC_RXC_MACCTL) |
---|
85 | #define pEMAC_RXC_OPCODE ((volatile unsigned long *)EMAC_RXC_OPCODE) |
---|
86 | #define pEMAC_RXC_PAUSE ((volatile unsigned long *)EMAC_RXC_PAUSE) |
---|
87 | #define pEMAC_RXC_ALLFRM ((volatile unsigned long *)EMAC_RXC_ALLFRM) |
---|
88 | #define pEMAC_RXC_ALLOCT ((volatile unsigned long *)EMAC_RXC_ALLOCT) |
---|
89 | #define pEMAC_RXC_TYPED ((volatile unsigned long *)EMAC_RXC_TYPED) |
---|
90 | #define pEMAC_RXC_SHORT ((volatile unsigned long *)EMAC_RXC_SHORT) |
---|
91 | #define pEMAC_RXC_EQ64 ((volatile unsigned long *)EMAC_RXC_EQ64) |
---|
92 | #define pEMAC_RXC_LT128 ((volatile unsigned long *)EMAC_RXC_LT128) |
---|
93 | #define pEMAC_RXC_LT256 ((volatile unsigned long *)EMAC_RXC_LT256) |
---|
94 | #define pEMAC_RXC_LT512 ((volatile unsigned long *)EMAC_RXC_LT512) |
---|
95 | #define pEMAC_RXC_LT1024 ((volatile unsigned long *)EMAC_RXC_LT1024) |
---|
96 | #define pEMAC_RXC_GE1024 ((volatile unsigned long *)EMAC_RXC_GE1024) |
---|
97 | |
---|
98 | #define pEMAC_TXC_OK ((volatile unsigned long *)EMAC_TXC_OK) |
---|
99 | #define pEMAC_TXC_1COL ((volatile unsigned long *)EMAC_TXC_1COL) |
---|
100 | #define pEMAC_TXC_GT1COL ((volatile unsigned long *)EMAC_TXC_GT1COL) |
---|
101 | #define pEMAC_TXC_OCTET ((volatile unsigned long *)EMAC_TXC_OCTET) |
---|
102 | #define pEMAC_TXC_DEFER ((volatile unsigned long *)EMAC_TXC_DEFER) |
---|
103 | #define pEMAC_TXC_LATECL ((volatile unsigned long *)EMAC_TXC_LATECL) |
---|
104 | #define pEMAC_TXC_XS_COL ((volatile unsigned long *)EMAC_TXC_XS_COL) |
---|
105 | #define pEMAC_TXC_DMAUND ((volatile unsigned long *)EMAC_TXC_DMAUND) |
---|
106 | #define pEMAC_TXC_CRSERR ((volatile unsigned long *)EMAC_TXC_CRSERR) |
---|
107 | #define pEMAC_TXC_UNICST ((volatile unsigned long *)EMAC_TXC_UNICST) |
---|
108 | #define pEMAC_TXC_MULTI ((volatile unsigned long *)EMAC_TXC_MULTI) |
---|
109 | #define pEMAC_TXC_BROAD ((volatile unsigned long *)EMAC_TXC_BROAD) |
---|
110 | #define pEMAC_TXC_XS_DFR ((volatile unsigned long *)EMAC_TXC_XS_DFR) |
---|
111 | #define pEMAC_TXC_MACCTL ((volatile unsigned long *)EMAC_TXC_MACCTL) |
---|
112 | #define pEMAC_TXC_ALLFRM ((volatile unsigned long *)EMAC_TXC_ALLFRM) |
---|
113 | #define pEMAC_TXC_ALLOCT ((volatile unsigned long *)EMAC_TXC_ALLOCT) |
---|
114 | #define pEMAC_TXC_EQ64 ((volatile unsigned long *)EMAC_TXC_EQ64) |
---|
115 | #define pEMAC_TXC_LT128 ((volatile unsigned long *)EMAC_TXC_LT128) |
---|
116 | #define pEMAC_TXC_LT256 ((volatile unsigned long *)EMAC_TXC_LT256) |
---|
117 | #define pEMAC_TXC_LT512 ((volatile unsigned long *)EMAC_TXC_LT512) |
---|
118 | #define pEMAC_TXC_LT1024 ((volatile unsigned long *)EMAC_TXC_LT1024) |
---|
119 | #define pEMAC_TXC_GE1024 ((volatile unsigned long *)EMAC_TXC_GE1024) |
---|
120 | #define pEMAC_TXC_ABORT ((volatile unsigned long *)EMAC_TXC_ABORT) |
---|
121 | |
---|
122 | #endif /* _CDEF_BF537_H */ |
---|