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

Go to the source code of this file.

Macros

#define USB_STOR_XFER_GOOD   0 /* good transfer */
 
#define USB_STOR_XFER_SHORT   1 /* transferred less than expected */
 
#define USB_STOR_XFER_STALLED   2 /* endpoint stalled */
 
#define USB_STOR_XFER_LONG   3 /* device tried to send too much */
 
#define USB_STOR_XFER_ERROR   4 /* transfer died in the middle */
 
#define USB_STOR_TRANSPORT_GOOD   0 /* Transport good, command good */
 
#define USB_STOR_TRANSPORT_FAILED   1 /* Transport good, command failed */
 
#define USB_STOR_TRANSPORT_NO_SENSE   2 /* Command failed, no auto-sense */
 
#define USB_STOR_TRANSPORT_ERROR   3 /* Transport bad (i.e. device dead) */
 
#define US_CBI_ADSC   0
 

Enumerations

enum  xfer_buf_dir {
  TO_XFER_BUF, FROM_XFER_BUF, TO_XFER_BUF, FROM_XFER_BUF,
  TO_XFER_BUF, FROM_XFER_BUF, TO_XFER_BUF, FROM_XFER_BUF
}
 

Functions

int usb_stor_Bulk_transport (struct scsi_cmnd *, struct us_data *)
 
int usb_stor_Bulk_max_lun (struct us_data *)
 
int usb_stor_Bulk_reset (struct us_data *)
 
void usb_stor_print_cmd (struct scsi_cmnd *)
 
void usb_stor_invoke_transport (struct scsi_cmnd *, struct us_data *)
 
void usb_stor_stop_transport (struct us_data *)
 
int usb_stor_control_msg (struct us_data *us, unsigned int pipe, u8 request, u8 requesttype, u16 value, u16 index, void *data, u16 size, int timeout)
 
int usb_stor_clear_halt (struct us_data *us, unsigned int pipe)
 
int usb_stor_bulk_transfer_buf (struct us_data *us, unsigned int pipe, void *buf, unsigned int length, unsigned int *act_len)
 
int usb_stor_bulk_transfer_sg (struct us_data *us, unsigned int pipe, void *buf, unsigned int length, int use_sg, int *residual)
 
int usb_stor_bulk_srb (struct us_data *us, unsigned int pipe, struct scsi_cmnd *srb)
 
int usb_stor_port_reset (struct us_data *us)
 
unsigned int usb_stor_access_xfer_buf (struct us_data *, unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **, unsigned int *offset, enum xfer_buf_dir dir)
 
void usb_stor_set_xfer_buf (struct us_data *, unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, unsigned int dir)
 
void ENE_stor_invoke_transport (struct scsi_cmnd *, struct us_data *)
 
int ENE_InitMedia (struct us_data *)
 
int ENE_SMInit (struct us_data *)
 
int ENE_SendScsiCmd (struct us_data *, BYTE, void *, int)
 
int ENE_LoadBinCode (struct us_data *, BYTE)
 
int ENE_Read_BYTE (struct us_data *, WORD index, void *buf)
 
int ENE_Read_Data (struct us_data *, void *buf, unsigned int length)
 
int ENE_Write_Data (struct us_data *, void *buf, unsigned int length)
 
void BuildSenseBuffer (struct scsi_cmnd *, int)
 
int SM_SCSIIrp (struct us_data *us, struct scsi_cmnd *srb)
 

Macro Definition Documentation

#define US_CBI_ADSC   0

Definition at line 28 of file transport.h.

#define USB_STOR_TRANSPORT_ERROR   3 /* Transport bad (i.e. device dead) */

Definition at line 17 of file transport.h.

#define USB_STOR_TRANSPORT_FAILED   1 /* Transport good, command failed */

Definition at line 15 of file transport.h.

#define USB_STOR_TRANSPORT_GOOD   0 /* Transport good, command good */

Definition at line 14 of file transport.h.

#define USB_STOR_TRANSPORT_NO_SENSE   2 /* Command failed, no auto-sense */

Definition at line 16 of file transport.h.

#define USB_STOR_XFER_ERROR   4 /* transfer died in the middle */

Definition at line 11 of file transport.h.

#define USB_STOR_XFER_GOOD   0 /* good transfer */

