Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/platform/sun4v/sun4v.c

    rb7fd2a0 rf4cfd271  
    4141#include <ddf/log.h>
    4242#include <errno.h>
    43 #include <str_error.h>
    4443#include <ops/hw_res.h>
    4544#include <ops/pio_window.h>
     
    5554} sun4v_fun_t;
    5655
    57 static errno_t sun4v_dev_add(ddf_dev_t *dev);
     56static int sun4v_dev_add(ddf_dev_t *dev);
    5857
    5958static driver_ops_t sun4v_ops = {
     
    114113}
    115114
    116 static errno_t sun4v_enable_interrupt(ddf_fun_t *fun, int irq)
    117 {
    118         return EOK;
     115static int sun4v_enable_interrupt(ddf_fun_t *fun, int irq)
     116{
     117        return true;
    119118}
    120119
     
    138137static ddf_dev_ops_t sun4v_fun_ops;
    139138
    140 static errno_t sun4v_add_fun(ddf_dev_t *dev, const char *name,
     139static int sun4v_add_fun(ddf_dev_t *dev, const char *name,
    141140    const char *str_match_id, sun4v_fun_t *fun_proto)
    142141{
     
    144143
    145144        ddf_fun_t *fnode = NULL;
    146         errno_t rc;
     145        int rc;
    147146
    148147        /* Create new device. */
     
    188187}
    189188
    190 static errno_t sun4v_add_functions(ddf_dev_t *dev)
    191 {
    192         errno_t rc;
     189static int sun4v_add_functions(ddf_dev_t *dev)
     190{
     191        int rc;
    193192
    194193        rc = sun4v_add_fun(dev, "console", "sun4v/console", &console_data);
     
    200199
    201200/** Add device. */
    202 static errno_t sun4v_dev_add(ddf_dev_t *dev)
     201static int sun4v_dev_add(ddf_dev_t *dev)
    203202{
    204203        ddf_msg(LVL_DEBUG, "sun4v_dev_add, device handle = %d",
     
    213212}
    214213
    215 static errno_t sun4v_init(void)
    216 {
    217         errno_t rc;
     214static int sun4v_init(void)
     215{
     216        int rc;
    218217        sysarg_t paddr;
    219218
     
    229228        rc = sysinfo_get_value("niagara.inbuf.address", &paddr);
    230229        if (rc != EOK) {
    231                 ddf_msg(LVL_ERROR, "niagara.inbuf.address not set: %s", str_error(rc));
     230                ddf_msg(LVL_ERROR, "niagara.inbuf.address not set (%d)", rc);
    232231                return rc;
    233232        }
     
    237236        rc = sysinfo_get_value("niagara.outbuf.address", &paddr);
    238237        if (rc != EOK) {
    239                 ddf_msg(LVL_ERROR, "niagara.outbuf.address not set: %s", str_error(rc));
     238                ddf_msg(LVL_ERROR, "niagara.outbuf.address not set (%d)", rc);
    240239                return rc;
    241240        }
     
    247246int main(int argc, char *argv[])
    248247{
    249         errno_t rc;
     248        int rc;
    250249
    251250        printf(NAME ": Sun4v platform driver\n");
Note: See TracChangeset for help on using the changeset viewer.