Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/vhc/vhcd.h

    rd369b3b r58563585  
    3838
    3939#include <usbvirt/device.h>
     40#include <usbhc_iface.h>
    4041#include <async.h>
    41 #include <macros.h>
    4242
    4343#include <usb/host/hcd.h>
    44 #include <usb/host/usb2_bus.h>
    45 #include <usb/host/usb_transfer_batch.h>
    4644
    4745#define NAME "vhc"
     
    5856
    5957typedef struct {
    60         hc_device_t base;
    61 
    62         bus_t bus;
    63         usb2_bus_helper_t bus_helper;
    64 
    65         ddf_fun_t *virtual_fun;
     58        uint32_t magic;
    6659        list_t devices;
    6760        fibril_mutex_t guard;
     
    7063
    7164typedef struct {
    72         usb_transfer_batch_t batch;
    7365        link_t link;
     66        usb_transfer_batch_t *batch;
    7467} vhc_transfer_t;
    75 
    76 static inline vhc_data_t *hcd_to_vhc(hc_device_t *hcd)
    77 {
    78         assert(hcd);
    79         return (vhc_data_t *) hcd;
    80 }
    81 
    82 static inline vhc_data_t *bus_to_vhc(bus_t *bus)
    83 {
    84         assert(bus);
    85         return member_to_inst(bus, vhc_data_t, bus);
    86 }
    8768
    8869void on_client_close(ddf_fun_t *fun);
     
    9576void vhc_virtdev_unplug(vhc_data_t *, uintptr_t);
    9677
    97 int vhc_init(vhc_data_t *);
    98 int vhc_schedule(usb_transfer_batch_t *);
     78int vhc_init(vhc_data_t *instance);
     79int vhc_schedule(hcd_t *hcd, usb_transfer_batch_t *batch);
    9980int vhc_transfer_queue_processor(void *arg);
    10081
Note: See TracChangeset for help on using the changeset viewer.