Changeset 252e30c in mainline for uspace/drv/usbkbd/kbdrepeat.h


Ignore:
Timestamp:
2011-03-24T22:55:29Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d92638
Parents:
476b71ff
Message:

Huge refactoring of KBD driver code.

  • Separated code for retrieval of Report descriptor into hidreport.h/c (will be common for all HID drivers).
  • Removed unused files hiddev.h/c.
  • Changed prefix of usbkbd functions to usb_kbd_*.
  • Removed unused code.
  • Parsing of Report descriptor with fallback to boot protocol in KBD driver (not finished (boot report descriptor missing).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/kbdrepeat.h

    r476b71ff r252e30c  
    3434 */
    3535
    36 #ifndef USBHID_KBDREPEAT_H_
    37 #define USBHID_KBDREPEAT_H_
     36#ifndef USB_KBDREPEAT_H_
     37#define USB_KBDREPEAT_H_
    3838
    39 struct usbhid_kbd_t;
     39struct usb_kbd_t;
    4040
    4141/*----------------------------------------------------------------------------*/
     
    5252        /** Delay between repeats in microseconds. */
    5353        unsigned int delay_between;
    54 } usbhid_kbd_repeat_t;
     54} usb_kbd_repeat_t;
    5555
    5656/*----------------------------------------------------------------------------*/
    5757
    58 int usbhid_kbd_repeat_fibril(void *arg);
     58int usb_kbd_repeat_fibril(void *arg);
    5959
    60 void usbhid_kbd_repeat_start(struct usbhid_kbd_t *kbd, unsigned int key);
     60void usb_kbd_repeat_start(struct usb_kbd_t *kbd, unsigned int key);
    6161
    62 void usbhid_kbd_repeat_stop(struct usbhid_kbd_t *kbd, unsigned int key);
     62void usb_kbd_repeat_stop(struct usb_kbd_t *kbd, unsigned int key);
    6363
    64 #endif /* USBHID_KBDREPEAT_H_ */
     64#endif /* USB_KBDREPEAT_H_ */
    6565
    6666/**
Note: See TracChangeset for help on using the changeset viewer.