From ad89cd978a220406a58e9a00562438d9eac2cf45 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 4 Oct 2013 18:24:34 +0200 Subject: EEPROM: add model_nr, model_flags and trx_nr to EEPROM --- src/osmo-bts-sysmo/misc/sysmobts_eeprom.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/osmo-bts-sysmo/misc/sysmobts_eeprom.h') diff --git a/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h b/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h index 4d27d028..8af97fae 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h +++ b/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h @@ -12,8 +12,16 @@ struct sysmobts_eeprom { /* offset */ uint32_t serial_nr; /* 20-23 */ uint32_t operational_hours; /* 24-27 */ uint32_t boot_count; /* 28-31 */ - uint8_t _pad1[89]; /* 32-127 */ + uint16_t model_nr; /* 32-33 */ + uint16_t model_flags; /* 34-35 */ + uint8_t trx_nr; /* 36 */ + uint8_t _pad1[84]; /* 37-120 */ uint8_t gpg_key[128]; /* 121-249 */ } __attribute__((packed)); +enum sysmobts_model_number { + MODEL_SYSMOBTS_1020 = 1002, + MODEL_SYSMOBTS_2050 = 2050, +}; + #endif -- cgit v1.2.3