Ignore:
File:
1 edited

Legend:

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

    rfaa44e58 r4939490  
    3838#include <usb/hid/hidpath.h>
    3939
    40 #include "lgtch-ultrax/lgtch-ultrax.h"
     40#include "multimedia/multimedia.h"
    4141#include "mouse/mousedev.h"
     42#include "generic/hiddev.h"
    4243
    4344static usb_hid_subdriver_usage_t path_kbd[] = {
    44         {USB_HIDUT_PAGE_KEYBOARD, 0},
     45        {USB_HIDUT_PAGE_GENERIC_DESKTOP,
     46         USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYBOARD},
    4547        {0, 0}
    4648};
    4749
    48 static usb_hid_subdriver_usage_t path_mouse2[] = {
    49         {USB_HIDUT_PAGE_GENERIC_DESKTOP, USB_HIDUT_USAGE_GENERIC_DESKTOP_X},
     50static usb_hid_subdriver_usage_t path_mouse[] = {
     51        {USB_HIDUT_PAGE_GENERIC_DESKTOP, USB_HIDUT_USAGE_GENERIC_DESKTOP_MOUSE},
    5052        {0, 0}
    5153};
    5254
    53 static usb_hid_subdriver_usage_t lgtch_path[] = {
    54         {0xc, 0},
     55static usb_hid_subdriver_usage_t multim_key_path[] = {
     56        {USB_HIDUT_PAGE_CONSUMER, USB_HIDUT_USAGE_CONSUMER_CONSUMER_CONTROL},
    5557        {0, 0}
    5658};
     59
     60//static usb_hid_subdriver_usage_t generic_hid_key_path[] = {
     61//      {0, 0}
     62//};
    5763
    5864const usb_hid_subdriver_mapping_t usb_hid_subdrivers[] = {
    5965        {
    6066                path_kbd,
    61                 -1,
    62                 USB_HID_PATH_COMPARE_END
    63                 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
     67                0,
     68                USB_HID_PATH_COMPARE_BEGIN,
    6469                -1,
    6570                -1,
     
    7378        },
    7479        {
    75                 lgtch_path,
     80                multim_key_path,
    7681                1,
    77                 USB_HID_PATH_COMPARE_END
    78                 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
    79                 0x046d,
    80                 0xc30e,
     82                USB_HID_PATH_COMPARE_BEGIN,
     83                -1,
     84                -1,
    8185                {
    82                         .init = usb_lgtch_init,
    83                         .deinit = usb_lgtch_deinit,
    84                         .poll = usb_lgtch_polling_callback,
     86                        .init = usb_multimedia_init,
     87                        .deinit = usb_multimedia_deinit,
     88                        .poll = usb_multimedia_polling_callback,
    8589                        .poll_end = NULL
    8690                }
    8791        },
    8892        {
    89                 path_mouse2,
    90                 -1,
    91                 USB_HID_PATH_COMPARE_END
    92                 | USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY,
     93                path_mouse,
     94                0,
     95                USB_HID_PATH_COMPARE_BEGIN,
    9396                -1,
    9497                -1,
     
    100103                }
    101104        },
    102         {NULL, -1, 0, -1, -1, {NULL, NULL, NULL, NULL}}
     105//      {
     106//              generic_hid_key_path,
     107//              0,
     108//              USB_HID_PATH_COMPARE_ANYWHERE,
     109//              -1,
     110//              -1,
     111//              {
     112//                      .init = usb_generic_hid_init,
     113//                      .deinit = NULL,
     114//                      .poll = usb_generic_hid_polling_callback,
     115//                      .poll_end = NULL
     116//              }
     117//      },
     118        {NULL, -1, 0, -1, -1, {NULL, NULL, NULL, NULL, NULL}}
    103119};
    104120
Note: See TracChangeset for help on using the changeset viewer.