17e4e7ec913320d8e845eeb2eef29543d9bb3abe
[openwrt.git] / target / linux / brcm63xx / files / include / asm-mips / mach-bcm63xx / board_bcm963xx.h
1 #ifndef BOARD_BCM963XX_H_
2 #define BOARD_BCM963XX_H_
3
4 #include <linux/types.h>
5 #include <bcm63xx_dev_enet.h>
6
7 /*
8 * flash mapping
9 */
10 #define BCM963XX_CFE_VERSION_OFFSET 0x570
11 #define BCM963XX_NVRAM_OFFSET 0x580
12
13 /*
14 * nvram structure
15 */
16 struct bcm963xx_nvram {
17 u32 version;
18 u8 reserved1[256];
19 u8 name[16];
20 u32 main_tp_number;
21 u32 psi_size;
22 u32 mac_addr_count;
23 u8 mac_addr_base[6];
24 u8 reserved2[2];
25 u32 checksum_old;
26 u8 reserved3[720];
27 u32 checksum_high;
28 };
29
30 /*
31 * board definition
32 */
33 struct board_info {
34 u8 name[16];
35 unsigned int expected_cpu_id;
36
37 /* enabled feature/device */
38 unsigned int has_enet0:1;
39 unsigned int has_enet1:1;
40 unsigned int has_pci:1;
41 unsigned int has_pccard:1;
42 unsigned int has_ohci0:1;
43 unsigned int has_ehci0:1;
44
45 /* ethernet config */
46 struct bcm63xx_enet_platform_data enet0;
47 struct bcm63xx_enet_platform_data enet1;
48 };
49
50 #endif /* ! BOARD_BCM963XX_H_ */
This page took 0.058096 seconds and 3 git commands to generate.