Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/mod_devicetable.h>
#include <linux/timer.h>
#include <linux/workqueue.h>
#include <linux/input.h>
#include <linux/semaphore.h>
#include <linux/power_supply.h>
#include <uapi/linux/hid.h>
Go to the source code of this file.
Data Structures | |
struct | hid_item |
struct | hid_global |
struct | hid_local |
struct | hid_collection |
struct | hid_usage |
struct | hid_field |
struct | hid_report |
struct | hid_report_enum |
struct | hid_control_fifo |
struct | hid_output_fifo |
struct | hid_input |
struct | hid_device |
struct | hid_parser |
struct | hid_class_descriptor |
struct | hid_descriptor |
struct | hid_report_id |
struct | hid_usage_id |
struct | hid_driver |
struct | hid_ll_driver |
Enumerations | |
enum | hid_type { HID_TYPE_OTHER = 0, HID_TYPE_USBMOUSE, HID_TYPE_USBNONE } |
Functions | |
struct hid_class_descriptor | __attribute__ ((packed)) |
Variables | |
__u8 | bDescriptorType |
__le16 | wDescriptorLength |
__u8 | bLength |
__le16 | bcdHID |
__u8 | bCountryCode |
__u8 | bNumDescriptors |
struct hid_class_descriptor | desc [1] |
struct hid_report_id | __attribute__ |
: driver name (e.g. "Footech_bar-wheel") | |
struct hid_driver : which devices is this driver for (must be non-NULL for probe to be called) : list of dynamically added device ids : lock protecting : new device inserted : device removed (NULL if not a hot-plug capable driver) : on which reports to call raw_event (NULL means all) : if report in report_table, this hook is called (NULL means nop) : on which events to call event (NULL means all) : if usage in usage_table, this hook is called (NULL means nop) : called before report descriptor parsing (NULL means nop) : invoked on input registering before mapping an usage : invoked on input registering after mapping an usage : invoked just before the device is registered : invoked on feature registering : invoked on suspend (NULL means nop) : invoked on resume if device was not reset (NULL means nop) : invoked on resume if device was reset (NULL means nop) raw_event and event should return 0 on no action performed, 1 when no further processing should be done and negative on error input_mapping shall return a negative value to completely ignore this usage (e.g. doubled or invalid usage), zero to continue with parsing of this usage by generic code (no special handling needed) or positive to skip generic parsing (needed special handling which was done in the hook already) input_mapped shall return negative to inform the layer that this usage should not be considered for further processing or zero to notify that no processing was performed and should be done in a generic manner Both these functions may be NULL which means the same behavior as returning zero from them. | |
#define | PM_HINT_FULLON 1<<5 |
#define | PM_HINT_NORMAL 1<<1 |
#define | IS_INPUT_APPLICATION(a) (((a >= 0x00010000) && (a <= 0x00010008)) || (a == 0x00010080) || (a == 0x000c0001) || ((a >= 0x000d0002) && (a <= 0x000d0006))) |
#define | hid_register_driver(driver) __hid_register_driver(driver, THIS_MODULE, KBUILD_MODNAME) |
#define | hid_pidff_init NULL |
#define | dbg_hid(format, arg...) |
#define | hid_printk(level, hid, fmt, arg...) dev_printk(level, &(hid)->dev, fmt, ##arg) |
#define | hid_emerg(hid, fmt, arg...) dev_emerg(&(hid)->dev, fmt, ##arg) |
#define | hid_crit(hid, fmt, arg...) dev_crit(&(hid)->dev, fmt, ##arg) |
#define | hid_alert(hid, fmt, arg...) dev_alert(&(hid)->dev, fmt, ##arg) |
#define | hid_err(hid, fmt, arg...) dev_err(&(hid)->dev, fmt, ##arg) |
#define | hid_notice(hid, fmt, arg...) dev_notice(&(hid)->dev, fmt, ##arg) |
#define | hid_warn(hid, fmt, arg...) dev_warn(&(hid)->dev, fmt, ##arg) |
#define | hid_info(hid, fmt, arg...) dev_info(&(hid)->dev, fmt, ##arg) |
#define | hid_dbg(hid, fmt, arg...) dev_dbg(&(hid)->dev, fmt, ##arg) |
int | hid_debug |
int | hid_add_device (struct hid_device *) |
void | hid_destroy_device (struct hid_device *) |
int __must_check | __hid_register_driver (struct hid_driver *, struct module *, const char *mod_name) |
void | hid_unregister_driver (struct hid_driver *) |
void | hidinput_hid_event (struct hid_device *, struct hid_field *, struct hid_usage *, __s32) |
void | hidinput_report_event (struct hid_device *hid, struct hid_report *report) |
int | hidinput_connect (struct hid_device *hid, unsigned int force) |
void | hidinput_disconnect (struct hid_device *) |
int | hid_set_field (struct hid_field *, unsigned, __s32) |
int | hid_input_report (struct hid_device *, int type, u8 *, int, int) |
int | hidinput_find_field (struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field) |
struct hid_field * | hidinput_get_led_field (struct hid_device *hid) |
unsigned int | hidinput_count_leds (struct hid_device *hid) |
void | hid_output_report (struct hid_report *report, __u8 *data) |
struct hid_device * | hid_allocate_device (void) |
struct hid_report * | hid_register_report (struct hid_device *device, unsigned type, unsigned id) |
int | hid_parse_report (struct hid_device *hid, __u8 *start, unsigned size) |
int | hid_open_report (struct hid_device *device) |
int | hid_check_keys_pressed (struct hid_device *hid) |
int | hid_connect (struct hid_device *hid, unsigned int connect_mask) |
void | hid_disconnect (struct hid_device *hid) |
struct hid_device_id * | hid_match_id (struct hid_device *hdev, const struct hid_device_id *id) |
int | hid_report_raw_event (struct hid_device *hid, int type, u8 *data, int size, int interrupt) |
int | hid_generic_init (void) |
void | hid_generic_exit (void) |
u32 | usbhid_lookup_quirk (const u16 idVendor, const u16 idProduct) |
int | usbhid_quirks_init (char **quirks_param) |
void | usbhid_quirks_exit (void) |
void | usbhid_set_leds (struct hid_device *hid) |
#define dbg_hid | ( | format, | |
arg... | |||
) |
#define HID_BLUETOOTH_DEVICE | ( | ven, | |
prod | |||
) | .bus = BUS_BLUETOOTH, .vendor = (ven), .product = (prod) |
#define HID_CONNECT_DEFAULT |
#define hid_register_driver | ( | driver | ) | __hid_register_driver(driver, THIS_MODULE, KBUILD_MODNAME) |
#define HID_TERMINATOR (HID_ANY_ID - 1) |
#define HID_USAGE_ID | ( | uhid, | |
utype, | |||
ucode | |||
) | .usage_hid = (uhid), .usage_type = (utype), .usage_code = (ucode) |
enum hid_type |
|
read |
mcontroller : adapter info structure for old mimd_t apps
: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id
Definition at line 171 of file esd_usb2.c.
int __must_check __hid_register_driver | ( | struct hid_driver * | , |
struct module * | , | ||
const char * | mod_name | ||
) |
Definition at line 2310 of file hid-core.c.
int hid_add_device | ( | struct hid_device * | ) |
Definition at line 2201 of file hid-core.c.
|
read |
hid_allocate_device - allocate new hid device descriptor
Allocate and initialize hid device, so that hid_destroy_device might be used to free it.
New hid_device pointer is returned on success, otherwise ERR_PTR encoded error value.
Definition at line 2260 of file hid-core.c.
int hid_check_keys_pressed | ( | struct hid_device * | hid | ) |
Definition at line 2343 of file hid-core.c.
int hid_connect | ( | struct hid_device * | hid, |
unsigned int | connect_mask | ||
) |
Definition at line 1361 of file hid-core.c.
void hid_destroy_device | ( | struct hid_device * | hdev | ) |
hid_destroy_device - free previously allocated device
: hid device
If you allocate hid_device through hid_allocate_device, you should ever free by this function.
Definition at line 2303 of file hid-core.c.
void hid_disconnect | ( | struct hid_device * | hid | ) |
Definition at line 1449 of file hid-core.c.
hid_input_report - report data from lower layer (usb, bt...)
: hid device : HID report type (HID_*_REPORT) : report contents : size of data parameter : distinguish between interrupt and control transfers
This is data entry for lower layers.
Definition at line 1231 of file hid-core.c.
|
read |
Definition at line 1314 of file hid-core.c.
int hid_open_report | ( | struct hid_device * | device | ) |
hid_open_report - open a driver-specific device report
: hid device
Parse a report description into a hid_device structure. Reports are enumerated, fields are attached to these reports. 0 returned on success, otherwise nonzero error value.
This function (or the equivalent hid_parse() macro) should only be called from probe() in drivers, before starting the device.
Definition at line 754 of file hid-core.c.
void hid_output_report | ( | struct hid_report * | report, |
__u8 * | data | ||
) |
Definition at line 1112 of file hid-core.c.
int hid_parse_report | ( | struct hid_device * | hid, |
__u8 * | start, | ||
unsigned | size | ||
) |
hid_parse_report - parse device report
: hid device : report start : report size
Allocate the device report as read by the bus driver. This function should only be called from parse() in ll drivers.
Definition at line 732 of file hid-core.c.
|
read |
Definition at line 61 of file hid-core.c.
Definition at line 1170 of file hid-core.c.
Definition at line 1131 of file hid-core.c.
void hid_unregister_driver | ( | struct hid_driver * | ) |
Definition at line 2335 of file hid-core.c.
int hidinput_connect | ( | struct hid_device * | hid, |
unsigned int | force | ||
) |
unsigned int hidinput_count_leds | ( | struct hid_device * | hid | ) |
void hidinput_disconnect | ( | struct hid_device * | ) |
int hidinput_find_field | ( | struct hid_device * | hid, |
unsigned int | type, | ||
unsigned int | code, | ||
struct hid_field ** | field | ||
) |
|
read |
void hidinput_report_event | ( | struct hid_device * | hid, |
struct hid_report * | report | ||
) |
usbhid_lookup_quirk: return any quirks associated with a USB HID device : the 16-bit USB vendor ID, in native byteorder : the 16-bit USB product ID, in native byteorder
Description: Given a USB vendor ID and product ID, return any quirks associated with that device.
Returns: a u32 quirks value.
Definition at line 313 of file hid-quirks.c.
usbhid_quirks_exit: release memory associated with dynamic_quirks
Description: Release all memory associated with dynamic quirks. Called upon module unload.
Returns: nothing
Definition at line 268 of file hid-quirks.c.
usbhid_quirks_init: apply USB HID quirks specified at module load time
Definition at line 237 of file hid-quirks.c.
void usbhid_set_leds | ( | struct hid_device * | hid | ) |
Definition at line 862 of file hid-core.c.
int hid_debug |
Definition at line 48 of file hid-core.c.