Deleted Added
full compact
if_bgereg.h (226820) if_bgereg.h (226821)
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 226820 2011-10-26 23:22:32Z yongari $
33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 226821 2011-10-26 23:52:02Z yongari $
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

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

72#define BGE_STATUS_BLOCK 0x00000B00
73#define BGE_STATUS_BLOCK_END 0x00000B4F
74#define BGE_SRAM_FW_MB 0x00000B50
75#define BGE_SRAM_DATA_SIG 0x00000B54
76#define BGE_SRAM_DATA_CFG 0x00000B58
77#define BGE_SRAM_FW_CMD_MB 0x00000B78
78#define BGE_SRAM_FW_CMD_LEN_MB 0x00000B7C
79#define BGE_SRAM_FW_CMD_DATA_MB 0x00000B80
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

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

72#define BGE_STATUS_BLOCK 0x00000B00
73#define BGE_STATUS_BLOCK_END 0x00000B4F
74#define BGE_SRAM_FW_MB 0x00000B50
75#define BGE_SRAM_DATA_SIG 0x00000B54
76#define BGE_SRAM_DATA_CFG 0x00000B58
77#define BGE_SRAM_FW_CMD_MB 0x00000B78
78#define BGE_SRAM_FW_CMD_LEN_MB 0x00000B7C
79#define BGE_SRAM_FW_CMD_DATA_MB 0x00000B80
80#define BGE_SRAM_FW_DRV_STATE_MB 0x00000C04
80#define BGE_SRAM_MAC_ADDR_HIGH_MB 0x00000C14
81#define BGE_SRAM_MAC_ADDR_LOW_MB 0x00000C18
82#define BGE_SOFTWARE_GENCOMM_END 0x00000FFF
83#define BGE_UNMAPPED 0x00001000
84#define BGE_UNMAPPED_END 0x00001FFF
85#define BGE_DMA_DESCRIPTORS 0x00002000
86#define BGE_DMA_DESCRIPTORS_END 0x00003FFF
87#define BGE_SEND_RING_5717 0x00004000
88#define BGE_SEND_RING_1_TO_4 0x00004000
89#define BGE_SEND_RING_1_TO_4_END 0x00005FFF
90
91/* Firmware interface */
92#define BGE_SRAM_DATA_SIG_MAGIC 0x4B657654 /* 'KevT' */
93#define BGE_FW_DRV_ALIVE 0x00000001
94#define BGE_FW_PAUSE 0x00000002
95
81#define BGE_SRAM_MAC_ADDR_HIGH_MB 0x00000C14
82#define BGE_SRAM_MAC_ADDR_LOW_MB 0x00000C18
83#define BGE_SOFTWARE_GENCOMM_END 0x00000FFF
84#define BGE_UNMAPPED 0x00001000
85#define BGE_UNMAPPED_END 0x00001FFF
86#define BGE_DMA_DESCRIPTORS 0x00002000
87#define BGE_DMA_DESCRIPTORS_END 0x00003FFF
88#define BGE_SEND_RING_5717 0x00004000
89#define BGE_SEND_RING_1_TO_4 0x00004000
90#define BGE_SEND_RING_1_TO_4_END 0x00005FFF
91
92/* Firmware interface */
93#define BGE_SRAM_DATA_SIG_MAGIC 0x4B657654 /* 'KevT' */
94#define BGE_FW_DRV_ALIVE 0x00000001
95#define BGE_FW_PAUSE 0x00000002
96
97#define BGE_FW_DRV_STATE_START 0x00000001
98#define BGE_FW_DRV_STATE_START_DONE 0x80000001
99#define BGE_FW_DRV_STATE_UNLOAD 0x00000002
100#define BGE_FW_DRV_STATE_UNLOAD_DONE 0x80000002
101#define BGE_FW_DRV_STATE_WOL 0x00000003
102#define BGE_FW_DRV_STATE_SUSPEND 0x00000004
103
96/* Mappings for internal memory configuration */
97#define BGE_STD_RX_RINGS 0x00006000
98#define BGE_STD_RX_RINGS_END 0x00006FFF
99#define BGE_JUMBO_RX_RINGS 0x00007000
100#define BGE_JUMBO_RX_RINGS_END 0x00007FFF
101#define BGE_BUFFPOOL_1 0x00008000
102#define BGE_BUFFPOOL_1_END 0x0000FFFF
103#define BGE_BUFFPOOL_2 0x00010000 /* or expansion ROM */

--- 2756 unchanged lines hidden ---
104/* Mappings for internal memory configuration */
105#define BGE_STD_RX_RINGS 0x00006000
106#define BGE_STD_RX_RINGS_END 0x00006FFF
107#define BGE_JUMBO_RX_RINGS 0x00007000
108#define BGE_JUMBO_RX_RINGS_END 0x00007FFF
109#define BGE_BUFFPOOL_1 0x00008000
110#define BGE_BUFFPOOL_1_END 0x0000FFFF
111#define BGE_BUFFPOOL_2 0x00010000 /* or expansion ROM */

--- 2756 unchanged lines hidden ---