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