Deleted Added
full compact
qla_hw.h (227064) qla_hw.h (250340)
1/*
1/*
2 * Copyright (c) 2010-2011 Qlogic Corporation
2 * Copyright (c) 2011-2013 Qlogic Corporation
3 * 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 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

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

19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 *
3 * 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 *
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

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

19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25 * POSSIBILITY OF SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/qlxgb/qla_hw.h 227064 2011-11-03 21:20:22Z bz $
27 * $FreeBSD: head/sys/dev/qlxgb/qla_hw.h 250340 2013-05-07 22:58:42Z davidcs $
28 */
29/*
30 * File: qla_hw.h
31 * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656.
32 */
33#ifndef _QLA_HW_H_
34#define _QLA_HW_H_
35

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

719 struct lro_ctrl lro;
720 void *rxb_free;
721 uint32_t rx_free;
722 void *rxjb_free;
723 uint32_t rxj_free;
724 volatile uint32_t rcv_active;
725} qla_sds_t;
726
28 */
29/*
30 * File: qla_hw.h
31 * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656.
32 */
33#ifndef _QLA_HW_H_
34#define _QLA_HW_H_
35

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

719 struct lro_ctrl lro;
720 void *rxb_free;
721 uint32_t rx_free;
722 void *rxjb_free;
723 uint32_t rxj_free;
724 volatile uint32_t rcv_active;
725} qla_sds_t;
726
727#define QL_FRAME_HDR_SIZE (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN +\
728 sizeof (struct ip) + sizeof (struct tcphdr) + 16)
727/*
728 * struct for storing hardware specific information for a given interface
729 */
730typedef struct _qla_hw {
731 struct {
732 uint32_t
733 lro :1,
734 init_tx_cnxt :1,

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

786 volatile int32_t rxj_in; /* next jumbo rcv ring to add mbufs */
787
788 q80_rcv_cntxt_req_t *rx_cntxt_req; /* Rcv Context Request */
789 bus_addr_t rx_cntxt_req_paddr;
790 q80_rcv_cntxt_rsp_t *rx_cntxt_rsp; /* Rcv Context Response */
791 bus_addr_t rx_cntxt_rsp_paddr;
792
793 qla_sds_t sds[MAX_SDS_RINGS];
729/*
730 * struct for storing hardware specific information for a given interface
731 */
732typedef struct _qla_hw {
733 struct {
734 uint32_t
735 lro :1,
736 init_tx_cnxt :1,

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

788 volatile int32_t rxj_in; /* next jumbo rcv ring to add mbufs */
789
790 q80_rcv_cntxt_req_t *rx_cntxt_req; /* Rcv Context Request */
791 bus_addr_t rx_cntxt_req_paddr;
792 q80_rcv_cntxt_rsp_t *rx_cntxt_rsp; /* Rcv Context Response */
793 bus_addr_t rx_cntxt_rsp_paddr;
794
795 qla_sds_t sds[MAX_SDS_RINGS];
796
797 uint8_t frame_hdr[QL_FRAME_HDR_SIZE];
794} qla_hw_t;
795
796#define QL_UPDATE_RDS_PRODUCER_INDEX(ha, i, val) \
797 WRITE_REG32(ha, ((ha->hw.rx_cntxt_rsp)->rds_rsp[i].producer_reg +\
798 0x1b2000), val)
799
800#define QL_UPDATE_TX_PRODUCER_INDEX(ha, val) \
801 WRITE_REG32(ha, (ha->hw.tx_prod_reg + 0x1b2000), val)

--- 30 unchanged lines hidden ---
798} qla_hw_t;
799
800#define QL_UPDATE_RDS_PRODUCER_INDEX(ha, i, val) \
801 WRITE_REG32(ha, ((ha->hw.rx_cntxt_rsp)->rds_rsp[i].producer_reg +\
802 0x1b2000), val)
803
804#define QL_UPDATE_TX_PRODUCER_INDEX(ha, val) \
805 WRITE_REG32(ha, (ha->hw.tx_prod_reg + 0x1b2000), val)

--- 30 unchanged lines hidden ---