Changeset fe1776c2 in mainline for uspace/lib/usbvirt/src/main.c
- Timestamp:
- 2011-02-11T12:41:11Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d81ef61c
- Parents:
- 78d1525 (diff), 5d4193c (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/lib/usbvirt/src/main.c
r78d1525 rfe1776c2 159 159 { 160 160 if (dev->vhcd_phone > 0) { 161 ipc_hangup(dev->vhcd_phone);161 async_hangup(dev->vhcd_phone); 162 162 } 163 163 … … 173 173 virtual_device_t *dev = find_device_by_id(0); 174 174 if (dev == NULL) { 175 ipc_answer_0(iid, EINVAL);175 async_answer_0(iid, EINVAL); 176 176 printf("Ooops\n"); 177 177 return; … … 220 220 } 221 221 222 sysarg_t phonehash; 223 sysarg_t taskhash; 224 rc = ipc_connect_to_me(hcd_phone, 0, 0, 0, &taskhash, &phonehash); 222 rc = async_connect_to_me(hcd_phone, 0, 0, 0, callback_connection); 225 223 if (rc != EOK) { 226 224 printf("ipc_connect_to_me() failed\n"); … … 233 231 virtual_device->vhcd_phone = hcd_phone; 234 232 virtual_device->id = 0; 235 236 async_new_connection(taskhash, phonehash, 0, NULL, callback_connection);237 233 238 234 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.