Changeset ad104e0 in mainline


Ignore:
Timestamp:
2010-12-04T17:00:14Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4689d40, 54b141a
Parents:
6f04905
Message:

Virtual USB HC can reserve address

The implementation is stupid but shall be okay for now.

Location:
uspace/drv/vhc
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/vhc/Makefile

    r6f04905 rad104e0  
    3939
    4040SOURCES = \
     41        addrmgm.c \
    4142        conndev.c \
    4243        connhost.c \
  • uspace/drv/vhc/conn.h

    r6f04905 rad104e0  
    4747usbhc_iface_t vhc_iface;
    4848
     49void address_init(void);
     50int reserve_default_address(device_t *);
     51int release_default_address(device_t *);
     52int request_address(device_t *, usb_address_t *);
     53int release_address(device_t *, usb_address_t);
     54
     55
    4956void default_connection_handler(device_t *, ipc_callid_t, ipc_call_t *);
    5057
  • uspace/drv/vhc/connhost.c

    r6f04905 rad104e0  
    227227usbhc_iface_t vhc_iface = {
    228228        .tell_address = get_address,
     229
     230        .reserve_default_address = reserve_default_address,
     231        .release_default_address = release_default_address,
     232        .request_address = request_address,
     233        .release_address = release_address,
     234
    229235        .interrupt_out = interrupt_out,
    230236        .interrupt_in = interrupt_in,
     237
    231238        .control_write_setup = control_write_setup,
    232239        .control_write_data = control_write_data,
    233240        .control_write_status = control_write_status,
     241
    234242        .control_read_setup = control_read_setup,
    235243        .control_read_data = control_read_data,
  • uspace/drv/vhc/hcd.c

    r6f04905 rad104e0  
    7272
    7373        /*
     74         * Initialize address management.
     75         */
     76        address_init();
     77
     78        /*
    7479         * Initialize our hub and announce its presence.
    7580         */
Note: See TracChangeset for help on using the changeset viewer.