Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
qlcnic_main.c File Reference
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/interrupt.h>
#include "qlcnic.h"
#include <linux/swab.h>
#include <linux/dma-mapping.h>
#include <net/ip.h>
#include <linux/ipv6.h>
#include <linux/inetdevice.h>
#include <linux/sysfs.h>
#include <linux/aer.h>
#include <linux/log2.h>

Go to the source code of this file.

Macros

#define ENTRY(device)
 
#define PCI_DEVICE_ID_QLOGIC_QLE824X   0x8020
 
#define QLCNIC_MAC_HASH(MAC)   ((((MAC) & 0x70000) >> 0x10) | (((MAC) & 0x70000000000ULL) >> 0x25))
 

Functions

 MODULE_DESCRIPTION ("QLogic 1/10 GbE Converged/Intelligent Ethernet Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (QLCNIC_LINUX_VERSIONID)
 
 MODULE_FIRMWARE (QLCNIC_UNIFIED_ROMIMAGE_NAME)
 
 module_param (qlcnic_mac_learn, int, 0444)
 
 MODULE_PARM_DESC (qlcnic_mac_learn,"Mac Filter (0=disabled, 1=enabled)")
 
 module_param (use_msi, int, 0444)
 
 MODULE_PARM_DESC (use_msi,"MSI interrupt (0=disabled, 1=enabled")
 
 module_param (use_msi_x, int, 0444)
 
 MODULE_PARM_DESC (use_msi_x,"MSI-X interrupt (0=disabled, 1=enabled")
 
 module_param (auto_fw_reset, int, 0644)
 
 MODULE_PARM_DESC (auto_fw_reset,"Auto firmware reset (0=disabled, 1=enabled")
 
 module_param (load_fw_file, int, 0444)
 
 MODULE_PARM_DESC (load_fw_file,"Load firmware from (0=flash, 1=file")
 
 module_param (qlcnic_config_npars, int, 0444)
 
 MODULE_PARM_DESC (qlcnic_config_npars,"Configure NPARs (0=disabled, 1=enabled")
 
 MODULE_DEVICE_TABLE (pci, qlcnic_pci_tbl)
 
void qlcnic_update_cmd_producer (struct qlcnic_adapter *adapter, struct qlcnic_host_tx_ring *tx_ring)
 
void qlcnic_diag_free_res (struct net_device *netdev, int max_sds_rings)
 
int qlcnic_diag_alloc_res (struct net_device *netdev, int test)
 
int qlcnic_reset_context (struct qlcnic_adapter *adapter)
 
void qlcnic_alloc_lb_filters_mem (struct qlcnic_adapter *adapter)
 
netdev_tx_t qlcnic_xmit_frame (struct sk_buff *skb, struct net_device *netdev)
 
void qlcnic_advert_link_change (struct qlcnic_adapter *adapter, int linkup)
 
void qlcnic_dev_request_reset (struct qlcnic_adapter *adapter)
 
int qlcnic_validate_max_rss (struct net_device *netdev, u8 max_hw, u8 val)
 
int qlcnic_set_max_rss (struct qlcnic_adapter *adapter, u8 data)
 
 module_init (qlcnic_init_module)
 
 module_exit (qlcnic_exit_module)
 

Variables

char qlcnic_driver_name [] = "qlcnic"
 

Macro Definition Documentation

#define ENTRY (   device)
Value:
.class = PCI_CLASS_NETWORK_ETHERNET << 8, .class_mask = ~0}

Definition at line 104 of file qlcnic_main.c.

#define PCI_DEVICE_ID_QLOGIC_QLE824X   0x8020

Definition at line 108 of file qlcnic_main.c.

#define QLCNIC_MAC_HASH (   MAC)    ((((MAC) & 0x70000) >> 0x10) | (((MAC) & 0x70000000000ULL) >> 0x25))

Definition at line 1961 of file qlcnic_main.c.

Function Documentation

MODULE_DESCRIPTION ( "QLogic 1/10 GbE Converged/Intelligent Ethernet Driver"  )
MODULE_DEVICE_TABLE ( pci  ,
qlcnic_pci_tbl   
)
module_exit ( qlcnic_exit_module  )
MODULE_FIRMWARE ( QLCNIC_UNIFIED_ROMIMAGE_NAME  )
module_init ( qlcnic_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( qlcnic_mac_learn  ,
int  ,
0444   
)
module_param ( use_msi  ,
int  ,
0444   
)
module_param ( use_msi_x  ,
int  ,
0444   
)
module_param ( auto_fw_reset  ,
int  ,
0644   
)
module_param ( load_fw_file  ,
int  ,
0444   
)
module_param ( qlcnic_config_npars  ,
int  ,
0444   
)
MODULE_PARM_DESC ( qlcnic_mac_learn  ,
"Mac Filter (0=disabled, 1=enabled)"   
)
MODULE_PARM_DESC ( use_msi  )
MODULE_PARM_DESC ( use_msi_x  )
MODULE_PARM_DESC ( auto_fw_reset  )
MODULE_PARM_DESC ( load_fw_file  )
MODULE_PARM_DESC ( qlcnic_config_npars  )
MODULE_VERSION ( QLCNIC_LINUX_VERSIONID  )
void qlcnic_advert_link_change ( struct qlcnic_adapter adapter,
int  linkup 
)

Definition at line 2388 of file qlcnic_main.c.

void qlcnic_alloc_lb_filters_mem ( struct qlcnic_adapter adapter)

Definition at line 1899 of file qlcnic_main.c.

void qlcnic_dev_request_reset ( struct qlcnic_adapter adapter)

Definition at line 3035 of file qlcnic_main.c.

int qlcnic_diag_alloc_res ( struct net_device netdev,
int  test 
)

Definition at line 1380 of file qlcnic_main.c.

void qlcnic_diag_free_res ( struct net_device netdev,
int  max_sds_rings 
)

Definition at line 1308 of file qlcnic_main.c.

int qlcnic_reset_context ( struct qlcnic_adapter adapter)

Definition at line 1455 of file qlcnic_main.c.

int qlcnic_set_max_rss ( struct qlcnic_adapter adapter,
u8  data 
)

Definition at line 3501 of file qlcnic_main.c.

void qlcnic_update_cmd_producer ( struct qlcnic_adapter adapter,
struct qlcnic_host_tx_ring tx_ring 
)
inline

Definition at line 119 of file qlcnic_main.c.

int qlcnic_validate_max_rss ( struct net_device netdev,
u8  max_hw,
u8  val 
)

Definition at line 3485 of file qlcnic_main.c.

netdev_tx_t qlcnic_xmit_frame ( struct sk_buff skb,
struct net_device netdev 
)

Definition at line 2226 of file qlcnic_main.c.

Variable Documentation

char qlcnic_driver_name[] = "qlcnic"

Definition at line 28 of file qlcnic_main.c.