Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
soc_common.h File Reference
#include <linux/clk.h>
#include <linux/cpufreq.h>
#include <pcmcia/ss.h>
#include <pcmcia/cistpl.h>

Go to the source code of this file.

Data Structures

struct  soc_pcmcia_socket
 
struct  skt_dev_info
 
struct  pcmcia_state
 
struct  pcmcia_low_level
 
struct  soc_pcmcia_timing
 

Macros

#define SOC_STAT_CD   0 /* Card detect */
 
#define SOC_STAT_BVD1   1 /* BATDEAD / IOSTSCHG */
 
#define SOC_STAT_BVD2   2 /* BATWARN / IOSPKR */
 
#define SOC_STAT_RDY   3 /* Ready / Interrupt */
 
#define debug(skt, lvl, fmt, arg...)   do { } while (0)
 
#define SOC_PCMCIA_IO_ACCESS   (165)
 
#define SOC_PCMCIA_5V_MEM_ACCESS   (150)
 
#define SOC_PCMCIA_3V_MEM_ACCESS   (300)
 
#define SOC_PCMCIA_ATTR_MEM_ACCESS   (300)
 
#define SOC_PCMCIA_POLL_PERIOD   (2*HZ)
 
#define iostschg   bvd1
 
#define iospkr   bvd2
 

Functions

void soc_common_pcmcia_get_timing (struct soc_pcmcia_socket *, struct soc_pcmcia_timing *)
 
void soc_pcmcia_init_one (struct soc_pcmcia_socket *skt, struct pcmcia_low_level *ops, struct device *dev)
 
void soc_pcmcia_remove_one (struct soc_pcmcia_socket *skt)
 
int soc_pcmcia_add_one (struct soc_pcmcia_socket *skt)
 

Macro Definition Documentation

#define debug (   skt,
  lvl,
  fmt,
  arg... 
)    do { } while (0)

Definition at line 151 of file soc_common.h.

#define iospkr   bvd2

Definition at line 191 of file soc_common.h.

#define iostschg   bvd1

Definition at line 190 of file soc_common.h.

#define SOC_PCMCIA_3V_MEM_ACCESS   (300)

Definition at line 174 of file soc_common.h.

#define SOC_PCMCIA_5V_MEM_ACCESS   (150)

Definition at line 173 of file soc_common.h.

#define SOC_PCMCIA_ATTR_MEM_ACCESS   (300)

Definition at line 175 of file soc_common.h.

#define SOC_PCMCIA_IO_ACCESS   (165)

Definition at line 172 of file soc_common.h.

#define SOC_PCMCIA_POLL_PERIOD   (2*HZ)

Definition at line 181 of file soc_common.h.

#define SOC_STAT_BVD1   1 /* BATDEAD / IOSTSCHG */

Definition at line 59 of file soc_common.h.

#define SOC_STAT_BVD2   2 /* BATWARN / IOSPKR */

Definition at line 60 of file soc_common.h.

#define SOC_STAT_CD   0 /* Card detect */

Definition at line 58 of file soc_common.h.

#define SOC_STAT_RDY   3 /* Ready / Interrupt */

Definition at line 61 of file soc_common.h.

Function Documentation

void soc_common_pcmcia_get_timing ( struct soc_pcmcia_socket ,
struct soc_pcmcia_timing  
)

Definition at line 97 of file soc_common.c.

int soc_pcmcia_add_one ( struct soc_pcmcia_socket skt)

Definition at line 721 of file soc_common.c.

void soc_pcmcia_init_one ( struct soc_pcmcia_socket skt,
struct pcmcia_low_level ops,
struct device dev 
)

Definition at line 682 of file soc_common.c.

void soc_pcmcia_remove_one ( struct soc_pcmcia_socket skt)

Definition at line 697 of file soc_common.c.