common.h (269082) | common.h (270297) |
---|---|
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: stable/10/sys/dev/cxgbe/common/common.h 269082 2014-07-25 00:30:55Z np $ | 26 * $FreeBSD: stable/10/sys/dev/cxgbe/common/common.h 270297 2014-08-21 19:54:02Z 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, --- 32 unchanged lines hidden (view full) --- 609 unsigned int vf, unsigned int eqid); 610int t4_sge_ctxt_rd(struct adapter *adap, unsigned int mbox, unsigned int cid, 611 enum ctxt_type ctype, u32 *data); 612int t4_sge_ctxt_rd_bd(struct adapter *adap, unsigned int cid, enum ctxt_type ctype, 613 u32 *data); 614int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox); 615int t4_handle_fw_rpl(struct adapter *adap, const __be64 *rpl); 616int t4_fwaddrspace_write(struct adapter *adap, unsigned int mbox, u32 addr, u32 val); | 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, --- 32 unchanged lines hidden (view full) --- 609 unsigned int vf, unsigned int eqid); 610int t4_sge_ctxt_rd(struct adapter *adap, unsigned int mbox, unsigned int cid, 611 enum ctxt_type ctype, u32 *data); 612int t4_sge_ctxt_rd_bd(struct adapter *adap, unsigned int cid, enum ctxt_type ctype, 613 u32 *data); 614int t4_sge_ctxt_flush(struct adapter *adap, unsigned int mbox); 615int t4_handle_fw_rpl(struct adapter *adap, const __be64 *rpl); 616int t4_fwaddrspace_write(struct adapter *adap, unsigned int mbox, u32 addr, u32 val); |
617int t4_sched_config(struct adapter *adapter, int type, int minmaxen); | 617int t4_sched_config(struct adapter *adapter, int type, int minmaxen, 618 int sleep_ok); |
618int t4_sched_params(struct adapter *adapter, int type, int level, int mode, 619 int rateunit, int ratemode, int channel, int cl, | 619int t4_sched_params(struct adapter *adapter, int type, int level, int mode, 620 int rateunit, int ratemode, int channel, int cl, |
620 int minrate, int maxrate, int weight, int pktsize); | 621 int minrate, int maxrate, int weight, int pktsize, 622 int sleep_ok); |
621#endif /* __CHELSIO_COMMON_H */ | 623#endif /* __CHELSIO_COMMON_H */ |