Forgot that includes
[openwrt/svn-archive/archive.git] / target / linux / adm5120-2.6 / files / include / asm-mips / mach-adm5120 / zynos.h
1 /*
2 * $Id$
3 *
4 * Copyright (C) 2007 OpenWrt.org
5 * Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2 of the License, or (at your
10 * option) any later version.
11 *
12 */
13
14 #ifndef _ZYNOS_H
15 #define _ZYNOS_H
16
17 #define ZYNOS_NAME_LEN 32
18 #define ZYNOS_FEAT_BYTES 22
19 #define ZYNOS_MAC_LEN 6
20
21 struct zynos_board_info {
22 unsigned char vendor[ZYNOS_NAME_LEN];
23 unsigned char product[ZYNOS_NAME_LEN];
24 u32 bootext_addr;
25 u32 res0;
26 u16 board_id;
27 u8 res1[6];
28 u8 feat_other[ZYNOS_FEAT_BYTES];
29 u8 feat_main;
30 u8 res2;
31 u8 mac[ZYNOS_MAC_LEN];
32 u8 country;
33 u8 dbgflag;
34 } __attribute__ ((packed));
35
36 /*
37 * Vendor names
38 */
39 #define ZYNOS_VENDOR_ZYXEL "ZyXEL"
40 #define ZYNOS_VENDOR_LUCENT "LUCENT"
41 #define ZYNOS_VENDOR_NETGEAR "D-Link"
42
43 /*
44 * Board IDs (big-endian)
45 */
46 #define ZYNOS_BOARD_HS100 0x9FF1 /* HomeSafe 100/100W */
47 #define ZYNOS_BOARD_P334 0x9FF5 /* Prestige 334 */
48 #define ZYNOS_BOARD_P334U 0x9FDD /* Prestige 334U */
49 #define ZYNOS_BOARD_P334W 0x9FF3 /* Prestige 334W */
50 #define ZYNOS_BOARD_P334WH 0x00E0 /* Prestige 334WH */
51 #define ZYNOS_BOARD_P334WHD 0x00E1 /* Prestige 334WHD */
52 #define ZYNOS_BOARD_P334WT 0x9FEF /* Prestige 334WT */
53 #define ZYNOS_BOARD_P335 0x9FED /* Prestige 335/335WT */
54 #define ZYNOS_BOARD_P335PLUS 0x0025 /* Prestige 335Plus */
55 #define ZYNOS_BOARD_P335U 0x9FDC /* Prestige 335U */
56
57 #endif /* _ZYNOS_H */