Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Variables
mtip32xx.h File Reference
#include <linux/spinlock.h>
#include <linux/rwsem.h>
#include <linux/ata.h>
#include <linux/interrupt.h>
#include <linux/genhd.h>

Go to the source code of this file.

Data Structures

struct  smart_attr
 
struct  host_to_dev_fis
 
struct  mtip_cmd_hdr
 
struct  mtip_cmd_sg
 
struct  mtip_cmd
 
struct  mtip_port
 
struct  driver_data
 

Macros

#define PCI_SUBSYSTEM_DEVICEID   0x2E
 
#define PCIE_CONFIG_EXT_DEVICE_CONTROL_OFFSET   0x48
 
#define MTIP_SEC_ERASE_MODE   0x2
 
#define MTIP_MAX_RETRIES   2
 
#define MTIP_NCQ_COMMAND_TIMEOUT_MS   5000
 
#define MTIP_IOCTL_COMMAND_TIMEOUT_MS   5000
 
#define MTIP_INTERNAL_COMMAND_TIMEOUT_MS   5000
 
#define MTIP_TIMEOUT_CHECK_PERIOD   500
 
#define MTIP_FTL_REBUILD_OFFSET   142
 
#define MTIP_FTL_REBUILD_MAGIC   0xED51
 
#define MTIP_FTL_REBUILD_TIMEOUT_MS   2400000
 
#define MTIP_TAG_BIT(tag)   (tag & 0x1F)
 
#define MTIP_TAG_INDEX(tag)   (tag >> 5)
 
#define MTIP_MAX_SG   128
 
#define MTIP_MAX_SLOT_GROUPS   8
 
#define MTIP_TAG_INTERNAL   0
 
#define PCI_VENDOR_ID_MICRON   0x1344
 
#define P320H_DEVICE_ID   0x5150
 
#define P320M_DEVICE_ID   0x5151
 
#define P320S_DEVICE_ID   0x5152
 
#define P325M_DEVICE_ID   0x5153
 
#define P420H_DEVICE_ID   0x5160
 
#define P420M_DEVICE_ID   0x5161
 
#define P425M_DEVICE_ID   0x5163
 
#define MTIP_DRV_NAME   "mtip32xx"
 
#define MTIP_DRV_VERSION   "1.2.6os3"
 
#define MTIP_MAX_MINORS   16
 
#define MTIP_MAX_COMMAND_SLOTS   (MTIP_MAX_SLOT_GROUPS * 32)
 
#define U32_PER_LONG   (sizeof(long) / sizeof(u32))
 
#define SLOTBITS_IN_LONGS
 
#define MTIP_ABAR   5
 
#define dbg_printk(format, arg...)
 
#define MTIP_DFS_MAX_BUF_SIZE   1024
 
#define __force_bit2int   (unsigned int __force)
 

Enumerations

enum  {
  MTIP_PF_IC_ACTIVE_BIT = 0, MTIP_PF_EH_ACTIVE_BIT = 1, MTIP_PF_SE_ACTIVE_BIT = 2, MTIP_PF_DM_ACTIVE_BIT = 3,
  MTIP_PF_PAUSE_IO, MTIP_PF_SVC_THD_ACTIVE_BIT = 4, MTIP_PF_ISSUE_CMDS_BIT = 5, MTIP_PF_REBUILD_BIT = 6,
  MTIP_PF_SVC_THD_STOP_BIT = 8, MTIP_DDF_SEC_LOCK_BIT = 0, MTIP_DDF_REMOVE_PENDING_BIT = 1, MTIP_DDF_OVER_TEMP_BIT = 2,
  MTIP_DDF_WRITE_PROTECT_BIT = 3, MTIP_DDF_STOP_IO, MTIP_DDF_CLEANUP_BIT = 5, MTIP_DDF_RESUME_BIT = 6,
  MTIP_DDF_INIT_DONE_BIT = 7, MTIP_DDF_REBUILD_FAILED_BIT = 8
}
 

Variables

struct smart_attr __packed
 

Macro Definition Documentation

#define __force_bit2int   (unsigned int __force)

Definition at line 124 of file mtip32xx.h.

#define dbg_printk (   format,
  arg... 
)

Definition at line 119 of file mtip32xx.h.

#define MTIP_ABAR   5

Definition at line 113 of file mtip32xx.h.

#define MTIP_DFS_MAX_BUF_SIZE   1024

Definition at line 122 of file mtip32xx.h.

#define MTIP_DRV_NAME   "mtip32xx"

Definition at line 91 of file mtip32xx.h.

#define MTIP_DRV_VERSION   "1.2.6os3"

Definition at line 92 of file mtip32xx.h.

#define MTIP_FTL_REBUILD_MAGIC   0xED51

Definition at line 52 of file mtip32xx.h.

#define MTIP_FTL_REBUILD_OFFSET   142

Definition at line 51 of file mtip32xx.h.

#define MTIP_FTL_REBUILD_TIMEOUT_MS   2400000

Definition at line 53 of file mtip32xx.h.

#define MTIP_INTERNAL_COMMAND_TIMEOUT_MS   5000

Definition at line 45 of file mtip32xx.h.

#define MTIP_IOCTL_COMMAND_TIMEOUT_MS   5000

Definition at line 44 of file mtip32xx.h.

#define MTIP_MAX_COMMAND_SLOTS   (MTIP_MAX_SLOT_GROUPS * 32)

Definition at line 98 of file mtip32xx.h.

#define MTIP_MAX_MINORS   16

Definition at line 95 of file mtip32xx.h.

#define MTIP_MAX_RETRIES   2

Definition at line 40 of file mtip32xx.h.

#define MTIP_MAX_SG   128

Definition at line 69 of file mtip32xx.h.

#define MTIP_MAX_SLOT_GROUPS   8

Definition at line 75 of file mtip32xx.h.

#define MTIP_NCQ_COMMAND_TIMEOUT_MS   5000

Definition at line 43 of file mtip32xx.h.

#define MTIP_SEC_ERASE_MODE   0x2

Definition at line 37 of file mtip32xx.h.

#define MTIP_TAG_BIT (   tag)    (tag & 0x1F)

Definition at line 56 of file mtip32xx.h.

#define MTIP_TAG_INDEX (   tag)    (tag >> 5)

Definition at line 63 of file mtip32xx.h.

#define MTIP_TAG_INTERNAL   0

Definition at line 78 of file mtip32xx.h.

#define MTIP_TIMEOUT_CHECK_PERIOD   500

Definition at line 48 of file mtip32xx.h.

#define P320H_DEVICE_ID   0x5150

Definition at line 82 of file mtip32xx.h.

#define P320M_DEVICE_ID   0x5151

Definition at line 83 of file mtip32xx.h.

#define P320S_DEVICE_ID   0x5152

Definition at line 84 of file mtip32xx.h.

#define P325M_DEVICE_ID   0x5153

Definition at line 85 of file mtip32xx.h.

#define P420H_DEVICE_ID   0x5160

Definition at line 86 of file mtip32xx.h.

#define P420M_DEVICE_ID   0x5161

Definition at line 87 of file mtip32xx.h.

#define P425M_DEVICE_ID   0x5163

Definition at line 88 of file mtip32xx.h.

#define PCI_SUBSYSTEM_DEVICEID   0x2E

Definition at line 31 of file mtip32xx.h.

#define PCI_VENDOR_ID_MICRON   0x1344

Definition at line 81 of file mtip32xx.h.

#define PCIE_CONFIG_EXT_DEVICE_CONTROL_OFFSET   0x48

Definition at line 34 of file mtip32xx.h.

#define SLOTBITS_IN_LONGS
Value:

Definition at line 109 of file mtip32xx.h.

#define U32_PER_LONG   (sizeof(long) / sizeof(u32))

Definition at line 108 of file mtip32xx.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
MTIP_PF_IC_ACTIVE_BIT 
MTIP_PF_EH_ACTIVE_BIT 
MTIP_PF_SE_ACTIVE_BIT 
MTIP_PF_DM_ACTIVE_BIT 
MTIP_PF_PAUSE_IO 
MTIP_PF_SVC_THD_ACTIVE_BIT 
MTIP_PF_ISSUE_CMDS_BIT 
MTIP_PF_REBUILD_BIT 
MTIP_PF_SVC_THD_STOP_BIT 
MTIP_DDF_SEC_LOCK_BIT 
MTIP_DDF_REMOVE_PENDING_BIT 
MTIP_DDF_OVER_TEMP_BIT 
MTIP_DDF_WRITE_PROTECT_BIT 
MTIP_DDF_STOP_IO 
MTIP_DDF_CLEANUP_BIT 
MTIP_DDF_RESUME_BIT 
MTIP_DDF_INIT_DONE_BIT 
MTIP_DDF_REBUILD_FAILED_BIT 

Definition at line 126 of file mtip32xx.h.

Variable Documentation