summaryrefslogtreecommitdiff
path: root/cesar/common
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/common')
-rw-r--r--cesar/common/config-sets/eoc29
-rw-r--r--cesar/common/config-sets/eoc-board2
-rw-r--r--cesar/common/config-sets/eoc-master12
-rw-r--r--cesar/common/config-sets/eoc-slave5
-rw-r--r--cesar/common/defs/eoc.h19
-rw-r--r--cesar/common/defs/homeplugAV.h2
-rw-r--r--cesar/common/defs/igmp.h4
7 files changed, 72 insertions, 1 deletions
diff --git a/cesar/common/config-sets/eoc b/cesar/common/config-sets/eoc
new file mode 100644
index 0000000000..9330a57661
--- /dev/null
+++ b/cesar/common/config-sets/eoc
@@ -0,0 +1,29 @@
+CONFIG_ACLF_BP_CABLE_TCK = 2500000
+CONFIG_ATU_FACTOR = 3
+CONFIG_AV_ONLY_MODE = y
+CONFIG_BSU_BEACON_REGIONS_PRESENT = n
+CONFIG_BSU_SCHEDULE_PREPARE = y
+CONFIG_BSU_SKEW = y
+CONFIG_BSU_WAKEUP_DELAY_MS = 40
+CONFIG_BSU_WATCHDOG_REFRESH = y
+CONFIG_CL_AV = n
+CONFIG_CL_EOC_CLASSIFY = y
+CONFIG_CL_EOC_ROUTE = y
+CONFIG_COMMON_DEFS_TWICEVLAN = y
+CONFIG_CP_EOC_BEACON_SPC_CENTRAL = y
+CONFIG_CP_EOC_DBG_PRINT_LEVEL = 1
+CONFIG_CP_EOC_SCHEDULER = y
+CONFIG_CP_EOC = y
+CONFIG_CP_MSG_EOC_DRV_MME = y
+CONFIG_CP_STA_ACTION_MISC_EOC = y
+CONFIG_MAC_COMMON_EOC_MFS = y
+CONFIG_MAC_COMMON_EOC_SCHED = y
+CONFIG_MAC_COMMON_EOC_TEI = y
+CONFIG_MAC_COMMON_EOC_TONEMASK = y
+CONFIG_MAC_PBPROC_EOC_FC = y
+CONFIG_MAC_PBPROC_EOC_ILRAM = y
+CONFIG_SAR_MFS_RX_CREATE_LID = y
+CONFIG_SAR_MFS_TX_PERMANENT = y
+CONFIG_SAR_SLACK_LOW_ALLOW_MME = y
+CONFIG_SAR_USE_PB_SSN_ON_MFS_CREATE = y
+CONFIG_SAR_PB_STATS=y
diff --git a/cesar/common/config-sets/eoc-board b/cesar/common/config-sets/eoc-board
new file mode 100644
index 0000000000..7ff6b31521
--- /dev/null
+++ b/cesar/common/config-sets/eoc-board
@@ -0,0 +1,2 @@
+CONFIG_GPIO_LED_IS_CCO = y
+CONFIG_GPIO_LED_TRAFFIC = y
diff --git a/cesar/common/config-sets/eoc-master b/cesar/common/config-sets/eoc-master
new file mode 100644
index 0000000000..885f8d1bdf
--- /dev/null
+++ b/cesar/common/config-sets/eoc-master
@@ -0,0 +1,12 @@
+set eoc
+CONFIG_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS = 0
+CONFIG_BSU_SCHEDULER_PREPARE = y
+CONFIG_CL_MCAST = y
+CONFIG_CP_EOC_CCO_ACTION_WL_ALLOWED = y
+CONFIG_CP_EOC_IS_MASTER = y
+CONFIG_CP_EOC_MULTI_STA_FSM_DEF="cp/eoc/multi_sta_fsm/src/fsm/multi_sta.fsm"
+CONFIG_CP_EOC_MULTI_STA_WL_ALLOWED = y
+CONFIG_CP_FSM_DEF = "cp/eoc/fsm/src/fsm/cp_eoc_cco.fsm"
+CONFIG_CP_MSG_EOC_MULTI_STA_MME = y
+CONFIG_CP_STA_MGR_CCO_EOC = y
+CONFIG_SAR_DROP_OLD_SEG = y
diff --git a/cesar/common/config-sets/eoc-slave b/cesar/common/config-sets/eoc-slave
new file mode 100644
index 0000000000..0230e4d041
--- /dev/null
+++ b/cesar/common/config-sets/eoc-slave
@@ -0,0 +1,5 @@
+set eoc
+CONFIG_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS = 1000
+CONFIG_BSU_SKEW = y
+CONFIG_CP_EOC_STA_CON_ALLOWED = y
+CONFIG_CP_FSM_DEF = "cp/eoc/fsm/src/fsm/cp_eoc_sta.fsm"
diff --git a/cesar/common/defs/eoc.h b/cesar/common/defs/eoc.h
new file mode 100644
index 0000000000..f7edcb7c15
--- /dev/null
+++ b/cesar/common/defs/eoc.h
@@ -0,0 +1,19 @@
+#ifndef common_defs_eoc_h
+#define common_defs_eoc_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2012 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file common/defs/eoc.h
+ * \brief EoC Specific values based from HPAV.
+ * \ingroup common_defs
+ */
+
+/** Station presence timeout inside our AVLN. */
+#define EOC_STA_PRESENCE_TIMEOUT_INSIDE_AVLN_MS 60000
+
+#endif /* common_defs_eoc_h */
diff --git a/cesar/common/defs/homeplugAV.h b/cesar/common/defs/homeplugAV.h
index 545b38ebb8..91071782e6 100644
--- a/cesar/common/defs/homeplugAV.h
+++ b/cesar/common/defs/homeplugAV.h
@@ -72,7 +72,7 @@
#define HPAV_CRC32_MAGIC 0x2144df1c
/** Nek change. */
-#define HPAV_NEK_CHANGE_MS 3600000
+#define HPAV_NEK_CHANGE_MS 3600000 * 24
/** Access or in home value. */
enum hpav_access_t
diff --git a/cesar/common/defs/igmp.h b/cesar/common/defs/igmp.h
index c83d772d93..37c266aff6 100644
--- a/cesar/common/defs/igmp.h
+++ b/cesar/common/defs/igmp.h
@@ -23,6 +23,10 @@
/** Max number of sources. */
#define MCAST_SOURCE_MAX_NB 32
+/** IGMP general query MAC address */
+#define MCAST_MAC_IGMP_GENERAL_QUERY \
+ MAC_ADDRESS (0x01, 0x00, 0x5E, 0x00, 0x00, 0x01)
+
/** Keeps all data about all igmp groups. */
struct igmp_groups_t
{