Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mbox_defs.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  __attribute__
 
struct  private_bios_data
 
struct  __attribute__
 
struct  __attribute__
 

Macros

#define MBOXCMD_LREAD   0x01
 
#define MBOXCMD_LWRITE   0x02
 
#define MBOXCMD_PASSTHRU   0x03
 
#define MBOXCMD_ADPEXTINQ   0x04
 
#define MBOXCMD_ADAPTERINQ   0x05
 
#define MBOXCMD_LREAD64   0xA7
 
#define MBOXCMD_LWRITE64   0xA8
 
#define MBOXCMD_PASSTHRU64   0xC3
 
#define MBOXCMD_EXTPTHRU   0xE3
 
#define MAIN_MISC_OPCODE   0xA4
 
#define GET_MAX_SG_SUPPORT   0x01
 
#define SUPPORT_EXT_CDB   0x16
 
#define FC_NEW_CONFIG   0xA1
 
#define NC_SUBOP_PRODUCT_INFO   0x0E
 
#define NC_SUBOP_ENQUIRY3   0x0F
 
#define ENQ3_GET_SOLICITED_FULL   0x02
 
#define OP_DCMD_READ_CONFIG   0x04
 
#define NEW_READ_CONFIG_8LD   0x67
 
#define READ_CONFIG_8LD   0x07
 
#define FLUSH_ADAPTER   0x0A
 
#define FLUSH_SYSTEM   0xFE
 
#define FC_DEL_LOGDRV   0xA4
 
#define OP_SUP_DEL_LOGDRV   0x2A
 
#define OP_GET_LDID_MAP   0x18
 
#define OP_DEL_LOGDRV   0x1C
 
#define IS_BIOS_ENABLED   0x62
 
#define GET_BIOS   0x01
 
#define CHNL_CLASS   0xA9
 
#define GET_CHNL_CLASS   0x00
 
#define SET_CHNL_CLASS   0x01
 
#define CH_RAID   0x01
 
#define CH_SCSI   0x00
 
#define BIOS_PVT_DATA   0x40
 
#define GET_BIOS_PVT_DATA   0x00
 
#define GET_TARGET_ID   0x7D
 
#define CLUSTER_OP   0x70
 
#define GET_CLUSTER_MODE   0x02
 
#define CLUSTER_CMD   0x6E
 
#define RESERVE_LD   0x01
 
#define RELEASE_LD   0x02
 
#define RESET_RESERVATIONS   0x03
 
#define RESERVATION_STATUS   0x04
 
#define RESERVE_PD   0x05
 
#define RELEASE_PD   0x06
 
#define BATTERY_MODULE_MISSING   0x01
 
#define BATTERY_LOW_VOLTAGE   0x02
 
#define BATTERY_TEMP_HIGH   0x04
 
#define BATTERY_PACK_MISSING   0x08
 
#define BATTERY_CHARGE_MASK   0x30
 
#define BATTERY_CHARGE_DONE   0x00
 
#define BATTERY_CHARGE_INPROG   0x10
 
#define BATTERY_CHARGE_FAIL   0x20
 
#define BATTERY_CYCLES_EXCEEDED   0x40
 
#define PDRV_UNCNF   0
 
#define PDRV_ONLINE   3
 
#define PDRV_FAILED   4
 
#define PDRV_RBLD   5
 
#define PDRV_HOTSPARE   6
 
#define RDRV_OFFLINE   0
 
#define RDRV_DEGRADED   1
 
#define RDRV_OPTIMAL   2
 
#define RDRV_DELETED   3
 
#define NO_READ_AHEAD   0
 
#define READ_AHEAD   1
 
#define ADAP_READ_AHEAD   2
 
#define WRMODE_WRITE_THRU   0
 
#define WRMODE_WRITE_BACK   1
 
#define CACHED_IO   0
 
#define DIRECT_IO   1
 
#define MAX_LOGICAL_DRIVES_8LD   8
 
#define MAX_LOGICAL_DRIVES_40LD   40
 
#define FC_MAX_PHYSICAL_DEVICES   256
 
#define MAX_MBOX_CHANNELS   5
 
#define MAX_MBOX_TARGET   15
 
#define MBOX_MAX_PHYSICAL_DRIVES   MAX_MBOX_CHANNELS*MAX_MBOX_TARGET
 
#define MAX_ROW_SIZE_40LD   32
 
#define MAX_ROW_SIZE_8LD   8
 
#define SPAN_DEPTH_8_SPANS   8
 
#define SPAN_DEPTH_4_SPANS   4
 
#define MAX_REQ_SENSE_LEN   0x20
 
#define MBOX_MAX_FIRMWARE_STATUS   46
 
#define MAX_NOTIFY_SIZE   0x80
 
#define CUR_NOTIFY_SIZE   sizeof(mraid_notify_t)
 

Functions

struct private_bios_data __attribute__ ((packed))
 

Variables

typedef __attribute__
 
uint8_t geometry
 
