adapter.h (345040) | adapter.h (345664) |
---|---|
1/*- 2 * Copyright (c) 2011 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/*- 2 * Copyright (c) 2011 Chelsio Communications, Inc. 3 * All rights reserved. 4 * Written by: Navdeep Parhar <np@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: stable/11/sys/dev/cxgbe/adapter.h 345040 2019-03-11 23:16:10Z jhb $ | 27 * $FreeBSD: stable/11/sys/dev/cxgbe/adapter.h 345664 2019-03-28 23:43:38Z jhb $ |
28 * 29 */ 30 31#ifndef __T4_ADAPTER_H__ 32#define __T4_ADAPTER_H__ 33 34#include <sys/kernel.h> 35#include <sys/bus.h> 36#include <sys/rman.h> 37#include <sys/types.h> 38#include <sys/lock.h> 39#include <sys/malloc.h> 40#include <sys/rwlock.h> 41#include <sys/sx.h> | 28 * 29 */ 30 31#ifndef __T4_ADAPTER_H__ 32#define __T4_ADAPTER_H__ 33 34#include <sys/kernel.h> 35#include <sys/bus.h> 36#include <sys/rman.h> 37#include <sys/types.h> 38#include <sys/lock.h> 39#include <sys/malloc.h> 40#include <sys/rwlock.h> 41#include <sys/sx.h> |
42#include <sys/vmem.h> |
|
42#include <vm/uma.h> 43 44#include <dev/pci/pcivar.h> 45#include <dev/pci/pcireg.h> 46#include <machine/bus.h> 47#include <sys/socket.h> 48#include <sys/sysctl.h> 49#include <net/ethernet.h> --- 242 unchanged lines hidden (view full) --- 292 293 struct link_config link_cfg; 294 struct ifmedia media; 295 296 struct timeval last_refreshed; 297 struct port_stats stats; 298 u_int tnl_cong_drops; 299 u_int tx_parse_error; | 43#include <vm/uma.h> 44 45#include <dev/pci/pcivar.h> 46#include <dev/pci/pcireg.h> 47#include <machine/bus.h> 48#include <sys/socket.h> 49#include <sys/sysctl.h> 50#include <net/ethernet.h> --- 242 unchanged lines hidden (view full) --- 293 294 struct link_config link_cfg; 295 struct ifmedia media; 296 297 struct timeval last_refreshed; 298 struct port_stats stats; 299 u_int tnl_cong_drops; 300 u_int tx_parse_error; |
301 u_long tx_tls_records; 302 u_long tx_tls_octets; 303 u_long rx_tls_records; 304 u_long rx_tls_octets; |
|
300 301 struct callout tick; 302}; 303 304#define IS_MAIN_VI(vi) ((vi) == &((vi)->pi->vi[0])) 305 306/* Where the cluster came from, how it has been carved up. */ 307struct cluster_layout { --- 492 unchanged lines hidden (view full) --- 800 void *tom_softc; /* (struct tom_data *) */ 801 struct tom_tunables tt; 802 struct iw_tunables iwt; 803 void *iwarp_softc; /* (struct c4iw_dev *) */ 804 void *iscsi_ulp_softc; /* (struct cxgbei_data *) */ 805 void *ccr_softc; /* (struct ccr_softc *) */ 806 struct l2t_data *l2t; /* L2 table */ 807 struct tid_info tids; | 305 306 struct callout tick; 307}; 308 309#define IS_MAIN_VI(vi) ((vi) == &((vi)->pi->vi[0])) 310 311/* Where the cluster came from, how it has been carved up. */ 312struct cluster_layout { --- 492 unchanged lines hidden (view full) --- 805 void *tom_softc; /* (struct tom_data *) */ 806 struct tom_tunables tt; 807 struct iw_tunables iwt; 808 void *iwarp_softc; /* (struct c4iw_dev *) */ 809 void *iscsi_ulp_softc; /* (struct cxgbei_data *) */ 810 void *ccr_softc; /* (struct ccr_softc *) */ 811 struct l2t_data *l2t; /* L2 table */ 812 struct tid_info tids; |
813 vmem_t *key_map; |
|
808 809 uint8_t doorbells; 810 int offload_map; /* ports with IFCAP_TOE enabled */ 811 int active_ulds; /* ULDs activated on this adapter */ 812 int flags; 813 int debug_flags; 814 815 char ifp_lockname[16]; --- 270 unchanged lines hidden (view full) --- 1086int t4_os_find_pci_capability(struct adapter *, int); 1087int t4_os_pci_save_state(struct adapter *); 1088int t4_os_pci_restore_state(struct adapter *); 1089void t4_os_portmod_changed(struct port_info *); 1090void t4_os_link_changed(struct port_info *); 1091void t4_iterate(void (*)(struct adapter *, void *), void *); 1092void t4_init_devnames(struct adapter *); 1093void t4_add_adapter(struct adapter *); | 814 815 uint8_t doorbells; 816 int offload_map; /* ports with IFCAP_TOE enabled */ 817 int active_ulds; /* ULDs activated on this adapter */ 818 int flags; 819 int debug_flags; 820 821 char ifp_lockname[16]; --- 270 unchanged lines hidden (view full) --- 1092int t4_os_find_pci_capability(struct adapter *, int); 1093int t4_os_pci_save_state(struct adapter *); 1094int t4_os_pci_restore_state(struct adapter *); 1095void t4_os_portmod_changed(struct port_info *); 1096void t4_os_link_changed(struct port_info *); 1097void t4_iterate(void (*)(struct adapter *, void *), void *); 1098void t4_init_devnames(struct adapter *); 1099void t4_add_adapter(struct adapter *); |
1100void t4_aes_getdeckey(void *, const void *, unsigned int); |
|
1094int t4_detach_common(device_t); 1095int t4_filter_rpl(struct sge_iq *, const struct rss_header *, struct mbuf *); 1096int t4_map_bars_0_and_4(struct adapter *); 1097int t4_map_bar_2(struct adapter *); 1098int t4_setup_intr_handlers(struct adapter *); 1099void t4_sysctls(struct adapter *); 1100int begin_synchronized_op(struct adapter *, struct vi_info *, int, char *); 1101void doom_vi(struct adapter *, struct vi_info *); --- 102 unchanged lines hidden --- | 1101int t4_detach_common(device_t); 1102int t4_filter_rpl(struct sge_iq *, const struct rss_header *, struct mbuf *); 1103int t4_map_bars_0_and_4(struct adapter *); 1104int t4_map_bar_2(struct adapter *); 1105int t4_setup_intr_handlers(struct adapter *); 1106void t4_sysctls(struct adapter *); 1107int begin_synchronized_op(struct adapter *, struct vi_info *, int, char *); 1108void doom_vi(struct adapter *, struct vi_info *); --- 102 unchanged lines hidden --- |