Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
tmio_mmc_pio.c File Reference
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/highmem.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/mfd/tmio.h>
#include <linux/mmc/host.h>
#include <linux/mmc/mmc.h>
#include <linux/mmc/slot-gpio.h>
#include <linux/mmc/tmio.h>
#include <linux/module.h>
#include <linux/pagemap.h>
#include <linux/platform_device.h>
#include <linux/pm_qos.h>
#include <linux/pm_runtime.h>
#include <linux/scatterlist.h>
#include <linux/spinlock.h>
#include <linux/workqueue.h>
#include "tmio_mmc.h"

Go to the source code of this file.

Macros

#define pr_debug_status(s)   do { } while (0)
 
#define APP_CMD   0x0040
 
#define RESP_NONE   0x0300
 
#define RESP_R1   0x0400
 
#define RESP_R1B   0x0500
 
#define RESP_R2   0x0600
 
#define RESP_R3   0x0700
 
#define DATA_PRESENT   0x0800
 
#define TRANSFER_READ   0x1000
 
#define TRANSFER_MULTI   0x2000
 
#define SECURITY_CMD   0x4000
 

Functions

void tmio_mmc_enable_mmc_irqs (struct tmio_mmc_host *host, u32 i)
 
void tmio_mmc_disable_mmc_irqs (struct tmio_mmc_host *host, u32 i)
 
void tmio_mmc_do_data_irq (struct tmio_mmc_host *host)
 
irqreturn_t tmio_mmc_card_detect_irq (int irq, void *devid)
 
 EXPORT_SYMBOL (tmio_mmc_card_detect_irq)
 
irqreturn_t tmio_mmc_sdcard_irq (int irq, void *devid)
 
 EXPORT_SYMBOL (tmio_mmc_sdcard_irq)
 
irqreturn_t tmio_mmc_sdio_irq (int irq, void *devid)
 
 EXPORT_SYMBOL (tmio_mmc_sdio_irq)
 
irqreturn_t tmio_mmc_irq (int irq, void *devid)
 
 EXPORT_SYMBOL (tmio_mmc_irq)
 
int __devinit tmio_mmc_host_probe (struct tmio_mmc_host **host, struct platform_device *pdev, struct tmio_mmc_data *pdata)
 
 EXPORT_SYMBOL (tmio_mmc_host_probe)
 
void tmio_mmc_host_remove (struct tmio_mmc_host *host)
 
 EXPORT_SYMBOL (tmio_mmc_host_remove)
 
int tmio_mmc_host_runtime_suspend (struct device *dev)
 
 EXPORT_SYMBOL (tmio_mmc_host_runtime_suspend)
 
int tmio_mmc_host_runtime_resume (struct device *dev)
 
 EXPORT_SYMBOL (tmio_mmc_host_runtime_resume)
 
 MODULE_LICENSE ("GPL v2")
 

Macro Definition Documentation

#define APP_CMD   0x0040

Definition at line 292 of file tmio_mmc_pio.c.

#define DATA_PRESENT   0x0800

Definition at line 298 of file tmio_mmc_pio.c.

#define pr_debug_status (   s)    do { } while (0)

Definition at line 124 of file tmio_mmc_pio.c.

#define RESP_NONE   0x0300

Definition at line 293 of file tmio_mmc_pio.c.

#define RESP_R1   0x0400

Definition at line 294 of file tmio_mmc_pio.c.

#define RESP_R1B   0x0500

Definition at line 295 of file tmio_mmc_pio.c.

#define RESP_R2   0x0600

Definition at line 296 of file tmio_mmc_pio.c.

#define RESP_R3   0x0700

Definition at line 297 of file tmio_mmc_pio.c.

#define SECURITY_CMD   0x4000

Definition at line 301 of file tmio_mmc_pio.c.

#define TRANSFER_MULTI   0x2000

Definition at line 300 of file tmio_mmc_pio.c.

#define TRANSFER_READ   0x1000

Definition at line 299 of file tmio_mmc_pio.c.

Function Documentation

EXPORT_SYMBOL ( tmio_mmc_card_detect_irq  )
EXPORT_SYMBOL ( tmio_mmc_sdcard_irq  )
EXPORT_SYMBOL ( tmio_mmc_sdio_irq  )
EXPORT_SYMBOL ( tmio_mmc_irq  )
EXPORT_SYMBOL ( tmio_mmc_host_probe  )
EXPORT_SYMBOL ( tmio_mmc_host_remove  )
EXPORT_SYMBOL ( tmio_mmc_host_runtime_suspend  )
EXPORT_SYMBOL ( tmio_mmc_host_runtime_resume  )
MODULE_LICENSE ( "GPL v2 )
irqreturn_t tmio_mmc_card_detect_irq ( int  irq,
void devid 
)

Definition at line 585 of file tmio_mmc_pio.c.

void tmio_mmc_disable_mmc_irqs ( struct tmio_mmc_host host,
u32  i 
)

Definition at line 58 of file tmio_mmc_pio.c.

void tmio_mmc_do_data_irq ( struct tmio_mmc_host host)

Definition at line 412 of file tmio_mmc_pio.c.

void tmio_mmc_enable_mmc_irqs ( struct tmio_mmc_host host,
u32  i 
)

Definition at line 52 of file tmio_mmc_pio.c.

int __devinit tmio_mmc_host_probe ( struct tmio_mmc_host **  host,
struct platform_device pdev,
struct tmio_mmc_data pdata 
)

Definition at line 921 of file tmio_mmc_pio.c.

void tmio_mmc_host_remove ( struct tmio_mmc_host host)

Definition at line 1060 of file tmio_mmc_pio.c.

int tmio_mmc_host_runtime_resume ( struct device dev)

Definition at line 1126 of file tmio_mmc_pio.c.

int tmio_mmc_host_runtime_suspend ( struct device dev)

Definition at line 1120 of file tmio_mmc_pio.c.

irqreturn_t tmio_mmc_irq ( int  irq,
void devid 
)

Definition at line 660 of file tmio_mmc_pio.c.

irqreturn_t tmio_mmc_sdcard_irq ( int  irq,
void devid 
)

Definition at line 626 of file tmio_mmc_pio.c.

irqreturn_t tmio_mmc_sdio_irq ( int  irq,
void devid 
)

Definition at line 638 of file tmio_mmc_pio.c.