Setting up repository
[linux-libre-firmware.git] / b43-tools / assembler / args.h
1 #ifndef BCM43xx_ASM_ARGS_H_
2 #define BCM43xx_ASM_ARGS_H_
3
4 #include "util.h"
5
6
7 enum fwformat {
8         FMT_RAW_LE32,   /* Raw microcode. No headers. 32bit little endian chunks. */
9         FMT_RAW_BE32,   /* Raw microcode. No headers. 32bit big endian chunks. */
10         FMT_B43,        /* b43/b43legacy headers. */
11 };
12
13 struct cmdline_args {
14         int debug;                              /* Debug level. */
15         bool print_sizes;                       /* Print sizes after assembling. */
16         const char *initvals_fn_extension;      /* Initvals filename extension. */
17         const char *real_infile_name;           /* The real input file name. */
18         enum fwformat outformat;                /* The output file format. */
19 };
20
21 int parse_args(int argc, char **argv);
22 int open_input_file(void);
23 void close_input_file(void);
24
25 extern struct cmdline_args cmdargs;
26
27 #define IS_DEBUG                (cmdargs.debug > 0)
28 #define IS_VERBOSE_DEBUG        (cmdargs.debug > 1)
29 #define IS_INSANE_DEBUG         (cmdargs.debug > 2)
30
31 #endif /* BCM43xx_ASM_ARGS_H_ */