Changeset 1b22bd4 in mainline for uspace/lib/drv/include/usb_iface.h


Ignore:
Timestamp:
2010-11-20T14:48:18Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
32eceb4f
Parents:
4b4c797
Message:

Add remote USB interface implementation

Not tested, may be bugged ;-).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/include/usb_iface.h

    r4b4c797 r1b22bd4  
    9393typedef enum {
    9494        /** Asks for data buffer.
    95          * See explanation at usb_method_t.
     95         * See explanation at usb_iface_funcs_t.
     96         * This function does not have counter part in functional interface
     97         * as it is handled by the remote part itself.
    9698         */
    9799        IPC_M_USB_GET_BUFFER,
     
    99101
    100102        /** Send interrupt data to device.
    101          * See explanation at usb_method_t (OUT transaction).
     103         * See explanation at usb_iface_funcs_t (OUT transaction).
    102104         */
    103105        IPC_M_USB_INTERRUPT_OUT,
    104106
    105107        /** Get interrupt data from device.
    106          * See explanation at usb_method_t (IN transaction).
     108         * See explanation at usb_iface_funcs_t (IN transaction).
    107109         */
    108110        IPC_M_USB_INTERRUPT_IN,
     
    110112
    111113        /** Start WRITE control transfer.
    112          * See explanation at usb_method_t (OUT transaction).
     114         * See explanation at usb_iface_funcs_t (OUT transaction).
    113115         */
    114116        IPC_M_USB_CONTROL_WRITE_SETUP,
    115117
    116118        /** Send control-transfer data to device.
    117          * See explanation at usb_method_t (OUT transaction).
     119         * See explanation at usb_iface_funcs_t (OUT transaction).
    118120         */
    119121        IPC_M_USB_CONTROL_WRITE_DATA,
    120122
    121123        /** Terminate WRITE control transfer.
    122          * See explanation at usb_method_t (NO-DATA transaction).
     124         * See explanation at usb_iface_funcs_t (NO-DATA transaction).
    123125         */
    124126        IPC_M_USB_CONTROL_WRITE_STATUS,
     
    127129
    128130        /** Start READ control transfer.
    129          * See explanation at usb_method_t (OUT transaction).
     131         * See explanation at usb_iface_funcs_t (OUT transaction).
    130132         */
    131133        IPC_M_USB_CONTROL_READ_SETUP,
    132134
    133135        /** Get control-transfer data from device.
    134          * See explanation at usb_method_t (IN transaction).
     136         * See explanation at usb_iface_funcs_t (IN transaction).
    135137         */
    136138        IPC_M_USB_CONTROL_READ_DATA,
    137139
    138140        /** Terminate READ control transfer.
    139          * See explanation at usb_method_t (NO-DATA transaction).
     141         * See explanation at usb_iface_funcs_t (NO-DATA transaction).
    140142         */
    141143        IPC_M_USB_CONTROL_READ_STATUS,
     
    155157/** USB devices communication interface. */
    156158typedef struct {
    157         int (*interrupt_out)(device_t *, usb_endpoint_t,
     159        int (*interrupt_out)(device_t *, usb_target_t,
    158160            void *, size_t,
    159161            usb_iface_transfer_out_callback_t, void *);
    160         int (*interrupt_in)(device_t *, usb_endpoint_t,
     162        int (*interrupt_in)(device_t *, usb_target_t,
    161163            void *, size_t,
    162164            usb_iface_transfer_in_callback_t, void *);
Note: See TracChangeset for help on using the changeset viewer.