Add the firmware header format which is used by Broadcom Cable Modem SoCs such as the BCM3368 SoC. We export the bcm_hcs firmware format structure because it is used by user-land tools to create firmware images for these SoCs and will later be used by a corresponding MTD parser.
Showing the changes to include/uapi/linux (2 of 3 files). Show all
Unified · Split
| @@ -62,6 +62,7 @@ header-y += auxvec.h · 61 unmodified lines | ||
| 62 | 62 | header-y += ax25.h |
| 63 | 63 | header-y += b1lli.h |
| 64 | 64 | header-y += baycom.h |
| 65 | +header-y += bcm933xx_hcs.h | |
| 65 | 66 | header-y += bfs_fs.h |
| 66 | 67 | header-y += binfmts.h |
| 67 | 68 | header-y += blkpg.h |
| @@ -0,0 +1,24 @@ | ||
| 1 | +/* | |
| 2 | + * Broadcom Cable Modem firmware format | |
| 3 | + */ | |
| 4 | + | |
| 5 | +#ifndef __BCM933XX_HCS_H | |
| 6 | +#define __BCM933XX_HCS_H | |
| 7 | + | |
| 8 | +#include <linux/types.h> | |
| 9 | + | |
| 10 | +struct bcm_hcs { | |
| 11 | + __u16 magic; | |
| 12 | + __u16 control; | |
| 13 | + __u16 rev_maj; | |
| 14 | + __u16 rev_min; | |
| 15 | + __u32 build_date; | |
| 16 | + __u32 filelen; | |
| 17 | + __u32 ldaddress; | |
| 18 | + char filename[64]; | |
| 19 | + __u16 hcs; | |
| 20 | + __u16 her_znaet_chto; | |
| 21 | + __u32 crc; | |
| 22 | +}; | |
| 23 | + | |
| 24 | +#endif /* __BCM933XX_HCS */ | |