From 6eaa68729d0b3faa2af805b2c065c05a823c5ecc Mon Sep 17 00:00:00 2001 From: Mike Fiore Date: Thu, 24 Apr 2014 10:47:45 -0500 Subject: mts-io: add mts_eeprom.h to separate out eeprom information this is useful because mts_io.h now includes kernel headers and can't be included in userspace apps --- io-module/mts_eeprom.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 io-module/mts_eeprom.h (limited to 'io-module/mts_eeprom.h') diff --git a/io-module/mts_eeprom.h b/io-module/mts_eeprom.h new file mode 100644 index 0000000..56b2871 --- /dev/null +++ b/io-module/mts_eeprom.h @@ -0,0 +1,28 @@ +#ifndef __MTS_EEPROM_H +#define __MTS_EEPROM_H + +/* on-board EEPROM */ +struct mts_id_eeprom_layout { + char vendor_id[32]; + char product_id[32]; + char device_id[32]; + char hw_version[32]; + uint8_t mac_addr[6]; + char imei[32]; + uint8_t capa[32]; + uint8_t mac_bluetooth[6]; + uint8_t mac_wifi[6]; + uint8_t reserved[302]; +}; + +/* daughter card EEPROM */ +struct mts_dc_eeprom_layout { + char vendor_id[32]; + char product_id[32]; + char device_id[32]; + char hw_version[32]; + uint8_t mac_addr[6]; + uint8_t reserved[378]; +}; + +#endif -- cgit v1.2.3