Changeset 476f62c in mainline for uspace/lib/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)

Location:
uspace/lib/c
Files:
8 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/Makefile

    r61b5b73d r476f62c  
    6969        generic/device/hw_res_parsed.c \
    7070        generic/device/pio_window.c \
    71         generic/device/char_dev.c \
    7271        generic/device/clock_dev.c \
    73         generic/device/battery_dev.c \
    74         generic/device/graph_dev.c \
    75         generic/device/nic.c \
    76         generic/device/pci.c \
    77         generic/device/ahci.c \
    7872        generic/dhcp.c \
    7973        generic/dnsr.c \
  • uspace/lib/c/generic/ddi.c

    r61b5b73d r476f62c  
    280280 *
    281281 */
    282 int irq_register(int inr, int devno, int method, irq_code_t *ucode)
     282int irq_register(int inr, int devno, int method, const irq_code_t *ucode)
    283283{
    284284        return __SYSCALL4(SYS_IRQ_REGISTER, inr, devno, method,
  • uspace/lib/c/include/ddi.h

    r61b5b73d r476f62c  
    130130}
    131131
    132 extern int irq_register(int, int, int, irq_code_t *);
     132extern int irq_register(int, int, int, const irq_code_t *);
    133133extern int irq_unregister(int, int);
    134134
Note: See TracChangeset for help on using the changeset viewer.