Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ehea_main.c File Reference
#include <linux/in.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/udp.h>
#include <linux/if.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/if_ether.h>
#include <linux/notifier.h>
#include <linux/reboot.h>
#include <linux/memory.h>
#include <asm/kexec.h>
#include <linux/mutex.h>
#include <linux/prefetch.h>
#include <net/ip.h>
#include "ehea.h"
#include "ehea_qmr.h"
#include "ehea_phyp.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define SWQE_RESTART_CHECK   0xdeadbeaff00d0000ull
 
#define EHEA_POLL_MAX_CQES   65535
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Christoph Raisch <[email protected]>")
 
 MODULE_DESCRIPTION ("IBM eServer HEA Driver")
 
 MODULE_VERSION (DRV_VERSION)
 
 module_param (msg_level, int, 0)
 
 module_param (rq1_entries, int, 0)
 
 module_param (rq2_entries, int, 0)
 
 module_param (rq3_entries, int, 0)
 
 module_param (sq_entries, int, 0)
 
 module_param (prop_carrier_state, int, 0)
 
 module_param (use_mcs, int, 0)
 
 MODULE_PARM_DESC (msg_level,"msg_level")
 
 MODULE_PARM_DESC (prop_carrier_state,"Propagate carrier state of physical ""port to stack. 1:yes, 0:no. Default = 0 ")
 
 MODULE_PARM_DESC (rq3_entries,"Number of entries for Receive Queue 3 ""[2^x - 1], x = [6..14]. Default = "__MODULE_STRING(EHEA_DEF_ENTRIES_RQ3)")")
 
 MODULE_PARM_DESC (rq2_entries,"Number of entries for Receive Queue 2 ""[2^x - 1], x = [6..14]. Default = "__MODULE_STRING(EHEA_DEF_ENTRIES_RQ2)")")
 
 MODULE_PARM_DESC (rq1_entries,"Number of entries for Receive Queue 1 ""[2^x - 1], x = [6..14]. Default = "__MODULE_STRING(EHEA_DEF_ENTRIES_RQ1)")")
 
 MODULE_PARM_DESC (sq_entries," Number of entries for the Send Queue ""[2^x - 1], x = [6..14]. Default = "__MODULE_STRING(EHEA_DEF_ENTRIES_SQ)")")
 
 MODULE_PARM_DESC (use_mcs," Multiple receive queues, 1: enable, 0: disable, ""Default = 1")
 
 MODULE_DEVICE_TABLE (of, ehea_device_table)
 
void ehea_dump (void *adr, int len, char *msg)
 
int ehea_sense_port_attr (struct ehea_port *port)
 
int ehea_set_portspeed (struct ehea_port *port, u32 port_speed)
 
 module_init (ehea_module_init)
 
 module_exit (ehea_module_exit)
 

Macro Definition Documentation

#define EHEA_POLL_MAX_CQES   65535

Definition at line 879 of file ehea_main.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 29 of file ehea_main.c.

#define SWQE_RESTART_CHECK   0xdeadbeaff00d0000ull

Definition at line 757 of file ehea_main.c.

Function Documentation

void ehea_dump ( void adr,
int  len,
char msg 
)

Definition at line 125 of file ehea_main.c.

int ehea_sense_port_attr ( struct ehea_port port)

Definition at line 988 of file ehea_main.c.

int ehea_set_portspeed ( struct ehea_port port,
u32  port_speed 
)

Definition at line 1074 of file ehea_main.c.

MODULE_AUTHOR ( "Christoph Raisch <[email protected]>"  )
MODULE_DESCRIPTION ( "IBM eServer HEA Driver"  )
MODULE_DEVICE_TABLE ( of  ,
ehea_device_table   
)
module_exit ( ehea_module_exit  )
module_init ( ehea_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( msg_level  ,
int  ,
 
)
module_param ( rq1_entries  ,
int  ,
 
)
module_param ( rq2_entries  ,
int  ,
 
)
module_param ( rq3_entries  ,
int  ,
 
)
module_param ( sq_entries  ,
int  ,
 
)
module_param ( prop_carrier_state  ,
int  ,
 
)
module_param ( use_mcs  ,
int  ,
 
)
MODULE_PARM_DESC ( msg_level  ,
"msg_level"   
)
MODULE_PARM_DESC ( prop_carrier_state  ,
"Propagate carrier state of physical ""port to stack. 1:yes   
)
MODULE_PARM_DESC ( rq3_entries  ,
"Number of entries for Receive Queue 3 ""  [2^x-1],
x  = [6..14]. Default = "__MODULE_STRING(EHEA_DEF_ENTRIES_RQ3)" 
)
MODULE_PARM_DESC ( rq2_entries  ,
"Number of entries for Receive Queue 2 ""  [2^x-1],
x  = [6..14]. Default = "__MODULE_STRING(EHEA_DEF_ENTRIES_RQ2)" 
)
MODULE_PARM_DESC ( rq1_entries  ,
"Number of entries for Receive Queue 1 ""  [2^x-1],
x  = [6..14]. Default = "__MODULE_STRING(EHEA_DEF_ENTRIES_RQ1)" 
)
MODULE_PARM_DESC ( sq_entries  ,
" Number of entries for the Send Queue ""  [2^x-1],
x  = [6..14]. Default = "__MODULE_STRING(EHEA_DEF_ENTRIES_SQ)" 
)
MODULE_PARM_DESC ( use_mcs  ,
" Multiple receive  queues,
1:enable  ,
0:disable   
)
MODULE_VERSION ( DRV_VERSION  )