Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
gameport.h File Reference
#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


#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)


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)


static const charfmt

Macro Definition Documentation

#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.

#define to_gameport_port (   d)    container_of(d, struct gameport, dev)

Definition at line 52 of file gameport.h.

Function Documentation

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.

void gameport_close ( struct gameport gameport)

Definition at line 781 of file gameport.c.

int gameport_open ( struct gameport gameport,
struct gameport_driver drv,
int  mode 

Definition at line 765 of file gameport.c.

void gameport_start_polling ( struct gameport gameport)

Definition at line 143 of file gameport.c.

void gameport_stop_polling ( struct gameport gameport)

Definition at line 157 of file gameport.c.

void gameport_unregister_driver ( struct gameport_driver drv)

Definition at line 717 of file gameport.c.

Variable Documentation

const char* fmt

Definition at line 95 of file gameport.h.