diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:15:01 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-07-27 22:15:01 +0000 |
commit | 7996a3d79d55b7f879dfd62e202bbfe2963718d3 (patch) | |
tree | 8d9f6759fec4099b9be503c11c7ed174f7204980 /libdde-linux26/include/dde26.h | |
parent | 4fbe7358c7747a9165f776eb19addbb9baf7def2 (diff) |
really properly move files
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 |