Changeset 494eaf7 in mainline for uspace/drv/usbhid/kbddev.h


Ignore:
Timestamp:
2011-03-01T16:43:05Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ac8285d
Parents:
cc44f7e (diff), 1c6c4092 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged: HID driver refactoring, works also with more keyboards.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbddev.h

    rcc44f7e r494eaf7  
    3131 */
    3232/** @file
    33  * Common definitions.
     33 * USB HID keyboard device structure and API.
    3434 */
    3535
    36 #ifndef USBHID_HID_H_
    37 #define USBHID_HID_H_
     36#ifndef USBHID_KBDDEV_H_
     37#define USBHID_KBDDEV_H_
    3838
    3939#include <stdint.h>
     
    4343#include <usb/pipes.h>
    4444
     45#include "hiddev.h"
     46
     47/*----------------------------------------------------------------------------*/
     48
    4549/**
    4650 * @brief USB/HID keyboard device type.
    47  *
    48  * Quite dummy right now.
    4951 */
    5052typedef struct {
    51         ddf_dev_t *device;
    52 
    53         usb_device_connection_t wire;
    54         usb_endpoint_pipe_t ctrl_pipe;
    55         usb_endpoint_pipe_t poll_pipe;
    56        
    57         uint16_t iface;
    58        
    59         uint8_t *report_desc;
    60         usb_hid_report_parser_t *parser;
     53        usbhid_dev_t *hid_dev;
    6154       
    6255        uint8_t *keycodes;
     
    6659        unsigned mods;
    6760        unsigned lock_keys;
    68 } usb_hid_dev_kbd_t;
     61       
     62        int console_phone;
     63       
     64        int initialized;
     65} usbhid_kbd_t;
    6966
    70 #endif
     67/*----------------------------------------------------------------------------*/
     68
     69int usbhid_kbd_try_add_device(ddf_dev_t *dev);
     70
     71#endif /* USBHID_KBDDEV_H_ */
     72
     73/**
     74 * @}
     75 */
Note: See TracChangeset for help on using the changeset viewer.