Changeset e1dbcbc in mainline for uspace/drv/ohci/hcd_endpoint.h


Ignore:
Timestamp:
2011-04-29T13:43:01Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a81a1d09
Parents:
380e0364 (diff), f19f1b7 (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:

Merge development/ changes

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hcd_endpoint.h

    r380e0364 re1dbcbc  
    11/*
    2  * Copyright (c) 2010 Vojtech Horky
     2 * Copyright (c) 2011 Jan Vesely
    33 * All rights reserved.
    44 *
     
    2626 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2727 */
     28/** @addtogroup drvusbohci
     29 * @{
     30 */
     31/** @file
     32 * @brief OHCI driver
     33 */
     34#ifndef DRV_OHCI_HCD_ENDPOINT_H
     35#define DRV_OHCI_HCD_ENDPOINT_H
    2836
    29 /** @addtogroup drvusbvhc
    30  * @{
    31  */
    32 /** @file
    33  * @brief Virtual device management.
    34  */
    35 #ifndef VHCD_DEVICES_H_
    36 #define VHCD_DEVICES_H_
     37#include <assert.h>
     38#include <adt/list.h>
    3739
    38 #include <adt/list.h>
    39 #include <usb/usb.h>
     40#include <usb/host/endpoint.h>
    4041
    41 #include "hc.h"
     42#include "hw_struct/endpoint_descriptor.h"
     43#include "hw_struct/transfer_descriptor.h"
    4244
    43 /** Connected virtual device. */
    44 typedef struct {
    45         /** Phone used when sending data to device. */
    46         int phone;
    47         /** Unique identification. */
    48         sysarg_t id;
    49         /** Linked-list handle. */
     45typedef struct hcd_endpoint {
     46        ed_t *ed;
     47        td_t *td;
    5048        link_t link;
    51 } virtdev_connection_t;
     49} hcd_endpoint_t;
    5250
    53 virtdev_connection_t *virtdev_add_device(int, sysarg_t);
    54 virtdev_connection_t *virtdev_find(sysarg_t);
    55 void virtdev_destroy_device(virtdev_connection_t *);
    56 int virtdev_send_to_all(transaction_t *);
     51hcd_endpoint_t * hcd_endpoint_assign(endpoint_t *ep);
    5752
     53hcd_endpoint_t * hcd_endpoint_get(endpoint_t *ep);
     54
     55void hcd_endpoint_clear(endpoint_t *ep);
    5856#endif
    5957/**
Note: See TracChangeset for help on using the changeset viewer.