mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
make firmware buffer persistent to not request firmware on every access
This commit is contained in:
parent
c2741d0bec
commit
499e15d791
4 changed files with 48 additions and 38 deletions
|
@ -161,6 +161,17 @@ struct registry_priv {
|
|||
|
||||
#define MAX_CONTINUAL_URB_ERR 4
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
struct dvobj_priv {
|
||||
struct adapter *if1;
|
||||
struct adapter *if2;
|
||||
|
@ -176,6 +187,8 @@ struct dvobj_priv {
|
|||
|
||||
u8 irq_alloc;
|
||||
|
||||
struct rt_firmware firmware;
|
||||
|
||||
/*-------- below is for USB INTERFACE --------*/
|
||||
|
||||
u8 nr_endpoint;
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue