Changeset cb59f787 in mainline for uspace/lib/drv/include/usbhc_iface.h
- Timestamp:
- 2010-11-21T09:22:41Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f8c1f7
- Parents:
- 32eceb4f
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/include/usbhc_iface.h
r32eceb4f rcb59f787 34 34 */ 35 35 36 #ifndef LIBDRV_USB _IFACE_H_37 #define LIBDRV_USB _IFACE_H_36 #ifndef LIBDRV_USBHC_IFACE_H_ 37 #define LIBDRV_USBHC_IFACE_H_ 38 38 39 39 #include "driver.h" … … 46 46 * 47 47 * Methods for sending data to device (OUT transactions) 48 * - e.g. IPC_M_USB _INTERRUPT_OUT -48 * - e.g. IPC_M_USBHC_INTERRUPT_OUT - 49 49 * always use the same semantics: 50 50 * - first, IPC call with given method is made … … 59 59 * 60 60 * Methods for retrieving data from device (IN transactions) 61 * - e.g. IPC_M_USB _INTERRUPT_IN -61 * - e.g. IPC_M_USBHC_INTERRUPT_IN - 62 62 * also use the same semantics: 63 63 * - first, IPC call with given method is made … … 76 76 * The mentioned data retrieval can be done any time after receiving EOK 77 77 * answer to IN method. 78 * This retrieval is done using the IPC_M_USB _GET_BUFFER where78 * This retrieval is done using the IPC_M_USBHC_GET_BUFFER where 79 79 * the first argument is buffer hash from call answer. 80 80 * 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) 82 82 * is answered. Each buffer can be retrieved only once. 83 83 * … … 97 97 * as it is handled by the remote part itself. 98 98 */ 99 IPC_M_USB _GET_BUFFER,99 IPC_M_USBHC_GET_BUFFER, 100 100 101 101 … … 103 103 * See explanation at usb_iface_funcs_t (OUT transaction). 104 104 */ 105 IPC_M_USB _INTERRUPT_OUT,105 IPC_M_USBHC_INTERRUPT_OUT, 106 106 107 107 /** Get interrupt data from device. 108 108 * See explanation at usb_iface_funcs_t (IN transaction). 109 109 */ 110 IPC_M_USB _INTERRUPT_IN,110 IPC_M_USBHC_INTERRUPT_IN, 111 111 112 112 … … 114 114 * See explanation at usb_iface_funcs_t (OUT transaction). 115 115 */ 116 IPC_M_USB _CONTROL_WRITE_SETUP,116 IPC_M_USBHC_CONTROL_WRITE_SETUP, 117 117 118 118 /** Send control-transfer data to device. 119 119 * See explanation at usb_iface_funcs_t (OUT transaction). 120 120 */ 121 IPC_M_USB _CONTROL_WRITE_DATA,121 IPC_M_USBHC_CONTROL_WRITE_DATA, 122 122 123 123 /** Terminate WRITE control transfer. 124 124 * See explanation at usb_iface_funcs_t (NO-DATA transaction). 125 125 */ 126 IPC_M_USB _CONTROL_WRITE_STATUS,126 IPC_M_USBHC_CONTROL_WRITE_STATUS, 127 127 128 128 … … 131 131 * See explanation at usb_iface_funcs_t (OUT transaction). 132 132 */ 133 IPC_M_USB _CONTROL_READ_SETUP,133 IPC_M_USBHC_CONTROL_READ_SETUP, 134 134 135 135 /** Get control-transfer data from device. 136 136 * See explanation at usb_iface_funcs_t (IN transaction). 137 137 */ 138 IPC_M_USB _CONTROL_READ_DATA,138 IPC_M_USBHC_CONTROL_READ_DATA, 139 139 140 140 /** Terminate READ control transfer. 141 141 * See explanation at usb_iface_funcs_t (NO-DATA transaction). 142 142 */ 143 IPC_M_USB _CONTROL_READ_STATUS,143 IPC_M_USBHC_CONTROL_READ_STATUS, 144 144 145 145 146 146 /* IPC_M_USB_ */ 147 } usb _iface_funcs_t;147 } usbhc_iface_funcs_t; 148 148 149 149 /** Callback for outgoing transfer. */ 150 typedef void (*usb _iface_transfer_out_callback_t)(device_t *,150 typedef void (*usbhc_iface_transfer_out_callback_t)(device_t *, 151 151 usb_transaction_outcome_t, void *); 152 152 153 153 /** Callback for incoming transfer. */ 154 typedef void (*usb _iface_transfer_in_callback_t)(device_t *,154 typedef void (*usbhc_iface_transfer_in_callback_t)(device_t *, 155 155 usb_transaction_outcome_t, size_t, void *); 156 156 … … 159 159 int (*interrupt_out)(device_t *, usb_target_t, 160 160 void *, size_t, 161 usb _iface_transfer_out_callback_t, void *);161 usbhc_iface_transfer_out_callback_t, void *); 162 162 int (*interrupt_in)(device_t *, usb_target_t, 163 163 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; 166 166 167 167
Note:
See TracChangeset
for help on using the changeset viewer.