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

Go to the source code of this file.

Data Structures

struct  srp_direct_buf
 
struct  srp_indirect_buf
 
struct  srp_login_req
 
struct  srp_login_rsp
 
struct  srp_login_rej
 
struct  srp_i_logout
 
struct  srp_t_logout
 
struct  srp_tsk_mgmt
 
struct  srp_cmd
 
struct  srp_rsp
 
struct  srp_cred_req
 
struct  srp_cred_rsp
 
struct  srp_aer_req
 
struct  srp_aer_rsp
 

Enumerations

enum  {
  SRP_LOGIN_REQ = 0x00, SRP_TSK_MGMT = 0x01, SRP_CMD = 0x02, SRP_I_LOGOUT = 0x03,
  SRP_LOGIN_RSP = 0xc0, SRP_RSP = 0xc1, SRP_LOGIN_REJ = 0xc2, SRP_T_LOGOUT = 0x80,
  SRP_CRED_REQ = 0x81, SRP_AER_REQ = 0x82, SRP_CRED_RSP = 0x41, SRP_AER_RSP = 0x42
}
 
enum  { SRP_BUF_FORMAT_DIRECT = 1 << 1, SRP_BUF_FORMAT_INDIRECT = 1 << 2 }
 
enum  { SRP_NO_DATA_DESC = 0, SRP_DATA_DESC_DIRECT = 1, SRP_DATA_DESC_INDIRECT = 2 }
 
enum  {
  SRP_TSK_ABORT_TASK = 0x01, SRP_TSK_ABORT_TASK_SET = 0x02, SRP_TSK_CLEAR_TASK_SET = 0x04, SRP_TSK_LUN_RESET = 0x08,
  SRP_TSK_CLEAR_ACA = 0x40
}
 
enum  srp_login_rej_reason {
  SRP_LOGIN_REJ_UNABLE_ESTABLISH_CHANNEL = 0x00010000, SRP_LOGIN_REJ_INSUFFICIENT_RESOURCES = 0x00010001, SRP_LOGIN_REJ_REQ_IT_IU_LENGTH_TOO_LARGE = 0x00010002, SRP_LOGIN_REJ_UNABLE_ASSOCIATE_CHANNEL = 0x00010003,
  SRP_LOGIN_REJ_UNSUPPORTED_DESCRIPTOR_FMT = 0x00010004, SRP_LOGIN_REJ_MULTI_CHANNEL_UNSUPPORTED = 0x00010005, SRP_LOGIN_REJ_CHANNEL_LIMIT_REACHED = 0x00010006
}
 
enum  { SRP_REV10_IB_IO_CLASS = 0xff00, SRP_REV16A_IB_IO_CLASS = 0x0100 }
 
enum  { SRP_MULTICHAN_SINGLE = 0, SRP_MULTICHAN_MULTI = 1 }
 
enum  {
  SRP_RSP_FLAG_RSPVALID = 1 << 0, SRP_RSP_FLAG_SNSVALID = 1 << 1, SRP_RSP_FLAG_DOOVER = 1 << 2, SRP_RSP_FLAG_DOUNDER = 1 << 3,
  SRP_RSP_FLAG_DIOVER = 1 << 4, SRP_RSP_FLAG_DIUNDER = 1 << 5
}
 

Functions

struct srp_indirect_buf __attribute__ ((packed))
 

Variables

struct srp_direct_buf table_desc
 
__be32 len
 
struct srp_direct_buf desc_list [0]
 
enum { ... }  __attribute__
 
u8 opcode
 
u8 reserved1 [3]
 
__be32 req_lim_delta
 
u64 tag
 
__be32 max_it_iu_len
 
__be32 max_ti_iu_len
 
__be16 buf_fmt
 
u8 rsp_flags
 
u8 reserved2 [25]
 
u8 sol_not
 
u8 flags
 
u8 status
 
__be32 data_out_res_cnt
 
__be32 data_in_res_cnt
 
__be32 sense_data_len
 
__be32 resp_data_len
 
u8 data [0]
 
u8 reserved [2]
 
__be64 lun
 
u32 reserved3
 
u8 sense_data [0]
 

Enumeration Type Documentation

