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

Go to the source code of this file.

Data Structures

struct  lpfc_rport_data
 
struct  fcp_rsp
 
struct  fcp_cmnd
 
struct  lpfc_scsicmd_bkt
 
struct  lpfc_scsi_buf
 

Macros

#define LPFC_FCP_CDB_LEN   16
 
#define list_remove_head(list, entry, type, member)
 
#define list_get_first(list, type, member)
 
#define RSP_LEN_VALID   0x01 /* bit 0 */
 
#define SNS_LEN_VALID   0x02 /* bit 1 */
 
#define RESID_OVER   0x04 /* bit 2 */
 
#define RESID_UNDER   0x08 /* bit 3 */
 
#define RSP_NO_FAILURE   0x00
 
#define RSP_DATA_BURST_ERR   0x01
 
#define RSP_CMD_FIELD_ERR   0x02
 
#define RSP_RO_MISMATCH_ERR   0x03
 
#define RSP_TM_NOT_SUPPORTED   0x04 /* Task mgmt function not supported */
 
#define RSP_TM_NOT_COMPLETED   0x05 /* Task mgmt function not performed */
 
#define SNS_ILLEGAL_REQ   0x05 /* sense key is byte 3 ([2]) */
 
#define SNSCOD_BADCMD   0x20 /* sense code is byte 13 ([12]) */
 
#define SIMPLE_Q   0x00
 
#define HEAD_OF_Q   0x01
 
#define ORDERED_Q   0x02
 
#define ACA_Q   0x04
 
#define UNTAGGED   0x05
 
#define FCP_ABORT_TASK_SET   0x02 /* Bit 1 */
 
#define FCP_CLEAR_TASK_SET   0x04 /* bit 2 */
 
#define FCP_BUS_RESET   0x08 /* bit 3 */
 
#define FCP_LUN_RESET   0x10 /* bit 4 */
 
#define FCP_TARGET_RESET   0x20 /* bit 5 */
 
#define FCP_CLEAR_ACA   0x40 /* bit 6 */
 
#define FCP_TERMINATE_TASK   0x80 /* bit 7 */
 
#define WRITE_DATA   0x01 /* Bit 0 */
 
#define READ_DATA   0x02 /* Bit 1 */
 
#define LPFC_SCSI_DMA_EXT_SIZE   264
 
#define LPFC_BPL_SIZE   1024
 
#define MDAC_DIRECT_CMD   0x22
 

Macro Definition Documentation

#define ACA_Q   0x04

Definition at line 92 of file lpfc_scsi.h.

#define FCP_ABORT_TASK_SET   0x02 /* Bit 1 */

Definition at line 95 of file lpfc_scsi.h.

#define FCP_BUS_RESET   0x08 /* bit 3 */

Definition at line 97 of file lpfc_scsi.h.

#define FCP_CLEAR_ACA   0x40 /* bit 6 */

Definition at line 100 of file lpfc_scsi.h.

#define FCP_CLEAR_TASK_SET   0x04 /* bit 2 */

Definition at line 96 of file lpfc_scsi.h.

#define FCP_LUN_RESET   0x10 /* bit 4 */

Definition at line 98 of file lpfc_scsi.h.

#define FCP_TARGET_RESET   0x20 /* bit 5 */

Definition at line 99 of file lpfc_scsi.h.

#define FCP_TERMINATE_TASK   0x80 /* bit 7 */

Definition at line 101 of file lpfc_scsi.h.

#define HEAD_OF_Q   0x01

Definition at line 90 of file lpfc_scsi.h.

#define list_get_first (   list,
  type,
  member 
)
Value:
(list_empty(list)) ? NULL : \
list_entry((list)->next, type, member)

Definition at line 35 of file lpfc_scsi.h.

#define list_remove_head (   list,
  entry,
  type,
  member 
)
Value:
do { \
if (!list_empty(list)) { \
entry = list_entry((list)->next, type, member); \
list_del_init(&entry->member); \
} \
} while(0)

Definition at line 26 of file lpfc_scsi.h.

#define LPFC_BPL_SIZE   1024

Definition at line 166 of file lpfc_scsi.h.

#define LPFC_FCP_CDB_LEN   16

Definition at line 24 of file lpfc_scsi.h.

#define LPFC_SCSI_DMA_EXT_SIZE   264

Definition at line 165 of file lpfc_scsi.h.

#define MDAC_DIRECT_CMD   0x22

Definition at line 167 of file lpfc_scsi.h.

#define ORDERED_Q   0x02

Definition at line 91 of file lpfc_scsi.h.

#define READ_DATA   0x02 /* Bit 1 */

Definition at line 104 of file lpfc_scsi.h.

#define RESID_OVER   0x04 /* bit 2 */

Definition at line 53 of file lpfc_scsi.h.

#define RESID_UNDER   0x08 /* bit 3 */

Definition at line 54 of file lpfc_scsi.h.

#define RSP_CMD_FIELD_ERR   0x02

Definition at line 72 of file lpfc_scsi.h.

#define RSP_DATA_BURST_ERR   0x01

Definition at line 71 of file lpfc_scsi.h.

#define RSP_LEN_VALID   0x01 /* bit 0 */

Definition at line 51 of file lpfc_scsi.h.

#define RSP_NO_FAILURE   0x00

Definition at line 70 of file lpfc_scsi.h.

#define RSP_RO_MISMATCH_ERR   0x03

Definition at line 73 of file lpfc_scsi.h.

#define RSP_TM_NOT_COMPLETED   0x05 /* Task mgmt function not performed */

Definition at line 75 of file lpfc_scsi.h.

#define RSP_TM_NOT_SUPPORTED   0x04 /* Task mgmt function not supported */

Definition at line 74 of file lpfc_scsi.h.

#define SIMPLE_Q   0x00

Definition at line 89 of file lpfc_scsi.h.

#define SNS_ILLEGAL_REQ   0x05 /* sense key is byte 3 ([2]) */

Definition at line 80 of file lpfc_scsi.h.

#define SNS_LEN_VALID   0x02 /* bit 1 */

Definition at line 52 of file lpfc_scsi.h.

#define SNSCOD_BADCMD   0x20 /* sense code is byte 13 ([12]) */

Definition at line 81 of file lpfc_scsi.h.

#define UNTAGGED   0x05

Definition at line 93 of file lpfc_scsi.h.

#define WRITE_DATA   0x01 /* Bit 0 */

Definition at line 103 of file lpfc_scsi.h.