Commit 77e6ce90 authored by Paul Sokolovsky's avatar Paul Sokolovsky

fernly-usb-loader: Add comments about GFH file headers.

parent a02ae82f
......@@ -53,15 +53,17 @@ enum mtk_commands {
mtk_firmware_version = 0xff,
};
/* "general file header", struct gfh_header is actually a lead-in
for different header types (as specified by type field). */
struct gfh_header {
uint32_t magic_ver;
uint16_t size;
uint16_t type;
uint32_t magic_ver; /* 'MMM', highest byte - version */
uint16_t size; /* Total header size, incl. struct gfh_header */
uint16_t type; /* 0 - gfh_file_info */
};
struct gfh_file_info {
struct gfh_header header;
uint8_t id[12]; /* include '\0' */
uint8_t id[12]; /* "FILE_INFO", zero-padded */
uint32_t file_ver;
uint16_t file_type;
uint8_t flash_dev;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment