Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/kbd/kbddev.h

    r4578a6e r5f6e25e  
    3838
    3939#include <stdint.h>
    40 #include <async.h>
     40
    4141#include <fibril_synch.h>
     42
    4243#include <usb/hid/hid.h>
    4344#include <usb/hid/hidparser.h>
     
    5758 * data, such as currently pressed keys, modifiers and lock keys.
    5859 *
    59  * Also holds a IPC session to the console (since there is now no other way to
     60 * Also holds a IPC phone to the console (since there is now no other way to
    6061 * communicate with it).
    6162 *
     
    7576        /** Currently pressed modifiers (bitmap). */
    7677        uint8_t modifiers;
    77 
     78       
    7879        /** Currently active modifiers including locks. Sent to the console. */
    7980        unsigned mods;
    80 
     81       
    8182        /** Currently active lock keys. */
    8283        unsigned lock_keys;
    83 
    84         /** IPC session to the console device (for sending key events). */
    85         async_sess_t *console_sess;
    86 
     84       
     85        /** IPC phone to the console device (for sending key events). */
     86        int console_phone;
     87       
    8788        /** @todo What is this actually? */
    8889        ddf_dev_ops_t ops;
    89 
     90       
    9091        /** Information for auto-repeat of keys. */
    9192        usb_kbd_repeat_t repeat;
    92 
     93       
    9394        /** Mutex for accessing the information about auto-repeat. */
    94         fibril_mutex_t repeat_mtx;
    95 
     95        fibril_mutex_t *repeat_mtx;
     96       
    9697        uint8_t *output_buffer;
    97 
     98       
    9899        size_t output_size;
    99 
     100       
    100101        size_t led_output_size;
    101 
     102       
    102103        usb_hid_report_path_t *led_path;
    103 
     104       
    104105        int32_t *led_data;
    105 
     106       
    106107        /** State of the structure (for checking before use).
    107108         *
     
    111112         */
    112113        int initialized;
    113 
    114         /** DDF function */
    115         ddf_fun_t *fun;
    116114} usb_kbd_t;
    117115
    118116/*----------------------------------------------------------------------------*/
    119117
    120 extern const usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description;
     118usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description;
    121119
    122120const char *HID_KBD_FUN_NAME;
     
    135133void usb_kbd_destroy(usb_kbd_t *kbd_dev);
    136134
    137 void usb_kbd_push_ev(usb_kbd_t *kbd_dev,
     135void usb_kbd_push_ev(struct usb_hid_dev *hid_dev, usb_kbd_t *kbd_dev,
    138136    int type, unsigned int key);
    139137
Note: See TracChangeset for help on using the changeset viewer.