Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
sd_ops.c File Reference
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/export.h>
#include <linux/scatterlist.h>
#include <linux/mmc/host.h>
#include <linux/mmc/card.h>
#include <linux/mmc/mmc.h>
#include <linux/mmc/sd.h>
#include "core.h"
#include "sd_ops.h"

Go to the source code of this file.

Functions

int mmc_app_cmd (struct mmc_host *host, struct mmc_card *card)
 
 EXPORT_SYMBOL_GPL (mmc_app_cmd)
 
int mmc_wait_for_app_cmd (struct mmc_host *host, struct mmc_card *card, struct mmc_command *cmd, int retries)
 
 EXPORT_SYMBOL (mmc_wait_for_app_cmd)
 
int mmc_app_set_bus_width (struct mmc_card *card, int width)
 
int mmc_send_app_op_cond (struct mmc_host *host, u32 ocr, u32 *rocr)
 
int mmc_send_if_cond (struct mmc_host *host, u32 ocr)
 
int mmc_send_relative_addr (struct mmc_host *host, unsigned int *rca)
 
int mmc_app_send_scr (struct mmc_card *card, u32 *scr)
 
int mmc_sd_switch (struct mmc_card *card, int mode, int group, u8 value, u8 *resp)
 
int mmc_app_sd_status (struct mmc_card *card, void *ssr)
 

Function Documentation

EXPORT_SYMBOL ( mmc_wait_for_app_cmd  )
EXPORT_SYMBOL_GPL ( mmc_app_cmd  )
int mmc_app_cmd ( struct mmc_host host,
struct mmc_card card 
)

Definition at line 25 of file sd_ops.c.

int mmc_app_sd_status ( struct mmc_card card,
void ssr 
)

Definition at line 349 of file sd_ops.c.

int mmc_app_send_scr ( struct mmc_card card,
u32 scr 
)

Definition at line 245 of file sd_ops.c.

int mmc_app_set_bus_width ( struct mmc_card card,
int  width 
)

Definition at line 121 of file sd_ops.c.

int mmc_sd_switch ( struct mmc_card card,
int  mode,
int  group,
u8  value,
u8 resp 
)

Definition at line 304 of file sd_ops.c.

int mmc_send_app_op_cond ( struct mmc_host host,
u32  ocr,
u32 rocr 
)

Definition at line 150 of file sd_ops.c.

int mmc_send_if_cond ( struct mmc_host host,
u32  ocr 
)

Definition at line 193 of file sd_ops.c.

int mmc_send_relative_addr ( struct mmc_host host,
unsigned int rca 
)

Definition at line 224 of file sd_ops.c.

int mmc_wait_for_app_cmd ( struct mmc_host host,
struct mmc_card card,
struct mmc_command cmd,
int  retries 
)

mmc_wait_for_app_cmd - start an application command and wait for completion : MMC host to start command : Card to send MMC_APP_CMD to : MMC command to start : maximum number of retries

Sends a MMC_APP_CMD, checks the card response, sends the command in the parameter and waits for it to complete. Return any error that occurred while the command was executing. Do not attempt to parse the response.

Definition at line 68 of file sd_ops.c.