Changeset f294926 in mainline for uspace/lib


Ignore:
Timestamp:
2011-02-15T20:21:39Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4e832d8, fa2f79d
Parents:
69b1f3d (diff), f673f60 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged IPC phones hiding

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

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/Makefile

    r69b1f3d rf294926  
    4040        src/dump.c \
    4141        src/hidparser.c \
     42        src/hub.c \
    4243        src/pipes.c \
    4344        src/pipesinit.c \
     
    4647        src/request.c \
    4748        src/usb.c \
     49        src/usbdevice.c \
    4850        src/usbdrvreq.c \
    4951        src/usbdrv.c \
  • uspace/lib/usb/include/usb/pipes.h

    r69b1f3d rf294926  
    3131 */
    3232/** @file
    33  * Communication between device drivers and host controller driver.
     33 * USB pipes representation.
    3434 */
    3535#ifndef LIBUSB_PIPES_H_
     
    3838#include <sys/types.h>
    3939#include <usb/usb.h>
     40#include <usb/usbdevice.h>
    4041#include <usb/descriptor.h>
    4142#include <ipc/devman.h>
     
    114115} usb_endpoint_mapping_t;
    115116
     117int usb_device_connection_initialize_on_default_address(
     118    usb_device_connection_t *, usb_hc_connection_t *);
    116119int usb_device_connection_initialize_from_device(usb_device_connection_t *,
    117120    device_t *);
  • uspace/lib/usb/src/pipes.c

    r69b1f3d rf294926  
    102102}
    103103
     104/** Initialize connection to USB device on default address.
     105 *
     106 * @param dev_connection Device connection structure to be initialized.
     107 * @param hc_connection Initialized connection to host controller.
     108 * @return Error code.
     109 */
     110int usb_device_connection_initialize_on_default_address(
     111    usb_device_connection_t *dev_connection,
     112    usb_hc_connection_t *hc_connection)
     113{
     114        assert(dev_connection);
     115
     116        if (hc_connection == NULL) {
     117                return EBADMEM;
     118        }
     119
     120        return usb_device_connection_initialize(dev_connection,
     121            hc_connection->hc_handle, (usb_address_t) 0);
     122}
     123
    104124
    105125/** Start a session on the endpoint pipe.
Note: See TracChangeset for help on using the changeset viewer.