aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-octphy/octphy_hw_api.h
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2018-03-23 17:12:18 +0100
committerHarald Welte <laforge@gnumonks.org>2018-04-09 08:29:20 +0000
commitdd4a6518f2118775c12affc02ac1e0dcc848d89a (patch)
treee3c3d579d47e0135b3be0e646e7b2da993094a5c /src/osmo-bts-octphy/octphy_hw_api.h
parente5518b07d6fc3375a9e4004a2ed2680dbb2d178e (diff)
octphy: integrate octasics latest header release
At the moment osmo-bts does not compile with the latest header file release from OCTSDR-2G-02.10.00-B1837-ALPHA as there are struct members removed and new ones added. The changes do not affect actual functionality in the existing code. The only affected parts are vty functions that query status information about the clock sync manager. - Add detection logic in configure.ac to detect if the affected struct members are present - Add conditional compiling to handle the different combinations of available struct members. Change-Id: Ic38d8dc35522205c4ffab583b4e61b5ef03cdba2 Related: SYS#4139 Patch-by: Octasic inc.
Diffstat (limited to 'src/osmo-bts-octphy/octphy_hw_api.h')
-rw-r--r--src/osmo-bts-octphy/octphy_hw_api.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/osmo-bts-octphy/octphy_hw_api.h b/src/osmo-bts-octphy/octphy_hw_api.h
index 78b72086..625fe864 100644
--- a/src/osmo-bts-octphy/octphy_hw_api.h
+++ b/src/osmo-bts-octphy/octphy_hw_api.h
@@ -34,6 +34,36 @@ static const struct value_string clocksync_state_vals[] = {
{ 0, NULL }
};
+#if OCTPHY_USE_CLOCK_SYNC_MGR_STATS_DAC_STATE == 1
+static const struct value_string clocksync_dac_vals[] = {
+ { cOCTVC1_HW_CLOCK_SYNC_MGR_DAC_STATE_ENUM_UNUSED, "Unused" },
+ { cOCTVC1_HW_CLOCK_SYNC_MGR_DAC_STATE_ENUM_MASTER, "Master" },
+ { cOCTVC1_HW_CLOCK_SYNC_MGR_DAC_STATE_ENUM_SLAVE, "Slave" },
+ { cOCTVC1_HW_CLOCK_SYNC_MGR_DAC_STATE_ENUM_FREE_RUNNING, "Free_Run"},
+ { 0, NULL }
+};
+#endif
+
+static const struct value_string usr_process_id[] = {
+ { cOCTVC1_USER_ID_PROCESS_ENUM_INVALID, "Invalid" },
+ { cOCTVC1_USER_ID_PROCESS_ENUM_MAIN_APP, "MainApp" },
+ { cOCTVC1_USER_ID_PROCESS_ENUM_MAIN_ROUTER, "MainRouter" },
+ { cOCTVC1_USER_ID_PROCESS_ENUM_GSM_DL_0, "DL"},
+ { cOCTVC1_USER_ID_PROCESS_ENUM_GSM_ULIM_0, "ULIM" },
+ { cOCTVC1_USER_ID_PROCESS_ENUM_GSM_ULOM_0, "ULOM" },
+ { cOCTVC1_USER_ID_PROCESS_ENUM_GSM_SCHED_0, "SCHED" },
+#ifdef cOCTVC1_USER_ID_PROCESS_ENUM_GSM_DECOMB
+ { cOCTVC1_USER_ID_PROCESS_ENUM_GSM_DECOMB, "DECOMB"},
+#endif
+#ifdef cOCTVC1_USER_ID_PROCESS_ENUM_GSM_ULEQ
+ { cOCTVC1_USER_ID_PROCESS_ENUM_GSM_ULEQ, "ULEQ" },
+#endif
+#ifdef cOCTVC1_USER_ID_PROCESS_ENUM_GSM_TEST
+ { cOCTVC1_USER_ID_PROCESS_ENUM_GSM_TEST, "TEST"},
+#endif
+ { 0, NULL }
+};
+
typedef void octphy_hw_get_cb(struct msgb *resp, void *data);
struct octphy_hw_get_cb_data {