Changeset fe5e00d6 in mainline


Ignore:
Timestamp:
2010-11-27T09:13:32Z (14 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6c8ada21
Parents:
dac43be
Message:

Remote interface can handle interrupt transfers

The HC framework can handle interrupt transfers from USB device drivers.

Location:
uspace/lib/usb
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/Makefile

    rdac43be rfe5e00d6  
    3737        src/hubdrv.c \
    3838        src/localdrv.c \
     39        src/remotedrv.c \
    3940        src/usb.c \
    4041        src/usbdrv.c
  • uspace/lib/usb/src/hcdhubd.c

    rdac43be rfe5e00d6  
    205205}
    206206
     207/** Tell USB address of given device.
     208 *
     209 * @param handle Devman handle of the device.
     210 * @return USB device address or error code.
     211 */
     212usb_address_t usb_get_address_by_handle(devman_handle_t handle)
     213{
     214        /* TODO: search list of attached devices. */
     215        return ENOENT;
     216}
     217
    207218/**
    208219 * @}
  • uspace/lib/usb/src/hcdhubd_private.h

    rdac43be rfe5e00d6  
    4242extern usb_hc_driver_t *hc_driver;
    4343
     44extern usbhc_iface_t usbhc_interface;
     45
     46usb_address_t usb_get_address_by_handle(devman_handle_t);
    4447int usb_add_hc_device(device_t *);
    4548int usb_add_hub_device(device_t *);
  • uspace/lib/usb/src/hcdrv.c

    rdac43be rfe5e00d6  
    5050usb_hc_driver_t *hc_driver = NULL;
    5151
    52 static usbhc_iface_t usb_interface = {
    53         .interrupt_out = NULL,
    54         .interrupt_in = NULL
    55 };
    56 
    5752static device_ops_t usb_device_ops = {
    58         .interfaces[USBHC_DEV_IFACE] = &usb_interface
     53        .interfaces[USBHC_DEV_IFACE] = &usbhc_interface
    5954};
    6055
Note: See TracChangeset for help on using the changeset viewer.