Changeset 30f9f8f in mainline for uspace/drv/vhc/hub/virthub.c
- Timestamp:
- 2011-05-06T09:29:03Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9a884ed
- Parents:
- c709eb0 (diff), 310c4df (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hub/virthub.c
rc709eb0 r30f9f8f 34 34 */ 35 35 #include <usb/classes/classes.h> 36 #include <usbvirt/hub.h>37 36 #include <usbvirt/device.h> 38 37 #include <assert.h> … … 153 152 dev->ops = &hub_ops; 154 153 dev->descriptors = &descriptors; 155 dev->lib_debug_level = 0;156 dev->lib_debug_enabled_tags = USBVIRT_DEBUGTAG_ALL;157 154 158 155 hub_t *hub = malloc(sizeof(hub_t)); … … 164 161 dev->device_data = hub; 165 162 166 int rc; 167 #ifdef STANDALONE_HUB 168 dev->name = "hub"; 169 rc = usbvirt_connect(dev); 170 #else 171 rc = usbvirt_connect_local(dev); 172 #endif 173 174 return rc; 163 return EOK; 175 164 } 176 165 … … 181 170 * @return Port device was connected to. 182 171 */ 183 int virthub_connect_device(usbvirt_device_t *dev, v irtdev_connection_t *conn)172 int virthub_connect_device(usbvirt_device_t *dev, vhc_virtdev_t *conn) 184 173 { 185 174 assert(dev != NULL); … … 201 190 * @return Error code. 202 191 */ 203 int virthub_disconnect_device(usbvirt_device_t *dev, v irtdev_connection_t *conn)192 int virthub_disconnect_device(usbvirt_device_t *dev, vhc_virtdev_t *conn) 204 193 { 205 194 assert(dev != NULL); … … 212 201 hub_release(hub); 213 202 214 return E NOTSUP;203 return EOK; 215 204 } 216 205 … … 221 210 * @return Whether port is signalling to the device. 222 211 */ 223 bool virthub_is_device_enabled(usbvirt_device_t *dev, v irtdev_connection_t *conn)212 bool virthub_is_device_enabled(usbvirt_device_t *dev, vhc_virtdev_t *conn) 224 213 { 225 214 assert(dev != NULL);
Note:
See TracChangeset
for help on using the changeset viewer.