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