ramips: fix USW-Flex reversed switch-port order
[openwrt/staging/hauke.git] / tools / firmware-utils / src / zynos.h
old mode 100755 (executable)
new mode 100644 (file)
index da8c8fd..6c9c1a0
@@ -1,17 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0-only
 /*
- *  $Id$
  *
- *  Copyright (C) 2007 OpenWrt.org
- *  Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
+ *  Copyright (C) 2007-2008 OpenWrt.org
+ *  Copyright (C) 2007-2008 Gabor Juhos <juhosg at openwrt.org>
  *
  *  This code was based on the information of the ZyXEL's firmware
  *  image format written by Kolja Waschk, can be found at:
  *  http://www.ixo.de/info/zyxel_uclinux
- *
- *  This program is free software; you can redistribute it and/or modify it
- *  under the terms of the GNU General Public License version 2 as published
- *  by the Free Software Foundation.
- *
  */
 
 #ifndef _ZYNOS_H
@@ -21,6 +16,8 @@
 #define BOOTBASE_MAC_LEN       6
 #define BOOTBASE_FEAT_LEN      22
 
+#define BOOTEXT_DEF_SIZE       0x18000
+
 struct zyn_bootbase_info {
        char            vendor[BOOTBASE_NAME_LEN]; /* Vendor name */
        char            model[BOOTBASE_NAME_LEN]; /* Model name */
@@ -152,12 +149,12 @@ struct zyn_mmt_item {
 #define ZYNOS_MODEL_P_2602HW_61C       /* n.a. */
 #define ZYNOS_MODEL_P_2602HW_63                /* n.a. */
 #define ZYNOS_MODEL_P_2602HW_63C       ZYNOS_MODEL_P_2602H_63C
-#define ZYNOS_MODEL_P_2602HW_D1A       /* n.a. */
+#define ZYNOS_MODEL_P_2602HW_D1A       MID( 6301)
 #define ZYNOS_MODEL_P_2602HW_D3A       /* n.a. */
 #define ZYNOS_MODEL_P_2602HWL_61       MID( 1181)
 #define ZYNOS_MODEL_P_2602HWL_61C      ZYNOS_MODEL_P_2602H_61C
 #define ZYNOS_MODEL_P_2602HWL_63C      ZYNOS_MODEL_P_2602H_63C
-#define ZYNOS_MODEL_P_2602HWL_D1A      MID( 6301)
+#define ZYNOS_MODEL_P_2602HWL_D1A      ZYNOS_MODEL_P_2602HW_D1A
 #define ZYNOS_MODEL_P_2602HWL_D3A      MID( 7581)
 #define ZYNOS_MODEL_P_2602HWN_D7A      MID(30464)
 #define ZYNOS_MODEL_P_2602HWNLI_D7A    MID( 6813)
@@ -215,4 +212,10 @@ struct zyn_mmt_item {
 /* OEM boards */
 #define ZYNOS_MODEL_O2SURF             ZYNOS_MODEL_P_2602HWN_D7A
 
+/* Atheros AR2318 based boards */
+#define ZYNOS_MODEL_NBG_318S           MID(59392)
+
+/* Atheros AR71xx based boards */
+#define ZYNOS_MODEL_NBG_460N           MID(61441)
+
 #endif /* _ZYNOS_H */