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

Changeset 476f62c in mainline for uspace/lib/drv/generic/dev_iface.c


Ignore:
Timestamp:
2014-01-17T17:26:48Z (8 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
5828554, cf982ff
Parents:
61b5b73d (diff), 66be0288 (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.
Message:

Merge libdrv cleanup.

  • move 'client side' device iface to libdrv (from libc)
  • hide remote_* libdrv headers
  • add a bunch of const qualifiers and change static data to const
  • cleanup: index initialized arrays, array size macro, removes duplicit enums, …

TODO

move hw_res, pio_window and co to libdrv. (too entangled with libc to move right now)
move clock_dev iface to libdrv. (also tied to libc, we need a time provider solution)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/dev_iface.c

    r61b5b73d r476f62c  
    6969                [CLOCK_DEV_IFACE] = &remote_clock_dev_iface,
    7070                [BATTERY_DEV_IFACE] = &remote_battery_dev_iface,
    71                 [AHCI_DEV_IFACE] = &remote_ahci_iface
     71                [AHCI_DEV_IFACE] = &remote_ahci_iface,
    7272        }
    7373};
    7474
    75 remote_iface_t *get_remote_iface(int idx)
     75const remote_iface_t *get_remote_iface(int idx)
    7676{
    7777        assert(is_valid_iface_idx(idx));
     
    8080
    8181remote_iface_func_ptr_t
    82 get_remote_method(remote_iface_t *rem_iface, sysarg_t iface_method_idx)
     82get_remote_method(const remote_iface_t *rem_iface, sysarg_t iface_method_idx)
    8383{
    8484        if (iface_method_idx >= rem_iface->method_count)
Note: See TracChangeset for help on using the changeset viewer.