Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rtsx_transport.h File Reference
#include "rtsx.h"
#include "rtsx_chip.h"

Go to the source code of this file.

Macros

#define WAIT_TIME   2000
 
#define rtsx_init_cmd(chip)   ((chip)->ci = 0)
 

Functions

unsigned int rtsx_stor_access_xfer_buf (unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb, unsigned int *index, unsigned int *offset, enum xfer_buf_dir dir)
 
void rtsx_stor_set_xfer_buf (unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb)
 
void rtsx_stor_get_xfer_buf (unsigned char *buffer, unsigned int buflen, struct scsi_cmnd *srb)
 
void rtsx_invoke_transport (struct scsi_cmnd *srb, struct rtsx_chip *chip)
 
void rtsx_add_cmd (struct rtsx_chip *chip, u8 cmd_type, u16 reg_addr, u8 mask, u8 data)
 
void rtsx_send_cmd_no_wait (struct rtsx_chip *chip)
 
int rtsx_send_cmd (struct rtsx_chip *chip, u8 card, int timeout)
 
u8rtsx_get_cmd_data (struct rtsx_chip *chip)
 
int rtsx_transfer_data (struct rtsx_chip *chip, u8 card, void *buf, size_t len, int use_sg, enum dma_data_direction dma_dir, int timeout)
 
int rtsx_transfer_data_partial (struct rtsx_chip *chip, u8 card, void *buf, size_t len, int use_sg, unsigned int *index, unsigned int *offset, enum dma_data_direction dma_dir, int timeout)
 

Macro Definition Documentation

#define rtsx_init_cmd (   chip)    ((chip)->ci = 0)

Definition at line 42 of file rtsx_transport.h.

#define WAIT_TIME   2000

Definition at line 30 of file rtsx_transport.h.

Function Documentation

void rtsx_add_cmd ( struct rtsx_chip chip,
u8  cmd_type,
u16  reg_addr,
u8  mask,
u8  data 
)

Definition at line 209 of file rtsx_transport.c.

u8* rtsx_get_cmd_data ( struct rtsx_chip chip)
inline

Definition at line 49 of file rtsx_transport.h.

void rtsx_invoke_transport ( struct scsi_cmnd srb,
struct rtsx_chip chip 
)

Definition at line 163 of file rtsx_transport.c.

int rtsx_send_cmd ( struct rtsx_chip chip,
u8  card,
int  timeout 
)

Definition at line 239 of file rtsx_transport.c.

void rtsx_send_cmd_no_wait ( struct rtsx_chip chip)

Definition at line 227 of file rtsx_transport.c.

unsigned int rtsx_stor_access_xfer_buf ( unsigned char buffer,
unsigned int  buflen,
struct scsi_cmnd srb,
unsigned int index,
unsigned int offset,
enum xfer_buf_dir  dir 
)

Definition at line 46 of file rtsx_transport.c.

void rtsx_stor_get_xfer_buf ( unsigned char buffer,
unsigned int  buflen,
struct scsi_cmnd srb 
)

Definition at line 143 of file rtsx_transport.c.

void rtsx_stor_set_xfer_buf ( unsigned char buffer,
unsigned int  buflen,
struct scsi_cmnd srb 
)

Definition at line 132 of file rtsx_transport.c.

int rtsx_transfer_data ( struct rtsx_chip chip,
u8  card,
void buf,
size_t  len,
int  use_sg,
enum dma_data_direction  dma_dir,
int  timeout 
)

Definition at line 740 of file rtsx_transport.c.

int rtsx_transfer_data_partial ( struct rtsx_chip chip,
u8  card,
void buf,
size_t  len,
int  use_sg,
unsigned int index,
unsigned int offset,
enum dma_data_direction  dma_dir,
int  timeout 
)

Definition at line 709 of file rtsx_transport.c.