aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_par.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-07-11 01:31:28 +0200
committerHarald Welte <laforge@gnumonks.org>2012-07-11 01:32:42 +0200
commit38420fb9513db552d80629035ef4e92315e35b6d (patch)
tree1d0542a1b8beb65db377598dff98e2793be339c4 /src/osmo-bts-sysmo/misc/sysmobts_par.h
parent3696c6946d9b0e683093dd6e87d16629f236d4f9 (diff)
add new sysmobst-mgr daemon
This daemon is taking care of counting the number of hours in operation and to watch the system temperature as determined by internal temperature sensors. Later, it will export an external interface for firmware reload, as well as a way to raise OML ALARMs in case of temperature issues or other problems.
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_par.h')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_par.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_par.h b/src/osmo-bts-sysmo/misc/sysmobts_par.h
new file mode 100644
index 00000000..85a38abc
--- /dev/null
+++ b/src/osmo-bts-sysmo/misc/sysmobts_par.h
@@ -0,0 +1,26 @@
+#ifndef _SYSMOBTS_PAR_H
+#define _SYSMOBTS_PAR_H
+
+#include <stdint.h>
+
+enum sysmobts_par {
+ SYSMOBTS_PAR_MAC,
+ SYSMOBTS_PAR_CLK_FACTORY,
+ SYSMOBTS_PAR_TEMP_DIG_MAX,
+ SYSMOBTS_PAR_TEMP_RF_MAX,
+ SYSMOBTS_PAR_SERNR,
+ SYSMOBTS_PAR_HOURS,
+ SYSMOBTS_PAR_BOOTS,
+ SYSMOBTS_PAR_KEY,
+ _NUM_SYSMOBTS_PAR
+};
+
+
+int sysmobts_par_get_int(enum sysmobts_par par);
+int sysmobts_par_set_int(enum sysmobts_par par, unsigned int val);
+int sysmobts_par_get_buf(enum sysmobts_par par, uint8_t *buf,
+ unsigned int size);
+int sysmobts_par_set_buf(enum sysmobts_par par, const uint8_t *buf,
+ unsigned int size);
+
+#endif