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


Ignore:
Timestamp:
2014-01-17T17:26:48Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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/driver.c

    r61b5b73d r476f62c  
    6363
    6464/** Driver structure */
    65 static driver_t *driver;
     65static const driver_t *driver;
    6666
    6767/** Devices */
     
    413413                 * handling ("remote interface").
    414414                 */
    415                 remote_iface_t *rem_iface = get_remote_iface(iface_idx);
     415                const remote_iface_t *rem_iface = get_remote_iface(iface_idx);
    416416                assert(rem_iface != NULL);
    417417               
     
    956956}
    957957
    958 int ddf_driver_main(driver_t *drv)
     958int ddf_driver_main(const driver_t *drv)
    959959{
    960960        /*
Note: See TracChangeset for help on using the changeset viewer.