Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/io.h>
#include <linux/slab.h>
#include <pcmcia/ss.h>
#include <mach/hardware.h>
#include <asm/hardware/sa1111.h>
#include <asm/irq.h>
#include "sa1111_generic.h"
Go to the source code of this file.
Macros | |
#define | PCCR 0x0000 |
#define | PCSSR 0x0004 |
#define | PCSR 0x0008 |
#define | PCSR_S0_READY (1<<0) |
#define | PCSR_S1_READY (1<<1) |
#define | PCSR_S0_DETECT (1<<2) |
#define | PCSR_S1_DETECT (1<<3) |
#define | PCSR_S0_VS1 (1<<4) |
#define | PCSR_S0_VS2 (1<<5) |
#define | PCSR_S1_VS1 (1<<6) |
#define | PCSR_S1_VS2 (1<<7) |
#define | PCSR_S0_WP (1<<8) |
#define | PCSR_S1_WP (1<<9) |
#define | PCSR_S0_BVD1 (1<<10) |
#define | PCSR_S0_BVD2 (1<<11) |
#define | PCSR_S1_BVD1 (1<<12) |
#define | PCSR_S1_BVD2 (1<<13) |
#define | PCCR_S0_RST (1<<0) |
#define | PCCR_S1_RST (1<<1) |
#define | PCCR_S0_FLT (1<<2) |
#define | PCCR_S1_FLT (1<<3) |
#define | PCCR_S0_PWAITEN (1<<4) |
#define | PCCR_S1_PWAITEN (1<<5) |
#define | PCCR_S0_PSE (1<<6) |
#define | PCCR_S1_PSE (1<<7) |
#define | PCSSR_S0_SLEEP (1<<0) |
#define | PCSSR_S1_SLEEP (1<<1) |
#define | IDX_IRQ_S0_READY_NINT (0) |
#define | IDX_IRQ_S0_CD_VALID (1) |
#define | IDX_IRQ_S0_BVD1_STSCHG (2) |
#define | IDX_IRQ_S1_READY_NINT (3) |
#define | IDX_IRQ_S1_CD_VALID (4) |
#define | IDX_IRQ_S1_BVD1_STSCHG (5) |
Functions | |
void | sa1111_pcmcia_socket_state (struct soc_pcmcia_socket *skt, struct pcmcia_state *state) |
int | sa1111_pcmcia_configure_socket (struct soc_pcmcia_socket *skt, const socket_state_t *state) |
int | sa1111_pcmcia_add (struct sa1111_dev *dev, struct pcmcia_low_level *ops, int(*add)(struct soc_pcmcia_socket *)) |
fs_initcall (sa1111_drv_pcmcia_init) | |
module_exit (sa1111_drv_pcmcia_exit) | |
MODULE_DESCRIPTION ("SA1111 PCMCIA card socket driver") | |
MODULE_LICENSE ("GPL") | |
#define IDX_IRQ_S0_BVD1_STSCHG (2) |
Definition at line 61 of file sa1111_generic.c.
#define IDX_IRQ_S0_CD_VALID (1) |
Definition at line 60 of file sa1111_generic.c.
#define IDX_IRQ_S0_READY_NINT (0) |
Definition at line 59 of file sa1111_generic.c.
#define IDX_IRQ_S1_BVD1_STSCHG (5) |
Definition at line 64 of file sa1111_generic.c.
#define IDX_IRQ_S1_CD_VALID (4) |
Definition at line 63 of file sa1111_generic.c.
#define IDX_IRQ_S1_READY_NINT (3) |
Definition at line 62 of file sa1111_generic.c.
#define PCCR 0x0000 |
Definition at line 28 of file sa1111_generic.c.
#define PCCR_S0_FLT (1<<2) |
Definition at line 49 of file sa1111_generic.c.
#define PCCR_S0_PSE (1<<6) |
Definition at line 53 of file sa1111_generic.c.
#define PCCR_S0_PWAITEN (1<<4) |
Definition at line 51 of file sa1111_generic.c.
#define PCCR_S0_RST (1<<0) |
Definition at line 47 of file sa1111_generic.c.
#define PCCR_S1_FLT (1<<3) |
Definition at line 50 of file sa1111_generic.c.
#define PCCR_S1_PSE (1<<7) |
Definition at line 54 of file sa1111_generic.c.
#define PCCR_S1_PWAITEN (1<<5) |
Definition at line 52 of file sa1111_generic.c.
#define PCCR_S1_RST (1<<1) |
Definition at line 48 of file sa1111_generic.c.
#define PCSR 0x0008 |
Definition at line 30 of file sa1111_generic.c.
#define PCSR_S0_BVD1 (1<<10) |
Definition at line 42 of file sa1111_generic.c.
#define PCSR_S0_BVD2 (1<<11) |
Definition at line 43 of file sa1111_generic.c.
#define PCSR_S0_DETECT (1<<2) |
Definition at line 34 of file sa1111_generic.c.
#define PCSR_S0_READY (1<<0) |
Definition at line 32 of file sa1111_generic.c.
#define PCSR_S0_VS1 (1<<4) |
Definition at line 36 of file sa1111_generic.c.
#define PCSR_S0_VS2 (1<<5) |
Definition at line 37 of file sa1111_generic.c.
#define PCSR_S0_WP (1<<8) |
Definition at line 40 of file sa1111_generic.c.
#define PCSR_S1_BVD1 (1<<12) |
Definition at line 44 of file sa1111_generic.c.
#define PCSR_S1_BVD2 (1<<13) |
Definition at line 45 of file sa1111_generic.c.
#define PCSR_S1_DETECT (1<<3) |
Definition at line 35 of file sa1111_generic.c.
#define PCSR_S1_READY (1<<1) |
Definition at line 33 of file sa1111_generic.c.
#define PCSR_S1_VS1 (1<<6) |
Definition at line 38 of file sa1111_generic.c.
#define PCSR_S1_VS2 (1<<7) |
Definition at line 39 of file sa1111_generic.c.
#define PCSR_S1_WP (1<<9) |
Definition at line 41 of file sa1111_generic.c.
#define PCSSR 0x0004 |
Definition at line 29 of file sa1111_generic.c.
#define PCSSR_S0_SLEEP (1<<0) |
Definition at line 56 of file sa1111_generic.c.
#define PCSSR_S1_SLEEP (1<<1) |
Definition at line 57 of file sa1111_generic.c.
fs_initcall | ( | sa1111_drv_pcmcia_init | ) |
module_exit | ( | sa1111_drv_pcmcia_exit | ) |
MODULE_LICENSE | ( | "GPL" | ) |
int sa1111_pcmcia_add | ( | struct sa1111_dev * | dev, |
struct pcmcia_low_level * | ops, | ||
int(*)(struct soc_pcmcia_socket *) | add | ||
) |
Definition at line 134 of file sa1111_generic.c.
int sa1111_pcmcia_configure_socket | ( | struct soc_pcmcia_socket * | skt, |
const socket_state_t * | state | ||
) |
Definition at line 94 of file sa1111_generic.c.
void sa1111_pcmcia_socket_state | ( | struct soc_pcmcia_socket * | skt, |
struct pcmcia_state * | state | ||
) |
Definition at line 66 of file sa1111_generic.c.