disassembler: Add option to decode operands of unknown instructions
[b43-tools.git] / disassembler / args.h
index 8dc69f2761efc9b8d52ffc872dc4c07a6673894a..67f1e4539e93a7abb1248d2faf783f50d906326a 100644 (file)
@@ -1,10 +1,17 @@
 #ifndef B43_DASM_ARGS_H_
 #define B43_DASM_ARGS_H_
 
+enum fwformat {
+       FMT_RAW_LE32,   /* Raw microcode. No headers. 32bit little endian chunks. */
+       FMT_RAW_BE32,   /* Raw microcode. No headers. 32bit big endian chunks. */
+       FMT_B43,        /* b43/b43legacy headers. */
+};
+
 struct cmdline_args {
-       unsigned int arch;
-       int no_header;
-       int print_addresses;
+       unsigned int arch;              /* The architecture we're disassembling. */
+       enum fwformat informat;         /* The input file format. */
+       int print_addresses;            /* Print a comment with instruction address. */
+       int unknown_decode;             /* Decode operands of unknown instructions. */
 };
 
 int parse_args(int argc, char **argv);