Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
qlge_main.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/types.h>
#include <linux/module.h>
#include <linux/list.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/pagemap.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/dmapool.h>
#include <linux/mempool.h>
#include <linux/spinlock.h>
#include <linux/kthread.h>
#include <linux/interrupt.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <net/ipv6.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/if_arp.h>
#include <linux/if_ether.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/if_vlan.h>
#include <linux/skbuff.h>
#include <linux/delay.h>
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <linux/prefetch.h>
#include <net/ip6_checksum.h>
#include "qlge.h"

Go to the source code of this file.

Macros

#define MSIX_IRQ   0
 
#define MSI_IRQ   1
 
#define LEG_IRQ   2
 

Functions

 MODULE_AUTHOR ("Ron Mercer <[email protected]>")
 
 MODULE_DESCRIPTION (DRV_STRING" ")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 
 module_param (debug, int, 0664)
 
 MODULE_PARM_DESC (debug,"Debug level (0=none,...,16=all)")
 
 module_param (qlge_irq_type, int, 0664)
 
 MODULE_PARM_DESC (qlge_irq_type,"0 = MSI-X, 1 = MSI, 2 = Legacy.")
 
 module_param (qlge_mpi_coredump, int, 0)
 
 MODULE_PARM_DESC (qlge_mpi_coredump,"Option to enable MPI firmware dump. ""Default is OFF - Do Not allocate memory. ")
 
 module_param (qlge_force_coredump, int, 0)
 
 MODULE_PARM_DESC (qlge_force_coredump,"Option to allow force of firmware core dump. ""Default is OFF - Do not allow.")
 
 MODULE_DEVICE_TABLE (pci, qlge_pci_tbl)
 
int ql_sem_spinlock (struct ql_adapter *qdev, u32 sem_mask)
 
void ql_sem_unlock (struct ql_adapter *qdev, u32 sem_mask)
 
int ql_wait_reg_rdy (struct ql_adapter *qdev, u32 reg, u32 bit, u32 err_bit)
 
int ql_write_cfg (struct ql_adapter *qdev, void *ptr, int size, u32 bit, u16 q_id)
 
int ql_get_mac_addr_reg (struct ql_adapter *qdev, u32 type, u16 index, u32 *value)
 
void ql_link_on (struct ql_adapter *qdev)
 
void ql_link_off (struct ql_adapter *qdev)
 
int ql_get_routing_reg (struct ql_adapter *qdev, u32 index, u32 *value)
 
u32 ql_enable_completion_interrupt (struct ql_adapter *qdev, u32 intr)
 
int ql_read_xgmac_reg (struct ql_adapter *qdev, u32 reg, u32 *data)
 
int ql_read_xgmac_reg64 (struct ql_adapter *qdev, u32 reg, u64 *data)
 
void ql_queue_fw_error (struct ql_adapter *qdev)
 
void ql_queue_asic_error (struct ql_adapter *qdev)
 
int ql_cam_route_initialize (struct ql_adapter *qdev)
 
netdev_tx_t ql_lb_send (struct sk_buff *skb, struct net_device *ndev)
 
int ql_clean_lb_rx_ring (struct rx_ring *rx_ring, int budget)
 
 module_init (qlge_init_module)
 
 module_exit (qlge_exit)
 

Variables

char qlge_driver_name [] = DRV_NAME
 
const char qlge_driver_version [] = DRV_VERSION
 

Macro Definition Documentation

#define LEG_IRQ   2

Definition at line 73 of file qlge_main.c.

#define MSI_IRQ   1

Definition at line 72 of file qlge_main.c.

#define MSIX_IRQ   0

Definition at line 71 of file qlge_main.c.

Function Documentation

MODULE_AUTHOR ( "Ron Mercer <[email protected]>"  )
MODULE_DESCRIPTION ( DRV_STRING" "  )
MODULE_DEVICE_TABLE ( pci  ,
qlge_pci_tbl   
)
module_exit ( qlge_exit  )
module_init ( qlge_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0664   
)
module_param ( qlge_irq_type  ,
int  ,
0664   
)
module_param ( qlge_mpi_coredump  ,
int  ,
 
)
module_param ( qlge_force_coredump  ,
int  ,
 
)
MODULE_PARM_DESC ( debug  ,
"Debug level (0=none,...,16=all)"   
)
MODULE_PARM_DESC ( qlge_irq_type  ,
0 = MSI-X,
= MSI 
)
MODULE_PARM_DESC ( qlge_mpi_coredump  ,
"Option to enable MPI firmware dump. ""Default is OFF - Do Not allocate memory. "   
)
MODULE_PARM_DESC ( qlge_force_coredump  ,
"Option to allow force of firmware core dump. ""Default is OFF - Do not allow."   
)
MODULE_VERSION ( DRV_VERSION  )
int ql_cam_route_initialize ( struct ql_adapter qdev)

Definition at line 3653 of file qlge_main.c.

int ql_clean_lb_rx_ring ( struct rx_ring rx_ring,
int  budget 
)

Definition at line 4727 of file qlge_main.c.

u32 ql_enable_completion_interrupt ( struct ql_adapter qdev,
u32  intr 
)

Definition at line 633 of file qlge_main.c.

int ql_get_mac_addr_reg ( struct ql_adapter qdev,
u32  type,
u16  index,
u32 value 
)

Definition at line 262 of file qlge_main.c.

int ql_get_routing_reg ( struct ql_adapter qdev,
u32  index,
u32 value 
)

Definition at line 496 of file qlge_main.c.

netdev_tx_t ql_lb_send ( struct sk_buff skb,
struct net_device ndev 
)

Definition at line 4722 of file qlge_main.c.

void ql_link_off ( struct ql_adapter qdev)

Definition at line 486 of file qlge_main.c.

void ql_link_on ( struct ql_adapter qdev)

Definition at line 479 of file qlge_main.c.

void ql_queue_asic_error ( struct ql_adapter qdev)

Definition at line 2094 of file qlge_main.c.

void ql_queue_fw_error ( struct ql_adapter qdev)

Definition at line 2088 of file qlge_main.c.

int ql_read_xgmac_reg ( struct ql_adapter qdev,
u32  reg,
u32 data 
)

Definition at line 882 of file qlge_main.c.

int ql_read_xgmac_reg64 ( struct ql_adapter qdev,
u32  reg,
u64 data 
)

Definition at line 904 of file qlge_main.c.

int ql_sem_spinlock ( struct ql_adapter qdev,
u32  sem_mask 
)

Definition at line 144 of file qlge_main.c.

void ql_sem_unlock ( struct ql_adapter qdev,
u32  sem_mask 
)

Definition at line 155 of file qlge_main.c.

int ql_wait_reg_rdy ( struct ql_adapter qdev,
u32  reg,
u32  bit,
u32  err_bit 
)

Definition at line 166 of file qlge_main.c.

int ql_write_cfg ( struct ql_adapter qdev,
void ptr,
int  size,
u32  bit,
u16  q_id 
)

Definition at line 214 of file qlge_main.c.

Variable Documentation

char qlge_driver_name[] = DRV_NAME

Definition at line 47 of file qlge_main.c.

const char qlge_driver_version[] = DRV_VERSION

Definition at line 48 of file qlge_main.c.