Changeset 2391aaf in mainline for uspace/drv/usbhid/kbddev.c

Timestamp:
2011-02-27T19:22:53Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5d4d98b
Parents:
c2fa801
Message:

Huge refactoring of USB HID driver.

  • Created generic USB HID device structure and API (hiddev.h/c).
    • The structure holds data common for all HID devices.
    • Functions for creating the structure, and initializing based on given endpoint description.
    • Processing of descriptors, initializing of pipes moved here.
  • Modified USB HID keyboard device structure (kbddev.h/c).
    • This structure now holds only keyboard-specific data.
    • API provides function for adding device of type keyboard.
    • All keyboard-related functions moved here. These include:
      • IPC handler
      • Key and modifier processing functions
      • Polling
      • Creating new fibril for polling.
  • Separated USB HID class-specific request functions (hidreq.h/c)
  • Removed unused code from scancode parser (conv.c)

WARNING: not compileable due to a strange error.

File:
1 added

Note: See TracChangeset for help on using the changeset viewer.