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

Go to the source code of this file.

Data Structures

struct  tgt_event_hdr
 
struct  tgt_event
 

Macros

#define TGT_UEVENT_CMD_RSP   0x0001
 
#define TGT_UEVENT_IT_NEXUS_RSP   0x0002
 
#define TGT_UEVENT_TSK_MGMT_RSP   0x0003
 
#define TGT_KEVENT_CMD_REQ   0x1001
 
#define TGT_KEVENT_CMD_DONE   0x1002
 
#define TGT_KEVENT_IT_NEXUS_REQ   0x1003
 
#define TGT_KEVENT_TSK_MGMT_REQ   0x1004
 
#define TGT_RING_SIZE   (1UL << 16)
 

Functions

struct tgt_event_hdr __attribute__ ((aligned(sizeof(uint64_t))))
 

Variables

uint16_t version
 
uint16_t status
 
uint16_t type
 
uint16_t len
 
struct tgt_event_hdr hdr
 
union {
   struct {
      int   host_no
 
      int   result
 
      aligned_u64   itn_id
 
      aligned_u64   tag
 
      aligned_u64   uaddr
 
      aligned_u64   sense_uaddr
 
      uint32_t   len
 
      uint32_t   sense_len
 
      uint8_t   rw
 
   }   cmd_rsp
 
   struct {
      int   host_no
 
      int   result
 
      aligned_u64   itn_id
 
      aligned_u64   mid
 
   }   tsk_mgmt_rsp
 
   struct {
      __s32   host_no
 
      __s32   result
 
      aligned_u64   itn_id
 
      __u32   function
 
   }   it_nexus_rsp
 
   struct {
      int   host_no
 
      uint32_t   data_len
 
      aligned_u64   itn_id
 
      uint8_t   scb [16]
 
      uint8_t   lun [8]
 
      int   attribute
 
      aligned_u64   tag
 
   }   cmd_req
 
   struct {
      int   host_no
 
      int   result
 
      aligned_u64   itn_id
 
      aligned_u64   tag
 
   }   cmd_done
 
   struct {
      int   host_no
 
      int   function
 
      aligned_u64   itn_id
 
      aligned_u64   tag
 
      uint8_t   lun [8]
 
      aligned_u64   mid
 
   }   tsk_mgmt_req
 
   struct {
      __s32   host_no
 
      __u32   function
 
      aligned_u64   itn_id
 
      __u32   max_cmds
 
      __u8   initiator_id [16]
 
   }   it_nexus_req
 
p
 

Macro Definition Documentation

#define TGT_KEVENT_CMD_DONE   0x1002

Definition at line 32 of file scsi_tgt_if.h.

#define TGT_KEVENT_CMD_REQ   0x1001

Definition at line 31 of file scsi_tgt_if.h.

#define TGT_KEVENT_IT_NEXUS_REQ   0x1003

Definition at line 33 of file scsi_tgt_if.h.

#define TGT_KEVENT_TSK_MGMT_REQ   0x1004

Definition at line 34 of file scsi_tgt_if.h.

#define TGT_RING_SIZE   (1UL << 16)

Definition at line 106 of file scsi_tgt_if.h.

#define TGT_UEVENT_CMD_RSP   0x0001

Definition at line 26 of file scsi_tgt_if.h.

#define TGT_UEVENT_IT_NEXUS_RSP   0x0002

Definition at line 27 of file scsi_tgt_if.h.

#define TGT_UEVENT_TSK_MGMT_RSP   0x0003

Definition at line 28 of file scsi_tgt_if.h.

Function Documentation

Variable Documentation

Definition at line 140 of file scsi_tgt_if.h.

static void cmd_done

Definition at line 344 of file mac53c94.c.

struct { ... } cmd_req
struct { ... } cmd_rsp
uint32_t data_len

Definition at line 136 of file scsi_tgt_if.h.

__u32 function

Definition at line 130 of file scsi_tgt_if.h.

Definition at line 105 of file scsi_tgt_if.h.

__s32 host_no

Definition at line 110 of file scsi_tgt_if.h.

__u8 initiator_id[16]

Definition at line 162 of file scsi_tgt_if.h.

struct { ... } it_nexus_req
struct { ... } it_nexus_rsp
aligned_u64 itn_id

Definition at line 112 of file scsi_tgt_if.h.

uint32_t len

Definition at line 45 of file scsi_tgt_if.h.

uint8_t lun[8]

Definition at line 139 of file scsi_tgt_if.h.

__u32 max_cmds

Definition at line 161 of file scsi_tgt_if.h.

Definition at line 124 of file scsi_tgt_if.h.

union { ... } p
int result

Definition at line 111 of file scsi_tgt_if.h.

uint8_t rw

Definition at line 118 of file scsi_tgt_if.h.

uint8_t scb[16]

Definition at line 138 of file scsi_tgt_if.h.

uint32_t sense_len

Definition at line 117 of file scsi_tgt_if.h.

aligned_u64 sense_uaddr

Definition at line 115 of file scsi_tgt_if.h.

Definition at line 43 of file scsi_tgt_if.h.

Definition at line 113 of file scsi_tgt_if.h.

struct { ... } tsk_mgmt_req
struct { ... } tsk_mgmt_rsp

Definition at line 44 of file scsi_tgt_if.h.

Definition at line 114 of file scsi_tgt_if.h.

uint16_t version

Definition at line 42 of file scsi_tgt_if.h.