X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=fwcutter%2Ffwcutter.h;h=ac2df63ceb217ac47615aac77951f249d03cf66c;hb=129d17b571722f864ae81f47d8c6c048d3d0a9df;hp=2f23d81d3f98c128fc54fdc728a554f4f7f6a961;hpb=b9e19faa25ad9e1b24f08dc77267760df1b98504;p=b43-tools.git diff --git a/fwcutter/fwcutter.h b/fwcutter/fwcutter.h index 2f23d81..ac2df63 100644 --- a/fwcutter/fwcutter.h +++ b/fwcutter/fwcutter.h @@ -1,8 +1,9 @@ #ifndef _FWCUTTER_H_ #define _FWCUTTER_H_ -#define FW_FLAG_LE 0x01 /* little endian? convert */ -#define FW_FLAG_V4 0x02 /* b43 vs. b43legacy */ +#define FW_FLAG_LE 0x01 /* little endian? convert */ +#define FW_FLAG_V4 0x02 /* b43 vs. b43legacy */ +#define FW_FLAG_UNSUPPORTED 0x04 /* not supported/working */ #define fwcutter_stringify_1(x) #x #define fwcutter_stringify(x) fwcutter_stringify_1(x) @@ -20,10 +21,17 @@ typedef uint32_t be32_t; /* Big-endian 32bit */ #define ARG_NOMATCH 1 #define ARG_ERROR -1 +enum fwcutter_mode { + FWCM_EXTRACT = 0, /* default */ + FWCM_LIST, + FWCM_IDENTIFY, +}; + struct cmdline_args { const char *infile; const char *target_dir; - int identify_only; + enum fwcutter_mode mode; + int unsupported; }; struct insn { @@ -57,6 +65,7 @@ struct extract { struct file { const char *name; + const char *id; const char *ucode_version; const char *md5; const struct extract *extract;