Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
sd.c File Reference
#include <linux/blkdev.h>
#include <linux/kthread.h>
#include <linux/sched.h>
#include "debug.h"
#include "trace.h"
#include "rts51x.h"
#include "rts51x_transport.h"
#include "rts51x_scsi.h"
#include "rts51x_card.h"
#include "sd.h"

Go to the source code of this file.

Macros

#define WAIT_DATA_READY_RTY_CNT   255
 

Functions

int sd_check_data0_status (struct rts51x_chip *chip)
 
int sd_read_data (struct rts51x_chip *chip, u8 trans_mode, u8 *cmd, int cmd_len, u16 byte_cnt, u16 blk_cnt, u8 bus_width, u8 *buf, int buf_len, int timeout)
 
int sd_select_card (struct rts51x_chip *chip, int select)
 
int sd_switch_clock (struct rts51x_chip *chip)
 
int reset_sd (struct rts51x_chip *chip)
 
int reset_sd_card (struct rts51x_chip *chip)
 
int sd_rw (struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 start_sector, u16 sector_cnt)
 
void sd_cleanup_work (struct rts51x_chip *chip)
 
int release_sd_card (struct rts51x_chip *chip)
 

Macro Definition Documentation

#define WAIT_DATA_READY_RTY_CNT   255

Definition at line 2858 of file sd.c.

Function Documentation

int release_sd_card ( struct rts51x_chip chip)

Definition at line 3223 of file sd.c.

int reset_sd ( struct rts51x_chip chip)

Definition at line 1963 of file sd.c.

int reset_sd_card ( struct rts51x_chip chip)

Definition at line 2751 of file sd.c.

int sd_check_data0_status ( struct rts51x_chip chip)

Definition at line 85 of file sd.c.

void sd_cleanup_work ( struct rts51x_chip chip)

Definition at line 3171 of file sd.c.

int sd_read_data ( struct rts51x_chip chip,
u8  trans_mode,
u8 cmd,
int  cmd_len,
u16  byte_cnt,
u16  blk_cnt,
u8  bus_width,
u8 buf,
int  buf_len,
int  timeout 
)

Definition at line 290 of file sd.c.

int sd_rw ( struct scsi_cmnd srb,
struct rts51x_chip chip,
u32  start_sector,
u16  sector_cnt 
)

Definition at line 2933 of file sd.c.

int sd_select_card ( struct rts51x_chip chip,
int  select 
)

Definition at line 683 of file sd.c.

int sd_switch_clock ( struct rts51x_chip chip)

Definition at line 1750 of file sd.c.