Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cpqarray.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/bio.h>
#include <linux/interrupt.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/major.h>
#include <linux/fs.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/hdreg.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <linux/blkdev.h>
#include <linux/genhd.h>
#include <linux/scatterlist.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include "cpqarray.h"
#include "ida_cmd.h"
#include "smart1,2.h"
#include "ida_ioctl.h"

Go to the source code of this file.

Macros

#define SMART2_DRIVER_VERSION(maj, min, submin)   ((maj<<16)|(min<<8)|(submin))
 
#define DRIVER_NAME   "Compaq SMART2 Driver (v 2.6.0)"
 
#define DRIVER_VERSION   SMART2_DRIVER_VERSION(2,6,0)
 
#define READ_AHEAD   128
 
#define NR_CMDS   128 /* This could probably go as high as ~400 */
 
#define MAX_CTLR   8
 
#define CTLR_SHIFT   8
 
#define CPQARRAY_DMA_MASK   0xFFFFFFFF /* 32 bit DMA */
 
#define NR_PRODUCTS   ARRAY_SIZE(products)
 
#define DBG(s)   do { s } while(0)
 
#define DBGINFO(s)   do { } while(0)
 
#define DBGP(s)   do { } while(0)
 
#define DBGPX(s)   do { } while(0)
 

Functions

 MODULE_AUTHOR ("Compaq Computer Corporation")
 
 MODULE_DESCRIPTION ("Driver for Compaq Smart2 Array Controllers version 2.6.0")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (pci, cpqarray_pci_device_id)
 
 module_param_array (eisa, int, NULL, 0)
 
 __setup ("smart2=", cpqarray_setup)
 

Macro Definition Documentation

#define CPQARRAY_DMA_MASK   0xFFFFFFFF /* 32 bit DMA */

Definition at line 69 of file cpqarray.c.

#define CTLR_SHIFT   8

Definition at line 67 of file cpqarray.c.

#define DBG (   s)    do { s } while(0)

Definition at line 132 of file cpqarray.c.

#define DBGINFO (   s)    do { } while(0)

Definition at line 134 of file cpqarray.c.

#define DBGP (   s)    do { } while(0)

Definition at line 136 of file cpqarray.c.

#define DBGPX (   s)    do { } while(0)

Definition at line 138 of file cpqarray.c.

#define DRIVER_NAME   "Compaq SMART2 Driver (v 2.6.0)"

Definition at line 49 of file cpqarray.c.

#define DRIVER_VERSION   SMART2_DRIVER_VERSION(2,6,0)

Definition at line 50 of file cpqarray.c.

#define MAX_CTLR   8

Definition at line 66 of file cpqarray.c.

#define NR_CMDS   128 /* This could probably go as high as ~400 */

Definition at line 64 of file cpqarray.c.

#define NR_PRODUCTS   ARRAY_SIZE(products)

Definition at line 77 of file cpqarray.c.

#define READ_AHEAD   128

Definition at line 63 of file cpqarray.c.

#define SMART2_DRIVER_VERSION (   maj,
  min,
  submin 
)    ((maj<<16)|(min<<8)|(submin))

Definition at line 47 of file cpqarray.c.

Function Documentation

__setup ( )
MODULE_AUTHOR ( "Compaq Computer Corporation"  )
MODULE_DESCRIPTION ( "Driver for Compaq Smart2 Array Controllers version 2.6.0"  )
MODULE_DEVICE_TABLE ( pci  ,
cpqarray_pci_device_id   
)
MODULE_LICENSE ( "GPL"  )
module_param_array ( eisa  ,
int  ,
NULL  ,
 
)