#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.
|
| 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_phyinfo * | mptsas_refreshing_device_handles (MPT_ADAPTER *ioc, struct mptsas_devinfo *sas_device) |
|
struct mptsas_portinfo * | mptsas_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) |
|
#define MPTSAS_MAX_LUN (16895) |
#define MPTSAS_RAID_CHANNEL 1 |
#define SAS_CONFIG_PAGE_TIMEOUT 30 |
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.
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
mptsas_pci_table |
|
|
) |
| |
module_exit |
( |
mptsas_exit |
| ) |
|
module_init |
( |
mptsas_init |
| ) |
|
module_param |
( |
mpt_pt_clear |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
max_lun |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
mpt_loadtime_max_sectors |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
mpt_pt_clear |
| ) |
|
MODULE_PARM_DESC |
( |
max_lun |
, |
|
|
" max |
lun |
|
) |
| |
MODULE_PARM_DESC |
( |
mpt_loadtime_max_sectors |
| ) |
|
mptsas_expander_add - : Pointer to MPT_ADAPTER structure :
Definition at line 3654 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.