Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ibmvfc.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/dma-mapping.h>
#include <linux/dmapool.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/kthread.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/pm.h>
#include <linux/stringify.h>
#include <asm/firmware.h>
#include <asm/irq.h>
#include <asm/vio.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsi_transport_fc.h>
#include <scsi/scsi_bsg_fc.h>
#include "ibmvfc.h"

Go to the source code of this file.

Macros

#define ibmvfc_trc_start(evt)   do { } while (0)
 
#define ibmvfc_trc_end(evt)   do { } while (0)
 

Functions

 MODULE_DESCRIPTION ("IBM Virtual Fibre Channel Driver")
 
 MODULE_AUTHOR ("Brian King <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (IBMVFC_DRIVER_VERSION)
 
 module_param_named (init_timeout, init_timeout, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (init_timeout,"Initialization timeout in seconds. ""[Default="__stringify(IBMVFC_INIT_TIMEOUT)"]")
 
 module_param_named (default_timeout, default_timeout, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (default_timeout,"Default timeout in seconds for initialization and EH commands. ""[Default="__stringify(IBMVFC_DEFAULT_TIMEOUT)"]")
 
 module_param_named (max_requests, max_requests, uint, S_IRUGO)
 
 MODULE_PARM_DESC (max_requests,"Maximum requests for this adapter. ""[Default="__stringify(IBMVFC_MAX_REQUESTS_DEFAULT)"]")
 
 module_param_named (max_lun, max_lun, uint, S_IRUGO)
 
 MODULE_PARM_DESC (max_lun,"Maximum allowed LUN. ""[Default="__stringify(IBMVFC_MAX_LUN)"]")
 
 module_param_named (max_targets, max_targets, uint, S_IRUGO)
 
 MODULE_PARM_DESC (max_targets,"Maximum allowed targets. ""[Default="__stringify(IBMVFC_MAX_TARGETS)"]")
 
 module_param_named (disc_threads, disc_threads, uint, S_IRUGO)
 
 MODULE_PARM_DESC (disc_threads,"Number of device discovery threads to use. ""[Default="__stringify(IBMVFC_MAX_DISC_THREADS)"]")
 
 module_param_named (debug, ibmvfc_debug, uint, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (debug,"Enable driver debug information. ""[Default="__stringify(IBMVFC_DEBUG)"]")
 
 module_param_named (log_level, log_level, uint, 0)
 
 MODULE_PARM_DESC (log_level,"Set to 0 - 4 for increasing verbosity of device driver. ""[Default="__stringify(IBMVFC_DEFAULT_LOG_LEVEL)"]")
 
 MODULE_DEVICE_TABLE (vio, ibmvfc_device_table)
 
 module_init (ibmvfc_module_init)
 
 module_exit (ibmvfc_module_exit)
 

Macro Definition Documentation

#define ibmvfc_trc_end (   evt)    do { } while (0)

Definition at line 223 of file ibmvfc.c.

#define ibmvfc_trc_start (   evt)    do { } while (0)

Definition at line 222 of file ibmvfc.c.

Function Documentation

MODULE_AUTHOR ( "Brian King <[email protected]>"  )
MODULE_DESCRIPTION ( "IBM Virtual Fibre Channel Driver"  )
MODULE_DEVICE_TABLE ( vio  ,
ibmvfc_device_table   
)
module_exit ( ibmvfc_module_exit  )
module_init ( ibmvfc_module_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( init_timeout  ,
init_timeout  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param_named ( default_timeout  ,
default_timeout  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param_named ( max_requests  ,
max_requests  ,
uint  ,
S_IRUGO   
)
module_param_named ( max_lun  ,
max_lun  ,
uint  ,
S_IRUGO   
)
module_param_named ( max_targets  ,
max_targets  ,
uint  ,
S_IRUGO   
)
module_param_named ( disc_threads  ,
disc_threads  ,
uint  ,
S_IRUGO   
)
module_param_named ( debug  ,
ibmvfc_debug  ,
uint  ,
S_IRUGO S_IWUSR 
)
module_param_named ( log_level  ,
log_level  ,
uint  ,
 
)
MODULE_PARM_DESC ( init_timeout  ,
"Initialization timeout in seconds. """  [Default="__stringify(IBMVFC_INIT_TIMEOUT)"] 
)
MODULE_PARM_DESC ( default_timeout  ,
"Default timeout in seconds for initialization and EH commands. """  [Default="__stringify(IBMVFC_DEFAULT_TIMEOUT)"] 
)
MODULE_PARM_DESC ( max_requests  ,
"Maximum requests for this adapter. """  [Default="__stringify(IBMVFC_MAX_REQUESTS_DEFAULT)"] 
)
MODULE_PARM_DESC ( max_lun  ,
"Maximum allowed LUN. """  [Default="__stringify(IBMVFC_MAX_LUN)"] 
)
MODULE_PARM_DESC ( max_targets  ,
"Maximum allowed targets. """  [Default="__stringify(IBMVFC_MAX_TARGETS)"] 
)
MODULE_PARM_DESC ( disc_threads  ,
"Number of device discovery threads to use. """  [Default="__stringify(IBMVFC_MAX_DISC_THREADS)"] 
)
MODULE_PARM_DESC ( debug  ,
"Enable driver debug information. """  [Default="__stringify(IBMVFC_DEBUG)"] 
)
MODULE_PARM_DESC ( log_level  ,
"Set to 0 - 4 for increasing verbosity of device driver. """  [Default="__stringify(IBMVFC_DEFAULT_LOG_LEVEL)"] 
)
MODULE_VERSION ( IBMVFC_DRIVER_VERSION  )

Variable Documentation

Definition at line 3246 of file ibmvfc.c.

Definition at line 2561 of file ibmvfc.c.

static void error

Definition at line 92 of file ibmvfc.c.

u16 fc_explain

Definition at line 306 of file ibmvfc.c.

u16 fc_type
Initial value:
= {
{ IBMVFC_FABRIC_REJECT, "fabric reject" },
{ IBMVFC_PORT_REJECT, "port reject" },
{ IBMVFC_LS_REJECT, "ELS reject" },
{ IBMVFC_FABRIC_BUSY, "fabric busy" },
{ IBMVFC_PORT_BUSY, "port busy" },
{ IBMVFC_BASIC_REJECT, "basic reject" },
}

Definition at line 388 of file ibmvfc.c.

Definition at line 95 of file ibmvfc.c.

int logged_in

Definition at line 3248 of file ibmvfc.c.

char* name

Definition at line 96 of file ibmvfc.c.

u8 result

Definition at line 93 of file ibmvfc.c.

int retry

Definition at line 94 of file ibmvfc.c.

Definition at line 2560 of file ibmvfc.c.

Definition at line 91 of file ibmvfc.c.