Changeset ca07cd3 in mainline for uspace/lib/usbvirt/private.h


Ignore:
Timestamp:
2010-10-25T13:23:33Z (15 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/lib/usbvirt/private.h

    r355f7c2 rca07cd3  
    3939#include "hub.h"
    4040
    41 extern usbvirt_device_t *device;
    4241
    4342#define DEVICE_HAS_OP(dev, op) \
     
    5453    usb_endpoint_t endpoint, void *buffer, size_t size);
    5554
    56 int control_pipe(usbvirt_control_transfer_t *transfer);
     55int control_pipe(usbvirt_device_t *device, usbvirt_control_transfer_t *transfer);
    5756
    58 int handle_std_request(usb_device_request_setup_packet_t *request, uint8_t *data);
     57int handle_std_request(usbvirt_device_t *device, usb_device_request_setup_packet_t *request, uint8_t *data);
    5958
    60 extern usb_address_t dev_new_address;
     59void device_callback_connection(usbvirt_device_t *device, ipc_callid_t iid, ipc_call_t *icall);
    6160
    6261int transaction_setup(usbvirt_device_t *device, usb_endpoint_t endpoint,
Note: See TracChangeset for help on using the changeset viewer.