Fork us on GitHub Follow us on Facebook Follow us on Twitter

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


Ignore:
Timestamp:
2017-11-26T10:22:30Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
474c68b
Parents:
5f4c41b2
Message:

Sun4v-con should get output buffer address via hw_res, too.

File:
1 edited

Legend:

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

    r5f4c41b2 rf4cfd271  
    7474                return rc;
    7575
    76         if (hw_res.mem_ranges.count != 1) {
     76        if (hw_res.mem_ranges.count != 2) {
    7777                rc = EINVAL;
    7878                goto error;
    7979        }
    8080
    81         res->base = RNGABS(hw_res.mem_ranges.ranges[0]);
     81        res->in_base = RNGABS(hw_res.mem_ranges.ranges[0]);
     82        res->out_base = RNGABS(hw_res.mem_ranges.ranges[1]);
    8283        return EOK;
    8384error:
Note: See TracChangeset for help on using the changeset viewer.