Ignore:
Timestamp:
2010-10-15T16:32:57Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
186d630
Parents:
73301a0
Message:

Virtual USB device tracks its address

Now, each virtual device tracks its address and its state.

The virtual HC dispatches all transactions to all devices, thus
more precisely simulating situation on USB. The usbvirt framework
then decides whether it can accept the data or not, based on
their destination address.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/bus/usb/hcd/virtual/devices.h

    r73301a0 r47e3a8e  
    3939#include <usb/hcd.h>
    4040
     41#include "hc.h"
     42
    4143/** Connected virtual device. */
    4244typedef struct {
    43         /** Assigned USB address. */
    44         usb_address_t address;
    4545        /** Phone used when sending data to device. */
    4646        int phone;
     
    5252
    5353virtdev_connection_t *virtdev_recognise(int, int);
    54 virtdev_connection_t *virtdev_find_by_address(usb_address_t);
    55 virtdev_connection_t *virtdev_add_device(usb_address_t, int);
     54virtdev_connection_t *virtdev_add_device(int);
    5655void virtdev_destroy_device(virtdev_connection_t *);
     56usb_transaction_outcome_t virtdev_send_to_all(transaction_t *);
    5757
    5858#endif
Note: See TracChangeset for help on using the changeset viewer.