Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
omap_cf.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/platform_device.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <pcmcia/ss.h>
#include <mach/hardware.h>
#include <asm/io.h>
#include <asm/sizes.h>
#include <mach/mux.h>
#include <plat/tc.h>

Go to the source code of this file.

Data Structures

struct  omap_cf_socket
 

Macros

#define CF_BASE   0xfffe2800
 
#define CF_STATUS   (CF_BASE + 0x00)
 
#define CF_STATUS_BAD_READ   (1 << 2)
 
#define CF_STATUS_BAD_WRITE   (1 << 1)
 
#define CF_STATUS_CARD_DETECT   (1 << 0)
 
#define CF_CFG   (CF_BASE + 0x02)
 
#define CF_CONTROL   (CF_BASE + 0x04)
 
#define CF_CONTROL_RESET   (1 << 0)
 
#define omap_cf_present()   (!(omap_readw(CF_STATUS) & CF_STATUS_CARD_DETECT))
 
#define POLL_INTERVAL   (2 * HZ)
 

Functions

 module_init (omap_cf_init)
 
 module_exit (omap_cf_exit)
 
 MODULE_DESCRIPTION ("OMAP CF Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:omap_cf")
 

Macro Definition Documentation

#define CF_BASE   0xfffe2800

Definition at line 39 of file omap_cf.c.

#define CF_CFG   (CF_BASE + 0x02)

Definition at line 48 of file omap_cf.c.

#define CF_CONTROL   (CF_BASE + 0x04)

Definition at line 51 of file omap_cf.c.

#define CF_CONTROL_RESET   (1 << 0)

Definition at line 52 of file omap_cf.c.

#define CF_STATUS   (CF_BASE + 0x00)

Definition at line 42 of file omap_cf.c.

#define CF_STATUS_BAD_READ   (1 << 2)

Definition at line 43 of file omap_cf.c.

#define CF_STATUS_BAD_WRITE   (1 << 1)

Definition at line 44 of file omap_cf.c.

#define CF_STATUS_CARD_DETECT   (1 << 0)

Definition at line 45 of file omap_cf.c.

#define omap_cf_present ( )    (!(omap_readw(CF_STATUS) & CF_STATUS_CARD_DETECT))

Definition at line 54 of file omap_cf.c.

#define POLL_INTERVAL   (2 * HZ)

Definition at line 73 of file omap_cf.c.

Function Documentation

MODULE_ALIAS ( "platform:omap_cf"  )
MODULE_DESCRIPTION ( "OMAP CF Driver"  )
module_exit ( omap_cf_exit  )
module_init ( omap_cf_init  )
MODULE_LICENSE ( "GPL"  )