#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/major.h>
#include <linux/errno.h>
#include <linux/timer.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/pci.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>
#include <pcmcia/ss.h>
#include <pcmcia/cisreg.h>
#include <pcmcia/cistpl.h>
#include "cs_internal.h"
Go to the source code of this file.
|
| module_param (cis_width, int, 0444) |
|
void | release_cis_mem (struct pcmcia_socket *s) |
|
int | pcmcia_read_cis_mem (struct pcmcia_socket *s, int attr, u_int addr, u_int len, void *ptr) |
|
int | pcmcia_write_cis_mem (struct pcmcia_socket *s, int attr, u_int addr, u_int len, void *ptr) |
|
void | destroy_cis_cache (struct pcmcia_socket *s) |
|
int | verify_cis_cache (struct pcmcia_socket *s) |
|
int | pcmcia_replace_cis (struct pcmcia_socket *s, const u8 *data, const size_t len) |
|
int | pccard_get_first_tuple (struct pcmcia_socket *s, unsigned int function, tuple_t *tuple) |
|
int | pccard_get_next_tuple (struct pcmcia_socket *s, unsigned int function, tuple_t *tuple) |
|
int | pccard_get_tuple_data (struct pcmcia_socket *s, tuple_t *tuple) |
|
int | pcmcia_parse_tuple (tuple_t *tuple, cisparse_t *parse) |
|
| EXPORT_SYMBOL (pcmcia_parse_tuple) |
|
int | pccard_validate_cis (struct pcmcia_socket *s, unsigned int *info) |
|
#define IRQ_INFO2_VALID 0x10 |
#define POWER_CVT |
( |
|
v | ) |
(mantissa[((v)>>3)&15] * exponent[(v)&7] / 10) |
#define SPEED_CVT |
( |
|
v | ) |
(mantissa[(((v)>>3)&15)-1] * exponent[(v)&7] / 10) |
module_param |
( |
cis_width |
, |
|
|
int |
, |
|
|
0444 |
|
|
) |
| |
pccard_validate_cis() - check whether card has a sensible CIS : the struct pcmcia_socket we are to check : returns the number of tuples in the (valid) CIS, or 0
This tries to determine if a card has a sensible CIS. In , it returns the number of tuples in the CIS, or 0 if the CIS looks bad. The checks include making sure several critical tuples are present and valid; seeing if the total number of tuples is reasonable; and looking for tuples that use reserved codes.
The function returns 0 on success.
Definition at line 1376 of file cistpl.c.
pcmcia_replace_cis() - use a replacement CIS instead of the card's CIS
For really bad cards, we provide a facility for uploading a replacement CIS.
Definition at line 410 of file cistpl.c.
pcmcia_write_cis_mem() - low-level function to write CIS memory
Probably only useful for writing one-byte registers. Must be called with ops_mutex held.
Definition at line 214 of file cistpl.c.
Initial value:= {
.size = 0x200,
.read = pccard_show_cis,
.write = pccard_store_cis,
}
Definition at line 1595 of file cistpl.c.