Changeset 70e5ad5 in mainline for uspace/drv/vhc/hub/virthub.c
- Timestamp:
- 2010-12-16T11:12:31Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 11658b64, 5863a95
- Parents:
- cea3fca
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/hub/virthub.c
rcea3fca r70e5ad5 72 72 }; 73 73 74 /** Hub descriptor. */ 74 75 hub_descriptor_t hub_descriptor = { 75 76 .length = sizeof(hub_descriptor_t), … … 140 141 }; 141 142 143 /** Initializes virtual hub device. 144 * 145 * @param dev Virtual USB device backend. 146 * @return Error code. 147 */ 142 148 int virthub_init(usbvirt_device_t *dev) 143 149 { … … 163 169 } 164 170 171 /** Connect a device to a virtual hub. 172 * 173 * @param dev Virtual device representing the hub. 174 * @param conn Device to be connected. 175 * @return Port device was connected to. 176 */ 165 177 int virthub_connect_device(usbvirt_device_t *dev, virtdev_connection_t *conn) 166 178 { … … 177 189 } 178 190 191 /** Disconnect a device from a virtual hub. 192 * 193 * @param dev Virtual device representing the hub. 194 * @param conn Device to be disconnected. 195 * @return Error code. 196 */ 179 197 int virthub_disconnect_device(usbvirt_device_t *dev, virtdev_connection_t *conn) 180 198 { … … 185 203 186 204 hub_acquire(hub); 205 /* TODO: implement. */ 187 206 hub_release(hub); 188 207 … … 190 209 } 191 210 211 /** Whether trafic is propagated to given device. 212 * 213 * @param dev Virtual device representing the hub. 214 * @param conn Connected device. 215 * @return Whether port is signalling to the device. 216 */ 192 217 bool virthub_is_device_enabled(usbvirt_device_t *dev, virtdev_connection_t *conn) 193 218 { … … 209 234 } 210 235 236 /** Format status of a virtual hub. 237 * 238 * @param dev Virtual device representing the hub. 239 * @param[out] status Hub status information. 240 * @param[in] len Size of the @p status buffer. 241 */ 211 242 void virthub_get_status(usbvirt_device_t *dev, char *status, size_t len) 212 243 {
Note:
See TracChangeset
for help on using the changeset viewer.