Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
gameport.c File Reference
#include <linux/stddef.h>
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <linux/gameport.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/workqueue.h>
#include <linux/sched.h>
#include <linux/mutex.h>

Go to the source code of this file.

Data Structures

struct  gameport_event
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Enumerations

enum  gameport_event_type { GAMEPORT_REGISTER_PORT, GAMEPORT_ATTACH_DRIVER }
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION ("Generic gameport layer")
 
 MODULE_LICENSE ("GPL")
 
void gameport_start_polling (struct gameport *gameport)
 
 EXPORT_SYMBOL (gameport_start_polling)
 
void gameport_stop_polling (struct gameport *gameport)
 
 EXPORT_SYMBOL (gameport_stop_polling)
 
void gameport_set_phys (struct gameport *gameport, const char *fmt,...)
 
 EXPORT_SYMBOL (gameport_set_phys)
 
void __gameport_register_port (struct gameport *gameport, struct module *owner)
 
 EXPORT_SYMBOL (__gameport_register_port)
 
void gameport_unregister_port (struct gameport *gameport)
 
 EXPORT_SYMBOL (gameport_unregister_port)
 
int __gameport_register_driver (struct gameport_driver *drv, struct module *owner, const char *mod_name)
 
 EXPORT_SYMBOL (__gameport_register_driver)
 
void gameport_unregister_driver (struct gameport_driver *drv)
 
 EXPORT_SYMBOL (gameport_unregister_driver)
 
int gameport_open (struct gameport *gameport, struct gameport_driver *drv, int mode)
 
 EXPORT_SYMBOL (gameport_open)
 
void gameport_close (struct gameport *gameport)
 
 EXPORT_SYMBOL (gameport_close)
 
 subsys_initcall (gameport_init)
 
 module_exit (gameport_exit)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 14 of file gameport.c.

Enumeration Type Documentation

Enumerator:
GAMEPORT_REGISTER_PORT 
GAMEPORT_ATTACH_DRIVER 

Definition at line 221 of file gameport.c.

Function Documentation

int __gameport_register_driver ( struct gameport_driver drv,
struct module owner,
const char mod_name 
)

Definition at line 681 of file gameport.c.

void __gameport_register_port ( struct gameport gameport,
struct module owner 
)

Definition at line 618 of file gameport.c.

EXPORT_SYMBOL ( gameport_start_polling  )
EXPORT_SYMBOL ( gameport_stop_polling  )
EXPORT_SYMBOL ( gameport_set_phys  )
EXPORT_SYMBOL ( __gameport_register_port  )
EXPORT_SYMBOL ( gameport_unregister_port  )
EXPORT_SYMBOL ( __gameport_register_driver  )
EXPORT_SYMBOL ( gameport_unregister_driver  )
EXPORT_SYMBOL ( gameport_open  )
EXPORT_SYMBOL ( gameport_close  )
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_set_phys ( struct gameport gameport,
const char fmt,
  ... 
)

Definition at line 475 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.

void gameport_unregister_port ( struct gameport gameport)

Definition at line 628 of file gameport.c.

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( "Generic gameport layer"  )
module_exit ( gameport_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( gameport_init  )