Changes in uspace/drv/ns8250/ns8250.c [be942bc:33dbbd2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ns8250/ns8250.c
rbe942bc r33dbbd2 274 274 275 275 /* Gain control over port's registers. */ 276 if (pio_enable((void *) (uintptr_t)data->io_addr, REG_COUNT,276 if (pio_enable((void *) data->io_addr, REG_COUNT, 277 277 (void **) &data->port)) { 278 printf(NAME ": error - cannot gain the port % #" PRIx32 "for device "278 printf(NAME ": error - cannot gain the port %lx for device " 279 279 "%s.\n", data->io_addr, dev->name); 280 280 return false; … … 342 342 printf(NAME ": failed to connect to the parent driver of the " 343 343 "device %s.\n", dev->name); 344 ret = dev->parent_phone;344 ret = EPARTY; /* FIXME: use another EC */ 345 345 goto failed; 346 346 } 347 347 348 348 /* Get hw resources. */ 349 ret = get_hw_resources(dev->parent_phone, &hw_resources); 350 if (ret != EOK) { 349 if (!get_hw_resources(dev->parent_phone, &hw_resources)) { 351 350 printf(NAME ": failed to get hw resources for the device " 352 351 "%s.\n", dev->name); 352 ret = EPARTY; /* FIXME: use another EC */ 353 353 goto failed; 354 354 } … … 374 374 printf(NAME ": i/o range assigned to the device " 375 375 "%s is too small.\n", dev->name); 376 ret = E LIMIT;376 ret = EPARTY; /* FIXME: use another EC */ 377 377 goto failed; 378 378 } … … 390 390 printf(NAME ": missing hw resource(s) for the device %s.\n", 391 391 dev->name); 392 ret = E NOENT;392 ret = EPARTY; /* FIXME: use another EC */ 393 393 goto failed; 394 394 } … … 727 727 { 728 728 printf(NAME ": ns8250_add_device %s (handle = %d)\n", 729 dev->name, (int)dev->handle);729 dev->name, dev->handle); 730 730 731 731 int res = ns8250_dev_initialize(dev); … … 887 887 ipc_call_t *call) 888 888 { 889 sysarg_t method = IPC_GET_IMETHOD(*call);889 ipcarg_t method = IPC_GET_METHOD(*call); 890 890 int ret; 891 891 unsigned int baud_rate, parity, word_length, stop_bits;
Note:
See TracChangeset
for help on using the changeset viewer.