Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
au1xmmc.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/dma-mapping.h>
#include <linux/scatterlist.h>
#include <linux/leds.h>
#include <linux/mmc/host.h>
#include <linux/slab.h>
#include <asm/io.h>
#include <asm/mach-au1x00/au1000.h>
#include <asm/mach-au1x00/au1xxx_dbdma.h>
#include <asm/mach-au1x00/au1100_mmc.h>

Go to the source code of this file.

Data Structures

struct  au1xmmc_host
 

Macros

#define DRIVER_NAME   "au1xxx-mmc"
 
#define DBG(fmt, idx, args...)   do {} while (0)
 
#define AU1XMMC_DESCRIPTOR_COUNT   1
 
#define AU1100_MMC_DESCRIPTOR_SIZE   0x0000ffff
 
#define AU1200_MMC_DESCRIPTOR_SIZE   0x003fffff
 
#define AU1XMMC_OCR
 
#define STOP_CMD   (SD_CMD_RT_1B | SD_CMD_CT_7 | (0xC << SD_CMD_CI_SHIFT) | SD_CMD_GO)
 
#define AU1XMMC_INTERRUPTS
 
#define AU1XMMC_DETECT_TIMEOUT   (HZ/2)
 
#define HOST_F_XMIT   0x0001
 
#define HOST_F_RECV   0x0002
 
#define HOST_F_DMA   0x0010
 
#define HOST_F_DBDMA   0x0020
 
#define HOST_F_ACTIVE   0x0100
 
#define HOST_F_STOP   0x1000
 
#define HOST_S_IDLE   0x0001
 
#define HOST_S_CMD   0x0002
 
#define HOST_S_DATA   0x0003
 
#define HOST_S_STOP   0x0004
 
#define HOST_STATUS(h)   ((h)->iobase + SD_STATUS)
 
#define HOST_CONFIG(h)   ((h)->iobase + SD_CONFIG)
 
#define HOST_ENABLE(h)   ((h)->iobase + SD_ENABLE)
 
#define HOST_TXPORT(h)   ((h)->iobase + SD_TXPORT)
 
#define HOST_RXPORT(h)   ((h)->iobase + SD_RXPORT)
 
#define HOST_CMDARG(h)   ((h)->iobase + SD_CMDARG)
 
#define HOST_BLKSIZE(h)   ((h)->iobase + SD_BLKSIZE)
 
#define HOST_CMD(h)   ((h)->iobase + SD_CMD)
 
#define HOST_CONFIG2(h)   ((h)->iobase + SD_CONFIG2)
 
#define HOST_TIMEOUT(h)   ((h)->iobase + SD_TIMEOUT)
 
#define HOST_DEBUG(h)   ((h)->iobase + SD_DEBUG)
 
#define DMA_CHANNEL(h)   (((h)->flags & HOST_F_XMIT) ? (h)->tx_chan : (h)->rx_chan)
 
#define AU1XMMC_MAX_TRANSFER   8
 
#define STATUS_TIMEOUT   (SD_STATUS_RAT | SD_STATUS_DT)
 
#define STATUS_DATA_IN   (SD_STATUS_NE)
 
#define STATUS_DATA_OUT   (SD_STATUS_TH)
 
#define au1xmmc_suspend   NULL
 
#define au1xmmc_resume   NULL
 

Functions

 module_init (au1xmmc_init)
 
 module_exit (au1xmmc_exit)
 
 MODULE_AUTHOR ("Advanced Micro Devices, Inc")
 
 MODULE_DESCRIPTION ("MMC/SD driver for the Alchemy Au1XXX")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:au1xxx-mmc")
 

Macro Definition Documentation

#define AU1100_MMC_DESCRIPTOR_SIZE   0x0000ffff

Definition at line 67 of file au1xmmc.c.

#define AU1200_MMC_DESCRIPTOR_SIZE   0x003fffff

Definition at line 68 of file au1xmmc.c.

#define AU1XMMC_DESCRIPTOR_COUNT   1

Definition at line 64 of file au1xmmc.c.

#define AU1XMMC_DETECT_TIMEOUT   (HZ/2)

Definition at line 86 of file au1xmmc.c.

#define AU1XMMC_INTERRUPTS
Value:

Definition at line 81 of file au1xmmc.c.

#define AU1XMMC_MAX_TRANSFER   8

