Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/major.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/device.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <asm/irq.h>
#include <pcmcia/ss.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/cisreg.h>
#include <pcmcia/ds.h>
#include "cs_internal.h"
Go to the source code of this file.
Macros | |
#define | INT_MODULE_PARM(n, v) static int n = v; module_param(n, int, 0444) |
#define | PCMCIA_SOCKET_CLASS_PM_OPS NULL |
Variables | |
socket_state_t | dead_socket |
struct class | pcmcia_socket_class |
DECLARE_RWSEM | ( | pcmcia_socket_list_rwsem | ) |
EXPORT_SYMBOL | ( | dead_socket | ) |
EXPORT_SYMBOL | ( | pcmcia_socket_list | ) |
EXPORT_SYMBOL | ( | pcmcia_socket_list_rwsem | ) |
EXPORT_SYMBOL | ( | pcmcia_get_socket | ) |
EXPORT_SYMBOL | ( | pcmcia_put_socket | ) |
EXPORT_SYMBOL | ( | pcmcia_register_socket | ) |
EXPORT_SYMBOL | ( | pcmcia_unregister_socket | ) |
EXPORT_SYMBOL | ( | pcmcia_get_socket_by_nr | ) |
EXPORT_SYMBOL | ( | pcmcia_parse_events | ) |
EXPORT_SYMBOL | ( | pcmcia_parse_uevents | ) |
EXPORT_SYMBOL | ( | pccard_register_pcmcia | ) |
EXPORT_SYMBOL | ( | pcmcia_reset_card | ) |
EXPORT_SYMBOL | ( | pcmcia_socket_class | ) |
INT_MODULE_PARM | ( | setup_delay | , |
10 | |||
) |
INT_MODULE_PARM | ( | resume_delay | , |
20 | |||
) |
INT_MODULE_PARM | ( | shutdown_delay | , |
3 | |||
) |
INT_MODULE_PARM | ( | vcc_settle | , |
40 | |||
) |
INT_MODULE_PARM | ( | reset_time | , |
10 | |||
) |
INT_MODULE_PARM | ( | unreset_delay | , |
10 | |||
) |
INT_MODULE_PARM | ( | unreset_check | , |
10 | |||
) |
INT_MODULE_PARM | ( | unreset_limit | , |
30 | |||
) |
INT_MODULE_PARM | ( | cis_speed | , |
300 | |||
) |
LIST_HEAD | ( | pcmcia_socket_list | ) |
MODULE_AUTHOR | ( | "David Hinds <[email protected]>" | ) |
MODULE_DESCRIPTION | ( | "Linux Kernel Card Services" | ) |
module_exit | ( | exit_pcmcia_cs | ) |
MODULE_LICENSE | ( | "GPL" | ) |
int pccard_register_pcmcia | ( | struct pcmcia_socket * | s, |
struct pcmcia_callback * | c | ||
) |
|
read |
|
read |
void pcmcia_parse_events | ( | struct pcmcia_socket * | s, |
u_int | events | ||
) |
void pcmcia_parse_uevents | ( | struct pcmcia_socket * | s, |
u_int | events | ||
) |
pcmcia_parse_uevents() - tell pccardd to issue manual commands : the PCMCIA socket we wan't to command : events to pass to pccardd
userspace-issued insert, eject, suspend and resume commands must be handled by pccardd to avoid any sysfs-related deadlocks. Valid events are PCMCIA_UEVENT_EJECT (for eject), PCMCIA_UEVENT__INSERT (for insert), PCMCIA_UEVENT_RESUME (for resume), PCMCIA_UEVENT_SUSPEND (for suspend) and PCMCIA_UEVENT_REQUERY (for re-querying the PCMCIA card).
void pcmcia_put_socket | ( | struct pcmcia_socket * | skt | ) |
int pcmcia_register_socket | ( | struct pcmcia_socket * | socket | ) |
int pcmcia_reset_card | ( | struct pcmcia_socket * | skt | ) |
void pcmcia_unregister_socket | ( | struct pcmcia_socket * | socket | ) |
subsys_initcall | ( | init_pcmcia_cs | ) |
socket_state_t dead_socket |