Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cciss.c File Reference
#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.

Macros

#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)
 

Functions

 MODULE_AUTHOR ("Hewlett-Packard Company")
 
 MODULE_DESCRIPTION ("Driver for HP Smart Array Controllers")
 
 MODULE_SUPPORTED_DEVICE ("HP Smart Array Controllers")
 
 MODULE_VERSION ("3.6.26")
 
 MODULE_LICENSE ("GPL")
 
 module_param (cciss_tape_cmds, int, 0644)
 
 MODULE_PARM_DESC (cciss_tape_cmds,"number of commands to allocate for tape devices (default: 6)")
 
 module_param (cciss_simple_mode, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (cciss_simple_mode,"Use 'simple mode' rather than 'performant mode'")
 
 MODULE_DEVICE_TABLE (pci, cciss_pci_device_id)
 
 module_init (cciss_init)
 
 module_exit (cciss_cleanup)
 

Macro Definition Documentation

#define BOARD_NOT_READY   0
#define BOARD_READY   1
#define CCISS_DRIVER_VERSION (   maj,
  min,
  submin 
)    ((maj<<16)|(min<<8)|(submin))

Definition at line 58 of file cciss.c.

#define cciss_noop (   p)    cciss_message(p, 3, 0)

Definition at line 4522 of file cciss.c.

#define CCISS_PERF_ERROR_BITS   ((1 << DIRECT_LOOKUP_SHIFT) - 1)
#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)"

Definition at line 59 of file cciss.c.

#define DRIVER_VERSION   CCISS_DRIVER_VERSION(3, 6, 26)

Definition at line 60 of file cciss.c.

#define MAX_CMD_RETRIES   3

Definition at line 145 of file cciss.c.

#define MAX_CONFIG_WAIT   30000

Definition at line 141 of file cciss.c.

#define MAX_CTLR   32

Definition at line 147 of file cciss.c.

#define MAX_CTLR_ORIG   8

Definition at line 150 of file cciss.c.

#define MAX_IOCTL_CONFIG_WAIT   1000

Definition at line 142 of file cciss.c.

#define MAX_PRODUCT_NAME_LEN   19

Definition at line 566 of file cciss.c.

#define MINIMUM_TRANSFER_BLOCKS   4
#define NUM_BUCKETS   8
#define PAGE_83_INQ_BYTES   64
#define RAID_UNKNOWN   (ARRAY_SIZE(raid_label)-1)

Definition at line 368 of file cciss.c.

#define to_drv (   n)    container_of(n, drive_info_struct, dev)

Definition at line 569 of file cciss.c.

#define to_hba (   n)    container_of(n, struct ctlr_info, dev)

Definition at line 568 of file cciss.c.

Function Documentation

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_LICENSE ( "GPL"  )
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"  )