Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ns8250/ns8250.c

    r77429d3 rbe942bc  
    5353
    5454#include <driver.h>
    55 #include <ops/char_dev.h>
     55#include <char.h>
     56#include <resource.h>
    5657
    5758#include <devman.h>
     
    226227
    227228/** The character interface's callbacks. */
    228 static char_dev_ops_t ns8250_char_dev_ops = {
     229static char_iface_t ns8250_char_iface = {
    229230        .read = &ns8250_read,
    230231        .write = &ns8250_write
     
    346347       
    347348        /* Get hw resources. */
    348         ret = hw_res_get_resource_list(dev->parent_phone, &hw_resources);
     349        ret = get_hw_resources(dev->parent_phone, &hw_resources);
    349350        if (ret != EOK) {
    350351                printf(NAME ": failed to get hw resources for the device "
     
    393394        }
    394395       
    395         hw_res_clean_resource_list(&hw_resources);
     396        clean_hw_resource_list(&hw_resources);
    396397        return ret;
    397398       
    398399failed:
    399400        ns8250_dev_cleanup(dev);
    400         hw_res_clean_resource_list(&hw_resources);
     401        clean_hw_resource_list(&hw_resources);
    401402        return ret;
    402403}
     
    431432{
    432433        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;
    433440       
    434441        /* Enable interrupt on the serial port. */
     
    917924        ns8250_dev_ops.close = &ns8250_close;
    918925       
    919         ns8250_dev_ops.interfaces[CHAR_DEV_IFACE] = &ns8250_char_dev_ops;
     926        ns8250_dev_ops.interfaces[CHAR_DEV_IFACE] = &ns8250_char_iface;
    920927        ns8250_dev_ops.default_handler = &ns8250_default_handler;
    921928}
Note: See TracChangeset for help on using the changeset viewer.