Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
be_main.c File Reference
#include <linux/prefetch.h>
#include <linux/module.h>
#include "be.h"
#include "be_cmds.h"
#include <asm/div64.h>
#include <linux/aer.h>

Go to the source code of this file.

Macros

#define lo(x)   (x & 0xFFFF)
 
#define hi(x)   (x & 0xFFFF0000)
 
#define BE_MIN_MSIX_VECTORS   1
 
#define FW_FILE_HDR_SIGN   "ServerEngines Corp. "
 
#define SLIPORT_IDLE_TIMEOUT   30
 
#define LANCER_FW_DOWNLOAD_CHUNK   (32 * 1024)
 
#define LANCER_FW_DOWNLOAD_LOCATION   "/prg"
 

Functions

 MODULE_VERSION (DRV_VER)
 
 MODULE_DEVICE_TABLE (pci, be_dev_ids)
 
 MODULE_DESCRIPTION (DRV_DESC" "DRV_VER)
 
 MODULE_AUTHOR ("ServerEngines Corporation")
 
 MODULE_LICENSE ("GPL")
 
 module_param (num_vfs, uint, S_IRUGO)
 
 MODULE_PARM_DESC (num_vfs,"Number of PCI VFs to initialize")
 
 module_param (rx_frag_size, ushort, S_IRUGO)
 
 MODULE_PARM_DESC (rx_frag_size,"Size of a fragment that holds rcvd data.")
 
void be_cq_notify (struct be_adapter *adapter, u16 qid, bool arm, u16 num_popped)
 
void be_parse_stats (struct be_adapter *adapter)
 
void be_link_status_update (struct be_adapter *adapter, u8 link_status)
 
void be_rx_compl_process_gro (struct be_rx_obj *rxo, struct napi_struct *napi, struct be_rx_compl_info *rxcp)
 
int be_poll (struct napi_struct *napi, int budget)
 
void be_detect_error (struct be_adapter *adapter)
 
struct flash_section_infoget_fsec_info (struct be_adapter *adapter, int header_size, const struct firmware *fw)
 
int be_load_fw (struct be_adapter *adapter, u8 *fw_file)
 
bool be_is_wol_supported (struct be_adapter *adapter)
 
u32 be_get_fw_log_level (struct be_adapter *adapter)
 
 module_init (be_init_module)
 
 module_exit (be_exit_module)
 

Variables

char flash_cookie [2][16] = {"*** SE FLAS", "H DIRECTORY *** "}
 

Macro Definition Documentation

#define BE_MIN_MSIX_VECTORS   1
#define FW_FILE_HDR_SIGN   "ServerEngines Corp. "

Definition at line 2856 of file be_main.c.

#define hi (   x)    (x & 0xFFFF0000)
#define LANCER_FW_DOWNLOAD_CHUNK   (32 * 1024)
#define LANCER_FW_DOWNLOAD_LOCATION   "/prg"
#define lo (   x)    (x & 0xFFFF)
#define SLIPORT_IDLE_TIMEOUT   30

Function Documentation

void be_cq_notify ( struct be_adapter adapter,
u16  qid,
bool  arm,
u16  num_popped 
)

Definition at line 217 of file be_main.c.

void be_detect_error ( struct be_adapter adapter)

Definition at line 2101 of file be_main.c.

u32 be_get_fw_log_level ( struct be_adapter adapter)

Definition at line 3568 of file be_main.c.

bool be_is_wol_supported ( struct be_adapter adapter)

Definition at line 3562 of file be_main.c.

void be_link_status_update ( struct be_adapter adapter,
u8  link_status 
)

Definition at line 505 of file be_main.c.

int be_load_fw ( struct be_adapter adapter,
u8 fw_file 
)

Definition at line 3266 of file be_main.c.

void be_parse_stats ( struct be_adapter adapter)

Definition at line 409 of file be_main.c.

int be_poll ( struct napi_struct napi,
int  budget 
)

Definition at line 2064 of file be_main.c.

void be_rx_compl_process_gro ( struct be_rx_obj rxo,
struct napi_struct napi,
struct be_rx_compl_info rxcp 
)

Definition at line 1321 of file be_main.c.

struct flash_section_info* get_fsec_info ( struct be_adapter adapter,
int  header_size,
const struct firmware fw 
)
read

Definition at line 2914 of file be_main.c.

MODULE_AUTHOR ( "ServerEngines Corporation"  )
MODULE_DESCRIPTION ( DRV_DESC" "  DRV_VER)
MODULE_DEVICE_TABLE ( pci  ,
be_dev_ids   
)
module_exit ( be_exit_module  )
module_init ( be_init_module  )
MODULE_LICENSE ( "GPL"  )
module_param ( num_vfs  ,
uint  ,
S_IRUGO   
)
module_param ( rx_frag_size  ,
ushort  ,
S_IRUGO   
)
MODULE_PARM_DESC ( num_vfs  ,
"Number of PCI VFs to initialize  
)
MODULE_PARM_DESC ( rx_frag_size  ,
"Size of a fragment that holds rcvd data."   
)
MODULE_VERSION ( DRV_VER  )

Variable Documentation

char flash_cookie[2][16] = {"*** SE FLAS", "H DIRECTORY *** "}

Definition at line 2857 of file be_main.c.