disassembler: Fix sparse warnings
[b43-tools.git] / disassembler / main.h
1 #ifndef B43_DASM_MAIN_H_
2 #define B43_DASM_MAIN_H_
3
4 #include <stdio.h>
5
6 #include "util.h"
7
8
9 /* The header that fwcutter also puts in to every .fw file */
10 struct fw_header {
11         /* Type of the firmware data */
12         uint8_t type;
13         /* Version number of the firmware data format */
14         uint8_t ver;
15         uint8_t __padding[2];
16         /* Size of the data. For ucode and PCM this is in bytes.
17          * For IV this is in number-of-ivs. (big-endian!) */
18         be32_t size;
19 } __attribute__ ((__packed__));
20
21 /* struct fw_header -> type */
22 #define FW_TYPE_UCODE   'u'
23 #define FW_TYPE_PCM     'p'
24 #define FW_TYPE_IV      'i'
25 /* struct fw_header -> ver */
26 #define FW_HDR_VER      0x01
27
28
29 extern FILE *infile;
30 extern FILE *outfile;
31 extern const char *infile_name;
32 extern const char *outfile_name;
33
34 #endif /* B43_DASM_MAIN_H_ */