Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
at91_mci.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/blkdev.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/dma-mapping.h>
#include <linux/clk.h>
#include <linux/atmel_pdc.h>
#include <linux/gfp.h>
#include <linux/highmem.h>
#include <linux/mmc/host.h>
#include <linux/mmc/sdio.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/gpio.h>
#include <mach/board.h>
#include <mach/cpu.h>
#include "at91_mci.h"

Go to the source code of this file.

Data Structures

struct  at91mci_host
 

Macros

#define DRIVER_NAME   "at91_mci"
 
#define FL_SENT_COMMAND   (1 << 0)
 
#define FL_SENT_STOP   (1 << 1)
 
#define AT91_MCI_ERRORS
 
#define at91_mci_read(host, reg)   __raw_readl((host)->baseaddr + (reg))
 
#define at91_mci_write(host, reg, val)   __raw_writel((val), (host)->baseaddr + (reg))
 
#define MCI_BLKSIZE   512
 
#define MCI_MAXBLKSIZE   4095
 
#define MCI_BLKATONCE   256
 
#define MCI_BUFSIZE   (MCI_BLKSIZE * MCI_BLKATONCE)
 
#define at91_mci_suspend   NULL
 
#define at91_mci_resume   NULL
 

Functions

 module_init (at91_mci_init)
 
 module_exit (at91_mci_exit)
 
 MODULE_DESCRIPTION ("AT91 Multimedia Card Interface driver")
 
 MODULE_AUTHOR ("Nick Randell")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:at91_mci")
 

Macro Definition Documentation

#define AT91_MCI_ERRORS
#define at91_mci_read (   host,
  reg 
)    __raw_readl((host)->baseaddr + (reg))

Definition at line 102 of file at91_mci.c.

#define at91_mci_resume   NULL

Definition at line 1190 of file at91_mci.c.

#define at91_mci_suspend   NULL

Definition at line 1189 of file at91_mci.c.

#define at91_mci_write (   host,
  reg,
  val 
)    __raw_writel((val), (host)->baseaddr + (reg))

Definition at line 103 of file at91_mci.c.

#define DRIVER_NAME   "at91_mci"

Definition at line 83 of file at91_mci.c.

#define FL_SENT_COMMAND   (1 << 0)

Definition at line 95 of file at91_mci.c.

#define FL_SENT_STOP   (1 << 1)

Definition at line 96 of file at91_mci.c.

#define MCI_BLKATONCE   256

Definition at line 107 of file at91_mci.c.

#define MCI_BLKSIZE   512

Definition at line 105 of file at91_mci.c.

#define MCI_BUFSIZE   (MCI_BLKSIZE * MCI_BLKATONCE)

Definition at line 108 of file at91_mci.c.

#define MCI_MAXBLKSIZE   4095

Definition at line 106 of file at91_mci.c.

Function Documentation

MODULE_ALIAS ( "platform:at91_mci"  )
MODULE_AUTHOR ( "Nick Randell"  )
MODULE_DESCRIPTION ( "AT91 Multimedia Card Interface driver )
module_exit ( at91_mci_exit  )
module_init ( at91_mci_init  )
MODULE_LICENSE ( "GPL"  )