anonymous enum
Enumerator:
SRP_LOGIN_REQ 
SRP_TSK_MGMT 
SRP_CMD 
SRP_I_LOGOUT 
SRP_LOGIN_RSP 
SRP_RSP 
SRP_LOGIN_REJ 
SRP_T_LOGOUT 
SRP_CRED_REQ 
SRP_AER_REQ 
SRP_CRED_RSP 
SRP_AER_RSP 

Definition at line 46 of file srp.h.

anonymous enum
Enumerator:
SRP_BUF_FORMAT_DIRECT 
SRP_BUF_FORMAT_INDIRECT 

Definition at line 61 of file srp.h.

anonymous enum
Enumerator:
SRP_NO_DATA_DESC 
SRP_DATA_DESC_DIRECT 
SRP_DATA_DESC_INDIRECT 

Definition at line 66 of file srp.h.

anonymous enum
Enumerator:
SRP_TSK_ABORT_TASK 
SRP_TSK_ABORT_TASK_SET 
SRP_TSK_CLEAR_TASK_SET 
SRP_TSK_LUN_RESET 
SRP_TSK_CLEAR_ACA 

Definition at line 72 of file srp.h.

anonymous enum
Enumerator:
SRP_REV10_IB_IO_CLASS 
SRP_REV16A_IB_IO_CLASS 

Definition at line 90 of file srp.h.

anonymous enum
Enumerator:
SRP_MULTICHAN_SINGLE 
SRP_MULTICHAN_MULTI 

Definition at line 113 of file srp.h.

anonymous enum
Enumerator:
SRP_RSP_FLAG_RSPVALID 
SRP_RSP_FLAG_SNSVALID 
SRP_RSP_FLAG_DOOVER 
SRP_RSP_FLAG_DOUNDER 
SRP_RSP_FLAG_DIOVER 
SRP_RSP_FLAG_DIUNDER 

Definition at line 212 of file srp.h.

Enumerator:
SRP_LOGIN_REJ_UNABLE_ESTABLISH_CHANNEL 
SRP_LOGIN_REJ_INSUFFICIENT_RESOURCES 
SRP_LOGIN_REJ_REQ_IT_IU_LENGTH_TOO_LARGE 
SRP_LOGIN_REJ_UNABLE_ASSOCIATE_CHANNEL 
SRP_LOGIN_REJ_UNSUPPORTED_DESCRIPTOR_FMT 
SRP_LOGIN_REJ_MULTI_CHANNEL_UNSUPPORTED 
SRP_LOGIN_REJ_CHANNEL_LIMIT_REACHED 

Definition at line 80 of file srp.h.

Function Documentation

struct srp_indirect_buf __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

__be16 buf_fmt

Definition at line 153 of file srp.h.

u8 data[0]

Definition at line 253 of file srp.h.

__be32 data_in_res_cnt

Definition at line 250 of file srp.h.

__be32 data_out_res_cnt

Definition at line 249 of file srp.h.

struct srp_direct_buf desc_list[0]

Definition at line 114 of file srp.h.

u8 flags

Definition at line 247 of file srp.h.

__be32 len

Definition at line 113 of file srp.h.

__be64 lun

Definition at line 279 of file srp.h.

__be32 max_it_iu_len

Definition at line 151 of file srp.h.

__be32 max_ti_iu_len

Definition at line 152 of file srp.h.

Definition at line 147 of file srp.h.

__be32 req_lim_delta

Definition at line 149 of file srp.h.

u8 reserved[2]

Definition at line 275 of file srp.h.

u8 reserved1[2]

Definition at line 148 of file srp.h.

u32 reserved2

Definition at line 155 of file srp.h.

u32 reserved3

Definition at line 281 of file srp.h.

__be32 resp_data_len

Definition at line 252 of file srp.h.

u8 rsp_flags

Definition at line 154 of file srp.h.

Definition at line 282 of file srp.h.

__be32 sense_data_len

Definition at line 251 of file srp.h.

u8 sol_not

Definition at line 242 of file srp.h.

Definition at line 248 of file srp.h.

struct srp_direct_buf table_desc

Definition at line 112 of file srp.h.

Definition at line 150 of file srp.h.