Linux Kernel
3.7.1
|
#include <asm/io.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/device.h>
#include <linux/timer.h>
#include <linux/slab.h>
#include <uapi/linux/gameport.h>
Go to the source code of this file.
Data Structures | |
struct | gameport |
struct | gameport_driver |
Macros | |
#define | to_gameport_port(d) container_of(d, struct gameport, dev) |
#define | to_gameport_driver(d) container_of(d, struct gameport_driver, driver) |
#define | gameport_register_driver(drv) __gameport_register_driver(drv, THIS_MODULE, KBUILD_MODNAME) |
#define | module_gameport_driver(__gameport_driver) |
Functions | |
int | gameport_open (struct gameport *gameport, struct gameport_driver *drv, int mode) |
void | gameport_close (struct gameport *gameport) |
int __must_check | __gameport_register_driver (struct gameport_driver *drv, struct module *owner, const char *mod_name) |
void | gameport_unregister_driver (struct gameport_driver *drv) |
void | gameport_start_polling (struct gameport *gameport) |
void | gameport_stop_polling (struct gameport *gameport) |
Variables | |
static const char * | fmt |
#define gameport_register_driver | ( | drv | ) | __gameport_register_driver(drv, THIS_MODULE, KBUILD_MODNAME) |
Definition at line 150 of file gameport.h.
#define module_gameport_driver | ( | __gameport_driver | ) |
module_gameport_driver() - Helper macro for registering a gameport driver : gameport_driver struct
Helper macro for gameport drivers which do not do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit().
Definition at line 164 of file gameport.h.
#define to_gameport_driver | ( | d | ) | container_of(d, struct gameport_driver, driver) |
Definition at line 65 of file gameport.h.
Definition at line 52 of file gameport.h.
int __must_check __gameport_register_driver | ( | struct gameport_driver * | drv, |
struct module * | owner, | ||
const char * | mod_name | ||
) |
Definition at line 681 of file gameport.c.
Definition at line 781 of file gameport.c.
Definition at line 765 of file gameport.c.
Definition at line 143 of file gameport.c.
Definition at line 157 of file gameport.c.
void gameport_unregister_driver | ( | struct gameport_driver * | drv | ) |
Definition at line 717 of file gameport.c.
Definition at line 95 of file gameport.h.