Definition at line 387 of file au1xmmc.c.

#define AU1XMMC_OCR
Value:

Definition at line 70 of file au1xmmc.c.

#define au1xmmc_resume   NULL

Definition at line 1186 of file au1xmmc.c.

#define au1xmmc_suspend   NULL

Definition at line 1185 of file au1xmmc.c.

#define DBG (   fmt,
  idx,
  args... 
)    do {} while (0)

Definition at line 60 of file au1xmmc.c.

#define DMA_CHANNEL (   h)    (((h)->flags & HOST_F_XMIT) ? (h)->tx_chan : (h)->rx_chan)

Definition at line 149 of file au1xmmc.c.

#define DRIVER_NAME   "au1xxx-mmc"

Definition at line 51 of file au1xmmc.c.

#define HOST_BLKSIZE (   h)    ((h)->iobase + SD_BLKSIZE)

Definition at line 143 of file au1xmmc.c.

#define HOST_CMD (   h)    ((h)->iobase + SD_CMD)

Definition at line 144 of file au1xmmc.c.

#define HOST_CMDARG (   h)    ((h)->iobase + SD_CMDARG)

Definition at line 142 of file au1xmmc.c.

#define HOST_CONFIG (   h)    ((h)->iobase + SD_CONFIG)

Definition at line 138 of file au1xmmc.c.

#define HOST_CONFIG2 (   h)    ((h)->iobase + SD_CONFIG2)

Definition at line 145 of file au1xmmc.c.

#define HOST_DEBUG (   h)    ((h)->iobase + SD_DEBUG)

Definition at line 147 of file au1xmmc.c.

#define HOST_ENABLE (   h)    ((h)->iobase + SD_ENABLE)

Definition at line 139 of file au1xmmc.c.

#define HOST_F_ACTIVE   0x0100

Definition at line 128 of file au1xmmc.c.

#define HOST_F_DBDMA   0x0020

Definition at line 127 of file au1xmmc.c.

#define HOST_F_DMA   0x0010

Definition at line 126 of file au1xmmc.c.

#define HOST_F_RECV   0x0002

Definition at line 125 of file au1xmmc.c.

#define HOST_F_STOP   0x1000

Definition at line 129 of file au1xmmc.c.

#define HOST_F_XMIT   0x0001

Definition at line 124 of file au1xmmc.c.

#define HOST_RXPORT (   h)    ((h)->iobase + SD_RXPORT)

Definition at line 141 of file au1xmmc.c.

#define HOST_S_CMD   0x0002

Definition at line 132 of file au1xmmc.c.

#define HOST_S_DATA   0x0003

Definition at line 133 of file au1xmmc.c.

#define HOST_S_IDLE   0x0001

Definition at line 131 of file au1xmmc.c.

#define HOST_S_STOP   0x0004

Definition at line 134 of file au1xmmc.c.

#define HOST_STATUS (   h)    ((h)->iobase + SD_STATUS)

Definition at line 137 of file au1xmmc.c.

#define HOST_TIMEOUT (   h)    ((h)->iobase + SD_TIMEOUT)

Definition at line 146 of file au1xmmc.c.

#define HOST_TXPORT (   h)    ((h)->iobase + SD_TXPORT)

Definition at line 140 of file au1xmmc.c.

#define STATUS_DATA_IN   (SD_STATUS_NE)

Definition at line 788 of file au1xmmc.c.

#define STATUS_DATA_OUT   (SD_STATUS_TH)

Definition at line 789 of file au1xmmc.c.

#define STATUS_TIMEOUT   (SD_STATUS_RAT | SD_STATUS_DT)

Definition at line 787 of file au1xmmc.c.

#define STOP_CMD   (SD_CMD_RT_1B | SD_CMD_CT_7 | (0xC << SD_CMD_CI_SHIFT) | SD_CMD_GO)

Definition at line 77 of file au1xmmc.c.

Function Documentation

MODULE_ALIAS ( "platform:au1xxx-mmc"  )
MODULE_AUTHOR ( "Advanced Micro  Devices,
Inc"   
)
MODULE_DESCRIPTION ( "MMC/SD driver for the Alchemy Au1XXX"  )
module_exit ( au1xmmc_exit  )
module_init ( au1xmmc_init  )
MODULE_LICENSE ( "GPL"  )