Deleted Added
full compact
common.h (259382) common.h (266757)
1/*-
2 * Copyright (c) 2011 Chelsio Communications, Inc.
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 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2011 Chelsio Communications, Inc.
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 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/cxgbe/common/common.h 259382 2013-12-14 03:08:03Z np $
26 * $FreeBSD: head/sys/dev/cxgbe/common/common.h 266757 2014-05-27 18:18:41Z np $
27 *
28 */
29
30#ifndef __CHELSIO_COMMON_H
31#define __CHELSIO_COMMON_H
32
33#include "t4_hw.h"
34

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

556 const u32 *val);
557int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf,
558 unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl,
559 unsigned int rxqi, unsigned int rxq, unsigned int tc,
560 unsigned int vi, unsigned int cmask, unsigned int pmask,
561 unsigned int exactf, unsigned int rcaps, unsigned int wxcaps);
562int t4_alloc_vi_func(struct adapter *adap, unsigned int mbox,
563 unsigned int port, unsigned int pf, unsigned int vf,
27 *
28 */
29
30#ifndef __CHELSIO_COMMON_H
31#define __CHELSIO_COMMON_H
32
33#include "t4_hw.h"
34

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

556 const u32 *val);
557int t4_cfg_pfvf(struct adapter *adap, unsigned int mbox, unsigned int pf,
558 unsigned int vf, unsigned int txq, unsigned int txq_eth_ctrl,
559 unsigned int rxqi, unsigned int rxq, unsigned int tc,
560 unsigned int vi, unsigned int cmask, unsigned int pmask,
561 unsigned int exactf, unsigned int rcaps, unsigned int wxcaps);
562int t4_alloc_vi_func(struct adapter *adap, unsigned int mbox,
563 unsigned int port, unsigned int pf, unsigned int vf,
564 unsigned int nmac, u8 *mac, unsigned int *rss_size,
564 unsigned int nmac, u8 *mac, u16 *rss_size,
565 unsigned int portfunc, unsigned int idstype);
566int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port,
567 unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac,
565 unsigned int portfunc, unsigned int idstype);
566int t4_alloc_vi(struct adapter *adap, unsigned int mbox, unsigned int port,
567 unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac,
568 unsigned int *rss_size);
568 u16 *rss_size);
569int t4_free_vi(struct adapter *adap, unsigned int mbox,
570 unsigned int pf, unsigned int vf,
571 unsigned int viid);
572int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid,
573 int mtu, int promisc, int all_multi, int bcast, int vlanex,
574 bool sleep_ok);
575int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox, unsigned int viid,
576 bool free, unsigned int naddr, const u8 **addr, u16 *idx,
577 u64 *hash, bool sleep_ok);
578int t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
579 int idx, const u8 *addr, bool persist, bool add_smt);
580int t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid,
581 bool ucast, u64 vec, bool sleep_ok);
582int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid,
583 bool rx_en, bool tx_en);
569int t4_free_vi(struct adapter *adap, unsigned int mbox,
570 unsigned int pf, unsigned int vf,
571 unsigned int viid);
572int t4_set_rxmode(struct adapter *adap, unsigned int mbox, unsigned int viid,
573 int mtu, int promisc, int all_multi, int bcast, int vlanex,
574 bool sleep_ok);
575int t4_alloc_mac_filt(struct adapter *adap, unsigned int mbox, unsigned int viid,
576 bool free, unsigned int naddr, const u8 **addr, u16 *idx,
577 u64 *hash, bool sleep_ok);
578int t4_change_mac(struct adapter *adap, unsigned int mbox, unsigned int viid,
579 int idx, const u8 *addr, bool persist, bool add_smt);
580int t4_set_addr_hash(struct adapter *adap, unsigned int mbox, unsigned int viid,
581 bool ucast, u64 vec, bool sleep_ok);
582int t4_enable_vi(struct adapter *adap, unsigned int mbox, unsigned int viid,
583 bool rx_en, bool tx_en);
584int t4_enable_vi_ns(struct adapter *adap, unsigned int mbox, unsigned int viid,
585 bool rx_en, bool tx_en);
584int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid,
585 unsigned int nblinks);
586int t4_i2c_rd(struct adapter *adap, unsigned int mbox, unsigned int port_id,
587 u8 dev_addr, u8 offset, u8 *valp);
588int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
589 unsigned int mmd, unsigned int reg, unsigned int *valp);
590int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
591 unsigned int mmd, unsigned int reg, unsigned int val);

--- 24 unchanged lines hidden ---
586int t4_identify_port(struct adapter *adap, unsigned int mbox, unsigned int viid,
587 unsigned int nblinks);
588int t4_i2c_rd(struct adapter *adap, unsigned int mbox, unsigned int port_id,
589 u8 dev_addr, u8 offset, u8 *valp);
590int t4_mdio_rd(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
591 unsigned int mmd, unsigned int reg, unsigned int *valp);
592int t4_mdio_wr(struct adapter *adap, unsigned int mbox, unsigned int phy_addr,
593 unsigned int mmd, unsigned int reg, unsigned int val);

--- 24 unchanged lines hidden ---