ramips: ramips_esw: add more definitions
[openwrt.git] / target / linux / adm8668 / files / arch / mips / include / asm / mach-adm8668 / bsp_sup.h
1 /************************************************************************
2 *
3 * Copyright (c) 2005
4 * Infineon Technologies AG
5 * St. Martin Strasse 53; 81669 Muenchen; Germany
6 *
7 ************************************************************************/
8 #ifndef _BSP_SUP_H_
9 #define _BSP_SUP_H_
10
11 #define ADD_WAN_MAC
12 #define CONFIG_IFX_GAN
13 #define UBOOT_CFG_ENV_SIZE (0x400-4)
14 #define ADM8668_BL_MAGIC 0x6c62676d
15 #define ADM8668_MAC_MAGIC 0x69666164
16 #define ADM8668_VER_MAGIC 0x7276676d
17 #define ADM8668_ID_MAGIC 0x6469676d
18 #define ADM8668_IF_MAGIC 0x6669676d
19 #define ADM8668_WANMAC_MAGIC 0x69666164
20 #define ADM8668_IMEI_MAGIC 0x6669676e
21
22 #define BSP_IFNAME_MAX_LEN 15
23 #define BOOT_LINE_SIZE 255
24 #define BSP_STR_LEN 79
25
26
27 /*
28 * Boot mode configuration
29 */
30 typedef struct BTMODE_CFG_S
31 {
32 unsigned long btmode;
33 unsigned long dlmethod;
34 } BTMODE_CFG_T;
35
36
37 /*
38 * Interface configuration
39 */
40 typedef struct IF_CFG_S
41 {
42 char ifname[BSP_IFNAME_MAX_LEN+1];
43 unsigned long ip;
44 unsigned long mask;
45 unsigned long gateway;
46 } IF_CFG_T;
47
48
49 /*
50 * Board configuration
51 */
52 typedef struct BOARD_CFG_S
53 {
54 unsigned long blmagic;
55 unsigned char blreserved[UBOOT_CFG_ENV_SIZE];
56
57 unsigned long macmagic;
58 unsigned char mac[8];
59 unsigned long macnum;
60
61 unsigned long idmagic;
62 unsigned char serial[BSP_STR_LEN+1];
63
64 unsigned long vermagic;
65 unsigned char ver[BSP_STR_LEN+1];
66
67 unsigned long ifmagic;
68 IF_CFG_T ifcfg[8];
69
70 unsigned long btmagic;
71 BTMODE_CFG_T bootmode;
72
73 unsigned long wanmagic;
74 unsigned char wanmac[8];
75
76 unsigned long imeimagic;
77 unsigned char imei0[16];
78 unsigned char imei1[16];
79 } BOARD_CFG_T, *PBOARD_CFG_T;
80
81 #define ADM8668_BOARD_CFG_ADDR (ADM8668_SMEM0_BASE + CONFIG_ADM8668_BSP_OFFSET*1024)
82 #define ADM8668_BOARD_CFG_SIZE (CONFIG_ADM8668_BSP_SIZE*1024)
83
84 #endif /* _BSP_SUP_H_ */
This page took 0.057454 seconds and 5 git commands to generate.