1 /******************************************************************************
2 * Copyright(c) 2008 - 2010 Realtek Corporation. All rights reserved.
4 * This program is distributed in the hope that it will be useful, but WITHOUT
5 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
6 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
9 * The full GNU General Public License is included in this distribution in the
10 * file called LICENSE.
12 * Contact Information:
13 * wlanfae <wlanfae@realtek.com>
14 ******************************************************************************/
15 #ifndef __INC_FIRMWARE_H
16 #define __INC_FIRMWARE_H
18 #define RTL8192E_BOOT_IMG_FW "RTL8192E/boot.img"
19 #define RTL8192E_MAIN_IMG_FW "RTL8192E/main.img"
20 #define RTL8192E_DATA_IMG_FW "RTL8192E/data.img"
22 enum firmware_init_step {
23 FW_INIT_STEP0_BOOT = 0,
24 FW_INIT_STEP1_MAIN = 1,
25 FW_INIT_STEP2_DATA = 2,
30 OPT_FIRMWARE_RESET = 1,
33 enum desc_packet_type {
34 DESC_PACKET_TYPE_INIT = 0,
35 DESC_PACKET_TYPE_NORMAL = 1,
38 enum firmware_status {
40 FW_STATUS_1_MOVE_BOOT_CODE = 1,
41 FW_STATUS_2_MOVE_MAIN_CODE = 2,
42 FW_STATUS_3_TURNON_CPU = 3,
43 FW_STATUS_4_MOVE_DATA_CODE = 4,
44 FW_STATUS_5_READY = 5,
47 #define MAX_FW_SIZE 64000
55 enum firmware_status status;
56 struct rt_fw_blob blobs[FW_BLOBS];
59 bool rtl92e_init_fw(struct net_device *dev);