if_rlreg.h (164811) | if_rlreg.h (166057) |
---|---|
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 164811 2006-12-01 21:52:07Z ru $ | 32 * $FreeBSD: head/sys/pci/if_rlreg.h 166057 2007-01-16 20:35:23Z marius $ |
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 --- 597 unchanged lines hidden (view full) --- 638 * due to the 8139C+. We need to put the number of descriptors in the ring 639 * structure and use that value instead. 640 */ 641#ifndef __NO_STRICT_ALIGNMENT 642#define RE_FIXUP_RX 1 643#endif 644 645#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 --- 597 unchanged lines hidden (view full) --- 638 * due to the 8139C+. We need to put the number of descriptors in the ring 639 * structure and use that value instead. 640 */ 641#ifndef __NO_STRICT_ALIGNMENT 642#define RE_FIXUP_RX 1 643#endif 644 645#define RL_TX_DESC_CNT 64 |
646#define RL_TX_DESC_THLD 4 |
|
646#define RL_RX_DESC_CNT RL_TX_DESC_CNT 647 648#define RL_RX_LIST_SZ (RL_RX_DESC_CNT * sizeof(struct rl_desc)) 649#define RL_TX_LIST_SZ (RL_TX_DESC_CNT * sizeof(struct rl_desc)) 650#define RL_RING_ALIGN 256 651#define RL_IFQ_MAXLEN 512 652#define RL_DESC_INC(x) (x = (x + 1) % RL_TX_DESC_CNT) 653#define RL_OWN(x) (le32toh((x)->rl_cmdstat) & RL_RDESC_STAT_OWN) --- 12 unchanged lines hidden (view full) --- 666 667/* see comment in dev/re/if_re.c */ 668#define RL_JUMBO_FRAMELEN 7440 669#define RL_JUMBO_MTU (RL_JUMBO_FRAMELEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 670 671struct rl_softc; 672 673struct rl_dmaload_arg { | 647#define RL_RX_DESC_CNT RL_TX_DESC_CNT 648 649#define RL_RX_LIST_SZ (RL_RX_DESC_CNT * sizeof(struct rl_desc)) 650#define RL_TX_LIST_SZ (RL_TX_DESC_CNT * sizeof(struct rl_desc)) 651#define RL_RING_ALIGN 256 652#define RL_IFQ_MAXLEN 512 653#define RL_DESC_INC(x) (x = (x + 1) % RL_TX_DESC_CNT) 654#define RL_OWN(x) (le32toh((x)->rl_cmdstat) & RL_RDESC_STAT_OWN) --- 12 unchanged lines hidden (view full) --- 667 668/* see comment in dev/re/if_re.c */ 669#define RL_JUMBO_FRAMELEN 7440 670#define RL_JUMBO_MTU (RL_JUMBO_FRAMELEN-ETHER_HDR_LEN-ETHER_CRC_LEN) 671 672struct rl_softc; 673 674struct rl_dmaload_arg { |
674 struct rl_softc *sc; | |
675 int rl_idx; 676 int rl_maxsegs; 677 uint32_t rl_flags; 678 struct rl_desc *rl_ring; 679}; 680 681struct rl_list_data { 682 struct mbuf *rl_tx_mbuf[RL_TX_DESC_CNT]; --- 302 unchanged lines hidden --- | 675 int rl_idx; 676 int rl_maxsegs; 677 uint32_t rl_flags; 678 struct rl_desc *rl_ring; 679}; 680 681struct rl_list_data { 682 struct mbuf *rl_tx_mbuf[RL_TX_DESC_CNT]; --- 302 unchanged lines hidden --- |