Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
mptbase.h File Reference
#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/mutex.h>
#include "lsi/mpi_type.h"
#include "lsi/mpi.h"
#include "lsi/mpi_ioc.h"
#include "lsi/mpi_cnfg.h"
#include "lsi/mpi_init.h"
#include "lsi/mpi_lan.h"
#include "lsi/mpi_raid.h"
#include "lsi/mpi_fc.h"
#include "lsi/mpi_targ.h"
#include "lsi/mpi_tool.h"
#include "lsi/mpi_sas.h"

Go to the source code of this file.

Macros

#define MODULEAUTHOR   "LSI Corporation"
 
#define COPYRIGHT   "Copyright (c) 1999-2008 " MODULEAUTHOR
 
#define MPT_LINUX_VERSION_COMMON   "3.04.20"
 
#define MPT_LINUX_PACKAGE_NAME   "@(#)mptlinux-3.04.20"
 
#define WHAT_MAGIC_STRING   "@" "(" "#" ")"
 
#define show_mptmod_ver(s, ver)   printk(KERN_INFO "%s %s\n", s, ver);
 
#define MPT_MAX_ADAPTERS   18
 
#define MPT_MAX_PROTOCOL_DRIVERS   16
 
#define MPT_MAX_CALLBACKNAME_LEN   49
 
#define MPT_MAX_BUS   1 /* Do not change */
 
#define MPT_MAX_FC_DEVICES   255
 
#define MPT_MAX_SCSI_DEVICES   16
 
#define MPT_LAST_LUN   255
 
#define MPT_SENSE_BUFFER_ALLOC   64
 
#define MPT_SENSE_BUFFER_SIZE   MPT_SENSE_BUFFER_ALLOC
 
#define MPT_NAME_LENGTH   32
 
#define MPT_KOBJ_NAME_LEN   20
 
#define MPT_PROCFS_MPTBASEDIR   "mpt"
 
#define MPT_PROCFS_SUMMARY_ALL_NODE   MPT_PROCFS_MPTBASEDIR "/summary"
 
#define MPT_PROCFS_SUMMARY_ALL_PATHNAME   "/proc/" MPT_PROCFS_SUMMARY_ALL_NODE
 
#define MPT_FW_REV_MAGIC_ID_STRING   "FwRev="
 
#define MPT_MAX_REQ_DEPTH   1023
 
#define MPT_DEFAULT_REQ_DEPTH   256
 
#define MPT_MIN_REQ_DEPTH   128
 
#define MPT_MAX_REPLY_DEPTH   MPT_MAX_REQ_DEPTH
 
#define MPT_DEFAULT_REPLY_DEPTH   128
 
#define MPT_MIN_REPLY_DEPTH   8
 
#define MPT_MAX_REPLIES_PER_ISR   32
 
#define MPT_MAX_FRAME_SIZE   128
 
#define MPT_DEFAULT_FRAME_SIZE   128
 
#define MPT_REPLY_FRAME_SIZE   0x50 /* Must be a multiple of 8 */
 
#define MPT_SG_REQ_128_SCALE   1
 
#define MPT_SG_REQ_96_SCALE   2
 
#define MPT_SG_REQ_64_SCALE   4
 
#define CAN_SLEEP   1
 
#define NO_SLEEP   0
 
#define MPT_COALESCING_TIMEOUT   0x10
 
#define MPT_ULTRA320   0x08
 
#define MPT_ULTRA160   0x09
 
#define MPT_ULTRA2   0x0A
 
#define MPT_ULTRA   0x0C
 
#define MPT_FAST   0x19
 
#define MPT_SCSI   0x32
 
#define MPT_ASYNC   0xFF
 
#define MPT_NARROW   0
 
#define MPT_WIDE   1
 
#define C0_1030   0x08
 
#define XL_929   0x01
 
#define MPT_FC_CAN_QUEUE   1024
 
#define MPT_SCSI_CAN_QUEUE   127
 
#define MPT_SAS_CAN_QUEUE   127
 
#define MPT_SCSI_SG_DEPTH   40
 
#define MPT_SCSI_FC_SG_DEPTH   40
 
#define EVENT_DESCR_STR_SZ   100
 
#define MPT_POLLING_INTERVAL   1000 /* in milliseconds */
 
#define CAST_U32_TO_PTR(x)   ((void *)x)
 
#define CAST_PTR_TO_U32(x)   ((u32)x)
 
#define MPT_PROTOCOL_FLAGS_c_c_c_c(pflags)
 
#define MPT_TRANSFER_IOC_TO_HOST   (0x00000000)
 
#define MPT_TRANSFER_HOST_TO_IOC   (0x04000000)
 
#define MPT_SGE_FLAGS_LAST_ELEMENT   (0x80000000)
 
#define MPT_SGE_FLAGS_END_OF_BUFFER   (0x40000000)
 
