aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/linux-generic/include/odp_internal.h')
-rw-r--r--platform/linux-generic/include/odp_internal.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h
index f20bd0a8..cd0d35a2 100644
--- a/platform/linux-generic/include/odp_internal.h
+++ b/platform/linux-generic/include/odp_internal.h
@@ -28,9 +28,29 @@ struct odp_global_data_s {
odp_abort_func_t abort_fn;
};
+enum init_stage {
+ NO_INIT = 0, /* No init stages completed */
+ TIME_INIT = 1,
+ SYSINFO_INIT = 2,
+ SHM_INIT = 3,
+ THREAD_INIT = 4,
+ POOL_INIT = 5,
+ QUEUE_INIT = 6,
+ SCHED_INIT = 7,
+ PKTIO_INIT = 8,
+ TIMER_INIT = 9,
+ CRYPTO_INIT = 10,
+ CLASSIFICATION_INIT = 11,
+ ALL_INIT = 12 /* All init stages completed */
+};
+
extern struct odp_global_data_s odp_global_data;
+int _odp_term_global(enum init_stage stage);
+int _odp_term_local(enum init_stage stage);
+
int odp_system_info_init(void);
+int odp_system_info_term(void);
int odp_thread_init_global(void);
int odp_thread_init_local(odp_thread_type_t type);
@@ -65,9 +85,11 @@ int odp_schedule_init_local(void);
int odp_schedule_term_local(void);
int odp_timer_init_global(void);
+int odp_timer_term_global(void);
int odp_timer_disarm_all(void);
-int odp_time_global_init(void);
+int odp_time_init_global(void);
+int odp_time_term_global(void);
void _odp_flush_caches(void);