Linux-libre 4.14.82-gnu
[librecmc/linux-libre.git] / drivers / staging / rtl8188eu / include / fw.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2009-2013  Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  *
14  * The full GNU General Public License is included in this distribution in the
15  * file called LICENSE.
16  *
17  * Contact Information:
18  * wlanfae <wlanfae@realtek.com>
19  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20  * Hsinchu 300, Taiwan.
21  * Larry Finger <Larry.Finger@lwfinger.net>
22  *
23  *****************************************************************************/
24 #include "drv_types.h"
25 #include <linux/types.h>
26
27 #ifndef __RTL92C__FW__H__
28 #define __RTL92C__FW__H__
29
30 #define FW_8192C_START_ADDRESS          0x1000
31 #define FW_8192C_PAGE_SIZE                      4096
32 #define FW_8192C_POLLING_DELAY          5
33
34 struct rtl92c_firmware_header {
35         __le16 signature;
36         u8 category;
37         u8 function;
38         u16 version;
39         u8 subversion;
40         u8 rsvd1;
41         u8 month;
42         u8 date;
43         u8 hour;
44         u8 minute;
45         u16 ramcodesize;
46         u16 rsvd2;
47         u32 svnindex;
48         u32 rsvd3;
49         u32 rsvd4;
50         u32 rsvd5;
51 };
52
53 int rtl88eu_download_fw(struct adapter *adapt);
54
55 #endif