|
Linux Kernel
3.7.1
|
#include <linux/kernel.h>#include <linux/module.h>#include <linux/slab.h>#include <linux/init.h>#include <linux/fs.h>#include <linux/delay.h>#include <linux/bitrev.h>#include <linux/mutex.h>#include <linux/uaccess.h>#include <linux/io.h>#include <pcmcia/cistpl.h>#include <pcmcia/cisreg.h>#include <pcmcia/ciscode.h>#include <pcmcia/ds.h>#include <linux/cm4000_cs.h>Go to the source code of this file.
Data Structures | |
| struct | cm4000_dev |
| struct | card_fixup |
Macros | |
| #define | reader_to_dev(x) (&x->p_dev->dev) |
| #define | DEBUGP(n, rdr, x, args...) |
| #define | T_1SEC (HZ) |
| #define | T_10MSEC msecs_to_jiffies(10) |
| #define | T_20MSEC msecs_to_jiffies(20) |
| #define | T_40MSEC msecs_to_jiffies(40) |
| #define | T_50MSEC msecs_to_jiffies(50) |
| #define | T_100MSEC msecs_to_jiffies(100) |
| #define | T_500MSEC msecs_to_jiffies(500) |
| #define | M_FETCH_ATR 0 |
| #define | M_TIMEOUT_WAIT 1 |
| #define | M_READ_ATR_LEN 2 |
| #define | M_READ_ATR 3 |
| #define | M_ATR_PRESENT 4 |
| #define | M_BAD_CARD 5 |
| #define | M_CARDOFF 6 |
| #define | LOCK_IO 0 |
| #define | LOCK_MONITOR 1 |
| #define | IS_AUTOPPS_ACT 6 |
| #define | IS_PROCBYTE_PRESENT 7 |
| #define | IS_INVREV 8 |
| #define | IS_ANY_T0 9 |
| #define | IS_ANY_T1 10 |
| #define | IS_ATR_PRESENT 11 |
| #define | IS_ATR_VALID 12 |
| #define | IS_CMM_ABSENT 13 |
| #define | IS_BAD_LENGTH 14 |
| #define | IS_BAD_CSUM 15 |
| #define | IS_BAD_CARD 16 |
| #define | REG_FLAGS0(x) (x + 0) |
| #define | REG_FLAGS1(x) (x + 1) |
| #define | REG_NUM_BYTES(x) (x + 2) |
| #define | REG_BUF_ADDR(x) (x + 3) |
| #define | REG_BUF_DATA(x) (x + 4) |
| #define | REG_NUM_SEND(x) (x + 5) |
| #define | REG_BAUDRATE(x) (x + 6) |
| #define | REG_STOPBITS(x) (x + 7) |
| #define | ZERO_DEV(dev) |
| #define | xoutb outb |
| #define | xinb inb |
| #define | ATRLENCK(dev, pos) |
| #define | MAX_ATR_LEN_RETRY 100 |
Functions | |
| MODULE_DEVICE_TABLE (pcmcia, cm4000_ids) | |
| module_init (cmm_init) | |
| module_exit (cmm_exit) | |
| MODULE_LICENSE ("Dual BSD/GPL") | |
Definition at line 52 of file cm4000_cs.c.
| #define IS_ANY_T0 9 |
Definition at line 87 of file cm4000_cs.c.
| #define IS_ANY_T1 10 |
Definition at line 88 of file cm4000_cs.c.
| #define IS_ATR_PRESENT 11 |
Definition at line 89 of file cm4000_cs.c.
| #define IS_ATR_VALID 12 |
Definition at line 90 of file cm4000_cs.c.
| #define IS_AUTOPPS_ACT 6 |
Definition at line 84 of file cm4000_cs.c.
| #define IS_BAD_CARD 16 |
Definition at line 94 of file cm4000_cs.c.
| #define IS_BAD_CSUM 15 |
Definition at line 93 of file cm4000_cs.c.
| #define IS_BAD_LENGTH 14 |
Definition at line 92 of file cm4000_cs.c.
| #define IS_CMM_ABSENT 13 |
Definition at line 91 of file cm4000_cs.c.
| #define IS_INVREV 8 |
Definition at line 86 of file cm4000_cs.c.
| #define IS_PROCBYTE_PRESENT 7 |
Definition at line 85 of file cm4000_cs.c.
| #define LOCK_IO 0 |
Definition at line 81 of file cm4000_cs.c.
| #define LOCK_MONITOR 1 |
Definition at line 82 of file cm4000_cs.c.
| #define M_ATR_PRESENT 4 |
Definition at line 77 of file cm4000_cs.c.
| #define M_BAD_CARD 5 |
Definition at line 78 of file cm4000_cs.c.
| #define M_CARDOFF 6 |
Definition at line 79 of file cm4000_cs.c.
| #define M_FETCH_ATR 0 |
Definition at line 73 of file cm4000_cs.c.
| #define M_READ_ATR 3 |
Definition at line 76 of file cm4000_cs.c.
| #define M_READ_ATR_LEN 2 |
Definition at line 75 of file cm4000_cs.c.
| #define M_TIMEOUT_WAIT 1 |
Definition at line 74 of file cm4000_cs.c.
| #define MAX_ATR_LEN_RETRY 100 |
Definition at line 46 of file cm4000_cs.c.
Definition at line 102 of file cm4000_cs.c.
Definition at line 99 of file cm4000_cs.c.
Definition at line 100 of file cm4000_cs.c.
Definition at line 96 of file cm4000_cs.c.
Definition at line 97 of file cm4000_cs.c.
Definition at line 98 of file cm4000_cs.c.
Definition at line 101 of file cm4000_cs.c.
Definition at line 103 of file cm4000_cs.c.
| #define T_100MSEC msecs_to_jiffies(100) |
Definition at line 64 of file cm4000_cs.c.
| #define T_10MSEC msecs_to_jiffies(10) |
Definition at line 60 of file cm4000_cs.c.
| #define T_1SEC (HZ) |
Definition at line 59 of file cm4000_cs.c.
| #define T_20MSEC msecs_to_jiffies(20) |
Definition at line 61 of file cm4000_cs.c.
| #define T_40MSEC msecs_to_jiffies(40) |
Definition at line 62 of file cm4000_cs.c.
| #define T_500MSEC msecs_to_jiffies(500) |
Definition at line 65 of file cm4000_cs.c.
| #define T_50MSEC msecs_to_jiffies(50) |
Definition at line 63 of file cm4000_cs.c.
| #define xinb inb |
Definition at line 173 of file cm4000_cs.c.
| #define xoutb outb |
Definition at line 172 of file cm4000_cs.c.
| #define ZERO_DEV | ( | dev | ) |
Definition at line 145 of file cm4000_cs.c.
| MODULE_DEVICE_TABLE | ( | pcmcia | , |
| cm4000_ids | |||
| ) |
| module_exit | ( | cmm_exit | ) |
| module_init | ( | cmm_init | ) |
| MODULE_LICENSE | ( | "Dual BSD/GPL" | ) |
1.8.2