Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
megaraid.c File Reference
#include <linux/mm.h>
#include <linux/fs.h>
#include <linux/blkdev.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/completion.h>
#include <linux/delay.h>
#include <linux/proc_fs.h>
#include <linux/reboot.h>
#include <linux/module.h>
#include <linux/list.h>
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <scsi/scsicam.h>
#include "scsi.h"
#include <scsi/scsi_host.h>
#include "megaraid.h"

Go to the source code of this file.

Macros

#define MEGARAID_MODULE_VERSION   "2.00.4"
 
#define RDINDOOR(adapter)   readl((adapter)->mmio_base + 0x20)
 
#define RDOUTDOOR(adapter)   readl((adapter)->mmio_base + 0x2C)
 
#define WRINDOOR(adapter, value)   writel(value, (adapter)->mmio_base + 0x20)
 
#define WROUTDOOR(adapter, value)   writel(value, (adapter)->mmio_base + 0x2C)
 
#define IS_RAID_CH(hba, ch)   (((hba)->mega_ch_class >> (ch)) & 0x01)
 

Functions

 MODULE_AUTHOR ("[email protected]")
 
 MODULE_DESCRIPTION ("LSI Logic MegaRAID legacy driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (MEGARAID_MODULE_VERSION)
 
 module_param (max_cmd_per_lun, uint, 0)
 
 MODULE_PARM_DESC (max_cmd_per_lun,"Maximum number of commands which can be issued to a single LUN (default=DEF_CMD_PER_LUN=63)")
 
 module_param (max_sectors_per_io, ushort, 0)
 
 MODULE_PARM_DESC (max_sectors_per_io,"Maximum number of sectors per I/O request (default=MAX_SECTORS_PER_IO=128)")
 
 module_param (max_mbox_busy_wait, ushort, 0)
 
 MODULE_PARM_DESC (max_mbox_busy_wait,"Maximum wait for mailbox in microseconds if busy (default=MBOX_BUSY_WAIT=10)")
 
const charmegaraid_info (struct Scsi_Host *host)
 
 MODULE_DEVICE_TABLE (pci, megaraid_pci_tbl)
 
 module_init (megaraid_init)
 
 module_exit (megaraid_exit)
 

Macro Definition Documentation

#define IS_RAID_CH (   hba,
  ch 
)    (((hba)->mega_ch_class >> (ch)) & 0x01)

Definition at line 121 of file megaraid.c.

#define MEGARAID_MODULE_VERSION   "2.00.4"

Definition at line 58 of file megaraid.c.

#define RDINDOOR (   adapter)    readl((adapter)->mmio_base + 0x20)

Definition at line 79 of file megaraid.c.

#define RDOUTDOOR (   adapter)    readl((adapter)->mmio_base + 0x2C)

Definition at line 80 of file megaraid.c.

#define WRINDOOR (   adapter,
  value 
)    writel(value, (adapter)->mmio_base + 0x20)

Definition at line 81 of file megaraid.c.

#define WROUTDOOR (   adapter,
  value 
)    writel(value, (adapter)->mmio_base + 0x2C)

Definition at line 82 of file megaraid.c.

Function Documentation

const char* megaraid_info ( struct Scsi_Host host)

Definition at line 1873 of file megaraid.c.

MODULE_AUTHOR ( "[email protected] )
MODULE_DESCRIPTION ( "LSI Logic MegaRAID legacy driver )
MODULE_DEVICE_TABLE ( pci  ,
megaraid_pci_tbl   
)
module_exit ( megaraid_exit  )
module_init ( megaraid_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( max_cmd_per_lun  ,
uint  ,
 
)
module_param ( max_sectors_per_io  ,
ushort  ,
 
)
module_param ( max_mbox_busy_wait  ,
ushort  ,
 
)
MODULE_PARM_DESC ( max_cmd_per_lun  ,
"Maximum number of commands which can be issued to a single LUN (default=DEF_CMD_PER_LUN=63)"   
)
MODULE_PARM_DESC ( max_sectors_per_io  ,
"Maximum number of sectors per I/O request (default=MAX_SECTORS_PER_IO=128)"   
)
MODULE_PARM_DESC ( max_mbox_busy_wait  ,
"Maximum wait for mailbox in microseconds if busy (default=MBOX_BUSY_WAIT=10)"   
)
MODULE_VERSION ( MEGARAID_MODULE_VERSION  )