Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
usbhid.h File Reference
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/timer.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
#include <linux/input.h>

Go to the source code of this file.

Data Structures

struct  usbhid_device
 

Macros

#define HID_CTRL_RUNNING   1
 
#define HID_OUT_RUNNING   2
 
#define HID_IN_RUNNING   3
 
#define HID_RESET_PENDING   4
 
#define HID_SUSPENDED   5
 
#define HID_CLEAR_HALT   6
 
#define HID_DISCONNECTED   7
 
#define HID_STARTED   8
 
#define HID_KEYS_PRESSED   10
 
#define HID_NO_BANDWIDTH   11
 
#define hid_to_usb_dev(hid_dev)   container_of(hid_dev->dev.parent->parent, struct usb_device, dev)
 

Functions

int usbhid_wait_io (struct hid_device *hid)
 
void usbhid_close (struct hid_device *hid)
 
int usbhid_open (struct hid_device *hid)
 
void usbhid_init_reports (struct hid_device *hid)
 
void usbhid_submit_report (struct hid_device *hid, struct hid_report *report, unsigned char dir)
 
int usbhid_get_power (struct hid_device *hid)
 
void usbhid_put_power (struct hid_device *hid)
 
struct usb_interfaceusbhid_find_interface (int minor)
 

Macro Definition Documentation

#define HID_CLEAR_HALT   6

Definition at line 53 of file usbhid.h.

#define HID_CTRL_RUNNING   1

Definition at line 48 of file usbhid.h.

#define HID_DISCONNECTED   7

Definition at line 54 of file usbhid.h.

#define HID_IN_RUNNING   3

Definition at line 50 of file usbhid.h.

#define HID_KEYS_PRESSED   10

Definition at line 56 of file usbhid.h.

#define HID_NO_BANDWIDTH   11

Definition at line 57 of file usbhid.h.

#define HID_OUT_RUNNING   2

Definition at line 49 of file usbhid.h.

#define HID_RESET_PENDING   4

Definition at line 51 of file usbhid.h.

#define HID_STARTED   8

Definition at line 55 of file usbhid.h.

#define HID_SUSPENDED   5

Definition at line 52 of file usbhid.h.

#define hid_to_usb_dev (   hid_dev)    container_of(hid_dev->dev.parent->parent, struct usb_device, dev)

Definition at line 103 of file usbhid.h.

Function Documentation

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