/*------------------------------------------------------------------------------------------*\ * \*------------------------------------------------------------------------------------------*/ #ifndef _ENV_H_ #define _ENV_H_ #ifdef CONFIG_OF extern const struct machine_desc *setup_machine_fdt(unsigned int dt_phys); extern void __init arm_dt_init_cpu_maps(void); extern char *prom_getenv(char *name); /* Memory descriptor management. */ #define PROM_MAX_PMEMBLOCKS 32 struct prom_pmemblock { unsigned long base; /* Within KSEG0. */ unsigned int size; /* In bytes. */ unsigned int type; /* free or prom memory */ }; #else /* CONFIG_OF */ static inline const struct machine_desc *setup_machine_fdt(unsigned int dt_phys) { return NULL; } static inline void arm_dt_init_cpu_maps(void) { } #endif #endif #include