usbhid.c File Reference

USB HID driver API. More...

#include <usb/debug.h>
#include <usb/classes/classes.h>
#include <usb/hid/hid.h>
#include <usb/hid/hidparser.h>
#include <usb/hid/hidreport.h>
#include <usb/hid/request.h>
#include <errno.h>
#include <str_error.h>
#include "usbhid.h"
#include "kbd/kbddev.h"
#include "generic/hiddev.h"
#include "mouse/mousedev.h"
#include "subdrivers.h"

Go to the source code of this file.

Functions

static int usb_hid_check_pipes (usb_hid_dev_t *hid_dev, usb_device_t *dev)
static int usb_hid_find_subdrivers (usb_hid_dev_t *hid_dev)
void usb_hid_free (usb_hid_dev_t **hid_dev)
static bool usb_hid_ids_match (usb_hid_dev_t *hid_dev, const usb_hid_subdriver_mapping_t *mapping)
int usb_hid_init (usb_hid_dev_t *hid_dev, usb_device_t *dev)
static int usb_hid_init_report (usb_hid_dev_t *hid_dev)
usb_hid_dev_tusb_hid_new (void)
void usb_hid_new_report (usb_hid_dev_t *hid_dev)
static bool usb_hid_path_matches (usb_hid_dev_t *hid_dev, const usb_hid_subdriver_mapping_t *mapping)
bool usb_hid_polling_callback (usb_device_t *dev, uint8_t *buffer, size_t buffer_size, void *arg)
void usb_hid_polling_ended_callback (usb_device_t *dev, bool reason, void *arg)
int usb_hid_report_number (usb_hid_dev_t *hid_dev)
static int usb_hid_save_subdrivers (usb_hid_dev_t *hid_dev, const usb_hid_subdriver_t **subdrivers, int count)
static int usb_hid_set_boot_kbd_subdriver (usb_hid_dev_t *hid_dev)
static int usb_hid_set_boot_mouse_subdriver (usb_hid_dev_t *hid_dev)
static int usb_hid_set_generic_hid_subdriver (usb_hid_dev_t *hid_dev)

Variables

usb_endpoint_description_tusb_hid_endpoints [USB_HID_POLL_EP_COUNT+1]
static const int USB_HID_MAX_SUBDRIVERS = 10


Detailed Description

USB HID driver API.

Definition in file usbhid.c.


Generated on Thu Jun 2 07:45:52 2011 for HelenOS/USB by  doxygen 1.4.7