/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details. * * Copyright (C) 1995, 1996, 2003 by Ralf Baechle * Copyright (C) 1995, 1996 Andreas Busse * Copyright (C) 1995, 1996 Stoned Elipot * Copyright (C) 1995, 1996 Paul M. Antoine. */ #ifndef _ASM_BOOTINFO_H #define _ASM_BOOTINFO_H #include #include /* * The MACH_ IDs are sort of equivalent to PCI product IDs. As such the * numbers do not necessarily reflect technical relations or similarities * between systems. */ /* * Valid machtype values for group unknown */ #define MACH_UNKNOWN 0 /* whatever... */ #define CL_SIZE COMMAND_LINE_SIZE extern char *system_type; const char *get_system_type(void); extern unsigned long mips_machtype; #define BOOT_MEM_MAP_MAX 32 #define BOOT_MEM_RAM 1 #define BOOT_MEM_ROM_DATA 2 #define BOOT_MEM_RESERVED 3 /* * A memory map that's built upon what was determined * or specified on the command line. */ struct boot_mem_map { int nr_map; struct boot_mem_map_entry { phys_t addr; /* start of memory segment */ phys_t size; /* size of memory segment */ long type; /* type of memory segment */ } map[BOOT_MEM_MAP_MAX]; }; extern struct boot_mem_map boot_mem_map; extern void add_memory_region(phys_t start, phys_t size, long type); extern void bsp_init(void); extern void bsp_free_prom_memory(void); extern void free_init_pages(const char *what, unsigned long begin, unsigned long end); /* * Initial kernel command line, usually setup by bsp_init() */ extern char arcs_cmdline[CL_SIZE]; /* * Registers a0, a1, a3 and a4 as passed to the kernel entry by firmware */ extern unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3; /* * Platform memory detection hook called by setup_arch */ extern void bsp_setup(void); #endif /* _ASM_BOOTINFO_H */