if_bgereg.h (89835) | if_bgereg.h (92934) |
---|---|
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 89835 2002-01-27 01:00:16Z jdp $ | 33 * $FreeBSD: head/sys/dev/bge/if_bgereg.h 92934 2002-03-22 06:45:40Z wpaul $ |
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 --- 170 unchanged lines hidden (view full) --- 212 213#define BGE_ASICREV_TIGON_I 0x40000000 214#define BGE_ASICREV_TIGON_II 0x60000000 215#define BGE_ASICREV_BCM5700_B0 0x71000000 216#define BGE_ASICREV_BCM5700_B1 0x71020000 217#define BGE_ASICREV_BCM5700_B2 0x71030000 218#define BGE_ASICREV_BCM5700_ALTIMA 0x71040000 219#define BGE_ASICREV_BCM5700_C0 0x72000000 | 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 --- 170 unchanged lines hidden (view full) --- 212 213#define BGE_ASICREV_TIGON_I 0x40000000 214#define BGE_ASICREV_TIGON_II 0x60000000 215#define BGE_ASICREV_BCM5700_B0 0x71000000 216#define BGE_ASICREV_BCM5700_B1 0x71020000 217#define BGE_ASICREV_BCM5700_B2 0x71030000 218#define BGE_ASICREV_BCM5700_ALTIMA 0x71040000 219#define BGE_ASICREV_BCM5700_C0 0x72000000 |
220#define BGE_ASICREV_BCM5701_A0 0x00000000 /* grrrr */ 221#define BGE_ASICREV_BCM5701_B0 0x01000000 222#define BGE_ASICREV_BCM5701_B2 0x01020000 223#define BGE_ASICREV_BCM5701_B5 0x01050000 |
|
220 221/* PCI DMA Read/Write Control register */ 222#define BGE_PCIDMARWCTL_MINDMA 0x000000FF 223#define BGE_PCIDMARWCTL_RDADRR_BNDRY 0x00000700 224#define BGE_PCIDMARWCTL_WRADDR_BNDRY 0x00003800 225#define BGE_PCIDMARWCTL_ONEDMA_ATONCE 0x00004000 226#define BGE_PCIDMARWCTL_RD_WAT 0x00070000 227#define BGE_PCIDMARWCTL_WR_WAT 0x00380000 --- 1876 unchanged lines hidden (view full) --- 2104 bus_space_tag_t bge_btag; 2105 void *bge_intrhand; 2106 struct resource *bge_irq; 2107 struct resource *bge_res; 2108 struct ifmedia bge_ifmedia; /* TBI media info */ 2109 u_int8_t bge_unit; /* interface number */ 2110 u_int8_t bge_extram; /* has external SSRAM */ 2111 u_int8_t bge_tbi; | 224 225/* PCI DMA Read/Write Control register */ 226#define BGE_PCIDMARWCTL_MINDMA 0x000000FF 227#define BGE_PCIDMARWCTL_RDADRR_BNDRY 0x00000700 228#define BGE_PCIDMARWCTL_WRADDR_BNDRY 0x00003800 229#define BGE_PCIDMARWCTL_ONEDMA_ATONCE 0x00004000 230#define BGE_PCIDMARWCTL_RD_WAT 0x00070000 231#define BGE_PCIDMARWCTL_WR_WAT 0x00380000 --- 1876 unchanged lines hidden (view full) --- 2108 bus_space_tag_t bge_btag; 2109 void *bge_intrhand; 2110 struct resource *bge_irq; 2111 struct resource *bge_res; 2112 struct ifmedia bge_ifmedia; /* TBI media info */ 2113 u_int8_t bge_unit; /* interface number */ 2114 u_int8_t bge_extram; /* has external SSRAM */ 2115 u_int8_t bge_tbi; |
2116 u_int32_t bge_asicrev; |
|
2112 struct bge_ring_data *bge_rdata; /* rings */ 2113 struct bge_chain_data bge_cdata; /* mbufs */ 2114 u_int16_t bge_tx_saved_considx; 2115 u_int16_t bge_rx_saved_considx; 2116 u_int16_t bge_ev_saved_considx; 2117 u_int16_t bge_std; /* current std ring head */ 2118 u_int16_t bge_jumbo; /* current jumo ring head */ 2119 SLIST_HEAD(__bge_jfreehead, bge_jpool_entry) bge_jfree_listhead; --- 19 unchanged lines hidden --- | 2117 struct bge_ring_data *bge_rdata; /* rings */ 2118 struct bge_chain_data bge_cdata; /* mbufs */ 2119 u_int16_t bge_tx_saved_considx; 2120 u_int16_t bge_rx_saved_considx; 2121 u_int16_t bge_ev_saved_considx; 2122 u_int16_t bge_std; /* current std ring head */ 2123 u_int16_t bge_jumbo; /* current jumo ring head */ 2124 SLIST_HEAD(__bge_jfreehead, bge_jpool_entry) bge_jfree_listhead; --- 19 unchanged lines hidden --- |