Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hid-core.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/mm.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <asm/unaligned.h>
#include <asm/byteorder.h>
#include <linux/input.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
#include <linux/string.h>
#include <linux/usb.h>
#include <linux/hid.h>
#include <linux/hiddev.h>
#include <linux/hid-debug.h>
#include <linux/hidraw.h>
#include "usbhid.h"

Go to the source code of this file.

Macros

#define DRIVER_DESC   "USB HID core driver"
 
#define DRIVER_LICENSE   "GPL"
 

Functions

 module_param_named (mousepoll, hid_mousepoll_interval, uint, 0644)
 
 MODULE_PARM_DESC (mousepoll,"Polling interval of mice")
 
 module_param_named (ignoreled, ignoreled, uint, 0644)
 
 MODULE_PARM_DESC (ignoreled,"Autosuspend with active leds")
 
 module_param_array_named (quirks, quirks_param, charp, NULL, 0444)
 
 MODULE_PARM_DESC (quirks,"Add/modify USB HID quirks by specifying "" quirks=vendorID:productID:quirks"" where vendorID, productID, and quirks are all in"" 0x-prefixed hex")
 
void usbhid_submit_report (struct hid_device *hid, struct hid_report *report, unsigned char dir)
 
 EXPORT_SYMBOL_GPL (usbhid_submit_report)
 
int usbhid_wait_io (struct hid_device *hid)
 
 EXPORT_SYMBOL_GPL (usbhid_wait_io)
 
int usbhid_open (struct hid_device *hid)
 
void usbhid_close (struct hid_device *hid)
 
void usbhid_init_reports (struct hid_device *hid)
 
void usbhid_set_leds (struct hid_device *hid)
 
 EXPORT_SYMBOL_GPL (usbhid_set_leds)
 
int usbhid_get_power (struct hid_device *hid)
 
void usbhid_put_power (struct hid_device *hid)
 
 MODULE_DEVICE_TABLE (usb, hid_usb_ids)
 
struct usb_interfaceusbhid_find_interface (int minor)
 
 module_init (hid_init)
 
 module_exit (hid_exit)
 
 MODULE_AUTHOR ("Andreas Gal")
 
 MODULE_AUTHOR ("Vojtech Pavlik")
 
 MODULE_AUTHOR ("Jiri Kosina")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE (DRIVER_LICENSE)
 

Macro Definition Documentation

#define DRIVER_DESC   "USB HID core driver"

Definition at line 45 of file hid-core.c.

#define DRIVER_LICENSE   "GPL"

Definition at line 46 of file hid-core.c.

Function Documentation

EXPORT_SYMBOL_GPL ( usbhid_submit_report  )
EXPORT_SYMBOL_GPL ( usbhid_wait_io  )
EXPORT_SYMBOL_GPL ( usbhid_set_leds  )
MODULE_AUTHOR ( "Andreas Gal"  )
MODULE_AUTHOR ( "Vojtech Pavlik"  )
MODULE_AUTHOR ( "Jiri Kosina"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
hid_usb_ids   
)
module_exit ( hid_exit  )
module_init ( hid_init  )
MODULE_LICENSE ( DRIVER_LICENSE  )
module_param_array_named ( quirks  ,
quirks_param  ,
charp  ,
NULL  ,
0444   
)
module_param_named ( mousepoll  ,
hid_mousepoll_interval  ,
uint  ,
0644   
)
module_param_named ( ignoreled  ,
ignoreled  ,
uint  ,
0644   
)
MODULE_PARM_DESC ( mousepoll  ,
"Polling interval of mice"   
)
MODULE_PARM_DESC ( ignoreled  ,
"Autosuspend with active leds"   
)
MODULE_PARM_DESC ( quirks  ,
"Add/modify USB HID quirks by specifying ""  quirks = vendorID:productID:quirks"" where vendorID,
productID  ,
and quirks are all in""0x-prefixed hex"   
)
void usbhid_close ( struct hid_device hid)

Definition at line 782 of file hid-core.c.

struct usb_interface* usbhid_find_interface ( int  minor)
read

Definition at line 1609 of file hid-core.c.

int usbhid_get_power ( struct hid_device hid)

Definition at line 1450 of file hid-core.c.

void usbhid_init_reports ( struct hid_device hid)

Definition at line 808 of file hid-core.c.

int usbhid_open ( struct hid_device hid)

Definition at line 748 of file hid-core.c.

void usbhid_put_power ( struct hid_device hid)

Definition at line 1457 of file hid-core.c.

void usbhid_set_leds ( struct hid_device hid)

Definition at line 862 of file hid-core.c.

void usbhid_submit_report ( struct hid_device hid,
struct hid_report report,
unsigned char  dir 
)

Definition at line 642 of file hid-core.c.

int usbhid_wait_io ( struct hid_device hid)

Definition at line 709 of file hid-core.c.