Changes in uspace/lib/usb/src/hub.c [357a302:a6add7a] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/hub.c
r357a302 ra6add7a 39 39 #include <usbhc_iface.h> 40 40 #include <errno.h> 41 #include <assert.h> 41 42 42 43 /** Check that HC connection is alright. … … 143 144 /** Wrapper for registering attached device to the hub. 144 145 * 145 * The @p enable_port function is expected to enable si ngalling on given146 * The @p enable_port function is expected to enable signaling on given 146 147 * port. 147 148 * The two arguments to it can have arbitrary meaning … … 151 152 * 152 153 * If the @p enable_port fails (i.e. does not return EOK), the device 153 * addition is cancel led.154 * addition is canceled. 154 155 * The return value is then returned (it is good idea to use different 155 156 * error codes than those listed as return codes by this function itself). … … 158 159 * @param connection Opened connection to host controller. 159 160 * @param dev_speed New device speed. 160 * @param enable_port Function for enabling signal ling through the port the161 * @param enable_port Function for enabling signaling through the port the 161 162 * device is attached to. 162 163 * @param port_no Port number (passed through to @p enable_port). … … 172 173 * request or requests for descriptors when creating match ids). 173 174 */ 174 int usb_hc_new_device_wrapper(d evice_t *parent, usb_hc_connection_t *connection,175 int usb_hc_new_device_wrapper(ddf_dev_t *parent, usb_hc_connection_t *connection, 175 176 usb_speed_t dev_speed, 176 177 int (*enable_port)(int port_no, void *arg), int port_no, void *arg, 177 usb_address_t *assigned_address, devman_handle_t *assigned_handle) 178 usb_address_t *assigned_address, devman_handle_t *assigned_handle, 179 ddf_dev_ops_t *dev_ops, void *new_dev_data, ddf_fun_t **new_fun) 178 180 { 179 181 CHECK_CONNECTION(connection); … … 199 201 200 202 /* 201 * Enable the port (i.e. allow signal ling through this port).203 * Enable the port (i.e. allow signaling through this port). 202 204 */ 203 205 rc = enable_port(port_no, arg); … … 251 253 devman_handle_t child_handle; 252 254 rc = usb_device_register_child_in_devman(dev_addr, dev_conn.hc_handle, 253 parent, &child_handle); 255 parent, &child_handle, 256 dev_ops, new_dev_data, new_fun); 254 257 if (rc != EOK) { 255 258 rc = ESTALL;
Note:
See TracChangeset
for help on using the changeset viewer.