Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
usbkbd.c File Reference
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/usb/input.h>
#include <linux/hid.h>

Go to the source code of this file.

Data Structures

struct  usb_kbd
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRIVER_VERSION   ""
 
#define DRIVER_AUTHOR   "Vojtech Pavlik <[email protected]>"
 
#define DRIVER_DESC   "USB HID Boot Protocol keyboard driver"
 
#define DRIVER_LICENSE   "GPL"
 

Functions

 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE (DRIVER_LICENSE)
 

: Name of the keyboard. @dev's name field points to this buffer

struct usb_kbd - state of each attached keyboard : input device associated with this keyboard : usb device associated with this keyboard : data received in the past from the URB representing which keys were pressed. By comparing with the current list of keys that are pressed, we are able to see key releases. : URB for receiving a list of keys that are pressed when a new key is pressed or a key that was pressed is released. : URB for sending LEDs (e.g. numlock, ...) : data that will be sent with the URB representing which LEDs should be on

: Physical path of the keyboard. 's phys field points to this buffer : Buffer for the URB : Control request for URB : Buffer for the URB : DMA address for URB : DMA address for URB : spinlock that protects , , and : indicates whether is in progress, i.e. it has been submitted and its completion handler has not returned yet without resubmitting

 MODULE_DEVICE_TABLE (usb, usb_kbd_id_table)
 
 module_usb_driver (usb_kbd_driver)
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Vojtech Pavlik <[email protected]>"

Definition at line 40 of file usbkbd.c.

#define DRIVER_DESC   "USB HID Boot Protocol keyboard driver"

Definition at line 41 of file usbkbd.c.

#define DRIVER_LICENSE   "GPL"

Definition at line 42 of file usbkbd.c.

#define DRIVER_VERSION   ""

Definition at line 39 of file usbkbd.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 27 of file usbkbd.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
usb_kbd_id_table   
)
MODULE_LICENSE ( DRIVER_LICENSE  )
module_usb_driver ( usb_kbd_driver  )