Rev 4000 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4000 | Rev 4264 | ||
---|---|---|---|
Line 138... | Line 138... | ||
138 | return -1; |
138 | return -1; |
139 | } |
139 | } |
140 | 140 | ||
141 | req = async_send_2(phone, DEVMAP_DRIVER_REGISTER, 0, 0, &answer); |
141 | req = async_send_2(phone, DEVMAP_DRIVER_REGISTER, 0, 0, &answer); |
142 | 142 | ||
143 | retval = ipc_data_write_start(phone, (char *)name, strlen(name) + 1); |
143 | retval = ipc_data_write_start(phone, (char *)name, str_size(name) + 1); |
144 | 144 | ||
145 | if (retval != EOK) { |
145 | if (retval != EOK) { |
146 | async_wait_for(req, NULL); |
146 | async_wait_for(req, NULL); |
147 | return -1; |
147 | return -1; |
148 | } |
148 | } |
Line 171... | Line 171... | ||
171 | ipc_call_t answer; |
171 | ipc_call_t answer; |
172 | 172 | ||
173 | req = async_send_2(driver_phone, DEVMAP_DEVICE_GET_HANDLE, 0, 0, |
173 | req = async_send_2(driver_phone, DEVMAP_DEVICE_GET_HANDLE, 0, 0, |
174 | &answer); |
174 | &answer); |
175 | 175 | ||
176 | retval = ipc_data_write_start(driver_phone, name, strlen(name) + 1); |
176 | retval = ipc_data_write_start(driver_phone, name, str_size(name) + 1); |
177 | 177 | ||
178 | if (retval != EOK) { |
178 | if (retval != EOK) { |
179 | printf("Failed to send device name '%s'.\n", name); |
179 | printf("Failed to send device name '%s'.\n", name); |
180 | async_wait_for(req, NULL); |
180 | async_wait_for(req, NULL); |
181 | return retval; |
181 | return retval; |
Line 213... | Line 213... | ||
213 | ipc_call_t answer; |
213 | ipc_call_t answer; |
214 | 214 | ||
215 | req = async_send_2(driver_phone, DEVMAP_DEVICE_REGISTER, 0, 0, &answer); |
215 | req = async_send_2(driver_phone, DEVMAP_DEVICE_REGISTER, 0, 0, &answer); |
216 | 216 | ||
217 | retval = ipc_data_write_start(driver_phone, (char *)name, |
217 | retval = ipc_data_write_start(driver_phone, (char *)name, |
218 | strlen(name) + 1); |
218 | str_size(name) + 1); |
219 | 219 | ||
220 | if (retval != EOK) { |
220 | if (retval != EOK) { |
221 | printf("Failed to send device name '%s'.\n", name); |
221 | printf("Failed to send device name '%s'.\n", name); |
222 | async_wait_for(req, NULL); |
222 | async_wait_for(req, NULL); |
223 | return retval; |
223 | return retval; |