diff options
author | Andrew Isaacson <adi@broadcom.com> | 2005-10-20 02:55:11 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:32:45 -0400 |
commit | 4cbf2beac2265b3619be9c8e88ff4ff45b49d7c2 (patch) | |
tree | fa7701264e60759b080b7953bcfad081a51e63d2 /include/asm-mips/sibyte/sb1250_mac.h | |
parent | d121ced21d79eab7726bfe6b1e33da4ae86072c0 (diff) |
BCM1480 headers
Add header files for BCM1480/1280/1455/1255 family of chips, and
update sb1250 headers which are shared by BCM1480 family.
Signed-Off-By: Andy Isaacson <adi@broadcom.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
diff --git a/include/asm-mips/sibyte/bcm1480_int.h b/include/asm-mips/sibyte/bcm1480_int.h
new file mode 100644
Diffstat (limited to 'include/asm-mips/sibyte/sb1250_mac.h')
-rw-r--r-- | include/asm-mips/sibyte/sb1250_mac.h | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/include/asm-mips/sibyte/sb1250_mac.h b/include/asm-mips/sibyte/sb1250_mac.h index 18e74e43f4a2..422cc0e96f66 100644 --- a/include/asm-mips/sibyte/sb1250_mac.h +++ b/include/asm-mips/sibyte/sb1250_mac.h | |||
@@ -81,7 +81,10 @@ | |||
81 | #define M_MAC_RESERVED1 _SB_MAKEMASK(8,9) | 81 | #define M_MAC_RESERVED1 _SB_MAKEMASK(8,9) |
82 | 82 | ||
83 | #define M_MAC_AP_STAT_EN _SB_MAKEMASK1(17) | 83 | #define M_MAC_AP_STAT_EN _SB_MAKEMASK1(17) |
84 | #define M_MAC_RESERVED2 _SB_MAKEMASK1(18) | 84 | |
85 | #if SIBYTE_HDR_FEATURE_CHIP(1480) | ||
86 | #define M_MAC_TIMESTAMP _SB_MAKEMASK1(18) | ||
87 | #endif | ||
85 | #define M_MAC_DRP_ERRPKT_EN _SB_MAKEMASK1(19) | 88 | #define M_MAC_DRP_ERRPKT_EN _SB_MAKEMASK1(19) |
86 | #define M_MAC_DRP_FCSERRPKT_EN _SB_MAKEMASK1(20) | 89 | #define M_MAC_DRP_FCSERRPKT_EN _SB_MAKEMASK1(20) |
87 | #define M_MAC_DRP_CODEERRPKT_EN _SB_MAKEMASK1(21) | 90 | #define M_MAC_DRP_CODEERRPKT_EN _SB_MAKEMASK1(21) |
@@ -132,9 +135,9 @@ | |||
132 | #define M_MAC_RX_CH_SEL_MSB _SB_MAKEMASK1(44) | 135 | #define M_MAC_RX_CH_SEL_MSB _SB_MAKEMASK1(44) |
133 | #endif /* 1250 PASS2 || 112x PASS1 */ | 136 | #endif /* 1250 PASS2 || 112x PASS1 */ |
134 | 137 | ||
135 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) | 138 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
136 | #define M_MAC_SPLIT_CH_SEL _SB_MAKEMASK1(45) | 139 | #define M_MAC_SPLIT_CH_SEL _SB_MAKEMASK1(45) |
137 | #endif /* 1250 PASS3 || 112x PASS1 */ | 140 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
138 | 141 | ||
139 | #define S_MAC_BYPASS_IFG _SB_MAKE64(46) | 142 | #define S_MAC_BYPASS_IFG _SB_MAKE64(46) |
140 | #define M_MAC_BYPASS_IFG _SB_MAKEMASK(8,S_MAC_BYPASS_IFG) | 143 | #define M_MAC_BYPASS_IFG _SB_MAKEMASK(8,S_MAC_BYPASS_IFG) |
@@ -176,10 +179,22 @@ | |||
176 | 179 | ||
177 | #define M_MAC_PORT_RESET _SB_MAKEMASK1(8) | 180 | #define M_MAC_PORT_RESET _SB_MAKEMASK1(8) |
178 | 181 | ||
182 | #if (SIBYTE_HDR_FEATURE_CHIP(1250) || SIBYTE_HDR_FEATURE_CHIP(112x)) | ||
179 | #define M_MAC_RX_ENABLE _SB_MAKEMASK1(10) | 183 | #define M_MAC_RX_ENABLE _SB_MAKEMASK1(10) |
180 | #define M_MAC_TX_ENABLE _SB_MAKEMASK1(11) | 184 | #define M_MAC_TX_ENABLE _SB_MAKEMASK1(11) |
181 | #define M_MAC_BYP_RX_ENABLE _SB_MAKEMASK1(12) | 185 | #define M_MAC_BYP_RX_ENABLE _SB_MAKEMASK1(12) |
182 | #define M_MAC_BYP_TX_ENABLE _SB_MAKEMASK1(13) | 186 | #define M_MAC_BYP_TX_ENABLE _SB_MAKEMASK1(13) |
187 | #endif | ||
188 | |||
189 | /* | ||
190 | * MAC reset information register (1280/1255) | ||
191 | */ | ||
192 | #if SIBYTE_HDR_FEATURE_CHIP(1480) | ||
193 | #define M_MAC_RX_CH0_PAUSE_ON _SB_MAKEMASK1(8) | ||
194 | #define M_MAC_RX_CH1_PAUSE_ON _SB_MAKEMASK1(16) | ||
195 | #define M_MAC_TX_CH0_PAUSE_ON _SB_MAKEMASK1(24) | ||
196 | #define M_MAC_TX_CH1_PAUSE_ON _SB_MAKEMASK1(32) | ||
197 | #endif | ||
183 | 198 | ||
184 | /* | 199 | /* |
185 | * MAC DMA Control Register | 200 | * MAC DMA Control Register |
@@ -267,12 +282,12 @@ | |||
267 | #define V_MAC_IFG_RX(x) _SB_MAKEVALUE(x,S_MAC_IFG_RX) | 282 | #define V_MAC_IFG_RX(x) _SB_MAKEVALUE(x,S_MAC_IFG_RX) |
268 | #define G_MAC_IFG_RX(x) _SB_GETVALUE(x,S_MAC_IFG_RX,M_MAC_IFG_RX) | 283 | #define G_MAC_IFG_RX(x) _SB_GETVALUE(x,S_MAC_IFG_RX,M_MAC_IFG_RX) |
269 | 284 | ||
270 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) | 285 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
271 | #define S_MAC_PRE_LEN _SB_MAKE64(0) | 286 | #define S_MAC_PRE_LEN _SB_MAKE64(0) |
272 | #define M_MAC_PRE_LEN _SB_MAKEMASK(6,S_MAC_PRE_LEN) | 287 | #define M_MAC_PRE_LEN _SB_MAKEMASK(6,S_MAC_PRE_LEN) |
273 | #define V_MAC_PRE_LEN(x) _SB_MAKEVALUE(x,S_MAC_PRE_LEN) | 288 | #define V_MAC_PRE_LEN(x) _SB_MAKEVALUE(x,S_MAC_PRE_LEN) |
274 | #define G_MAC_PRE_LEN(x) _SB_GETVALUE(x,S_MAC_PRE_LEN,M_MAC_PRE_LEN) | 289 | #define G_MAC_PRE_LEN(x) _SB_GETVALUE(x,S_MAC_PRE_LEN,M_MAC_PRE_LEN) |
275 | #endif /* 1250 PASS3 || 112x PASS1 */ | 290 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
276 | 291 | ||
277 | #define S_MAC_IFG_TX _SB_MAKE64(6) | 292 | #define S_MAC_IFG_TX _SB_MAKE64(6) |
278 | #define M_MAC_IFG_TX _SB_MAKEMASK(6,S_MAC_IFG_TX) | 293 | #define M_MAC_IFG_TX _SB_MAKEMASK(6,S_MAC_IFG_TX) |
@@ -458,9 +473,9 @@ | |||
458 | #define V_MAC_COUNTER_ADDR(x) _SB_MAKEVALUE(x,S_MAC_COUNTER_ADDR) | 473 | #define V_MAC_COUNTER_ADDR(x) _SB_MAKEVALUE(x,S_MAC_COUNTER_ADDR) |
459 | #define G_MAC_COUNTER_ADDR(x) _SB_GETVALUE(x,S_MAC_COUNTER_ADDR,M_MAC_COUNTER_ADDR) | 474 | #define G_MAC_COUNTER_ADDR(x) _SB_GETVALUE(x,S_MAC_COUNTER_ADDR,M_MAC_COUNTER_ADDR) |
460 | 475 | ||
461 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) | 476 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
462 | #define M_MAC_TX_PAUSE_ON _SB_MAKEMASK1(52) | 477 | #define M_MAC_TX_PAUSE_ON _SB_MAKEMASK1(52) |
463 | #endif /* 1250 PASS3 || 112x PASS1 */ | 478 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
464 | 479 | ||
465 | /* | 480 | /* |
466 | * MAC Fifo Pointer Registers (Table 9-19) [Debug register] | 481 | * MAC Fifo Pointer Registers (Table 9-19) [Debug register] |
@@ -594,7 +609,7 @@ | |||
594 | #define V_MAC_IPHDR_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_IPHDR_OFFSET) | 609 | #define V_MAC_IPHDR_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_IPHDR_OFFSET) |
595 | #define G_MAC_IPHDR_OFFSET(x) _SB_GETVALUE(x,S_MAC_IPHDR_OFFSET,M_MAC_IPHDR_OFFSET) | 610 | #define G_MAC_IPHDR_OFFSET(x) _SB_GETVALUE(x,S_MAC_IPHDR_OFFSET,M_MAC_IPHDR_OFFSET) |
596 | 611 | ||
597 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) | 612 | #if SIBYTE_HDR_FEATURE(1250, PASS3) || SIBYTE_HDR_FEATURE(112x, PASS1) || SIBYTE_HDR_FEATURE_CHIP(1480) |
598 | #define S_MAC_RX_CRC_OFFSET _SB_MAKE64(16) | 613 | #define S_MAC_RX_CRC_OFFSET _SB_MAKE64(16) |
599 | #define M_MAC_RX_CRC_OFFSET _SB_MAKEMASK(8,S_MAC_RX_CRC_OFFSET) | 614 | #define M_MAC_RX_CRC_OFFSET _SB_MAKEMASK(8,S_MAC_RX_CRC_OFFSET) |
600 | #define V_MAC_RX_CRC_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_RX_CRC_OFFSET) | 615 | #define V_MAC_RX_CRC_OFFSET(x) _SB_MAKEVALUE(x,S_MAC_RX_CRC_OFFSET) |
@@ -612,7 +627,7 @@ | |||
612 | #define M_MAC_RX_CH_MSN_SEL _SB_MAKEMASK(8,S_MAC_RX_CH_MSN_SEL) | 627 | #define M_MAC_RX_CH_MSN_SEL _SB_MAKEMASK(8,S_MAC_RX_CH_MSN_SEL) |
613 | #define V_MAC_RX_CH_MSN_SEL(x) _SB_MAKEVALUE(x,S_MAC_RX_CH_MSN_SEL) | 628 | #define V_MAC_RX_CH_MSN_SEL(x) _SB_MAKEVALUE(x,S_MAC_RX_CH_MSN_SEL) |
614 | #define G_MAC_RX_CH_MSN_SEL(x) _SB_GETVALUE(x,S_MAC_RX_CH_MSN_SEL,M_MAC_RX_CH_MSN_SEL) | 629 | #define G_MAC_RX_CH_MSN_SEL(x) _SB_GETVALUE(x,S_MAC_RX_CH_MSN_SEL,M_MAC_RX_CH_MSN_SEL) |
615 | #endif /* 1250 PASS3 || 112x PASS1 */ | 630 | #endif /* 1250 PASS3 || 112x PASS1 || 1480 */ |
616 | 631 | ||
617 | /* | 632 | /* |
618 | * MAC Receive Channel Select Registers (Table 9-25) | 633 | * MAC Receive Channel Select Registers (Table 9-25) |