Ignore:
Timestamp:
2010-11-21T09:22:41Z (13 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f8c1f7
Parents:
32eceb4f
Message:

Rename USB interface to USBHC

USB devices themselves could have their own interface for some
general querying. This name thus seems more apropriate.

File:
1 moved

Legend:

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

    r32eceb4f rcb59f787  
    3434 */
    3535
    36 #ifndef LIBDRV_USB_IFACE_H_
    37 #define LIBDRV_USB_IFACE_H_
     36#ifndef LIBDRV_USBHC_IFACE_H_
     37#define LIBDRV_USBHC_IFACE_H_
    3838
    3939#include "driver.h"
     
    4646 *
    4747 * Methods for sending data to device (OUT transactions)
    48  * - e.g. IPC_M_USB_INTERRUPT_OUT -
     48 * - e.g. IPC_M_USBHC_INTERRUPT_OUT -
    4949 * always use the same semantics:
    5050 * - first, IPC call with given method is made
     
    5959 *
    6060 * Methods for retrieving data from device (IN transactions)
    61  * - e.g. IPC_M_USB_INTERRUPT_IN -
     61 * - e.g. IPC_M_USBHC_INTERRUPT_IN -
    6262 * also use the same semantics:
    6363 * - first, IPC call with given method is made
     
    7676 * The mentioned data retrieval can be done any time after receiving EOK
    7777 * answer to IN method.
    78  * This retrieval is done using the IPC_M_USB_GET_BUFFER where
     78 * This retrieval is done using the IPC_M_USBHC_GET_BUFFER where
    7979 * the first argument is buffer hash from call answer.
    8080 * This call must be immediately followed by data read-in and after the
    81  * data are transferred, the initial call (IPC_M_USB_GET_BUFFER)
     81 * data are transferred, the initial call (IPC_M_USBHC_GET_BUFFER)
    8282 * is answered. Each buffer can be retrieved only once.
    8383 *
     
    9797         * as it is handled by the remote part itself.
    9898         */
    99         IPC_M_USB_GET_BUFFER,
     99        IPC_M_USBHC_GET_BUFFER,
    100100
    101101
     
    103103         * See explanation at usb_iface_funcs_t (OUT transaction).
    104104         */
    105         IPC_M_USB_INTERRUPT_OUT,
     105        IPC_M_USBHC_INTERRUPT_OUT,
    106106
    107107        /** Get interrupt data from device.
    108108         * See explanation at usb_iface_funcs_t (IN transaction).
    109109         */
    110         IPC_M_USB_INTERRUPT_IN,
     110        IPC_M_USBHC_INTERRUPT_IN,
    111111
    112112
     
    114114         * See explanation at usb_iface_funcs_t (OUT transaction).
    115115         */
    116         IPC_M_USB_CONTROL_WRITE_SETUP,
     116        IPC_M_USBHC_CONTROL_WRITE_SETUP,
    117117
    118118        /** Send control-transfer data to device.
    119119         * See explanation at usb_iface_funcs_t (OUT transaction).
    120120         */
    121         IPC_M_USB_CONTROL_WRITE_DATA,
     121        IPC_M_USBHC_CONTROL_WRITE_DATA,
    122122
    123123        /** Terminate WRITE control transfer.
    124124         * See explanation at usb_iface_funcs_t (NO-DATA transaction).
    125125         */
    126         IPC_M_USB_CONTROL_WRITE_STATUS,
     126        IPC_M_USBHC_CONTROL_WRITE_STATUS,
    127127
    128128
     
    131131         * See explanation at usb_iface_funcs_t (OUT transaction).
    132132         */
    133         IPC_M_USB_CONTROL_READ_SETUP,
     133        IPC_M_USBHC_CONTROL_READ_SETUP,
    134134
    135135        /** Get control-transfer data from device.
    136136         * See explanation at usb_iface_funcs_t (IN transaction).
    137137         */
    138         IPC_M_USB_CONTROL_READ_DATA,
     138        IPC_M_USBHC_CONTROL_READ_DATA,
    139139
    140140        /** Terminate READ control transfer.
    141141         * See explanation at usb_iface_funcs_t (NO-DATA transaction).
    142142         */
    143         IPC_M_USB_CONTROL_READ_STATUS,
     143        IPC_M_USBHC_CONTROL_READ_STATUS,
    144144
    145145
    146146        /* IPC_M_USB_ */
    147 } usb_iface_funcs_t;
     147} usbhc_iface_funcs_t;
    148148
    149149/** Callback for outgoing transfer. */
    150 typedef void (*usb_iface_transfer_out_callback_t)(device_t *,
     150typedef void (*usbhc_iface_transfer_out_callback_t)(device_t *,
    151151    usb_transaction_outcome_t, void *);
    152152
    153153/** Callback for incoming transfer. */
    154 typedef void (*usb_iface_transfer_in_callback_t)(device_t *,
     154typedef void (*usbhc_iface_transfer_in_callback_t)(device_t *,
    155155    usb_transaction_outcome_t, size_t, void *);
    156156
     
    159159        int (*interrupt_out)(device_t *, usb_target_t,
    160160            void *, size_t,
    161             usb_iface_transfer_out_callback_t, void *);
     161            usbhc_iface_transfer_out_callback_t, void *);
    162162        int (*interrupt_in)(device_t *, usb_target_t,
    163163            void *, size_t,
    164             usb_iface_transfer_in_callback_t, void *);
    165 } usb_iface_t;
     164            usbhc_iface_transfer_in_callback_t, void *);
     165} usbhc_iface_t;
    166166
    167167
Note: See TracChangeset for help on using the changeset viewer.