Linux Kernel
3.7.1
|
#include <linux/netdevice.h>
#include <linux/inetdevice.h>
#include <linux/spinlock.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/workqueue.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <linux/crc32c.h>
#include <rdma/ib_smi.h>
#include <rdma/ib_verbs.h>
#include <rdma/ib_pack.h>
#include <rdma/rdma_cm.h>
#include <rdma/iw_cm.h>
#include "nes_hw.h"
#include "nes_verbs.h"
#include "nes_context.h"
#include "nes_user.h"
#include "nes_cm.h"
#include "nes_mgt.h"
Go to the source code of this file.
Data Structures | |
struct | nes_device |
struct | nes_rskb_cb |
Macros | |
#define | NES_SEND_FIRST_WRITE |
#define | QUEUE_DISCONNECTS |
#define | DRV_NAME "iw_nes" |
#define | DRV_VERSION "1.5.0.1" |
#define | PFX DRV_NAME ": " |
#define | PCI_VENDOR_ID_NETEFFECT 0x1678 |
#define | PCI_DEVICE_ID_NETEFFECT_NE020 0x0100 |
#define | PCI_DEVICE_ID_NETEFFECT_NE020_KR 0x0110 |
#define | NE020_REV 4 |
#define | NE020_REV1 5 |
#define | BAR_0 0 |
#define | BAR_1 2 |
#define | RX_BUF_SIZE (1536 + 8) |
#define | NES_REG0_SIZE (4 * 1024) |
#define | NES_TX_TIMEOUT (6*HZ) |
#define | NES_FIRST_QPN 64 |
#define | NES_SW_CONTEXT_ALIGN 1024 |
#define | NES_NIC_MAX_NICS 16 |
#define | NES_MAX_ARP_TABLE_SIZE 4096 |
#define | NES_NIC_CEQ_SIZE 8 |
#define | NES_CCEQ_SIZE ((nesadapter->max_cq / nesadapter->port_count) - 32) |
#define | NES_MAX_PORT_COUNT 4 |
#define | MAX_DPC_ITERATIONS 128 |
#define | NES_DRV_OPT_ENABLE_MPA_VER_0 0x00000001 |
#define | NES_DRV_OPT_DISABLE_MPA_CRC 0x00000002 |
#define | NES_DRV_OPT_DISABLE_FIRST_WRITE 0x00000004 |
#define | NES_DRV_OPT_DISABLE_INTF 0x00000008 |
#define | NES_DRV_OPT_ENABLE_MSI 0x00000010 |
#define | NES_DRV_OPT_DUAL_LOGICAL_PORT 0x00000020 |
#define | NES_DRV_OPT_SUPRESS_OPTION_BC 0x00000040 |
#define | NES_DRV_OPT_NO_INLINE_DATA 0x00000080 |
#define | NES_DRV_OPT_DISABLE_INT_MOD 0x00000100 |
#define | NES_DRV_OPT_DISABLE_VIRT_WQ 0x00000200 |
#define | NES_DRV_OPT_ENABLE_PAU 0x00000400 |
#define | NES_AEQ_EVENT_TIMEOUT 2500 |
#define | NES_DISCONNECT_EVENT_TIMEOUT 2000 |
#define | NES_DBG_HW 0x00000001 |
#define | NES_DBG_INIT 0x00000002 |
#define | NES_DBG_ISR 0x00000004 |
#define | NES_DBG_PHY 0x00000008 |
#define | NES_DBG_NETDEV 0x00000010 |
#define | NES_DBG_CM 0x00000020 |
#define | NES_DBG_CM1 0x00000040 |
#define | NES_DBG_NIC_RX 0x00000080 |
#define | NES_DBG_NIC_TX 0x00000100 |
#define | NES_DBG_CQP 0x00000200 |
#define | NES_DBG_MMAP 0x00000400 |
#define | NES_DBG_MR 0x00000800 |
#define | NES_DBG_PD 0x00001000 |
#define | NES_DBG_CQ 0x00002000 |
#define | NES_DBG_QP 0x00004000 |
#define | NES_DBG_MOD_QP 0x00008000 |
#define | NES_DBG_AEQ 0x00010000 |
#define | NES_DBG_IW_RX 0x00020000 |
#define | NES_DBG_IW_TX 0x00040000 |
#define | NES_DBG_SHUTDOWN 0x00080000 |
#define | NES_DBG_PAU 0x00100000 |
#define | NES_DBG_RSVD1 0x10000000 |
#define | NES_DBG_RSVD2 0x20000000 |
#define | NES_DBG_RSVD3 0x40000000 |
#define | NES_DBG_RSVD4 0x80000000 |
#define | NES_DBG_ALL 0xffffffff |
#define | nes_debug(level, fmt, args...) |
#define | assert(expr) do {} while (0) |
#define | NES_EVENT_TIMEOUT 100000 |
#define | max_frame_len (max_mtu+ETH_HLEN) |
Enumerations | |
enum | nes_resource { NES_RESOURCE_MW = 1, NES_RESOURCE_FAST_MR, NES_RESOURCE_PHYS_MR, NES_RESOURCE_USER_MR, NES_RESOURCE_PD, NES_RESOURCE_QP, NES_RESOURCE_CQ, NES_RESOURCE_ARP } |
#define NES_CCEQ_SIZE ((nesadapter->max_cq / nesadapter->port_count) - 32) |
enum nes_resource |
nes_arp_table
Definition at line 683 of file nes_utils.c.
nes_clc
Definition at line 883 of file nes_utils.c.
void* nes_cm_create | ( | struct net_device * | ) |
int nes_cm_recv | ( | struct sk_buff * | skb, |
struct net_device * | netdevice | ||
) |
void nes_destroy_adapter | ( | struct nes_adapter * | nesadapter | ) |
int nes_destroy_cqp | ( | struct nes_device * | nesdev | ) |
void nes_destroy_ofa_device | ( | struct nes_ib_device * | nesibdev | ) |
nes_destroy_ofa_device
Definition at line 3974 of file nes_verbs.c.
nes_dump_mem
Definition at line 904 of file nes_utils.c.
void nes_free_cqp_request | ( | struct nes_device * | nesdev, |
struct nes_cqp_request * | cqp_request | ||
) |
Definition at line 598 of file nes_utils.c.
|
read |
nes_get_cqp_request
Definition at line 561 of file nes_utils.c.
int nes_hw_modify_qp | ( | struct nes_device * | nesdev, |
struct nes_qp * | nesqp, | ||
u32 | next_iwarp_state, | ||
u32 | termlen, | ||
u32 | wait_completion | ||
) |
nes_hw_modify_qp
Definition at line 2836 of file nes_verbs.c.
|
read |
int nes_init_cqp | ( | struct nes_device * | nesdev | ) |
int nes_init_nic_qp | ( | struct nes_device * | nesdev, |
struct net_device * | netdev | ||
) |
|
read |
nes_init_ofa_device
Definition at line 3824 of file nes_verbs.c.
int nes_init_phy | ( | struct nes_device * | nesdev | ) |
void nes_iwarp_ce_handler | ( | struct nes_device * | nesdev, |
struct nes_hw_cq * | hw_cq | ||
) |
int nes_manage_apbvt | ( | struct nes_vnic * | nesvnic, |
u32 | accel_local_port, | ||
u32 | nic_index, | ||
u32 | add_port | ||
) |
nes_mh_fix
Definition at line 742 of file nes_utils.c.
int nes_modify_qp | ( | struct ib_qp * | ibqp, |
struct ib_qp_attr * | attr, | ||
int | attr_mask, | ||
struct ib_udata * | udata | ||
) |
nes_modify_qp
Definition at line 2913 of file nes_verbs.c.
int nes_napi_isr | ( | struct nes_device * | nesdev | ) |
void nes_netdev_destroy | ( | struct net_device * | netdev | ) |
|
read |
void nes_nic_ce_handler | ( | struct nes_device * | nesdev, |
struct nes_hw_nic_cq * | cq | ||
) |
int nes_nic_cm_xmit | ( | struct sk_buff * | skb, |
struct net_device * | netdev | ||
) |
void nes_nic_init_timer_defaults | ( | struct nes_device * | nesdev, |
u8 | jumbomode | ||
) |
Definition at line 3948 of file nes_verbs.c.
void nes_post_cqp_request | ( | struct nes_device * | nesdev, |
struct nes_cqp_request * | cqp_request | ||
) |
nes_post_cqp_request
Definition at line 627 of file nes_utils.c.
void nes_put_cqp_request | ( | struct nes_device * | nesdev, |
struct nes_cqp_request * | cqp_request | ||
) |
Definition at line 616 of file nes_utils.c.
nes_read_10G_phy_reg This routine only issues the read, the data must be read separately.
Definition at line 518 of file nes_utils.c.
nes_read_1G_phy_reg This routine only issues the read, the data must be read separately.
Definition at line 440 of file nes_utils.c.
int nes_read_eeprom_values | ( | struct nes_device * | nesdev, |
struct nes_adapter * | nesadapter | ||
) |
nes_read_eeprom_values -
Definition at line 85 of file nes_utils.c.
void nes_recheck_link_status | ( | struct work_struct * | work | ) |
int nes_register_ofa_device | ( | struct nes_ib_device * | nesibdev | ) |
nes_register_ofa_device
Definition at line 3989 of file nes_verbs.c.
void nes_write_10G_phy_reg | ( | struct nes_device * | nesdev, |
u16 | phy_addr, | ||
u8 | dev_addr, | ||
u16 | phy_reg, | ||
u16 | data | ||
) |
nes_write_10G_phy_reg
Definition at line 472 of file nes_utils.c.
nes_write_1G_phy_reg
Definition at line 413 of file nes_utils.c.
u32 mh_detected |
Definition at line 56 of file nes_utils.c.
u32 mh_pauses_sent |
Definition at line 57 of file nes_utils.c.
atomic_t mod_qp_timouts |
Definition at line 49 of file nes_verbs.c.
int nes_if_count |
atomic_t qps_created |
Definition at line 50 of file nes_verbs.c.
atomic_t sw_qps_destroyed |
Definition at line 51 of file nes_verbs.c.