diff options
author | Florian Fainelli <florian@openwrt.org> | 2013-06-18 12:55:41 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2013-07-01 09:10:53 -0400 |
commit | d753601a2a5ff67bbc96ce6512a16305bfd293e7 (patch) | |
tree | c1c0b4822966bedbafe90df2876123085905e470 /include/uapi/linux/bcm933xx_hcs.h | |
parent | 7b9334215f53135fb9cbdf0b44833cbc8e7d57b2 (diff) |
MIPS: BCM63XX: recognize Cable Modem firmware format
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.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: cernekee@gmail.com
Cc: jogo@openwrt.org
Patchwork: https://patchwork.linux-mips.org/patch/5496/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/uapi/linux/bcm933xx_hcs.h')
-rw-r--r-- | include/uapi/linux/bcm933xx_hcs.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/uapi/linux/bcm933xx_hcs.h b/include/uapi/linux/bcm933xx_hcs.h new file mode 100644 index 000000000000..d22821831549 --- /dev/null +++ b/include/uapi/linux/bcm933xx_hcs.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 */ | ||