make firmware buffer persistent to not request firmware on every access

This commit is contained in:
Stas Sergeev 2014-02-14 20:17:29 +04:00 committed by Larry Finger
parent c2741d0bec
commit 499e15d791
4 changed files with 48 additions and 38 deletions

View file

@ -76,17 +76,6 @@
(le16_to_cpu(_pFwHdr->Signature)&0xFFF0) == 0x2300 || \
(le16_to_cpu(_pFwHdr->Signature)&0xFFF0) == 0x88E0)
enum firmware_source {
FW_SOURCE_IMG_FILE = 0,
FW_SOURCE_HEADER_FILE = 1, /* from header file */
};
struct rt_firmware {
enum firmware_source eFWSource;
u8 *szFwBuffer;
u32 ulFwLength;
};
/* This structure must be careful with byte-ordering */
struct rt_firmware_hdr {