diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-19 06:14:24 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-02-19 06:14:24 +0000 |
commit | 6fafeb146e9efd59140ea58cebd7dd38ae9a6379 (patch) | |
tree | 7db89ba6a28932514b105d620bba4884ec332ec3 /libdde_linux26/include/dde26.h | |
parent | 38c2c2458e3f4ecb329ff35621806252aac209b9 (diff) | |
parent | 8df772b3c665e663f6f9d2a70f9c691590bd3f91 (diff) |
Merge branch 'dde' into upstream-merged
Diffstat (limited to 'libdde_linux26/include/dde26.h')
-rw-r--r-- | libdde_linux26/include/dde26.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/libdde_linux26/include/dde26.h b/libdde_linux26/include/dde26.h new file mode 100644 index 00000000..ae64d909 --- /dev/null +++ b/libdde_linux26/include/dde26.h @@ -0,0 +1,79 @@ +#ifndef __DDE_26_H +#define __DDE_26_H + +#include <ddekit/thread.h> + +#define WARN_UNIMPL printk("unimplemented: %s\n", __FUNCTION__) + +/** \defgroup dde26 + * + * DDELinux2.6 subsystems + */ + +/** Initialize process subsystem. + * \ingroup dde26 + */ +int l4dde26_process_init(void); + +/** Initialize DDELinux locks. + * \ingroup dde26 + */ +void l4dde26_init_locks(void); + +/** Initialize SoftIRQ subsystem. + * \ingroup dde26 + */ +void l4dde26_softirq_init(void); + +/** Initialize timer subsystem. + * \ingroup dde26 + */ +void l4dde26_init_timers(void); + +/** Initialize PCI subsystem. + * \ingroup dde26 + */ +void l4dde26_init_pci(void); + +/** Perform initcalls. + * + * This will run all initcalls from DDELinux. This includes + * initcalles specified in the DDELinux libraries as well as + * initcalls from the device driver. + * + * \ingroup dde26 + */ +void l4dde26_do_initcalls(void); + +/** Initialize memory subsystem. + * \ingroup dde26 + */ +void l4dde26_kmalloc_init(void); + +/** Initialize calling thread to become a DDEKit worker. + * + * This needs to be called for every thread that will issue + * calls to Linux functions. + * + * \ingroup dde26 + */ +int l4dde26_process_add_worker(void); + +/** Enable an existing DDEKit thread to run as a DDELinux process. + * + * We need to call this for existing DDEKit threads (e.g., timers) + * that will end up running Linux code (e.g. timer functions). + * + * \ingroup dde26 + */ +int l4dde26_process_from_ddekit(ddekit_thread_t *t); + +/** Perform vital initcalls to initialize DDELinux 2.6 + * + * This includes initialization of the DDEKit. + * + * \ingroup dde26 + */ +void l4dde26_init(void); + +#endif |