2012-05-23 03:50:53 +02:00
|
|
|
#ifndef PIOS_BOARD_INFO_H
|
|
|
|
#define PIOS_BOARD_INFO_H
|
|
|
|
|
2013-05-19 16:37:30 +02:00
|
|
|
#include <stdint.h> /* uint* */
|
2012-05-23 03:50:53 +02:00
|
|
|
|
2011-05-15 02:32:17 +02:00
|
|
|
#define PIOS_BOARD_INFO_BLOB_MAGIC 0xBDBDBDBD
|
|
|
|
|
|
|
|
struct pios_board_info {
|
2013-05-19 16:37:30 +02:00
|
|
|
uint32_t magic;
|
|
|
|
uint8_t board_type;
|
|
|
|
uint8_t board_rev;
|
|
|
|
uint8_t bl_rev;
|
|
|
|
uint8_t hw_type;
|
|
|
|
uint32_t fw_base;
|
|
|
|
uint32_t fw_size;
|
|
|
|
uint32_t desc_base;
|
|
|
|
uint32_t desc_size;
|
|
|
|
uint32_t ee_base;
|
|
|
|
uint32_t ee_size;
|
2011-05-15 02:32:17 +02:00
|
|
|
} __attribute__((packed));
|
|
|
|
|
|
|
|
extern const struct pios_board_info pios_board_info_blob;
|
2012-05-23 03:50:53 +02:00
|
|
|
|
|
|
|
#endif /* PIOS_BOARD_INFO_H */
|