Changeset 1eb272d in mainline
- Timestamp:
- 2010-12-12T09:14:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 94c19b8
- Parents:
- ee0d8a8 (diff), b9eb93f (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. - Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
ree0d8a8 r1eb272d 113 113 rootvirt \ 114 114 test1 \ 115 test2 \ 116 vhc 115 test2 117 116 118 117 RD_DRV_CFG = -
boot/arch/amd64/Makefile.inc
ree0d8a8 r1eb272d 43 43 uhci \ 44 44 usbhub \ 45 usbkbd 45 usbkbd \ 46 vhc 46 47 47 48 RD_DRV_CFG += \ -
uspace/Makefile
ree0d8a8 r1eb272d 90 90 drv/rootvirt \ 91 91 drv/test1 \ 92 drv/test2 \ 93 drv/vhc 92 drv/test2 94 93 95 94 ## Networking … … 118 117 DIRS += drv/isa 119 118 DIRS += drv/ns8250 119 DIRS += drv/uhci 120 DIRS += drv/usbhub 121 DIRS += drv/usbkbd 122 DIRS += drv/vhc 120 123 endif 121 124 … … 128 131 DIRS += drv/usbhub 129 132 DIRS += drv/usbkbd 133 DIRS += drv/vhc 130 134 endif 131 135 -
uspace/drv/uhci/transfers.c
ree0d8a8 r1eb272d 36 36 usbhc_iface_transfer_out_callback_t callback, void *arg) 37 37 { 38 printf(NAME ": transfer OUT [%d.%d (%s); % u]\n",38 printf(NAME ": transfer OUT [%d.%d (%s); %zu]\n", 39 39 target.address, target.endpoint, 40 40 usb_str_transfer_type(transfer_type), … … 49 49 usbhc_iface_transfer_out_callback_t callback, void *arg) 50 50 { 51 printf(NAME ": transfer SETUP [%d.%d (%s); % u]\n",51 printf(NAME ": transfer SETUP [%d.%d (%s); %zu]\n", 52 52 target.address, target.endpoint, 53 53 usb_str_transfer_type(transfer_type), … … 62 62 usbhc_iface_transfer_in_callback_t callback, void *arg) 63 63 { 64 printf(NAME ": transfer IN [%d.%d (%s); % u]\n",64 printf(NAME ": transfer IN [%d.%d (%s); %zu]\n", 65 65 target.address, target.endpoint, 66 66 usb_str_transfer_type(transfer_type), -
uspace/lib/usb/src/usbdrv.c
ree0d8a8 r1eb272d 36 36 #include <usbhc_iface.h> 37 37 #include <errno.h> 38 #include <str_error.h> 38 39 39 40 /** Information about pending transaction on HC. */ … … 90 91 { 91 92 ipcarg_t address; 92 int rc = async_req_1_1(phone, IPC_M_USBHC_GET_ADDRESS, 93 int rc = async_req_2_1(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 94 IPC_M_USBHC_GET_ADDRESS, 93 95 dev->handle, &address); 94 96 95 97 if (rc != EOK) { 98 printf("usb_drv_get_my_address over %d failed: %s\n", phone, str_error(rc)); 96 99 return rc; 97 100 } … … 107 110 int usb_drv_reserve_default_address(int phone) 108 111 { 109 return async_req_0_0(phone, IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS); 112 return async_req_1_0(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 113 IPC_M_USBHC_RESERVE_DEFAULT_ADDRESS); 110 114 } 111 115 … … 117 121 int usb_drv_release_default_address(int phone) 118 122 { 119 return async_req_0_0(phone, IPC_M_USBHC_RELEASE_DEFAULT_ADDRESS); 123 return async_req_1_0(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 124 IPC_M_USBHC_RELEASE_DEFAULT_ADDRESS); 120 125 } 121 126 … … 128 133 { 129 134 ipcarg_t address; 130 int rc = async_req_0_1(phone, IPC_M_USBHC_REQUEST_ADDRESS, &address); 135 int rc = async_req_1_1(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 136 IPC_M_USBHC_REQUEST_ADDRESS, &address); 131 137 if (rc != EOK) { 132 138 return rc; … … 146 152 devman_handle_t handle) 147 153 { 148 int rc = async_req_2_0(phone, IPC_M_USBHC_BIND_ADDRESS, 154 int rc = async_req_3_0(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 155 IPC_M_USBHC_BIND_ADDRESS, 149 156 address, handle); 150 157 … … 160 167 int usb_drv_release_address(int phone, usb_address_t address) 161 168 { 162 return async_req_1_0(phone, IPC_M_USBHC_RELEASE_ADDRESS, address); 169 return async_req_2_0(phone, DEV_IFACE_ID(USBHC_DEV_IFACE), 170 IPC_M_USBHC_RELEASE_ADDRESS, address); 163 171 } 164 172
Note:
See TracChangeset
for help on using the changeset viewer.