#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/pci-aspm.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/major.h>
#include <linux/fs.h>
#include <linux/bio.h>
#include <linux/blkpg.h>
#include <linux/timer.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/init.h>
#include <linux/jiffies.h>
#include <linux/hdreg.h>
#include <linux/spinlock.h>
#include <linux/compat.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/dma-mapping.h>
#include <linux/blkdev.h>
#include <linux/genhd.h>
#include <linux/completion.h>
#include <scsi/scsi.h>
#include <scsi/sg.h>
#include <scsi/scsi_ioctl.h>
#include <linux/cdrom.h>
#include <linux/scatterlist.h>
#include <linux/kthread.h>
#include "cciss_cmd.h"
#include "cciss.h"
#include <linux/cciss_ioctl.h>
#include "cciss_scsi.c"
Go to the source code of this file.
|
#define | CCISS_DRIVER_VERSION(maj, min, submin) ((maj<<16)|(min<<8)|(submin)) |
|
#define | DRIVER_NAME "HP CISS Driver (v 3.6.26)" |
|
#define | DRIVER_VERSION CCISS_DRIVER_VERSION(3, 6, 26) |
|
#define | MAX_CONFIG_WAIT 30000 |
|
#define | MAX_IOCTL_CONFIG_WAIT 1000 |
|
#define | MAX_CMD_RETRIES 3 |
|
#define | MAX_CTLR 32 |
|
#define | MAX_CTLR_ORIG 8 |
|
#define | RAID_UNKNOWN (ARRAY_SIZE(raid_label)-1) |
|
#define | MAX_PRODUCT_NAME_LEN 19 |
|
#define | to_hba(n) container_of(n, struct ctlr_info, dev) |
|
#define | to_drv(n) container_of(n, drive_info_struct, dev) |
|
#define | PAGE_83_INQ_BYTES 64 |
|
#define | DIRECT_LOOKUP_BIT 0x10 |
|
#define | DIRECT_LOOKUP_SHIFT 5 |
|
#define | CCISS_PERF_ERROR_BITS ((1 << DIRECT_LOOKUP_SHIFT) - 1) |
|
#define | CCISS_SIMPLE_ERROR_BITS 0x03 |
|
#define | MINIMUM_TRANSFER_BLOCKS 4 |
|
#define | NUM_BUCKETS 8 |
|
#define | BOARD_READY 1 |
|
#define | BOARD_NOT_READY 0 |
|
#define | cciss_noop(p) cciss_message(p, 3, 0) |
|
#define BOARD_NOT_READY 0 |
#define CCISS_DRIVER_VERSION |
( |
|
maj, |
|
|
|
min, |
|
|
|
submin |
|
) |
| ((maj<<16)|(min<<8)|(submin)) |
#define cciss_noop |
( |
|
p | ) |
cciss_message(p, 3, 0) |
#define CCISS_SIMPLE_ERROR_BITS 0x03 |
#define DIRECT_LOOKUP_BIT 0x10 |
#define DIRECT_LOOKUP_SHIFT 5 |
#define DRIVER_NAME "HP CISS Driver (v 3.6.26)" |
#define MAX_CMD_RETRIES 3 |
#define MAX_CONFIG_WAIT 30000 |
#define MAX_IOCTL_CONFIG_WAIT 1000 |
#define MAX_PRODUCT_NAME_LEN 19 |
#define MINIMUM_TRANSFER_BLOCKS 4 |
#define PAGE_83_INQ_BYTES 64 |
MODULE_AUTHOR |
( |
"Hewlett-Packard Company" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Driver for HP Smart Array Controllers" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
cciss_pci_device_id |
|
|
) |
| |
module_exit |
( |
cciss_cleanup |
| ) |
|
module_init |
( |
cciss_init |
| ) |
|
module_param |
( |
cciss_tape_cmds |
, |
|
|
int |
, |
|
|
0644 |
|
|
) |
| |
module_param |
( |
cciss_simple_mode |
, |
|
|
int |
, |
|
|
S_IRUGO| |
S_IWUSR |
|
) |
| |
MODULE_PARM_DESC |
( |
cciss_tape_cmds |
, |
|
|
"number of commands to allocate for tape devices (default: 6)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
cciss_simple_mode |
, |
|
|
"Use 'simple mode' rather than 'performant mode'" |
|
|
) |
| |
MODULE_SUPPORTED_DEVICE |
( |
"HP Smart Array Controllers" |
| ) |
|
MODULE_VERSION |
( |
"3.6.26" |
| ) |
|