Definition at line 7 of file transport.h.

#define USB_STOR_XFER_LONG   3 /* device tried to send too much */

Definition at line 10 of file transport.h.

#define USB_STOR_XFER_SHORT   1 /* transferred less than expected */

Definition at line 8 of file transport.h.

#define USB_STOR_XFER_STALLED   2 /* endpoint stalled */

Definition at line 9 of file transport.h.

Enumeration Type Documentation

Enumerator:
TO_XFER_BUF 
FROM_XFER_BUF 
TO_XFER_BUF 
FROM_XFER_BUF 
TO_XFER_BUF 
FROM_XFER_BUF 
TO_XFER_BUF 
FROM_XFER_BUF 

Definition at line 48 of file transport.h.

Function Documentation

void BuildSenseBuffer ( struct scsi_cmnd ,
int   
)

Definition at line 505 of file transport.c.

int ENE_InitMedia ( struct us_data )

Definition at line 17 of file init.c.

int ENE_LoadBinCode ( struct us_data ,
BYTE   
)

Definition at line 116 of file init.c.

int ENE_Read_BYTE ( struct us_data ,
WORD  index,
void buf 
)

Definition at line 44 of file init.c.

int ENE_Read_Data ( struct us_data ,
void buf,
unsigned int  length 
)

Definition at line 240 of file init.c.

int ENE_SendScsiCmd ( struct us_data ,
BYTE  ,
void ,
int   
)

Definition at line 158 of file init.c.

int ENE_SMInit ( struct us_data )

Definition at line 64 of file init.c.

void ENE_stor_invoke_transport ( struct scsi_cmnd ,
struct us_data  
)

Definition at line 427 of file transport.c.

int ENE_Write_Data ( struct us_data ,
void buf,
unsigned int  length 
)

Definition at line 282 of file init.c.

int SM_SCSIIrp ( struct us_data us,
struct scsi_cmnd srb 
)

Definition at line 26 of file smscsi.c.

unsigned int usb_stor_access_xfer_buf ( struct us_data ,
unsigned char buffer,
unsigned int  buflen,
struct scsi_cmnd srb,
struct scatterlist **  ,
unsigned int offset,
enum xfer_buf_dir  dir 
)

Definition at line 415 of file scsiglue.c.

int usb_stor_Bulk_max_lun ( struct us_data )

Definition at line 554 of file transport.c.

int usb_stor_Bulk_reset ( struct us_data )

Definition at line 789 of file transport.c.

int usb_stor_bulk_srb ( struct us_data us,
unsigned int  pipe,
struct scsi_cmnd srb 
)

Definition at line 252 of file transport.c.

int usb_stor_bulk_transfer_buf ( struct us_data us,
unsigned int  pipe,
void buf,
unsigned int  length,
unsigned int act_len 
)

Definition at line 183 of file transport.c.

int usb_stor_bulk_transfer_sg ( struct us_data us,
unsigned int  pipe,
void buf,
unsigned int  length,
int  use_sg,
int residual 
)

Definition at line 267 of file transport.c.

int usb_stor_Bulk_transport ( struct scsi_cmnd ,
struct us_data  
)

Definition at line 580 of file transport.c.

int usb_stor_clear_halt ( struct us_data us,
unsigned int  pipe 
)

Definition at line 114 of file transport.c.

int usb_stor_control_msg ( struct us_data us,
unsigned int  pipe,
u8  request,
u8  requesttype,
u16  value,
u16  index,
void data,
u16  size,
int  timeout 
)

Definition at line 84 of file transport.c.

void usb_stor_invoke_transport ( struct scsi_cmnd ,
struct us_data  
)

Definition at line 300 of file transport.c.

int usb_stor_port_reset ( struct us_data us)

Definition at line 800 of file transport.c.

void usb_stor_print_cmd ( struct scsi_cmnd )

Definition at line 324 of file init.c.

void usb_stor_set_xfer_buf ( struct us_data ,
unsigned char buffer,
unsigned int  buflen,
struct scsi_cmnd srb,
unsigned int  dir 
)

Definition at line 475 of file scsiglue.c.

void usb_stor_stop_transport ( struct us_data )

Definition at line 536 of file transport.c.