#define MPT_SGE_FLAGS_LOCAL_ADDRESS   (0x08000000)
 
#define MPT_SGE_FLAGS_DIRECTION   (0x04000000)
 
#define MPT_SGE_FLAGS_END_OF_LIST   (0x01000000)
 
#define MPT_SGE_FLAGS_TRANSACTION_ELEMENT   (0x00000000)
 
#define MPT_SGE_FLAGS_SIMPLE_ELEMENT   (0x10000000)
 
#define MPT_SGE_FLAGS_CHAIN_ELEMENT   (0x30000000)
 
#define MPT_SGE_FLAGS_ELEMENT_MASK   (0x30000000)
 
#define MPT_SGE_FLAGS_SSIMPLE_READ
 
#define MPT_SGE_FLAGS_SSIMPLE_WRITE
 

Macro Definition Documentation

#define C0_1030   0x08

Definition at line 154 of file mptbase.h.

#define CAN_SLEEP   1

Definition at line 134 of file mptbase.h.

#define CAST_PTR_TO_U32 (   x)    ((u32)x)

Definition at line 966 of file mptbase.h.

#define CAST_U32_TO_PTR (   x)    ((void *)x)

Definition at line 965 of file mptbase.h.

#define COPYRIGHT   "Copyright (c) 1999-2008 " MODULEAUTHOR

Definition at line 76 of file mptbase.h.

#define EVENT_DESCR_STR_SZ   100

Definition at line 193 of file mptbase.h.

#define MODULEAUTHOR   "LSI Corporation"

Definition at line 72 of file mptbase.h.

#define MPT_ASYNC   0xFF

Definition at line 149 of file mptbase.h.

#define MPT_COALESCING_TIMEOUT   0x10

Definition at line 137 of file mptbase.h.

#define MPT_DEFAULT_FRAME_SIZE   128

Definition at line 126 of file mptbase.h.

#define MPT_DEFAULT_REPLY_DEPTH   128

Definition at line 121 of file mptbase.h.

#define MPT_DEFAULT_REQ_DEPTH   256

Definition at line 117 of file mptbase.h.

#define MPT_FAST   0x19

Definition at line 147 of file mptbase.h.

#define MPT_FC_CAN_QUEUE   1024

Definition at line 161 of file mptbase.h.

#define MPT_FW_REV_MAGIC_ID_STRING   "FwRev="

Definition at line 114 of file mptbase.h.

#define MPT_KOBJ_NAME_LEN   20

Definition at line 108 of file mptbase.h.

#define MPT_LAST_LUN   255

Definition at line 96 of file mptbase.h.

#define MPT_LINUX_PACKAGE_NAME   "@(#)mptlinux-3.04.20"

Definition at line 80 of file mptbase.h.

#define MPT_LINUX_VERSION_COMMON   "3.04.20"

Definition at line 79 of file mptbase.h.

#define MPT_MAX_ADAPTERS   18

Definition at line 90 of file mptbase.h.

#define MPT_MAX_BUS   1 /* Do not change */

Definition at line 93 of file mptbase.h.

#define MPT_MAX_CALLBACKNAME_LEN   49

Definition at line 92 of file mptbase.h.

#define MPT_MAX_FC_DEVICES   255

Definition at line 94 of file mptbase.h.

#define MPT_MAX_FRAME_SIZE   128

Definition at line 125 of file mptbase.h.

#define MPT_MAX_PROTOCOL_DRIVERS   16

Definition at line 91 of file mptbase.h.

#define MPT_MAX_REPLIES_PER_ISR   32

Definition at line 123 of file mptbase.h.

#define MPT_MAX_REPLY_DEPTH   MPT_MAX_REQ_DEPTH

Definition at line 120 of file mptbase.h.

#define MPT_MAX_REQ_DEPTH   1023

Definition at line 116 of file mptbase.h.

#define MPT_MAX_SCSI_DEVICES   16

Definition at line 95 of file mptbase.h.

#define MPT_MIN_REPLY_DEPTH   8

Definition at line 122 of file mptbase.h.

#define MPT_MIN_REQ_DEPTH   128

Definition at line 118 of file mptbase.h.

#define MPT_NAME_LENGTH   32

Definition at line 107 of file mptbase.h.

#define MPT_NARROW   0

Definition at line 151 of file mptbase.h.

#define MPT_POLLING_INTERVAL   1000 /* in milliseconds */

Definition at line 195 of file mptbase.h.

#define MPT_PROCFS_MPTBASEDIR   "mpt"

Definition at line 110 of file mptbase.h.

#define MPT_PROCFS_SUMMARY_ALL_NODE   MPT_PROCFS_MPTBASEDIR "/summary"

Definition at line 112 of file mptbase.h.

#define MPT_PROCFS_SUMMARY_ALL_PATHNAME   "/proc/" MPT_PROCFS_SUMMARY_ALL_NODE

Definition at line 113 of file mptbase.h.

#define MPT_PROTOCOL_FLAGS_c_c_c_c (   pflags)
Value:
((pflags) & MPI_PORTFACTS_PROTOCOL_INITIATOR) ? 'I' : 'i', \
((pflags) & MPI_PORTFACTS_PROTOCOL_TARGET) ? 'T' : 't', \
((pflags) & MPI_PORTFACTS_PROTOCOL_LAN) ? 'L' : 'l', \
((pflags) & MPI_PORTFACTS_PROTOCOL_LOGBUSADDR) ? 'B' : 'b'

Definition at line 969 of file mptbase.h.

#define MPT_REPLY_FRAME_SIZE   0x50 /* Must be a multiple of 8 */

Definition at line 128 of file mptbase.h.

#define MPT_SAS_CAN_QUEUE   127

Definition at line 163 of file mptbase.h.

#define MPT_SCSI   0x32

Definition at line 148 of file mptbase.h.

#define MPT_SCSI_CAN_QUEUE   127

Definition at line 162 of file mptbase.h.

#define MPT_SCSI_FC_SG_DEPTH   40

Definition at line 189 of file mptbase.h.

#define MPT_SCSI_SG_DEPTH   40

Definition at line 177 of file mptbase.h.

#define MPT_SENSE_BUFFER_ALLOC   64

Definition at line 97 of file mptbase.h.

#define MPT_SENSE_BUFFER_SIZE   MPT_SENSE_BUFFER_ALLOC

Definition at line 104 of file mptbase.h.

#define MPT_SG_REQ_128_SCALE   1

Definition at line 130 of file mptbase.h.

#define MPT_SG_REQ_64_SCALE   4

Definition at line 132 of file mptbase.h.

#define MPT_SG_REQ_96_SCALE   2

Definition at line 131 of file mptbase.h.

#define MPT_SGE_FLAGS_CHAIN_ELEMENT   (0x30000000)

Definition at line 990 of file mptbase.h.

#define MPT_SGE_FLAGS_DIRECTION   (0x04000000)

Definition at line 985 of file mptbase.h.

#define MPT_SGE_FLAGS_ELEMENT_MASK   (0x30000000)

Definition at line 991 of file mptbase.h.

#define MPT_SGE_FLAGS_END_OF_BUFFER   (0x40000000)

Definition at line 983 of file mptbase.h.

#define MPT_SGE_FLAGS_END_OF_LIST   (0x01000000)

Definition at line 986 of file mptbase.h.

#define MPT_SGE_FLAGS_LAST_ELEMENT   (0x80000000)

Definition at line 982 of file mptbase.h.

#define MPT_SGE_FLAGS_LOCAL_ADDRESS   (0x08000000)

Definition at line 984 of file mptbase.h.

#define MPT_SGE_FLAGS_SIMPLE_ELEMENT   (0x10000000)

Definition at line 989 of file mptbase.h.

#define MPT_SGE_FLAGS_SSIMPLE_READ
Value:
MPT_SGE_FLAGS_END_OF_BUFFER | \
MPT_SGE_FLAGS_END_OF_LIST | \
MPT_SGE_FLAGS_SIMPLE_ELEMENT | \
MPT_TRANSFER_IOC_TO_HOST)

Definition at line 993 of file mptbase.h.

#define MPT_SGE_FLAGS_SSIMPLE_WRITE
Value:
MPT_SGE_FLAGS_END_OF_BUFFER | \
MPT_SGE_FLAGS_END_OF_LIST | \
MPT_SGE_FLAGS_SIMPLE_ELEMENT | \
MPT_TRANSFER_HOST_TO_IOC)

Definition at line 999 of file mptbase.h.

#define MPT_SGE_FLAGS_TRANSACTION_ELEMENT   (0x00000000)

Definition at line 988 of file mptbase.h.

#define MPT_TRANSFER_HOST_TO_IOC   (0x04000000)

Definition at line 981 of file mptbase.h.

#define MPT_TRANSFER_IOC_TO_HOST   (0x00000000)

Definition at line 980 of file mptbase.h.

#define MPT_ULTRA   0x0C

Definition at line 146 of file mptbase.h.

#define MPT_ULTRA160   0x09

Definition at line 144 of file mptbase.h.

#define MPT_ULTRA2   0x0A

Definition at line 145 of file mptbase.h.

#define MPT_ULTRA320   0x08

Definition at line 143 of file mptbase.h.

#define MPT_WIDE   1

Definition at line 152 of file mptbase.h.

#define NO_SLEEP   0

Definition at line 135 of file mptbase.h.

#define show_mptmod_ver (   s,
  ver 
)    printk(KERN_INFO "%s %s\n", s, ver);

Definition at line 83 of file mptbase.h.

#define WHAT_MAGIC_STRING   "@" "(" "#" ")"

Definition at line 81 of file mptbase.h.

#define XL_929   0x01

Definition at line 155 of file mptbase.h.