Changeset b8100da in mainline for uspace/srv/hw/bus/usb/hcd


Ignore:
Timestamp:
2010-10-10T17:01:40Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c1315b
Parents:
b371844
Message:

Virtual USB device in separate library

The `usbvirt' library is intended to be a framework for creating
virtual USB devices.

So far, only the skeleton is ready.

Location:
uspace/srv/hw/bus/usb/hcd/virtual
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/bus/usb/hcd/virtual/conndev.c

    rb371844 rb8100da  
    3636#include <assert.h>
    3737#include <errno.h>
    38 #include <usb/virtdev.h>
     38#include <usbvirt/hub.h>
    3939
    4040#include "conn.h"
     
    101101                                break;
    102102                       
    103                         case IPC_M_USB_VIRTDEV_DATA_FROM_DEVICE:
     103                        case IPC_M_USBVIRT_DATA_FROM_DEVICE:
    104104                                handle_data_from_device(callid, call, dev);
    105105                                break;
  • uspace/srv/hw/bus/usb/hcd/virtual/devices.c

    rb371844 rb8100da  
    4343#include <str_error.h>
    4444
    45 #include <usb/virtdev.h>
     45#include <usbvirt/ids.h>
    4646
    4747#include "devices.h"
     
    6262        virtdev_connection_t * dev = NULL;
    6363        switch (id) {
    64                 case USB_VIRTDEV_KEYBOARD_ID:
     64                case USBVIRT_DEV_KEYBOARD_ID:
    6565                        dev = virtdev_add_device(
    66                             USB_VIRTDEV_KEYBOARD_ADDRESS, phone);
     66                            USBVIRT_DEV_KEYBOARD_ADDRESS, phone);
    6767                        break;
    6868                default:
  • uspace/srv/hw/bus/usb/hcd/virtual/hc.c

    rb371844 rb8100da  
    4343#include <str_error.h>
    4444
    45 #include <usb/virtdev.h>
     45#include <usbvirt/hub.h>
    4646
    4747#include "vhcd.h"
     
    155155                       
    156156                        req = async_send_2(dev->phone,
    157                             IPC_M_USB_VIRTDEV_DATA_TO_DEVICE,
     157                            IPC_M_USBVIRT_DATA_TO_DEVICE,
    158158                            transaction->target.endpoint,
    159159                            transaction->type,
  • uspace/srv/hw/bus/usb/hcd/virtual/hcd.c

    rb371844 rb8100da  
    4545
    4646#include <usb/hcd.h>
    47 #include <usb/virtdev.h>
    4847#include "vhcd.h"
    4948#include "hc.h"
Note: See TracChangeset for help on using the changeset viewer.