Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
scb_t Struct Reference

#include <mega_common.h>

Data Fields

caddr_t ccb
 
struct list_head list
 
unsigned long gp
 
unsigned int sno
 
struct scsi_cmndscp
 
uint32_t state
 
uint32_t dma_direction
 
uint32_t dma_type
 
uint16_t dev_channel
 
uint16_t dev_target
 
uint32_t status
 
int idx
 
u32 state
 
u8 raw_mbox [66]
 
u32 dma_type
 
u32 dma_direction
 
Scsi_Cmndcmd
 
dma_addr_t dma_h_bulkdata
 
dma_addr_t dma_h_sgdata
 
mega_sglist * sgl
 
mega_sgl64 * sgl64
 
dma_addr_t sgl_dma_addr
 
mega_passthru * pthru
 
dma_addr_t pthru_dma_addr
 
mega_ext_passthru * epthru
 
dma_addr_t epthru_dma_addr
 

Detailed Description

scb_t - scsi command control block : command control block for individual driver : list of control blocks : general purpose field for LLDs : all SCBs have a serial number : associated scsi command : current state of scb : direction of data transfer : transfer with sg list, buffer, or no data transfer : actual channel on the device : actual target on the device : completion status

This is our central data structure to issue commands the each driver. Driver specific data structures are maintained in the ccb field. scb provides a field 'gp', which can be used by LLD for its own purposes

dev_channel and dev_target must be initialized with the actual channel and target on the controller.

Definition at line 68 of file mega_common.h.

Field Documentation

Definition at line 69 of file mega_common.h.

Definition at line 189 of file megaraid.h.

uint16_t dev_channel

Definition at line 77 of file mega_common.h.

uint16_t dev_target

Definition at line 78 of file mega_common.h.

uint32_t dma_direction

Definition at line 75 of file mega_common.h.

u32 dma_direction

Definition at line 187 of file megaraid.h.

dma_addr_t dma_h_bulkdata

Definition at line 190 of file megaraid.h.

dma_addr_t dma_h_sgdata

Definition at line 191 of file megaraid.h.

Definition at line 76 of file mega_common.h.

Definition at line 186 of file megaraid.h.

mega_ext_passthru* epthru

Definition at line 199 of file megaraid.h.

dma_addr_t epthru_dma_addr

Definition at line 200 of file megaraid.h.

unsigned long gp

Definition at line 71 of file mega_common.h.

int idx

Definition at line 182 of file megaraid.h.

Definition at line 70 of file mega_common.h.

mega_passthru* pthru

Definition at line 197 of file megaraid.h.

dma_addr_t pthru_dma_addr

Definition at line 198 of file megaraid.h.

u8 raw_mbox[66]

Definition at line 185 of file megaraid.h.

Definition at line 73 of file mega_common.h.

mega_sglist* sgl

Definition at line 193 of file megaraid.h.

mega_sgl64* sgl64

Definition at line 194 of file megaraid.h.

dma_addr_t sgl_dma_addr

Definition at line 195 of file megaraid.h.

unsigned int sno

Definition at line 72 of file mega_common.h.

Definition at line 74 of file mega_common.h.

Definition at line 183 of file megaraid.h.

Definition at line 79 of file mega_common.h.


The documentation for this struct was generated from the following files: