summaryrefslogtreecommitdiff
path: root/cesar/cp/eoc/multi_sta/action/test/utest/actions-override
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/cp/eoc/multi_sta/action/test/utest/actions-override')
-rw-r--r--cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/inc/context.h97
-rw-r--r--cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/sta/core/core.h52
-rw-r--r--cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/sta/core/defs.h57
-rw-r--r--cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cyg/kernel/kapi.h37
4 files changed, 243 insertions, 0 deletions
diff --git a/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/inc/context.h b/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/inc/context.h
new file mode 100644
index 0000000000..0b432a120e
--- /dev/null
+++ b/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/inc/context.h
@@ -0,0 +1,97 @@
+#ifndef override_cp_inc_context_h
+#define override_cp_inc_context_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file override/cp/inc/context.h
+ * \brief Control plane context override.
+ * \ingroup test
+ */
+
+#include "cp/eoc/beacon/beacon.h"
+#include "cp/eoc/beacon/inc/beacon.h"
+#include "cp/fsm/fsm.h"
+#include "cp/fsm/inc/context.h"
+#include "cp/inc/trace.h"
+#include "cp/sta/mgr/sta_mgr.h"
+#include "cp/sta/mgr/inc/sta_mgr.h"
+#include "mac/common/config.h"
+#include "mac/common/store.h"
+#include "mac/sar/sar.h"
+#include "cl/cl.h"
+#include "cp/msg/inc/context.h"
+#include "lib/rnd.h"
+#include "interface/interface.h"
+#include "cp/sta/core/defs.h"
+#include "cp/sta/action/inc/context.h"
+#include "cp/cco/bw/bw.h"
+#include "cp/cco/bw/inc/context.h"
+#include "cp/eoc/cco/bw/inc/bw.h"
+#include "cp/cl_interf/cl_interf.h"
+#include "cp/cl_interf/inc/context.h"
+#include "cp/eoc/cco/action/inc/cco_action.h"
+#include "cp/cco/action/inc/cco_action.h"
+#include "ce/tx/inc/tx.h"
+#include "bsu/aclf/aclf.h"
+#include "config/cl/eoc/route.h"
+#include "bufmgr/bufmgr.h"
+#include "cp/eoc/inc/dbg_print.h"
+
+struct cp_t
+{
+#if CONFIG_TRACE
+ /** Trace context. */
+ trace_buffer_t trace;
+ /** Verbose trace context. */
+ trace_buffer_t trace_verbose;
+#endif /* CONFIG_TRACE */
+
+ /** FSM context. */
+ cp_fsm_t fsm;
+ /** STA core flag. */
+ bool sta_core_flag;
+ /** STA core urgent flag. */
+ bool sta_core_urgent_flag;
+ /** station manager context*/
+ cp_sta_mgr_t sta_mgr;
+ /** Mac store /dataplane */
+ mac_store_t *mac_store;
+ /** MAC config contest*/
+ mac_config_t *mac_config;
+ /** Convergence Layer context */
+ cl_t *cl;
+ /** Phy context. */
+ phy_t *phy;
+ /** Segmentation and reassembly context */
+ sar_t *sar;
+ /** PBProc. */
+ pbproc_t *pbproc;
+ /** Context of the aclf. */
+ bsu_aclf_t *bsu_aclf;
+
+ cp_beacon_t beacon;
+ cp_msg_t msg;
+ lib_rnd_t rnd;
+ interface_t *interface;
+ cp_sta_action_t sta_action;
+ cp_eoc_cco_bw_sched_t schedule;
+ ca_t *ca;
+ cp_cco_bw_t bw;
+ cp_cl_interf_t cl_interf;
+ cp_cco_action_t cco_action;
+ ce_tx_t ce_tx;
+ ce_rx_t *ce_rx;
+
+ /** BSU context. */
+ bsu_t *bsu;
+
+ /** Buffer manager. */
+ bufmgr_t *bufmgr;
+};
+
+#endif /* override_cp_inc_context_h */
diff --git a/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/sta/core/core.h b/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/sta/core/core.h
new file mode 100644
index 0000000000..de8319d615
--- /dev/null
+++ b/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/sta/core/core.h
@@ -0,0 +1,52 @@
+#ifndef override_cp_sta_core_core_h
+#define override_cp_sta_core_core_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file override/cp/sta/core/core.h
+ * \brief STA Core override.
+ * \ingroup test
+ */
+
+#include "cp/inc/context.h"
+
+BEGIN_DECLS
+
+void
+cp_sta_core_signal_fsm_event (cp_t *ctx);
+
+void
+cp_sta_core_signal_fsm_urgent_event (cp_t *ctx);
+
+u32
+cp_sta_core_get_date_ms (cp_t *ctx);
+
+void
+cp_sta_core_checkpoint (cp_t *ctx);
+
+void
+cp_sta_core_signal_recv_mme_event(cp_t *cp_ctx);
+
+void
+cp_sta_core_gen_timed_event(cp_t *cp_ctx,
+ cp_sta_core_timed_event_def_t *sta_core_timed_event,
+ cp_fsm_event_t *fsm_event,
+ uint event_delay_ms);
+
+void
+cp_sta_core_stop_timed_or_cyclic_event(cp_t *cp_ctx,
+ cp_sta_core_timed_event_def_t *sta_core_timed_event);
+
+int
+cp_sta_core_ms_to_cyg_tick (cp_t *ctx, const uint ms);
+
+u32
+cp_sta_core_tck_per_rtc (cp_t *ctx);
+END_DECLS
+
+#endif /* override_cp_sta_core_core_h */
diff --git a/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/sta/core/defs.h b/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/sta/core/defs.h
new file mode 100644
index 0000000000..9698b44e93
--- /dev/null
+++ b/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cp/sta/core/defs.h
@@ -0,0 +1,57 @@
+#ifndef cp_sta_core_defs_h
+#define cp_sta_core_defs_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2008 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file cp/sta/core/defs.h
+ * \brief Sta core defs.
+ * \ingroup cp/sta/core
+ *
+ */
+#include "cp/fsm/forward.h"
+
+/** Forward declaration. */
+typedef struct cp_sta_core_t cp_sta_core_t;
+
+/*
+ * the sta core event flags
+ * these are some flags, so take care to give a value with all bits set to 0 but one.
+ */
+enum cp_sta_core_event_flag_t
+{
+ CP_STA_CORE_EVENT_FLAG_RECV_BEACON = 0x1,
+ CP_STA_CORE_EVENT_FLAG_RECV_MME = 0x2,
+ CP_STA_CORE_EVENT_FLAG_FSM = 0x4,
+ CP_STA_CORE_EVENT_FLAG_GARBAGE = 0x8,
+ CP_STA_CORE_EVENT_FLAG_TERMINATE = 0x10
+};
+typedef enum cp_sta_core_event_flag_t cp_sta_core_event_flag_t;
+
+/** Definition of alarm info structure
+ * (applications should not use it directly but use "alias" defined just below) */
+struct cp_sta_core_timed_event_def_t
+{
+ /* eCos alarm. */
+ uint alarm;
+ /* eCos alarm handle. */
+ uint alarm_handle;
+ /* the sta core event flag to set
+ * (auto or user-specified when creating/launching timer alarm). */
+ cp_sta_core_event_flag_t event_flag;
+ /* FSM event specified when creating/launching timer alarm
+ * (set if the previous flag is CP_STA_CORE_EVENT_FLAG_FSM). */
+ cp_fsm_event_t *fsm_event;
+ /* flag indicating a periodic alarm (if set to true)
+ * or one-shot alarm (if set to false). */
+ bool cyclic_alarm;
+ /* pointer to CP context. */
+ cp_t *cp_ctx;
+};
+typedef struct cp_sta_core_timed_event_def_t cp_sta_core_timed_event_def_t;
+
+#endif /* cp_sta_core_defs_h */
diff --git a/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cyg/kernel/kapi.h b/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cyg/kernel/kapi.h
new file mode 100644
index 0000000000..019e5d3a07
--- /dev/null
+++ b/cesar/cp/eoc/multi_sta/action/test/utest/actions-override/cyg/kernel/kapi.h
@@ -0,0 +1,37 @@
+#ifndef override_cyg_kernel_kapi_h
+#define override_cyg_kernel_kapi_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2010 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file override/cyg/kernel/kapi.h
+ * \brief override some kernel api from <cyg/kernel/kapi.h>.
+ * \ingroup cp_msg
+ *
+ *
+ */
+
+struct cyg_resolution_t
+{
+ u32 dividend;
+ u32 divisor;
+} ;
+
+typedef struct cyg_resolution_t cyg_resolution_t;
+
+typedef u64 cyg_tick_count_t;
+
+int
+cyg_real_time_clock (void);
+
+cyg_resolution_t
+cyg_clock_get_resolution (int clock);
+
+cyg_tick_count_t
+cyg_current_time (void);
+
+#endif