Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
rts51x_card.c File Reference
#include <linux/blkdev.h>
#include <linux/kthread.h>
#include <linux/sched.h>
#include <linux/workqueue.h>
#include <scsi/scsi.h>
#include <scsi/scsi_eh.h>
#include <scsi/scsi_device.h>
#include "debug.h"
#include "rts51x.h"
#include "rts51x_chip.h"
#include "rts51x_card.h"
#include "rts51x_transport.h"
#include "xd.h"
#include "sd.h"
#include "ms.h"

Go to the source code of this file.

Functions

void do_remaining_work (struct rts51x_chip *chip)
 
void do_reset_sd_card (struct rts51x_chip *chip)
 
void rts51x_init_cards (struct rts51x_chip *chip)
 
void rts51x_release_cards (struct rts51x_chip *chip)
 
int switch_ssc_clock (struct rts51x_chip *chip, int clk)
 
int switch_normal_clock (struct rts51x_chip *chip, int clk)
 
int card_rw (struct scsi_cmnd *srb, struct rts51x_chip *chip, u32 sec_addr, u16 sec_cnt)
 
u8 get_lun_card (struct rts51x_chip *chip, unsigned int lun)
 
int rts51x_select_card (struct rts51x_chip *chip, int card)
 
void eject_card (struct rts51x_chip *chip, unsigned int lun)
 
void trans_dma_enable (enum dma_data_direction dir, struct rts51x_chip *chip, u32 byte_cnt, u8 pack_size)
 
int enable_card_clock (struct rts51x_chip *chip, u8 card)
 
int card_power_on (struct rts51x_chip *chip, u8 card)
 
int monitor_card_cd (struct rts51x_chip *chip, u8 card)
 
int toggle_gpio (struct rts51x_chip *chip, u8 gpio)
 
int turn_on_led (struct rts51x_chip *chip, u8 gpio)
 
int turn_off_led (struct rts51x_chip *chip, u8 gpio)
 

Function Documentation

int card_power_on ( struct rts51x_chip chip,
u8  card 
)

Definition at line 817 of file rts51x_card.c.

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

Definition at line 656 of file rts51x_card.c.

void do_remaining_work ( struct rts51x_chip chip)

Definition at line 44 of file rts51x_card.c.

void do_reset_sd_card ( struct rts51x_chip chip)

Definition at line 123 of file rts51x_card.c.

void eject_card ( struct rts51x_chip chip,
unsigned int  lun 
)

Definition at line 747 of file rts51x_card.c.

int enable_card_clock ( struct rts51x_chip chip,
u8  card 
)

Definition at line 801 of file rts51x_card.c.

u8 get_lun_card ( struct rts51x_chip chip,
unsigned int  lun 
)

Definition at line 691 of file rts51x_card.c.

int monitor_card_cd ( struct rts51x_chip chip,
u8  card 
)

Definition at line 847 of file rts51x_card.c.

void rts51x_init_cards ( struct rts51x_chip chip)

Definition at line 279 of file rts51x_card.c.

void rts51x_release_cards ( struct rts51x_chip chip)

Definition at line 353 of file rts51x_card.c.

int rts51x_select_card ( struct rts51x_chip chip,
int  card 
)

Definition at line 721 of file rts51x_card.c.

int switch_normal_clock ( struct rts51x_chip chip,
int  clk 
)

Definition at line 516 of file rts51x_card.c.

int switch_ssc_clock ( struct rts51x_chip chip,
int  clk 
)

Definition at line 379 of file rts51x_card.c.

int toggle_gpio ( struct rts51x_chip chip,
u8  gpio 
)

Definition at line 866 of file rts51x_card.c.

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

Definition at line 773 of file rts51x_card.c.

int turn_off_led ( struct rts51x_chip chip,
u8  gpio 
)

Definition at line 920 of file rts51x_card.c.

int turn_on_led ( struct rts51x_chip chip,
u8  gpio 
)

Definition at line 901 of file rts51x_card.c.