Changeset e3b5129 in mainline for uspace/drv/usbhid/subdrivers.c


Ignore:
Timestamp:
2011-04-12T19:00:00Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11d2e96a, c7dd69d
Parents:
a6610d4
Message:

Report IDs in subdriver mappings, sample driver for Logitech kbd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/subdrivers.c

    ra6610d4 re3b5129  
    3737#include "usb/classes/hidut.h"
    3838
     39#include "lgtch-ultrax/lgtch-ultrax.h"
     40
    3941static usb_hid_subdriver_usage_t path_kbd[] = {
    4042        {USB_HIDUT_PAGE_KEYBOARD, 0},
     43        {0, 0}
     44};
     45
     46static usb_hid_subdriver_usage_t lgtch_path[] = {
     47        {0xc, 0},
    4148        {0, 0}
    4249};
     
    4552        {
    4653                path_kbd,
     54                -1,
    4755                USB_HID_PATH_COMPARE_END
    4856                | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
     
    5765               
    5866        },
    59         {NULL, 0, 0, 0, {NULL, NULL, NULL, NULL}}
     67        {
     68                lgtch_path,
     69                1,
     70                USB_HID_PATH_COMPARE_END
     71                | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
     72                0x046d,
     73                0xc30e,
     74                {
     75                        .init = NULL,
     76                        .deinit = NULL,
     77                        .poll = usb_lgtch_polling_callback,
     78                        .poll_end = NULL
     79                }
     80        },
     81        {NULL, -1, 0, 0, 0, {NULL, NULL, NULL, NULL}}
    6082};
    6183
Note: See TracChangeset for help on using the changeset viewer.