Changeset 78bfae9 in mainline for uspace/drv/usbhid/subdrivers.c


Ignore:
Timestamp:
2011-05-17T22:28:03Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
df44fa2
Parents:
4880210
Message:

Running generic HID driver for each device

File:
1 edited

Legend:

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

    r4880210 r78bfae9  
    3838#include "usb/classes/hidpath.h"
    3939
    40 //#include "lgtch-ultrax/lgtch-ultrax.h"
    4140#include "multimedia/multimedia.h"
    4241#include "mouse/mousedev.h"
     42#include "generic/hiddev.h"
    4343
    4444static usb_hid_subdriver_usage_t path_kbd[] = {
     
    5858};
    5959
     60static usb_hid_subdriver_usage_t generic_hid_key_path[] = {
     61        {0, 0}
     62};
     63
    6064const usb_hid_subdriver_mapping_t usb_hid_subdrivers[] = {
    6165        {
    6266                path_kbd,
    63                 -1,
     67                0,
    6468                USB_HID_PATH_COMPARE_BEGIN,
    6569                -1,
     
    8892        {
    8993                path_mouse,
    90                 -1,
     94                0,
    9195                USB_HID_PATH_COMPARE_BEGIN,
    9296                -1,
     
    99103                }
    100104        },
     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        },
    101118        {NULL, -1, 0, -1, -1, {NULL, NULL, NULL, NULL, NULL}}
    102119};
Note: See TracChangeset for help on using the changeset viewer.