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