aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/misc/sysmobts_eeprom.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_eeprom.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_eeprom.h')
-rw-r--r--src/osmo-bts-sysmo/misc/sysmobts_eeprom.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h b/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h
new file mode 100644
index 00000000..4d27d028
--- /dev/null
+++ b/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h
@@ -0,0 +1,19 @@
+#ifndef _SYSMOBTS_EEPROM_H
+#define _SYSMOBTS_EEPROM_H
+
+#include <stdint.h>
+
+struct sysmobts_eeprom { /* offset */
+ uint8_t eth_mac[6]; /* 0-5 */
+ uint8_t _pad0[10]; /* 6-15 */
+ uint16_t clk_cal_fact; /* 16-17 */
+ uint8_t temp1_max; /* 18 */
+ uint8_t temp2_max; /* 19 */
+ uint32_t serial_nr; /* 20-23 */
+ uint32_t operational_hours; /* 24-27 */
+ uint32_t boot_count; /* 28-31 */
+ uint8_t _pad1[89]; /* 32-127 */
+ uint8_t gpg_key[128]; /* 121-249 */
+} __attribute__((packed));
+
+#endif