Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
mptsas.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/jiffies.h>
#include <linux/workqueue.h>
#include <linux/delay.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_transport_sas.h>
#include <scsi/scsi_transport.h>
#include <scsi/scsi_dbg.h>
#include "mptbase.h"
#include "mptscsih.h"
#include "mptsas.h"

Go to the source code of this file.

Data Structures

struct  rep_manu_request
 
struct  rep_manu_reply
 

Macros

#define my_NAME   "Fusion MPT SAS Host driver"
 
#define my_VERSION   MPT_LINUX_VERSION_COMMON
 
#define MYNAM   "mptsas"
 
#define MPTSAS_RAID_CHANNEL   1
 
#define SAS_CONFIG_PAGE_TIMEOUT   30
 
#define MPTSAS_MAX_LUN   (16895)
 

Enumerations

enum  device_state { DEVICE_RETRY, DEVICE_ERROR, DEVICE_READY }
 

Functions

 MODULE_AUTHOR (MODULEAUTHOR)
 
 MODULE_DESCRIPTION (my_NAME)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (my_VERSION)
 
 module_param (mpt_pt_clear, int, 0)
 
 MODULE_PARM_DESC (mpt_pt_clear," Clear persistency table: enable=1 ""(default=MPTSCSIH_PT_CLEAR=0)")
 
 module_param (max_lun, int, 0)
 
 MODULE_PARM_DESC (max_lun," max lun, default=16895 ")
 
 module_param (mpt_loadtime_max_sectors, int, 0)
 
 MODULE_PARM_DESC (mpt_loadtime_max_sectors," Maximum sector define for Host Bus Adaptor.Range 64 to 8192 default=8192")
 
void mptsas_schedule_target_reset (void *ioc)
 
struct mptsas_phyinfomptsas_refreshing_device_handles (MPT_ADAPTER *ioc, struct mptsas_devinfo *sas_device)
 
struct mptsas_portinfomptsas_expander_add (MPT_ADAPTER *ioc, u16 handle)
 
void mptsas_shutdown (struct pci_dev *pdev)
 
 MODULE_DEVICE_TABLE (pci, mptsas_pci_table)
 
 module_init (mptsas_init)
 
 module_exit (mptsas_exit)
 

Macro Definition Documentation

#define MPTSAS_MAX_LUN   (16895)

Definition at line 90 of file mptsas.c.

#define MPTSAS_RAID_CHANNEL   1

Definition at line 75 of file mptsas.c.

#define my_NAME   "Fusion MPT SAS Host driver"

Definition at line 68 of file mptsas.c.

#define my_VERSION   MPT_LINUX_VERSION_COMMON

Definition at line 69 of file mptsas.c.

#define MYNAM   "mptsas"

Definition at line 70 of file mptsas.c.

#define SAS_CONFIG_PAGE_TIMEOUT   30

Definition at line 77 of file mptsas.c.

Enumeration Type Documentation

enum device_state - : need to retry the TUR : TUR return error, don't add device : device can be added

Enumerator:
DEVICE_RETRY 
DEVICE_ERROR 
DEVICE_READY 

Definition at line 1339 of file mptsas.c.

Function Documentation

MODULE_AUTHOR ( MODULEAUTHOR  )
MODULE_DESCRIPTION ( my_NAME  )
MODULE_DEVICE_TABLE ( pci  ,
mptsas_pci_table   
)
module_exit ( mptsas_exit  )
module_init ( mptsas_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( mpt_pt_clear  ,
int  ,
 
)
module_param ( max_lun  ,
int  ,
 
)
module_param ( mpt_loadtime_max_sectors  ,
int  ,
 
)
MODULE_PARM_DESC ( mpt_pt_clear  )
MODULE_PARM_DESC ( max_lun  ,
" max  lun 
)
MODULE_PARM_DESC ( mpt_loadtime_max_sectors  )
MODULE_VERSION ( my_VERSION  )
struct mptsas_portinfo* mptsas_expander_add ( MPT_ADAPTER *  ioc,
u16  handle 
)
read

mptsas_expander_add - : Pointer to MPT_ADAPTER structure :

Definition at line 3654 of file mptsas.c.

struct mptsas_phyinfo* mptsas_refreshing_device_handles ( MPT_ADAPTER *  ioc,
struct mptsas_devinfo sas_device 
)
read

Definition at line 1579 of file mptsas.c.

void mptsas_schedule_target_reset ( void iocp)

mptsas_schedule_target_reset- send pending target reset : per adapter object

This function will delete scheduled target reset from the list and try to send next target reset. This will be called from completion context of any Task management command.

Definition at line 1160 of file mptsas.c.

void mptsas_shutdown ( struct pci_dev pdev)

Definition at line 5327 of file mptsas.c.