summaryrefslogtreecommitdiffstats
path: root/sys/dev/iwi
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2007-02-20 14:29:09 +0000
committerluigi <luigi@FreeBSD.org>2007-02-20 14:29:09 +0000
commit31fab4deb936afac90a80c0a09e5f4f5a3e6effc (patch)
tree27721fe82570a8f7425124a4c7c3ef1b693733d0 /sys/dev/iwi
parentc208b1a04f934b1102480a3a974f937927cb6c45 (diff)
downloadFreeBSD-src-31fab4deb936afac90a80c0a09e5f4f5a3e6effc.zip
FreeBSD-src-31fab4deb936afac90a80c0a09e5f4f5a3e6effc.tar.gz
Document the endiannes of firmware headers
(in preparation for changes in the C code).
Diffstat (limited to 'sys/dev/iwi')
-rw-r--r--sys/dev/iwi/if_iwireg.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/iwi/if_iwireg.h b/sys/dev/iwi/if_iwireg.h
index 05ce168..5c7435e 100644
--- a/sys/dev/iwi/if_iwireg.h
+++ b/sys/dev/iwi/if_iwireg.h
@@ -134,7 +134,10 @@
#define IWI_RATE_OFDM48 1
#define IWI_RATE_OFDM54 3
-/* firmware binary image header, fields in little endian */
+/*
+ * Old version firmware images start with this header,
+ * fields are in little endian (le32) format.
+ */
struct iwi_firmware_ohdr {
uint32_t version;
uint32_t mode;
@@ -150,6 +153,11 @@ struct iwi_firmware_ohdr {
#define IWI_FW_MODE_IBSS 1
#define IWI_FW_MODE_MONITOR 2
+/*
+ * New version firmware images contain boot, ucode and firmware
+ * all in one chunk. The header at the beginning gives the version
+ * and the size of each (sub)image, in le32 format.
+ */
struct iwi_firmware_hdr {
uint32_t version; /* version stamp */
uint32_t bsize; /* size of boot image */
OpenPOWER on IntegriCloud