1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright (C) 2007,2009 Gabor Juhos <juhosg@openwrt.org>
6 * This program was based on the code found in various Linux
7 * source tarballs released by Edimax for it's devices.
8 * Original author: David Hsu <davidhsu@realtek.com.tw>
13 #define ADM_CODE_ADDR 0x80500000
14 #define ADM_WEBP_ADDR 0x10000
15 #define ADM_WEBP_SIZE 0x10000
16 #define ADM_BOOT_SIZE 0x8000
17 #define ADM_CONF_SIZE 0x8000
18 #define ADM_BOOT_SIG "\x00\x60\x1A\x40"
24 #define SIG_CSYS "CSYS"
25 #define SIG_CONF "HS\x00\x00"
26 #define SIG_BOOT_RTL "\x00\x00\x40\x21"
31 #define SIG_BR6104K "WB4K"
32 #define SIG_BR6104KP "WBKP"
33 #define SIG_BR6104Wg "WBGW"
34 #define SIG_BR6104IPC "WBIP"
35 #define SIG_BR6114WG SIG_BR6104IPC
36 #define SIG_BR6524K "2-K-"
37 #define SIG_BR6524KP "2-KP" /* FIXME: valid? */
38 #define SIG_BR6524N "WNRA"
39 #define SIG_BR6524WG "2-WG" /* FIXME: valid? */
40 #define SIG_BR6524WP "2-WP" /* FIXME: valid? */
41 #define SIG_BR6541K "4--K"
42 #define SIG_BR6541KP "4-KP" /* FIXME: valid? */
43 #define SIG_BR6541WP "4-WP" /* FIXME: valid? */
44 #define SIG_C54BSR4 SIG_BR6104IPC
45 #define SIG_EW7207APg "EWAS"
46 #define SIG_PS1205UWg "4000"
47 #define SIG_PS3205U "5010"
48 #define SIG_PS3205UWg "5011"
49 #define SIG_RALINK "RNRA"
50 #define SIG_5GXI "5GXI" /* fake signature */
52 #define SIG_H2BR4 SIG_BR6524K
53 #define SIG_H2WR54G SIG_BR6524WG
55 #define SIG_XRT401D SIG_BR6104K
56 #define SIG_XRT402D SIG_BR6524K
59 * CSYS image file header
62 unsigned char sig
[SIG_LEN
];