uint8_t unused
 
uint8_t boot_drv
 
uint8_t rsvd [12]
 
uint16_t cksum
 

Macro Definition Documentation

#define ADAP_READ_AHEAD   2

Definition at line 121 of file mbox_defs.h.

#define BATTERY_CHARGE_DONE   0x00

Definition at line 93 of file mbox_defs.h.

#define BATTERY_CHARGE_FAIL   0x20

Definition at line 95 of file mbox_defs.h.

#define BATTERY_CHARGE_INPROG   0x10

Definition at line 94 of file mbox_defs.h.

#define BATTERY_CHARGE_MASK   0x30

Definition at line 92 of file mbox_defs.h.

#define BATTERY_CYCLES_EXCEEDED   0x40

Definition at line 96 of file mbox_defs.h.

#define BATTERY_LOW_VOLTAGE   0x02

Definition at line 89 of file mbox_defs.h.

#define BATTERY_MODULE_MISSING   0x01

Definition at line 88 of file mbox_defs.h.

#define BATTERY_PACK_MISSING   0x08

Definition at line 91 of file mbox_defs.h.

#define BATTERY_TEMP_HIGH   0x04

Definition at line 90 of file mbox_defs.h.

#define BIOS_PVT_DATA   0x40

Definition at line 66 of file mbox_defs.h.

#define CACHED_IO   0

Definition at line 124 of file mbox_defs.h.

#define CH_RAID   0x01

Definition at line 64 of file mbox_defs.h.

#define CH_SCSI   0x00

Definition at line 65 of file mbox_defs.h.

#define CHNL_CLASS   0xA9

Definition at line 61 of file mbox_defs.h.

#define CLUSTER_CMD   0x6E

Definition at line 76 of file mbox_defs.h.

#define CLUSTER_OP   0x70

Definition at line 74 of file mbox_defs.h.

#define CUR_NOTIFY_SIZE   sizeof(mraid_notify_t)

Definition at line 451 of file mbox_defs.h.

#define DIRECT_IO   1

Definition at line 125 of file mbox_defs.h.

#define ENQ3_GET_SOLICITED_FULL   0x02

Definition at line 41 of file mbox_defs.h.

#define FC_DEL_LOGDRV   0xA4

Definition at line 51 of file mbox_defs.h.

#define FC_MAX_PHYSICAL_DEVICES   256

Definition at line 129 of file mbox_defs.h.

#define FC_NEW_CONFIG   0xA1

Definition at line 38 of file mbox_defs.h.

#define FLUSH_ADAPTER   0x0A

Definition at line 45 of file mbox_defs.h.

#define FLUSH_SYSTEM   0xFE

Definition at line 46 of file mbox_defs.h.

#define GET_BIOS   0x01

Definition at line 60 of file mbox_defs.h.

#define GET_BIOS_PVT_DATA   0x00

Definition at line 67 of file mbox_defs.h.

#define GET_CHNL_CLASS   0x00

Definition at line 62 of file mbox_defs.h.

#define GET_CLUSTER_MODE   0x02

Definition at line 75 of file mbox_defs.h.

#define GET_MAX_SG_SUPPORT   0x01

Definition at line 35 of file mbox_defs.h.

#define GET_TARGET_ID   0x7D

Definition at line 73 of file mbox_defs.h.

#define IS_BIOS_ENABLED   0x62

Definition at line 59 of file mbox_defs.h.

#define MAIN_MISC_OPCODE   0xA4

Definition at line 34 of file mbox_defs.h.

#define MAX_LOGICAL_DRIVES_40LD   40

Definition at line 128 of file mbox_defs.h.

#define MAX_LOGICAL_DRIVES_8LD   8

Definition at line 127 of file mbox_defs.h.

#define MAX_MBOX_CHANNELS   5

Definition at line 130 of file mbox_defs.h.

#define MAX_MBOX_TARGET   15

Definition at line 131 of file mbox_defs.h.

#define MAX_NOTIFY_SIZE   0x80

mraid_inquiry3_t - enquiry for device information

: current size in bytes (not including resvd) : : : rebuild rate (0% - 100%) : cache flush interval in seconds : : drive insertion count : : no. of Log Drives configured : state of reconstruct : logdrv Status : size of each log drv : : state of log drives : state of phys drvs. : : phys device transfer rate : 761 + 263reserved = 1024 bytes total size

Definition at line 450 of file mbox_defs.h.

#define MAX_REQ_SENSE_LEN   0x20

Definition at line 137 of file mbox_defs.h.

#define MAX_ROW_SIZE_40LD   32

Definition at line 133 of file mbox_defs.h.

#define MAX_ROW_SIZE_8LD   8

Definition at line 134 of file mbox_defs.h.

#define MBOX_MAX_FIRMWARE_STATUS   46

