Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
F
fernly
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Craig Comstock
fernly
Commits
2df4be2d
Commit
2df4be2d
authored
Apr 07, 2015
by
Sean Cross
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #24 from pfalcon/gfh-comments
fernly-usb-loader: Add comments about GFH file headers.
parents
ed30df48
77e6ce90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
fernly-usb-loader.c
fernly-usb-loader.c
+6
-4
No files found.
fernly-usb-loader.c
View file @
2df4be2d
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment