Changeset 5a6cc679 in mainline for uspace/drv/char/sun4v-con/main.c


Ignore:
Timestamp:
2018-01-31T02:21:24Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/char/sun4v-con/main.c

    r132ab5d1 r5a6cc679  
    4040#define NAME  "sun4v-con"
    4141
    42 static int sun4v_con_dev_add(ddf_dev_t *dev);
    43 static int sun4v_con_dev_remove(ddf_dev_t *dev);
    44 static int sun4v_con_dev_gone(ddf_dev_t *dev);
    45 static int sun4v_con_fun_online(ddf_fun_t *fun);
    46 static int sun4v_con_fun_offline(ddf_fun_t *fun);
     42static errno_t sun4v_con_dev_add(ddf_dev_t *dev);
     43static errno_t sun4v_con_dev_remove(ddf_dev_t *dev);
     44static errno_t sun4v_con_dev_gone(ddf_dev_t *dev);
     45static errno_t sun4v_con_fun_online(ddf_fun_t *fun);
     46static errno_t sun4v_con_fun_offline(ddf_fun_t *fun);
    4747
    4848static driver_ops_t driver_ops = {
     
    5959};
    6060
    61 static int sun4v_con_get_res(ddf_dev_t *dev, sun4v_con_res_t *res)
     61static errno_t sun4v_con_get_res(ddf_dev_t *dev, sun4v_con_res_t *res)
    6262{
    6363        async_sess_t *parent_sess;
    6464        hw_res_list_parsed_t hw_res;
    65         int rc;
     65        errno_t rc;
    6666
    6767        parent_sess = ddf_dev_parent_sess_get(dev);
     
    8888
    8989
    90 static int sun4v_con_dev_add(ddf_dev_t *dev)
     90static errno_t sun4v_con_dev_add(ddf_dev_t *dev)
    9191{
    9292        sun4v_con_t *sun4v_con;
    9393        sun4v_con_res_t res;
    94         int rc;
     94        errno_t rc;
    9595
    9696        ddf_msg(LVL_DEBUG, "sun4v_con_dev_add(%p)", dev);
     
    112112}
    113113
    114 static int sun4v_con_dev_remove(ddf_dev_t *dev)
     114static errno_t sun4v_con_dev_remove(ddf_dev_t *dev)
    115115{
    116116        sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);
     
    121121}
    122122
    123 static int sun4v_con_dev_gone(ddf_dev_t *dev)
     123static errno_t sun4v_con_dev_gone(ddf_dev_t *dev)
    124124{
    125125        sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);
     
    130130}
    131131
    132 static int sun4v_con_fun_online(ddf_fun_t *fun)
     132static errno_t sun4v_con_fun_online(ddf_fun_t *fun)
    133133{
    134134        ddf_msg(LVL_DEBUG, "sun4v_con_fun_online()");
     
    136136}
    137137
    138 static int sun4v_con_fun_offline(ddf_fun_t *fun)
     138static errno_t sun4v_con_fun_offline(ddf_fun_t *fun)
    139139{
    140140        ddf_msg(LVL_DEBUG, "sun4v_con_fun_offline()");
Note: See TracChangeset for help on using the changeset viewer.