Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
ufs.h File Reference

Go to the source code of this file.

Data Structures

struct  utp_upiu_header
 
struct  utp_upiu_cmd
 
struct  utp_upiu_rsp
 
struct  utp_upiu_task_req
 
struct  utp_upiu_task_rsp
 

Macros

#define MAX_CDB_SIZE   16
 
#define UPIU_HEADER_DWORD(byte3, byte2, byte1, byte0)
 

Enumerations

enum  {
  UFS_ABORT_TASK = 0x01, UFS_ABORT_TASK_SET = 0x02, UFS_CLEAR_TASK_SET = 0x04, UFS_LOGICAL_RESET = 0x08,
  UFS_QUERY_TASK = 0x80, UFS_QUERY_TASK_SET = 0x81
}
 
enum  {
  UPIU_TRANSACTION_NOP_OUT = 0x00, UPIU_TRANSACTION_COMMAND = 0x01, UPIU_TRANSACTION_DATA_OUT = 0x02, UPIU_TRANSACTION_TASK_REQ = 0x04,
  UPIU_TRANSACTION_QUERY_REQ = 0x26
}
 
enum  {
  UPIU_TRANSACTION_NOP_IN = 0x20, UPIU_TRANSACTION_RESPONSE = 0x21, UPIU_TRANSACTION_DATA_IN = 0x22, UPIU_TRANSACTION_TASK_RSP = 0x24,
  UPIU_TRANSACTION_READY_XFER = 0x31, UPIU_TRANSACTION_QUERY_RSP = 0x36
}
 
enum  { UPIU_CMD_FLAGS_NONE = 0x00, UPIU_CMD_FLAGS_WRITE = 0x20, UPIU_CMD_FLAGS_READ = 0x40 }
 
enum  { UPIU_TASK_ATTR_SIMPLE = 0x00, UPIU_TASK_ATTR_ORDERED = 0x01, UPIU_TASK_ATTR_HEADQ = 0x02, UPIU_TASK_ATTR_ACA = 0x03 }
 
enum  {
  UPIU_QUERY_OPCODE_NOP = 0x0, UPIU_QUERY_OPCODE_READ_DESC = 0x1, UPIU_QUERY_OPCODE_WRITE_DESC = 0x2, UPIU_QUERY_OPCODE_READ_ATTR = 0x3,
  UPIU_QUERY_OPCODE_WRITE_ATTR = 0x4, UPIU_QUERY_OPCODE_READ_FLAG = 0x5, UPIU_QUERY_OPCODE_SET_FLAG = 0x6, UPIU_QUERY_OPCODE_CLEAR_FLAG = 0x7,
  UPIU_QUERY_OPCODE_TOGGLE_FLAG = 0x8
}
 
enum  { UPIU_COMMAND_SET_TYPE_SCSI = 0x0, UPIU_COMMAND_SET_TYPE_UFS = 0x1, UPIU_COMMAND_SET_TYPE_QUERY = 0x2 }
 
enum  { MASK_SCSI_STATUS = 0xFF, MASK_TASK_RESPONSE = 0xFF00, MASK_RSP_UPIU_RESULT = 0xFFFF }
 
enum  {
  UPIU_TASK_MANAGEMENT_FUNC_COMPL = 0x00, UPIU_TASK_MANAGEMENT_FUNC_NOT_SUPPORTED = 0x04, UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED = 0x08, UPIU_TASK_MANAGEMENT_FUNC_FAILED = 0x05,
  UPIU_INCORRECT_LOGICAL_UNIT_NO = 0x09
}
 

Macro Definition Documentation

#define MAX_CDB_SIZE   16

Definition at line 49 of file ufs.h.

#define UPIU_HEADER_DWORD (   byte3,
  byte2,
  byte1,
  byte0 
)
Value:
((byte3 << 24) | (byte2 << 16) |\
(byte1 << 8) | (byte0))

Definition at line 51 of file ufs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
UFS_ABORT_TASK 
UFS_ABORT_TASK_SET 
UFS_CLEAR_TASK_SET 
UFS_LOGICAL_RESET 
UFS_QUERY_TASK 
UFS_QUERY_TASK_SET 

Definition at line 60 of file ufs.h.

anonymous enum
Enumerator:
UPIU_TRANSACTION_NOP_OUT 
UPIU_TRANSACTION_COMMAND 
UPIU_TRANSACTION_DATA_OUT 
UPIU_TRANSACTION_TASK_REQ 
UPIU_TRANSACTION_QUERY_REQ 

Definition at line 70 of file ufs.h.

anonymous enum
Enumerator:
UPIU_TRANSACTION_NOP_IN 
UPIU_TRANSACTION_RESPONSE 
UPIU_TRANSACTION_DATA_IN 
UPIU_TRANSACTION_TASK_RSP 
UPIU_TRANSACTION_READY_XFER 
UPIU_TRANSACTION_QUERY_RSP 

Definition at line 79 of file ufs.h.

anonymous enum
Enumerator:
UPIU_CMD_FLAGS_NONE 
UPIU_CMD_FLAGS_WRITE 
UPIU_CMD_FLAGS_READ 

Definition at line 89 of file ufs.h.

anonymous enum
Enumerator:
UPIU_TASK_ATTR_SIMPLE 
UPIU_TASK_ATTR_ORDERED 
UPIU_TASK_ATTR_HEADQ 
UPIU_TASK_ATTR_ACA 

Definition at line 96 of file ufs.h.

anonymous enum
Enumerator:
UPIU_QUERY_OPCODE_NOP 
UPIU_QUERY_OPCODE_READ_DESC 
UPIU_QUERY_OPCODE_WRITE_DESC 
UPIU_QUERY_OPCODE_READ_ATTR 
UPIU_QUERY_OPCODE_WRITE_ATTR 
UPIU_QUERY_OPCODE_READ_FLAG 
UPIU_QUERY_OPCODE_SET_FLAG 
UPIU_QUERY_OPCODE_CLEAR_FLAG 
UPIU_QUERY_OPCODE_TOGGLE_FLAG 

Definition at line 104 of file ufs.h.

anonymous enum
Enumerator:
UPIU_COMMAND_SET_TYPE_SCSI 
UPIU_COMMAND_SET_TYPE_UFS 
UPIU_COMMAND_SET_TYPE_QUERY 

Definition at line 117 of file ufs.h.

anonymous enum
Enumerator:
MASK_SCSI_STATUS 
MASK_TASK_RESPONSE 
MASK_RSP_UPIU_RESULT 

Definition at line 123 of file ufs.h.

anonymous enum
Enumerator:
UPIU_TASK_MANAGEMENT_FUNC_COMPL 
UPIU_TASK_MANAGEMENT_FUNC_NOT_SUPPORTED 
UPIU_TASK_MANAGEMENT_FUNC_SUCCEEDED 
UPIU_TASK_MANAGEMENT_FUNC_FAILED 
UPIU_INCORRECT_LOGICAL_UNIT_NO 

Definition at line 130 of file ufs.h.