Changeset ca07cd3 in mainline for uspace/app/virtusbkbd/virtusbkbd.c


Ignore:
Timestamp:
2010-10-25T13:23:33Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
23cb44b
Parents:
355f7c2
Message:

Code cleanup, various bugfixes

The internal functions of virtual device framework always get
device structure as parameter, thus possible enabling more devices
within single task (that is not possible because currently there
is no way to pass extra argument into callback_connection()).

Also, added some missing comments and completely removed the device
id nonsense (devices can send their descriptors and the hub is able
to enable/disable its ports).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/virtusbkbd/virtusbkbd.c

    r355f7c2 rca07cd3  
    5050#include <usbvirt/device.h>
    5151#include <usbvirt/hub.h>
    52 #include <usbvirt/ids.h>
    5352
    5453#include "kbdconfig.h"
     
    154153        .ops = &keyboard_ops,
    155154        .descriptors = &descriptors,
    156         .device_id_ = USBVIRT_DEV_KEYBOARD_ID
     155        .name = "keyboard"
    157156};
    158157
     
    230229        printf("%s: Terminating...\n", NAME);
    231230       
    232         usbvirt_disconnect();
     231        usbvirt_disconnect(&keyboard_dev);
    233232       
    234233        return 0;
Note: See TracChangeset for help on using the changeset viewer.