Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
vmw_pvscsi.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/pci.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include "vmw_pvscsi.h"

Go to the source code of this file.

Data Structures

struct  pvscsi_sg_list
 
struct  pvscsi_ctx
 
struct  pvscsi_adapter
 

Macros

#define PVSCSI_LINUX_DRIVER_DESC   "VMware PVSCSI driver"
 
#define PVSCSI_DEFAULT_NUM_PAGES_PER_RING   8
 
#define PVSCSI_DEFAULT_NUM_PAGES_MSG_RING   1
 
#define PVSCSI_DEFAULT_QUEUE_DEPTH   64
 
#define SGL_SIZE   PAGE_SIZE
 
#define PVSCSI_RW   (S_IRUSR | S_IWUSR)
 

Functions

 MODULE_DESCRIPTION (PVSCSI_LINUX_DRIVER_DESC)
 
 MODULE_AUTHOR ("VMware, Inc.")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (PVSCSI_DRIVER_VERSION_STRING)
 
 module_param_named (ring_pages, pvscsi_ring_pages, int, PVSCSI_RW)
 
 MODULE_PARM_DESC (ring_pages,"Number of pages per req/cmp ring - (default="__stringify(PVSCSI_DEFAULT_NUM_PAGES_PER_RING)")")
 
 module_param_named (msg_ring_pages, pvscsi_msg_ring_pages, int, PVSCSI_RW)
 
 MODULE_PARM_DESC (msg_ring_pages,"Number of pages for the msg ring - (default="__stringify(PVSCSI_DEFAULT_NUM_PAGES_MSG_RING)")")
 
 module_param_named (cmd_per_lun, pvscsi_cmd_per_lun, int, PVSCSI_RW)
 
 MODULE_PARM_DESC (cmd_per_lun,"Maximum commands per lun - (default="__stringify(PVSCSI_MAX_REQ_QUEUE_DEPTH)")")
 
 module_param_named (disable_msi, pvscsi_disable_msi, bool, PVSCSI_RW)
 
 MODULE_PARM_DESC (disable_msi,"Disable MSI use in driver - (default=0)")
 
 module_param_named (disable_msix, pvscsi_disable_msix, bool, PVSCSI_RW)
 
 MODULE_PARM_DESC (disable_msix,"Disable MSI-X use in driver - (default=0)")
 
 module_param_named (use_msg, pvscsi_use_msg, bool, PVSCSI_RW)
 
 MODULE_PARM_DESC (use_msg,"Use msg ring when available - (default=1)")
 
 MODULE_DEVICE_TABLE (pci, pvscsi_pci_tbl)
 
 module_init (pvscsi_init)
 
 module_exit (pvscsi_exit)
 

Macro Definition Documentation

#define PVSCSI_DEFAULT_NUM_PAGES_MSG_RING   1

Definition at line 46 of file vmw_pvscsi.c.

#define PVSCSI_DEFAULT_NUM_PAGES_PER_RING   8

Definition at line 45 of file vmw_pvscsi.c.

#define PVSCSI_DEFAULT_QUEUE_DEPTH   64

Definition at line 47 of file vmw_pvscsi.c.

#define PVSCSI_LINUX_DRIVER_DESC   "VMware PVSCSI driver"

Definition at line 38 of file vmw_pvscsi.c.

#define PVSCSI_RW   (S_IRUSR | S_IWUSR)

Definition at line 112 of file vmw_pvscsi.c.

#define SGL_SIZE   PAGE_SIZE

Definition at line 48 of file vmw_pvscsi.c.

Function Documentation

MODULE_AUTHOR ( VMware,
Inc."   
)
MODULE_DESCRIPTION ( PVSCSI_LINUX_DRIVER_DESC  )
MODULE_DEVICE_TABLE ( pci  ,
pvscsi_pci_tbl   
)
module_exit ( pvscsi_exit  )
module_init ( pvscsi_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( ring_pages  ,
pvscsi_ring_pages  ,
int  ,
PVSCSI_RW   
)
module_param_named ( msg_ring_pages  ,
pvscsi_msg_ring_pages  ,
int  ,
PVSCSI_RW   
)
module_param_named ( cmd_per_lun  ,
pvscsi_cmd_per_lun  ,
int  ,
PVSCSI_RW   
)
module_param_named ( disable_msi  ,
pvscsi_disable_msi  ,
bool  ,
PVSCSI_RW   
)
module_param_named ( disable_msix  ,
pvscsi_disable_msix  ,
bool  ,
PVSCSI_RW   
)
module_param_named ( use_msg  ,
pvscsi_use_msg  ,
bool  ,
PVSCSI_RW   
)
MODULE_PARM_DESC ( ring_pages  ,
"Number of pages per req/cmp ring - (default="__stringify(PVSCSI_DEFAULT_NUM_PAGES_PER_RING)")"   
)
MODULE_PARM_DESC ( msg_ring_pages  ,
"Number of pages for the msg ring - (default="__stringify(PVSCSI_DEFAULT_NUM_PAGES_MSG_RING)")"   
)
MODULE_PARM_DESC ( cmd_per_lun  ,
"Maximum commands per lun - (default="__stringify(PVSCSI_MAX_REQ_QUEUE_DEPTH)")"   
)
MODULE_PARM_DESC ( disable_msi  ,
"Disable MSI use in driver - (default=0)"   
)
MODULE_PARM_DESC ( disable_msix  ,
"Disable MSI-X use in driver - (default=0)"   
)
MODULE_PARM_DESC ( use_msg  ,
"Use msg ring when available - (default=1)"   
)
MODULE_VERSION ( PVSCSI_DRIVER_VERSION_STRING  )