Deleted Added
full compact
if_bmreg.h (180233) if_bmreg.h (226995)
1/*
2 * Copyright 1991-1998 by Open Software Foundation, Inc.
3 * All Rights Reserved
4 *
5 * Permission to use, copy, modify, and distribute this software and
6 * its documentation for any purpose and without fee is hereby granted,
7 * provided that the above copyright notice appears in all copies and
8 * that both the copyright notice and this permission notice appear in

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

39 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
41 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
42 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
43 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
44 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * SUCH DAMAGE.
46 *
1/*
2 * Copyright 1991-1998 by Open Software Foundation, Inc.
3 * All Rights Reserved
4 *
5 * Permission to use, copy, modify, and distribute this software and
6 * its documentation for any purpose and without fee is hereby granted,
7 * provided that the above copyright notice appears in all copies and
8 * that both the copyright notice and this permission notice appear in

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

39 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
40 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
41 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
42 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
43 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
44 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * SUCH DAMAGE.
46 *
47 * $FreeBSD: head/sys/dev/bm/if_bmreg.h 180233 2008-07-03 21:51:30Z nwhitehorn $
47 * $FreeBSD: head/sys/dev/bm/if_bmreg.h 226995 2011-11-01 16:13:59Z marius $
48 */
49
50/*
51 * BMAC resource indices
52 */
53
54#define BM_MAIN_REGISTERS 0
55#define BM_TXDMA_REGISTERS 1

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

124 * MII control register bits
125 */
126#define BM_MII_CLK 0x0001 /* MDIO clock */
127#define BM_MII_DATAOUT 0x0002 /* MDIO data out */
128#define BM_MII_OENABLE 0x0004 /* MDIO output enable */
129#define BM_MII_DATAIN 0x0008 /* MDIO data in */
130
131/*
48 */
49
50/*
51 * BMAC resource indices
52 */
53
54#define BM_MAIN_REGISTERS 0
55#define BM_TXDMA_REGISTERS 1

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

124 * MII control register bits
125 */
126#define BM_MII_CLK 0x0001 /* MDIO clock */
127#define BM_MII_DATAOUT 0x0002 /* MDIO data out */
128#define BM_MII_OENABLE 0x0004 /* MDIO output enable */
129#define BM_MII_DATAIN 0x0008 /* MDIO data in */
130
131/*
132 * MII constants
133 */
134#define BM_MII_STARTDELIM 0x01
135#define BM_MII_READOP 0x02
136#define BM_MII_WRITEOP 0x01
137#define BM_MII_TURNAROUND 0x02
138
139/*
140 * Various flags
141 */
142
143#define BM_ENABLE 0x0001
144
145#define BM_CRC_ENABLE 0x0100
146#define BM_HASH_FILTER_ENABLE 0x0200
147#define BM_REJECT_OWN_PKTS 0x0800

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

169
170#define CSR_READ_4(sc, reg) \
171 bus_read_4(sc->sc_memr, reg)
172#define CSR_READ_2(sc, reg) \
173 bus_read_2(sc->sc_memr, reg)
174#define CSR_READ_1(sc, reg) \
175 bus_read_1(sc->sc_memr, reg)
176
132 * Various flags
133 */
134
135#define BM_ENABLE 0x0001
136
137#define BM_CRC_ENABLE 0x0100
138#define BM_HASH_FILTER_ENABLE 0x0200
139#define BM_REJECT_OWN_PKTS 0x0800

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

161
162#define CSR_READ_4(sc, reg) \
163 bus_read_4(sc->sc_memr, reg)
164#define CSR_READ_2(sc, reg) \
165 bus_read_2(sc->sc_memr, reg)
166#define CSR_READ_1(sc, reg) \
167 bus_read_1(sc->sc_memr, reg)
168
169#define CSR_BARRIER(sc, reg, length, flags) \
170 bus_barrier(sc->sc_memr, reg, length, flags)