b43: use enum for firmware header format

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Rafał Miłecki
2011-08-11 15:07:15 +02:00
committed by John W. Linville
parent 2391b7e8d4
commit efe0249b0f
4 changed files with 55 additions and 26 deletions

View File

@@ -694,6 +694,11 @@ struct b43_firmware_file {
enum b43_firmware_file_type type;
};
enum b43_firmware_hdr_format {
B43_FW_HDR_410,
B43_FW_HDR_351,
};
/* Pointers to the firmware data and meta information about it. */
struct b43_firmware {
/* Microcode */
@@ -710,6 +715,9 @@ struct b43_firmware {
/* Firmware patchlevel */
u16 patch;
/* Format of header used by firmware */
enum b43_firmware_hdr_format hdr_format;
/* Set to true, if we are using an opensource firmware.
* Use this to check for proprietary vs opensource. */
bool opensource;