Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbhid/mouse/mousedev.h

    r378bf85 r9d58539  
    3939#include <usb/dev/driver.h>
    4040#include <async.h>
    41 #include "../usbhid.h"
     41
     42struct usb_hid_dev;
     43
     44/*----------------------------------------------------------------------------*/
    4245
    4346/** Container for USB mouse device. */
    4447typedef struct {
    45         /** IPC session to consumer. */
     48        /** IPC session to console (consumer). */
    4649        async_sess_t *mouse_sess;
    47        
    48         /** Mouse buttons statuses. */
     50
     51        /* Mouse buttons statuses. */
    4952        int32_t *buttons;
    5053        size_t buttons_count;
    51        
    52         /** DDF mouse function */
     54
     55        ddf_dev_ops_t ops;
     56        /* DDF mouse function */
    5357        ddf_fun_t *mouse_fun;
    5458} usb_mouse_t;
    5559
     60/*----------------------------------------------------------------------------*/
     61
    5662extern const usb_endpoint_description_t usb_hid_mouse_poll_endpoint_description;
    5763
    58 extern const char *HID_MOUSE_FUN_NAME;
    59 extern const char *HID_MOUSE_CATEGORY;
     64const char *HID_MOUSE_FUN_NAME;
     65const char *HID_MOUSE_CATEGORY;
    6066
    61 extern int usb_mouse_init(usb_hid_dev_t *, void **);
    62 extern bool usb_mouse_polling_callback(usb_hid_dev_t *, void *);
    63 extern void usb_mouse_deinit(usb_hid_dev_t *, void *);
    64 extern int usb_mouse_set_boot_protocol(usb_hid_dev_t *);
     67/*----------------------------------------------------------------------------*/
     68
     69int usb_mouse_init(struct usb_hid_dev *hid_dev, void **data);
     70
     71bool usb_mouse_polling_callback(struct usb_hid_dev *hid_dev, void *data);
     72
     73void usb_mouse_deinit(struct usb_hid_dev *hid_dev, void *data);
     74
     75int usb_mouse_set_boot_protocol(struct usb_hid_dev *hid_dev);
     76
     77/*----------------------------------------------------------------------------*/
    6578
    6679#endif // USB_HID_MOUSEDEV_H_
Note: See TracChangeset for help on using the changeset viewer.