Changeset 80cd7cd in mainline for uspace/drv/ns8250/ns8250.c
- Timestamp:
- 2011-01-13T20:58:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 87e373b
- Parents:
- eaef141 (diff), a613fea1 (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/drv/ns8250/ns8250.c
reaef141 r80cd7cd 53 53 54 54 #include <driver.h> 55 #include <char.h> 56 #include <resource.h> 55 #include <ops/char_dev.h> 57 56 58 57 #include <devman.h> … … 227 226 228 227 /** The character interface's callbacks. */ 229 static char_ iface_t ns8250_char_iface= {228 static char_dev_ops_t ns8250_char_dev_ops = { 230 229 .read = &ns8250_read, 231 230 .write = &ns8250_write … … 347 346 348 347 /* Get hw resources. */ 349 ret = get_hw_resources(dev->parent_phone, &hw_resources);348 ret = hw_res_get_resource_list(dev->parent_phone, &hw_resources); 350 349 if (ret != EOK) { 351 350 printf(NAME ": failed to get hw resources for the device " … … 394 393 } 395 394 396 clean_hw_resource_list(&hw_resources);395 hw_res_clean_resource_list(&hw_resources); 397 396 return ret; 398 397 399 398 failed: 400 399 ns8250_dev_cleanup(dev); 401 clean_hw_resource_list(&hw_resources);400 hw_res_clean_resource_list(&hw_resources); 402 401 return ret; 403 402 } … … 432 431 { 433 432 ns8250_dev_data_t *data = (ns8250_dev_data_t *) dev->driver_data; 434 int res;435 436 /* Enable interrupt globally. */437 res = interrupt_enable(data->irq);438 if (res != EOK)439 return res;440 433 441 434 /* Enable interrupt on the serial port. */ … … 924 917 ns8250_dev_ops.close = &ns8250_close; 925 918 926 ns8250_dev_ops.interfaces[CHAR_DEV_IFACE] = &ns8250_char_ iface;919 ns8250_dev_ops.interfaces[CHAR_DEV_IFACE] = &ns8250_char_dev_ops; 927 920 ns8250_dev_ops.default_handler = &ns8250_default_handler; 928 921 }
Note:
See TracChangeset
for help on using the changeset viewer.