Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pxa2xx_base.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/cpufreq.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/spinlock.h>
#include <linux/platform_device.h>
#include <mach/hardware.h>
#include <mach/smemc.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <mach/pxa2xx-regs.h>
#include <asm/mach-types.h>
#include <pcmcia/ss.h>
#include <pcmcia/cistpl.h>
#include "soc_common.h"
#include "pxa2xx_base.h"

Go to the source code of this file.

Macros

#define PCMCIAPrtSp   0x04000000 /* PCMCIA Partition Space [byte] */
 
#define PCMCIASp   (4*PCMCIAPrtSp) /* PCMCIA Space [byte] */
 
#define PCMCIAIOSp   PCMCIAPrtSp /* PCMCIA I/O Space [byte] */
 
#define PCMCIAAttrSp   PCMCIAPrtSp /* PCMCIA Attribute Space [byte] */
 
#define PCMCIAMemSp   PCMCIAPrtSp /* PCMCIA Memory Space [byte] */
 
#define PCMCIA0Sp   PCMCIASp /* PCMCIA 0 Space [byte] */
 
#define PCMCIA0IOSp   PCMCIAIOSp /* PCMCIA 0 I/O Space [byte] */
 
#define PCMCIA0AttrSp   PCMCIAAttrSp /* PCMCIA 0 Attribute Space [byte] */
 
#define PCMCIA0MemSp   PCMCIAMemSp /* PCMCIA 0 Memory Space [byte] */
 
#define PCMCIA1Sp   PCMCIASp /* PCMCIA 1 Space [byte] */
 
#define PCMCIA1IOSp   PCMCIAIOSp /* PCMCIA 1 I/O Space [byte] */
 
#define PCMCIA1AttrSp   PCMCIAAttrSp /* PCMCIA 1 Attribute Space [byte] */
 
#define PCMCIA1MemSp   PCMCIAMemSp /* PCMCIA 1 Memory Space [byte] */
 
#define _PCMCIA(Nb)
 
#define _PCMCIAIO(Nb)   _PCMCIA(Nb) /* PCMCIA I/O [0..1] */
 
#define _PCMCIAAttr(Nb)
 
#define _PCMCIAMem(Nb)
 
#define _PCMCIA0   _PCMCIA(0) /* PCMCIA 0 */
 
#define _PCMCIA0IO   _PCMCIAIO(0) /* PCMCIA 0 I/O */
 
#define _PCMCIA0Attr   _PCMCIAAttr(0) /* PCMCIA 0 Attribute */
 
#define _PCMCIA0Mem   _PCMCIAMem(0) /* PCMCIA 0 Memory */
 
#define _PCMCIA1   _PCMCIA(1) /* PCMCIA 1 */
 
#define _PCMCIA1IO   _PCMCIAIO(1) /* PCMCIA 1 I/O */
 
#define _PCMCIA1Attr   _PCMCIAAttr(1) /* PCMCIA 1 Attribute */
 
#define _PCMCIA1Mem   _PCMCIAMem(1) /* PCMCIA 1 Memory */
 
#define MCXX_SETUP_MASK   (0x7f)
 
#define MCXX_ASST_MASK   (0x1f)
 
#define MCXX_HOLD_MASK   (0x3f)
 
#define MCXX_SETUP_SHIFT   (0)
 
#define MCXX_ASST_SHIFT   (7)
 
#define MCXX_HOLD_SHIFT   (14)
 
#define SKT_DEV_INFO_SIZE(n)   (sizeof(struct skt_dev_info) + (n)*sizeof(struct soc_pcmcia_socket))
 

Functions

void pxa2xx_configure_sockets (struct device *dev)
 
 EXPORT_SYMBOL (pxa2xx_configure_sockets)
 
int pxa2xx_drv_pcmcia_add_one (struct soc_pcmcia_socket *skt)
 
 EXPORT_SYMBOL (pxa2xx_drv_pcmcia_add_one)
 
void pxa2xx_drv_pcmcia_ops (struct pcmcia_low_level *ops)
 
 EXPORT_SYMBOL (pxa2xx_drv_pcmcia_ops)
 
 fs_initcall (pxa2xx_pcmcia_init)
 
 module_exit (pxa2xx_pcmcia_exit)
 
 MODULE_AUTHOR ("Stefan Eletzhofer <[email protected]> and Ian Molton <[email protected]>")
 
 MODULE_DESCRIPTION ("Linux PCMCIA Card Services: PXA2xx core socket driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:pxa2xx-pcmcia")
 

Macro Definition Documentation

#define _PCMCIA (   Nb)
Value:
/* PCMCIA [0..1] */ \
(0x20000000 + (Nb) * PCMCIASp)

Definition at line 61 of file pxa2xx_base.c.

#define _PCMCIA0   _PCMCIA(0) /* PCMCIA 0 */

Definition at line 69 of file pxa2xx_base.c.

#define _PCMCIA0Attr   _PCMCIAAttr(0) /* PCMCIA 0 Attribute */

Definition at line 71 of file pxa2xx_base.c.

#define _PCMCIA0IO   _PCMCIAIO(0) /* PCMCIA 0 I/O */

Definition at line 70 of file pxa2xx_base.c.

#define _PCMCIA0Mem   _PCMCIAMem(0) /* PCMCIA 0 Memory */

Definition at line 72 of file pxa2xx_base.c.

#define _PCMCIA1   _PCMCIA(1) /* PCMCIA 1 */

