args.h 900 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef BCM43xx_ASM_ARGS_H_
  2. #define BCM43xx_ASM_ARGS_H_
  3. #include "util.h"
  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. struct cmdline_args {
  10. int debug; /* Debug level. */
  11. bool print_sizes; /* Print sizes after assembling. */
  12. const char *initvals_fn_extension; /* Initvals filename extension. */
  13. const char *real_infile_name; /* The real input file name. */
  14. enum fwformat outformat; /* The output file format. */
  15. };
  16. int parse_args(int argc, char **argv);
  17. int open_input_file(void);
  18. void close_input_file(void);
  19. extern struct cmdline_args cmdargs;
  20. #define IS_DEBUG (cmdargs.debug > 0)
  21. #define IS_VERBOSE_DEBUG (cmdargs.debug > 1)
  22. #define IS_INSANE_DEBUG (cmdargs.debug > 2)
  23. #endif /* BCM43xx_ASM_ARGS_H_ */