Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
rtsx_card.c File Reference
#include <linux/blkdev.h>
#include <linux/kthread.h>
#include <linux/sched.h>
#include <linux/workqueue.h>
#include <linux/kernel.h>
#include "rtsx.h"
#include "rtsx_transport.h"
#include "rtsx_scsi.h"
#include "rtsx_card.h"
#include "rtsx_sys.h"
#include "general.h"
#include "sd.h"
#include "xd.h"
#include "ms.h"

Go to the source code of this file.

Functions

void do_remaining_work (struct rtsx_chip *chip)
 
void try_to_switch_sdio_ctrl (struct rtsx_chip *chip)
 
void dynamic_configure_sdio_aspm (struct rtsx_chip *chip)
 
void do_reset_sd_card (struct rtsx_chip *chip)
 
void do_reset_xd_card (struct rtsx_chip *chip)
 
void do_reset_ms_card (struct rtsx_chip *chip)
 
void rtsx_power_off_card (struct rtsx_chip *chip)
 
void rtsx_release_cards (struct rtsx_chip *chip)
 
void rtsx_reset_cards (struct rtsx_chip *chip)
 
void rtsx_reinit_cards (struct rtsx_chip *chip, int reset_chip)
 
void rtsx_init_cards (struct rtsx_chip *chip)
 
int switch_ssc_clock (struct rtsx_chip *chip, int clk)
 
int switch_normal_clock (struct rtsx_chip *chip, int clk)
 
void trans_dma_enable (enum dma_data_direction dir, struct rtsx_chip *chip, u32 byte_cnt, u8 pack_size)
 
int enable_card_clock (struct rtsx_chip *chip, u8 card)
 
int disable_card_clock (struct rtsx_chip *chip, u8 card)
 
int card_power_on (struct rtsx_chip *chip, u8 card)
 
int card_power_off (struct rtsx_chip *chip, u8 card)
 
int card_rw (struct scsi_cmnd *srb, struct rtsx_chip *chip, u32 sec_addr, u16 sec_cnt)
 
int card_share_mode (struct rtsx_chip *chip, int card)
 
int select_card (struct rtsx_chip *chip, int card)
 
void toggle_gpio (struct rtsx_chip *chip, u8 gpio)
 
void turn_on_led (struct rtsx_chip *chip, u8 gpio)
 
void turn_off_led (struct rtsx_chip *chip, u8 gpio)
 
int detect_card_cd (struct rtsx_chip *chip, int card)
 
int check_card_exist (struct rtsx_chip *chip, unsigned int lun)
 
int check_card_ready (struct rtsx_chip *chip, unsigned int lun)
 
int check_card_wp (struct rtsx_chip *chip, unsigned int lun)
 
int check_card_fail (struct rtsx_chip *chip, unsigned int lun)
 
int check_card_ejected (struct rtsx_chip *chip, unsigned int lun)
 
u8 get_lun_card (struct rtsx_chip *chip, unsigned int lun)
 
void eject_card (struct rtsx_chip *chip, unsigned int lun)
 

Function Documentation

int card_power_off ( struct rtsx_chip chip,
u8  card 
)

Definition at line 990 of file rtsx_card.c.

int card_power_on ( struct rtsx_chip chip,
u8  card 
)

Definition at line 952 of file rtsx_card.c.

int card_rw ( struct scsi_cmnd srb,
struct rtsx_chip chip,
u32  sec_addr,
u16  sec_cnt 
)

Definition at line 1013 of file rtsx_card.c.

int card_share_mode ( struct rtsx_chip chip,
int  card 
)

Definition at line 1049 of file rtsx_card.c.

int check_card_ejected ( struct rtsx_chip chip,
unsigned int  lun 
)

Definition at line 1193 of file rtsx_card.c.

int check_card_exist ( struct rtsx_chip chip,
unsigned int  lun 
)

Definition at line 1161 of file rtsx_card.c.

int check_card_fail ( struct rtsx_chip chip,
unsigned int  lun 
)

Definition at line 1185 of file rtsx_card.c.

int check_card_ready ( struct rtsx_chip chip,
unsigned int  lun 
)

Definition at line 1169 of file rtsx_card.c.

int check_card_wp ( struct rtsx_chip chip,
unsigned int  lun 
)

Definition at line 1177 of file rtsx_card.c.

int detect_card_cd ( struct rtsx_chip chip,
int  card 
)

Definition at line 1139 of file rtsx_card.c.

int disable_card_clock ( struct rtsx_chip chip,
u8  card 
)

Definition at line 936 of file rtsx_card.c.

void do_remaining_work ( struct rtsx_chip chip)

Definition at line 41 of file rtsx_card.c.

void do_reset_ms_card ( struct rtsx_chip chip)

Definition at line 255 of file rtsx_card.c.

void do_reset_sd_card ( struct rtsx_chip chip)

Definition at line 153 of file rtsx_card.c.

void do_reset_xd_card ( struct rtsx_chip chip)

Definition at line 207 of file rtsx_card.c.

void dynamic_configure_sdio_aspm ( struct rtsx_chip chip)

Definition at line 114 of file rtsx_card.c.

void eject_card ( struct rtsx_chip chip,
unsigned int  lun 
)

Definition at line 1213 of file rtsx_card.c.

int enable_card_clock ( struct rtsx_chip chip,
u8  card 
)

Definition at line 920 of file rtsx_card.c.

u8 get_lun_card ( struct rtsx_chip chip,
unsigned int  lun 
)

Definition at line 1201 of file rtsx_card.c.

void rtsx_init_cards ( struct rtsx_chip chip)

Definition at line 525 of file rtsx_card.c.

void rtsx_power_off_card ( struct rtsx_chip chip)

Definition at line 323 of file rtsx_card.c.

void rtsx_reinit_cards ( struct rtsx_chip chip,
int  reset_chip 
)

Definition at line 412 of file rtsx_card.c.

void rtsx_release_cards ( struct rtsx_chip chip)

Definition at line 341 of file rtsx_card.c.

void rtsx_reset_cards ( struct rtsx_chip chip)

Definition at line 364 of file rtsx_card.c.

int select_card ( struct rtsx_chip chip,
int  card 
)

Definition at line 1085 of file rtsx_card.c.

int switch_normal_clock ( struct rtsx_chip chip,
int  clk 
)

Definition at line 786 of file rtsx_card.c.

int switch_ssc_clock ( struct rtsx_chip chip,
int  clk 
)

Definition at line 646 of file rtsx_card.c.

void toggle_gpio ( struct rtsx_chip chip,
u8  gpio 
)

Definition at line 1114 of file rtsx_card.c.

void trans_dma_enable ( enum dma_data_direction  dir,
struct rtsx_chip chip,
u32  byte_cnt,
u8  pack_size 
)

Definition at line 897 of file rtsx_card.c.

void try_to_switch_sdio_ctrl ( struct rtsx_chip chip)

Definition at line 99 of file rtsx_card.c.

void turn_off_led ( struct rtsx_chip chip,
u8  gpio 
)

Definition at line 1131 of file rtsx_card.c.

void turn_on_led ( struct rtsx_chip chip,
u8  gpio 
)

Definition at line 1123 of file rtsx_card.c.