Disassembler: Fixes for r15 architecture
[b43-tools.git] / disassembler / args.h
1 #ifndef B43_DASM_ARGS_H_
2 #define B43_DASM_ARGS_H_
3
4 enum fwformat {
5         FMT_RAW_LE32,   /* Raw microcode. No headers. 32bit little endian chunks. */
6         FMT_RAW_BE32,   /* Raw microcode. No headers. 32bit big endian chunks. */
7         FMT_B43,        /* b43/b43legacy headers. */
8 };
9
10 struct cmdline_args {
11         unsigned int arch;
12         enum fwformat informat;
13         int print_addresses;
14 };
15
16 int parse_args(int argc, char **argv);
17
18 int open_input_file(void);
19 void close_input_file(void);
20 int open_output_file(void);
21 void close_output_file(void);
22
23 extern int _debug;
24 extern struct cmdline_args cmdargs;
25
26 #define IS_DEBUG                (_debug > 0)
27 #define IS_VERBOSE_DEBUG        (_debug > 1)
28 #define IS_INSANE_DEBUG         (_debug > 2)
29
30 #endif /* B43_DASM_ARGS_H_ */