Deleted Added
full compact
if_rlreg.h (135467) if_rlreg.h (135469)
1/*
2 * Copyright (c) 1997, 1998-2003
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

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

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

24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 * THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * $FreeBSD: head/sys/pci/if_rlreg.h 135467 2004-09-19 17:45:56Z jmg $
32 * $FreeBSD: head/sys/pci/if_rlreg.h 135469 2004-09-19 18:16:28Z jmg $
33 */
34
35/*
36 * RealTek 8129/8139 register offsets
37 */
38#define RL_IDR0 0x0000 /* ID register 0 (station addr) */
39#define RL_IDR1 0x0001 /* Must use 32-bit accesses (?) */
40#define RL_IDR2 0x0002

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

604};
605
606/*
607 * Rx/Tx descriptor parameters (8139C+ and 8169 only)
608 *
609 * Tx/Rx count must be equal. Shared code like re_dma_map_desc assumes this.
610 */
611#define RL_TX_DESC_CNT 64
33 */
34
35/*
36 * RealTek 8129/8139 register offsets
37 */
38#define RL_IDR0 0x0000 /* ID register 0 (station addr) */
39#define RL_IDR1 0x0001 /* Must use 32-bit accesses (?) */
40#define RL_IDR2 0x0002

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

604};
605
606/*
607 * Rx/Tx descriptor parameters (8139C+ and 8169 only)
608 *
609 * Tx/Rx count must be equal. Shared code like re_dma_map_desc assumes this.
610 */
611#define RL_TX_DESC_CNT 64
612#define RL_RX_DESC_CNT RL_RX_DESC_CNT
612#define RL_RX_DESC_CNT RL_TX_DESC_CNT
613#define RL_RX_LIST_SZ (RL_RX_DESC_CNT * sizeof(struct rl_desc))
614#define RL_TX_LIST_SZ (RL_TX_DESC_CNT * sizeof(struct rl_desc))
615#define RL_RING_ALIGN 256
616#define RL_IFQ_MAXLEN 512
617#define RL_DESC_INC(x) (x = (x + 1) % RL_TX_DESC_CNT)
618#define RL_OWN(x) (le32toh((x)->rl_cmdstat) & RL_RDESC_STAT_OWN)
619#define RL_RXBYTES(x) (le32toh((x)->rl_cmdstat) & sc->rl_rxlenmask)
620#define RL_PKTSZ(x) ((x)/* >> 3*/)

--- 263 unchanged lines hidden ---
613#define RL_RX_LIST_SZ (RL_RX_DESC_CNT * sizeof(struct rl_desc))
614#define RL_TX_LIST_SZ (RL_TX_DESC_CNT * sizeof(struct rl_desc))
615#define RL_RING_ALIGN 256
616#define RL_IFQ_MAXLEN 512
617#define RL_DESC_INC(x) (x = (x + 1) % RL_TX_DESC_CNT)
618#define RL_OWN(x) (le32toh((x)->rl_cmdstat) & RL_RDESC_STAT_OWN)
619#define RL_RXBYTES(x) (le32toh((x)->rl_cmdstat) & sc->rl_rxlenmask)
620#define RL_PKTSZ(x) ((x)/* >> 3*/)

--- 263 unchanged lines hidden ---