Deleted Added
full compact
if_bgereg.h (164888) if_bgereg.h (165114)
1/*-
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2001
4 * Bill Paul <wpaul@windriver.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 16 unchanged lines hidden (view full) ---

25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 *
1/*-
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2001
4 * Bill Paul <wpaul@windriver.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 16 unchanged lines hidden (view full) ---

25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 164888 2006-12-04 22:12:21Z jkim $
33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 165114 2006-12-12 05:11:12Z scottl $
34 */
35
36/*
37 * BCM570x memory map. The internal memory layout varies somewhat
38 * depending on whether or not we have external SSRAM attached.
39 * The BCM5700 can have up to 16MB of external memory. The BCM5701
40 * is apparently not designed to use external SSRAM. The mappings
41 * up to the first 4 send rings are the same for both internal and

--- 224 unchanged lines hidden (view full) ---

266#define BGE_CHIPID_BCM5714_A0 0x50000000
267#define BGE_CHIPID_BCM5752_A0 0x60000000
268#define BGE_CHIPID_BCM5752_A1 0x60010000
269#define BGE_CHIPID_BCM5752_A2 0x60020000
270#define BGE_CHIPID_BCM5714_B0 0x80000000
271#define BGE_CHIPID_BCM5714_B3 0x80030000
272#define BGE_CHIPID_BCM5715_A0 0x90000000
273#define BGE_CHIPID_BCM5715_A1 0x90010000
34 */
35
36/*
37 * BCM570x memory map. The internal memory layout varies somewhat
38 * depending on whether or not we have external SSRAM attached.
39 * The BCM5700 can have up to 16MB of external memory. The BCM5701
40 * is apparently not designed to use external SSRAM. The mappings
41 * up to the first 4 send rings are the same for both internal and

--- 224 unchanged lines hidden (view full) ---

266#define BGE_CHIPID_BCM5714_A0 0x50000000
267#define BGE_CHIPID_BCM5752_A0 0x60000000
268#define BGE_CHIPID_BCM5752_A1 0x60010000
269#define BGE_CHIPID_BCM5752_A2 0x60020000
270#define BGE_CHIPID_BCM5714_B0 0x80000000
271#define BGE_CHIPID_BCM5714_B3 0x80030000
272#define BGE_CHIPID_BCM5715_A0 0x90000000
273#define BGE_CHIPID_BCM5715_A1 0x90010000
274#define BGE_CHIPID_BCM5755_A0 0xa0000000
275#define BGE_CHIPID_BCM5755_A1 0xa0010000
276#define BGE_CHIPID_BCM5755_A2 0xa0020000
277#define BGE_CHIPID_BCM5754_A0 0xb0000000
278#define BGE_CHIPID_BCM5754_A1 0xb0010000
279#define BGE_CHIPID_BCM5754_A2 0xb0020000
280#define BGE_CHIPID_BCM5787_A0 0xb0000000
281#define BGE_CHIPID_BCM5787_A1 0xb0010000
282#define BGE_CHIPID_BCM5787_A2 0xb0020000
274
275/* shorthand one */
276#define BGE_ASICREV(x) ((x) >> 28)
277#define BGE_ASICREV_BCM5701 0x00
278#define BGE_ASICREV_BCM5703 0x01
279#define BGE_ASICREV_BCM5704 0x02
280#define BGE_ASICREV_BCM5705 0x03
281#define BGE_ASICREV_BCM5750 0x04
282#define BGE_ASICREV_BCM5714_A0 0x05
283#define BGE_ASICREV_BCM5752 0x06
284#define BGE_ASICREV_BCM5700 0x07
285#define BGE_ASICREV_BCM5780 0x08
286#define BGE_ASICREV_BCM5714 0x09
287#define BGE_ASICREV_BCM5755 0x0a
283
284/* shorthand one */
285#define BGE_ASICREV(x) ((x) >> 28)
286#define BGE_ASICREV_BCM5701 0x00
287#define BGE_ASICREV_BCM5703 0x01
288#define BGE_ASICREV_BCM5704 0x02
289#define BGE_ASICREV_BCM5705 0x03
290#define BGE_ASICREV_BCM5750 0x04
291#define BGE_ASICREV_BCM5714_A0 0x05
292#define BGE_ASICREV_BCM5752 0x06
293#define BGE_ASICREV_BCM5700 0x07
294#define BGE_ASICREV_BCM5780 0x08
295#define BGE_ASICREV_BCM5714 0x09
296#define BGE_ASICREV_BCM5755 0x0a
297#define BGE_ASICREV_BCM5754 0x0b
288#define BGE_ASICREV_BCM5787 0x0b
289
290/* chip revisions */
291#define BGE_CHIPREV(x) ((x) >> 24)
292#define BGE_CHIPREV_5700_AX 0x70
293#define BGE_CHIPREV_5700_BX 0x71
294#define BGE_CHIPREV_5700_CX 0x72
295#define BGE_CHIPREV_5701_AX 0x00

--- 1360 unchanged lines hidden (view full) ---

1656#define BGE_MISC_CFG 0x6804
1657#define BGE_MISC_LOCAL_CTL 0x6808
1658#define BGE_CPU_EVENT 0x6810
1659#define BGE_EE_ADDR 0x6838
1660#define BGE_EE_DATA 0x683C
1661#define BGE_EE_CTL 0x6840
1662#define BGE_MDI_CTL 0x6844
1663#define BGE_EE_DELAY 0x6848
298#define BGE_ASICREV_BCM5787 0x0b
299
300/* chip revisions */
301#define BGE_CHIPREV(x) ((x) >> 24)
302#define BGE_CHIPREV_5700_AX 0x70
303#define BGE_CHIPREV_5700_BX 0x71
304#define BGE_CHIPREV_5700_CX 0x72
305#define BGE_CHIPREV_5701_AX 0x00

--- 1360 unchanged lines hidden (view full) ---

1666#define BGE_MISC_CFG 0x6804
1667#define BGE_MISC_LOCAL_CTL 0x6808
1668#define BGE_CPU_EVENT 0x6810
1669#define BGE_EE_ADDR 0x6838
1670#define BGE_EE_DATA 0x683C
1671#define BGE_EE_CTL 0x6840
1672#define BGE_MDI_CTL 0x6844
1673#define BGE_EE_DELAY 0x6848
1674#define BGE_FASTBOOT_PC 0x6894
1664
1665/* Mode control register */
1666#define BGE_MODECTL_INT_SNDCOAL_ONLY 0x00000001
1667#define BGE_MODECTL_BYTESWAP_NONFRAME 0x00000002
1668#define BGE_MODECTL_WORDSWAP_NONFRAME 0x00000004
1669#define BGE_MODECTL_BYTESWAP_DATA 0x00000010
1670#define BGE_MODECTL_WORDSWAP_DATA 0x00000020
1671#define BGE_MODECTL_NO_FRAME_CRACKING 0x00000200

--- 839 unchanged lines hidden ---
1675
1676/* Mode control register */
1677#define BGE_MODECTL_INT_SNDCOAL_ONLY 0x00000001
1678#define BGE_MODECTL_BYTESWAP_NONFRAME 0x00000002
1679#define BGE_MODECTL_WORDSWAP_NONFRAME 0x00000004
1680#define BGE_MODECTL_BYTESWAP_DATA 0x00000010
1681#define BGE_MODECTL_WORDSWAP_DATA 0x00000020
1682#define BGE_MODECTL_NO_FRAME_CRACKING 0x00000200

--- 839 unchanged lines hidden ---