Definition at line 74 of file pxa2xx_base.c.

#define _PCMCIA1Attr   _PCMCIAAttr(1) /* PCMCIA 1 Attribute */

Definition at line 76 of file pxa2xx_base.c.

#define _PCMCIA1IO   _PCMCIAIO(1) /* PCMCIA 1 I/O */

Definition at line 75 of file pxa2xx_base.c.

#define _PCMCIA1Mem   _PCMCIAMem(1) /* PCMCIA 1 Memory */

Definition at line 77 of file pxa2xx_base.c.

#define _PCMCIAAttr (   Nb)
Value:
/* PCMCIA Attribute [0..1] */ \
(_PCMCIA(Nb) + 2 * PCMCIAPrtSp)

Definition at line 64 of file pxa2xx_base.c.

#define _PCMCIAIO (   Nb)    _PCMCIA(Nb) /* PCMCIA I/O [0..1] */

Definition at line 63 of file pxa2xx_base.c.

#define _PCMCIAMem (   Nb)
Value:
/* PCMCIA Memory [0..1] */ \
(_PCMCIA(Nb) + 3 * PCMCIAPrtSp)

Definition at line 66 of file pxa2xx_base.c.

#define MCXX_ASST_MASK   (0x1f)

Definition at line 81 of file pxa2xx_base.c.

#define MCXX_ASST_SHIFT   (7)

Definition at line 84 of file pxa2xx_base.c.

#define MCXX_HOLD_MASK   (0x3f)

Definition at line 82 of file pxa2xx_base.c.

#define MCXX_HOLD_SHIFT   (14)

Definition at line 85 of file pxa2xx_base.c.

#define MCXX_SETUP_MASK   (0x7f)

Definition at line 80 of file pxa2xx_base.c.

#define MCXX_SETUP_SHIFT   (0)

Definition at line 83 of file pxa2xx_base.c.

#define PCMCIA0AttrSp   PCMCIAAttrSp /* PCMCIA 0 Attribute Space [byte] */

Definition at line 53 of file pxa2xx_base.c.

#define PCMCIA0IOSp   PCMCIAIOSp /* PCMCIA 0 I/O Space [byte] */

Definition at line 52 of file pxa2xx_base.c.

#define PCMCIA0MemSp   PCMCIAMemSp /* PCMCIA 0 Memory Space [byte] */

Definition at line 54 of file pxa2xx_base.c.

#define PCMCIA0Sp   PCMCIASp /* PCMCIA 0 Space [byte] */

Definition at line 51 of file pxa2xx_base.c.

#define PCMCIA1AttrSp   PCMCIAAttrSp /* PCMCIA 1 Attribute Space [byte] */

Definition at line 58 of file pxa2xx_base.c.

#define PCMCIA1IOSp   PCMCIAIOSp /* PCMCIA 1 I/O Space [byte] */

Definition at line 57 of file pxa2xx_base.c.

#define PCMCIA1MemSp   PCMCIAMemSp /* PCMCIA 1 Memory Space [byte] */

Definition at line 59 of file pxa2xx_base.c.

#define PCMCIA1Sp   PCMCIASp /* PCMCIA 1 Space [byte] */

Definition at line 56 of file pxa2xx_base.c.

#define PCMCIAAttrSp   PCMCIAPrtSp /* PCMCIA Attribute Space [byte] */

Definition at line 48 of file pxa2xx_base.c.

#define PCMCIAIOSp   PCMCIAPrtSp /* PCMCIA I/O Space [byte] */

Definition at line 47 of file pxa2xx_base.c.

#define PCMCIAMemSp   PCMCIAPrtSp /* PCMCIA Memory Space [byte] */

Definition at line 49 of file pxa2xx_base.c.

#define PCMCIAPrtSp   0x04000000 /* PCMCIA Partition Space [byte] */

Definition at line 45 of file pxa2xx_base.c.

#define PCMCIASp   (4*PCMCIAPrtSp) /* PCMCIA Space [byte] */

Definition at line 46 of file pxa2xx_base.c.

#define SKT_DEV_INFO_SIZE (   n)    (sizeof(struct skt_dev_info) + (n)*sizeof(struct soc_pcmcia_socket))

Definition at line 240 of file pxa2xx_base.c.

Function Documentation

EXPORT_SYMBOL ( pxa2xx_configure_sockets  )
EXPORT_SYMBOL ( pxa2xx_drv_pcmcia_add_one  )
EXPORT_SYMBOL ( pxa2xx_drv_pcmcia_ops  )
fs_initcall ( pxa2xx_pcmcia_init  )
MODULE_ALIAS ( "platform:pxa2xx-pcmcia )
MODULE_AUTHOR ( "Stefan Eletzhofer <[email protected]> and Ian Molton <[email protected]>"  )
MODULE_DESCRIPTION ( "Linux PCMCIA Card Services: PXA2xx core socket driver )
module_exit ( pxa2xx_pcmcia_exit  )
MODULE_LICENSE ( "GPL"  )
void pxa2xx_configure_sockets ( struct device dev)

Definition at line 217 of file pxa2xx_base.c.

int pxa2xx_drv_pcmcia_add_one ( struct soc_pcmcia_socket skt)

Definition at line 243 of file pxa2xx_base.c.

void pxa2xx_drv_pcmcia_ops ( struct pcmcia_low_level ops)

Definition at line 269 of file pxa2xx_base.c.