Ignore:
Timestamp:
2011-05-24T21:01:02Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a28b41d
Parents:
4e78236
Message:

A lot of changes to mkbd and HID interface.

  • mkbd Report parser initialization (getting report descriptor, parsing).
  • Getting report descriptor and its length from HID device added to HID interface (client and server stubs not implemented).
  • Fixed event type to uint8_t *.
  • Implemented these functions in generic HID driver.
  • Moved mapping from Consumer page usages to string descriptions moved to libusbhid.
  • Removed some temporary debug output.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_usbhid.c

    r4e78236 rd7c72db  
    4343static void remote_usbhid_get_event_length(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    4444static void remote_usbhid_get_event(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
     45static void remote_usbhid_get_report_descriptor_length(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
     46static void remote_usbhid_get_report_descriptor(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    4547// static void remote_usbhid_(ddf_fun_t *, void *, ipc_callid_t, ipc_call_t *);
    4648
     
    4850static remote_iface_func_ptr_t remote_usbhid_iface_ops [] = {
    4951        remote_usbhid_get_event_length,
    50         remote_usbhid_get_event
     52        remote_usbhid_get_event,
     53        remote_usbhid_get_report_descriptor_length,
     54        remote_usbhid_get_report_descriptor
    5155};
    5256
     
    117121        int rc;
    118122
    119         int32_t *data = malloc(len);
     123        uint8_t *data = malloc(len);
    120124        if (data == NULL) {
    121125                async_answer_0(data_callid, ENOMEM);
     
    143147}
    144148
     149void remote_usbhid_get_report_descriptor(ddf_fun_t *fun, void *iface,
     150    ipc_callid_t callid, ipc_call_t *call)
     151{
     152        /** @todo Implement! */
     153}
     154
     155void remote_usbhid_get_report_descriptor_length(ddf_fun_t *fun, void *iface,
     156    ipc_callid_t callid, ipc_call_t *call)
     157{
     158        /** @todo Implement! */
     159}
     160
    145161/**
    146162 * @}
Note: See TracChangeset for help on using the changeset viewer.