• source navigation  • diff markup  • identifier search  • freetext search  • 

Sources/firmware-utils/src/csysimg.h

  1 // SPDX-License-Identifier: GPL-2.0-or-later
  2 /*
  3  *
  4  *  Copyright (C) 2007,2009 Gabor Juhos <juhosg@openwrt.org>
  5  *
  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>
  9  */
 10 
 11 #define SIG_LEN         4
 12 
 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"
 19 
 20 
 21 /*
 22  * Generic signatures
 23  */
 24 #define SIG_CSYS        "CSYS"
 25 #define SIG_CONF        "HS\x00\x00"
 26 #define SIG_BOOT_RTL    "\x00\x00\x40\x21"
 27 
 28 /*
 29  * Web page signatures
 30  */
 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 */
 51 
 52 #define SIG_H2BR4       SIG_BR6524K
 53 #define SIG_H2WR54G     SIG_BR6524WG
 54 
 55 #define SIG_XRT401D     SIG_BR6104K
 56 #define SIG_XRT402D     SIG_BR6524K
 57 
 58 /*
 59  * CSYS image file header
 60  */
 61 struct csys_header {
 62         unsigned char sig[SIG_LEN];
 63         uint32_t addr;
 64         uint32_t size;
 65 };
 66 

This page was automatically generated by LXR 0.3.1.  •  OpenWrt