Ignore:
Timestamp:
2010-10-22T14:57:03Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7a7bfeb3
Parents:
954ea70
Message:

VHCD handles new methods

Not completely, though. Will finish later.

File:
1 edited

Legend:

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

    r954ea70 rb8a3cda  
    4848#include "devices.h"
    4949#include "hub.h"
     50#include "vhcd.h"
    5051
    5152#define list_foreach(pos, head) \
     
    124125                ipcarg_t answer_rc;
    125126                aid_t req;
    126                 int rc;
     127                int rc = EOK;
    127128               
    128                 req = async_send_3(dev->phone,
     129                req = async_send_4(dev->phone,
    129130                    IPC_M_USBVIRT_DATA_TO_DEVICE,
    130131                    transaction->target.address,
    131132                    transaction->target.endpoint,
    132133                    transaction->type,
     134                    transaction->len,
    133135                    &answer_data);
    134136               
    135                 rc = async_data_write_start(dev->phone,
    136                     transaction->buffer, transaction->len);
     137                if (transaction->len > 0) {
     138                        rc = async_data_write_start(dev->phone,
     139                            transaction->buffer, transaction->len);
     140                }
    137141                if (rc != EOK) {
    138142                        async_wait_for(req, NULL);
Note: See TracChangeset for help on using the changeset viewer.