struct mbox_t - Driver and f/w handshake structure. : firmware command : command id : number of sectors to be transferred : Logical Block Address on LD : DMA address for data transfer : logical drive number : number of scatter gather elements in sg list : reserved : f/w busy, must wait to issue more commands. : number of commands completed. : status of the commands completed : array of completed command ids. : poll and ack sequence : poll and ack sequence

The central handshake structure between the driver and the firmware. This structure must be allocated by the driver and aligned at 8-byte boundary.

Definition at line 161 of file mbox_defs.h.

#define MBOX_MAX_PHYSICAL_DRIVES   MAX_MBOX_CHANNELS*MAX_MBOX_TARGET

Definition at line 132 of file mbox_defs.h.

#define MBOXCMD_ADAPTERINQ   0x05

Definition at line 28 of file mbox_defs.h.

#define MBOXCMD_ADPEXTINQ   0x04

Definition at line 27 of file mbox_defs.h.

#define MBOXCMD_EXTPTHRU   0xE3

Definition at line 32 of file mbox_defs.h.

#define MBOXCMD_LREAD   0x01

Definition at line 24 of file mbox_defs.h.

#define MBOXCMD_LREAD64   0xA7

Definition at line 29 of file mbox_defs.h.

#define MBOXCMD_LWRITE   0x02

Definition at line 25 of file mbox_defs.h.

#define MBOXCMD_LWRITE64   0xA8

Definition at line 30 of file mbox_defs.h.

#define MBOXCMD_PASSTHRU   0x03

Definition at line 26 of file mbox_defs.h.

#define MBOXCMD_PASSTHRU64   0xC3

Definition at line 31 of file mbox_defs.h.

#define NC_SUBOP_ENQUIRY3   0x0F

Definition at line 40 of file mbox_defs.h.

#define NC_SUBOP_PRODUCT_INFO   0x0E

Definition at line 39 of file mbox_defs.h.

#define NEW_READ_CONFIG_8LD   0x67

Definition at line 43 of file mbox_defs.h.

#define NO_READ_AHEAD   0

Definition at line 119 of file mbox_defs.h.

#define OP_DCMD_READ_CONFIG   0x04

Definition at line 42 of file mbox_defs.h.

#define OP_DEL_LOGDRV   0x1C

Definition at line 54 of file mbox_defs.h.

#define OP_GET_LDID_MAP   0x18

Definition at line 53 of file mbox_defs.h.

#define OP_SUP_DEL_LOGDRV   0x2A

Definition at line 52 of file mbox_defs.h.

#define PDRV_FAILED   4

Definition at line 103 of file mbox_defs.h.

#define PDRV_HOTSPARE   6

Definition at line 105 of file mbox_defs.h.

#define PDRV_ONLINE   3

Definition at line 102 of file mbox_defs.h.

#define PDRV_RBLD   5

Definition at line 104 of file mbox_defs.h.

#define PDRV_UNCNF   0

Definition at line 101 of file mbox_defs.h.

#define RDRV_DEGRADED   1

Definition at line 112 of file mbox_defs.h.

#define RDRV_DELETED   3

Definition at line 114 of file mbox_defs.h.

#define RDRV_OFFLINE   0

Definition at line 111 of file mbox_defs.h.

#define RDRV_OPTIMAL   2

Definition at line 113 of file mbox_defs.h.

#define READ_AHEAD   1

Definition at line 120 of file mbox_defs.h.

#define READ_CONFIG_8LD   0x07

Definition at line 44 of file mbox_defs.h.

#define RELEASE_LD   0x02

Definition at line 78 of file mbox_defs.h.

#define RELEASE_PD   0x06

Definition at line 82 of file mbox_defs.h.

#define RESERVATION_STATUS   0x04

Definition at line 80 of file mbox_defs.h.

#define RESERVE_LD   0x01

Definition at line 77 of file mbox_defs.h.

#define RESERVE_PD   0x05

Definition at line 81 of file mbox_defs.h.

#define RESET_RESERVATIONS   0x03

Definition at line 79 of file mbox_defs.h.

#define SET_CHNL_CLASS   0x01

Definition at line 63 of file mbox_defs.h.

#define SPAN_DEPTH_4_SPANS   4

Definition at line 136 of file mbox_defs.h.

#define SPAN_DEPTH_8_SPANS   8

Definition at line 135 of file mbox_defs.h.

#define SUPPORT_EXT_CDB   0x16

Definition at line 36 of file mbox_defs.h.

#define WRMODE_WRITE_BACK   1

Definition at line 123 of file mbox_defs.h.

#define WRMODE_WRITE_THRU   0

Definition at line 122 of file mbox_defs.h.

Function Documentation

struct private_bios_data __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

Variable Documentation

typedef __attribute__
uint8_t boot_drv

Definition at line 768 of file mbox_defs.h.

uint16_t cksum

Definition at line 770 of file mbox_defs.h.

uint8_t geometry

Definition at line 766 of file mbox_defs.h.

uint8_t rsvd[12]

Definition at line 769 of file mbox_defs.h.

Definition at line 767 of file mbox_defs.h.