Go to the documentation of this file.
25 #ifndef _ASM_MSP_PROM_H
26 #define _ASM_MSP_PROM_H
28 #include <linux/types.h>
30 #define DEVICEID "deviceid"
31 #define FEATURES "features"
32 #define PROM_ENV "prom_env"
33 #define PROM_ENV_FILE "/proc/"PROM_ENV
34 #define PROM_ENV_SIZE 256
36 #define CPU_DEVID_FAMILY 0x0000ff00
37 #define CPU_DEVID_REVISION 0x000000ff
39 #define FPGA_IS_POLO(revision) \
40 (((revision >= 0xb0) && (revision < 0xd0)))
41 #define FPGA_IS_5000(revision) \
42 ((revision >= 0x80) && (revision <= 0x90))
43 #define FPGA_IS_ZEUS(revision) ((revision < 0x7f))
44 #define FPGA_IS_DUET(revision) \
45 (((revision >= 0xa0) && (revision < 0xb0)))
46 #define FPGA_IS_MSP4200(revision) ((revision >= 0xd0))
47 #define FPGA_IS_MSP7100(revision) ((revision >= 0xd0))
49 #define MACHINE_TYPE_POLO "POLO"
50 #define MACHINE_TYPE_DUET "DUET"
51 #define MACHINE_TYPE_ZEUS "ZEUS"
52 #define MACHINE_TYPE_MSP2000REVB "MSP2000REVB"
53 #define MACHINE_TYPE_MSP5000 "MSP5000"
54 #define MACHINE_TYPE_MSP4200 "MSP4200"
55 #define MACHINE_TYPE_MSP7120 "MSP7120"
56 #define MACHINE_TYPE_MSP7130 "MSP7130"
57 #define MACHINE_TYPE_OTHER "OTHER"
59 #define MACHINE_TYPE_POLO_FPGA "POLO-FPGA"
60 #define MACHINE_TYPE_DUET_FPGA "DUET-FPGA"
61 #define MACHINE_TYPE_ZEUS_FPGA "ZEUS_FPGA"
62 #define MACHINE_TYPE_MSP2000REVB_FPGA "MSP2000REVB-FPGA"
63 #define MACHINE_TYPE_MSP5000_FPGA "MSP5000-FPGA"
64 #define MACHINE_TYPE_MSP4200_FPGA "MSP4200-FPGA"
65 #define MACHINE_TYPE_MSP7100_FPGA "MSP7100-FPGA"
66 #define MACHINE_TYPE_OTHER_FPGA "OTHER-FPGA"
69 #define FAMILY_FPGA 0x0000
70 #define FAMILY_ZEUS 0x1000
71 #define FAMILY_POLO 0x2000
72 #define FAMILY_DUET 0x4000
73 #define FAMILY_TRIAD 0x5000
74 #define FAMILY_MSP4200 0x4200
75 #define FAMILY_MSP4200_FPGA 0x4f00
76 #define FAMILY_MSP7100 0x7100
77 #define FAMILY_MSP7100_FPGA 0x7f00
80 #define TYPE_MSP7120 0x7120
81 #define TYPE_MSP7130 0x7130
84 #define ENETTXD_KEY 'e'
86 #define PCIMUX_KEY 'p'
92 #define FEATURE_NOEXIST '-'
93 #define FEATURE_EXIST '+'
98 #define ENETTXD_FALLING 'F'
99 #define ENETTXD_RISING 'R'
102 #define PCI_PERIPHERAL 'P'
104 #define PCIMUX_FULL 'F'
105 #define PCIMUX_SINGLE 'S'
110 #define SEC_TRIAD 'T'
112 #define SPAD_POLO 'P'
116 #define TDM_TRIAD 'T'
119 #define ZSP_TRIAD 'T'
125 unsigned long end_mem);
144 #define ppfinit(f, x...) \
146 static char _f[] __initdata = KERN_INFO f; \
151 #define PROM_MAX_PMEMBLOCKS 7