Ignore:
Timestamp:
2010-10-20T21:17:32Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c741e1d
Parents:
08af5a6
Message:

Virtual USB HC has a hub

So far, the hub does not respond to requests and automatically enables
any port device connects to. Will be completed in next revisions (hope
very soon).

File:
1 edited

Legend:

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

    r08af5a6 rb8507a1  
    4040#include "conn.h"
    4141#include "hc.h"
     42#include "hub.h"
    4243
    43 /** Handle data from device to function.
     44/** Handle data from device to host.
    4445 */
    4546static void handle_data_from_device(ipc_callid_t iid, ipc_call_t icall,
     
    5051                .endpoint = IPC_GET_ARG2(icall)
    5152        };
     53       
     54        if (!hub_can_device_signal(dev)) {
     55                ipc_answer_0(iid, EREFUSED);
     56                return;
     57        }
    5258       
    5359        dprintf("data from device %d [%d.%d]", dev->id,
Note: See TracChangeset for help on using the changeset viewer.