Changeset 74a1ba9 in mainline


Ignore:
Timestamp:
2011-04-08T09:15:02Z (14 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e9f0348
Parents:
fec47d4
Message:

Removed unused code, fixed some typos

Location:
uspace/drv/usbhid
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/generic/hiddev.h

    rfec47d4 r74a1ba9  
    3434 */
    3535
    36 #ifndef USB_HIDD_H_
    37 #define USB_HIDD_H_
     36#ifndef USB_HIDDDEV_H_
     37#define USB_HIDDDEV_H_
    3838
    3939#include <usb/devdrv.h>
     
    4747     size_t buffer_size, void *arg);
    4848
    49 #endif // USB_HIDD_H_
     49#endif // USB_HIDDDEV_H_
    5050
    5151/**
  • uspace/drv/usbhid/kbd/kbddev.c

    rfec47d4 r74a1ba9  
    238238 * @param icall Call data.
    239239 */
    240 void default_connection_handler(ddf_fun_t *fun,
     240static void default_connection_handler(ddf_fun_t *fun,
    241241    ipc_callid_t icallid, ipc_call_t *icall)
    242242{
  • uspace/drv/usbhid/kbd/kbddev.h

    rfec47d4 r74a1ba9  
    6565 */
    6666typedef struct usb_kbd_t {
    67         /** Structure holding generic USB device information. */
    68         //usbhid_dev_t *hid_dev;
    69         //usb_device_t *usb_dev;
    70        
    7167        /** Currently pressed keys (not translated to key codes). */
    7268        uint8_t *keys;
     
    9187        fibril_mutex_t *repeat_mtx;
    9288       
    93         /** Report descriptor. */
    94         //uint8_t *report_desc;
    95 
    96         /** Report descriptor size. */
    97         //size_t report_desc_size;
    98        
    9989        uint8_t *output_buffer;
    10090       
     
    10696       
    10797        int32_t *led_data;
    108 
    109         /** HID Report parser. */
    110         //usb_hid_report_parser_t *parser;
    11198       
    11299        /** State of the structure (for checking before use).
     
    121108/*----------------------------------------------------------------------------*/
    122109
    123 //enum {
    124 //      USB_KBD_POLL_EP_NO = 0,
    125 //      USB_HID_POLL_EP_NO = 1,
    126 //      USB_KBD_POLL_EP_COUNT = 2
    127 //};
    128 
    129 //usb_endpoint_description_t *usb_kbd_endpoints[USB_KBD_POLL_EP_COUNT + 1];
    130 
    131 //ddf_dev_ops_t keyboard_ops;
    132 
    133110usb_endpoint_description_t usb_hid_kbd_poll_endpoint_description;
    134111
     
    138115/*----------------------------------------------------------------------------*/
    139116
    140 //usb_kbd_t *usb_kbd_new(void);
    141 
    142117int usb_kbd_init(struct usb_hid_dev_t *hid_dev);
    143118
    144119bool usb_kbd_polling_callback(usb_device_t *dev, uint8_t *buffer,
    145120     size_t buffer_size, void *arg);
    146 
    147 //void usb_kbd_polling_ended_callback(usb_device_t *dev, bool reason,
    148 //     void *arg);
    149121
    150122int usb_kbd_is_initialized(const usb_kbd_t *kbd_dev);
     
    157129    int type, unsigned int key);
    158130
    159 
    160131void usb_kbd_deinit(struct usb_hid_dev_t *hid_dev);
    161132
Note: See TracChangeset for help on using the changeset viewer.