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 * You should have received a copy of the GNU General Public License along with 15 * this program; if not, write to the Free Software Foundation, Inc., 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA 17 * 18 * The full GNU General Public License is included in this distribution in the 19 * file called LICENSE. 20 * 21 * Contact Information: 22 * wlanfae <wlanfae@realtek.com> 23 * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, 24 * Hsinchu 300, Taiwan. 25 * Larry Finger <Larry.Finger@lwfinger.net> 26 * 27 *****************************************************************************/ 28#include "drv_types.h" 29#include <linux/types.h> 30 31#ifndef __RTL92C__FW__H__ 32#define __RTL92C__FW__H__ 33 34#define FW_8192C_START_ADDRESS 0x1000 35#define FW_8192C_PAGE_SIZE 4096 36#define FW_8192C_POLLING_DELAY 5 37 38struct rtl92c_firmware_header { 39 __le16 signature; 40 u8 category; 41 u8 function; 42 u16 version; 43 u8 subversion; 44 u8 rsvd1; 45 u8 month; 46 u8 date; 47 u8 hour; 48 u8 minute; 49 u16 ramcodesize; 50 u16 rsvd2; 51 u32 svnindex; 52 u32 rsvd3; 53 u32 rsvd4; 54 u32 rsvd5; 55}; 56 57int rtl88eu_download_fw(struct adapter *adapt); 58 59#endif 60