Changeset 32ec5671 in mainline for uspace/lib/usbdev/src/hub.c
- Timestamp:
- 2011-10-12T20:31:29Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d103aef
- Parents:
- 013517b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/hub.c
r013517b r32ec5671 155 155 * The @p enable_port function is expected to enable signaling on given 156 156 * port. 157 * The two arguments to it can have arbitrary meaning 158 * (the @p port_no is only a suggestion) 159 * and are not touched at all by this function 160 * (they are passed as is to the @p enable_port function). 157 * The argument can have arbitrary meaning and it is not touched at all 158 * by this function (it is passed as is to the @p enable_port function). 161 159 * 162 160 * If the @p enable_port fails (i.e. does not return EOK), the device … … 175 173 * @param[in] enable_port Function for enabling signaling through the port the 176 174 * device is attached to. 177 * @param[in] port_no Port number (passed through to @p enable_port).178 175 * @param[in] arg Any data argument to @p enable_port. 179 176 * @param[out] assigned_address USB address of the device. … … 193 190 int usb_hc_new_device_wrapper(ddf_dev_t *parent, usb_hc_connection_t *connection, 194 191 usb_speed_t dev_speed, 195 int (*enable_port)(int port_no, void *arg), int port_no, void *arg, 196 usb_address_t *assigned_address, 192 int (*enable_port)(void *arg), void *arg, usb_address_t *assigned_address, 197 193 ddf_dev_ops_t *dev_ops, void *new_dev_data, ddf_fun_t **new_fun) 198 194 { … … 278 274 * device address. 279 275 */ 280 rc = enable_port( port_no,arg);276 rc = enable_port(arg); 281 277 if (rc != EOK) { 282 278 goto leave_release_default_address;
Note:
See TracChangeset
for help on using the changeset viewer.