Ignore:
File:
1 edited

Legend:

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

    r5f6e25e r4578a6e  
    3838
    3939#include <stdint.h>
    40 
     40#include <async.h>
    4141#include <fibril_synch.h>
    42 
    4342#include <usb/hid/hid.h>
    4443#include <usb/hid/hidparser.h>
     
    5857 * data, such as currently pressed keys, modifiers and lock keys.
    5958 *
    60  * Also holds a IPC phone to the console (since there is now no other way to
     59 * Also holds a IPC session to the console (since there is now no other way to
    6160 * communicate with it).
    6261 *
     
    7675        /** Currently pressed modifiers (bitmap). */
    7776        uint8_t modifiers;
    78        
     77
    7978        /** Currently active modifiers including locks. Sent to the console. */
    8079        unsigned mods;
    81        
     80
    8281        /** Currently active lock keys. */
    8382        unsigned lock_keys;
    84        
    85         /** IPC phone to the console device (for sending key events). */
    86         int console_phone;
    87        
     83
     84        /** IPC session to the console device (for sending key events). */
     85        async_sess_t *console_sess;
     86
    8887        /** @todo What is this actually? */
    8988        ddf_dev_ops_t ops;
    90        
     89
    9190        /** Information for auto-repeat of keys. */
    9291        usb_kbd_repeat_t repeat;
    93        
     92
    9493        /** Mutex for accessing the information about auto-repeat. */
    95         fibril_mutex_t *repeat_mtx;
    96        
     94        fibril_mutex_t repeat_mtx;
     95
    9796        uint8_t *output_buffer;
    98        
     97
    9998        size_t output_size;
    100        
     99
    101100        size_t led_output_size;
    102        
     101
    103102        usb_hid_report_path_t *led_path;
    104        
     103
    105104        int32_t *led_data;
    106        
     105
    107106        /** State of the structure (for checking before use).
    108107         *
     
    112111         */
    113112        int initialized;
     113
     114        /** DDF function */
     115        ddf_fun_t *fun;
    114116} usb_kbd_t;
    115117
    116118/*----------------------------------------------------------------------------*/
    117119
    118 usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description;
     120extern const usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description;
    119121
    120122const char *HID_KBD_FUN_NAME;
     
    133135void usb_kbd_destroy(usb_kbd_t *kbd_dev);
    134136
    135 void usb_kbd_push_ev(struct usb_hid_dev *hid_dev, usb_kbd_t *kbd_dev,
     137void usb_kbd_push_ev(usb_kbd_t *kbd_dev,
    136138    int type, unsigned int key);
    137139
Note: See TracChangeset for help on using the changeset viewer.