Path: blob/master/arch/mips/include/asm/bootinfo.h
17311 views
/*1* This file is subject to the terms and conditions of the GNU General Public2* License. See the file COPYING in the main directory of this archive3* for more details.4*5* Copyright (C) 1995, 1996, 2003 by Ralf Baechle6* Copyright (C) 1995, 1996 Andreas Busse7* Copyright (C) 1995, 1996 Stoned Elipot8* Copyright (C) 1995, 1996 Paul M. Antoine.9* Copyright (C) 2009 Zhang Le10*/11#ifndef _ASM_BOOTINFO_H12#define _ASM_BOOTINFO_H1314#include <linux/types.h>15#include <asm/setup.h>1617/*18* The MACH_ IDs are sort of equivalent to PCI product IDs. As such the19* numbers do not necessarily reflect technical relations or similarities20* between systems.21*/2223/*24* Valid machtype values for group unknown25*/26#define MACH_UNKNOWN 0 /* whatever... */2728/*29* Valid machtype for group DEC30*/31#define MACH_DSUNKNOWN 032#define MACH_DS23100 1 /* DECstation 2100 or 3100 */33#define MACH_DS5100 2 /* DECsystem 5100 */34#define MACH_DS5000_200 3 /* DECstation 5000/200 */35#define MACH_DS5000_1XX 4 /* DECstation 5000/120, 125, 133, 150 */36#define MACH_DS5000_XX 5 /* DECstation 5000/20, 25, 33, 50 */37#define MACH_DS5000_2X0 6 /* DECstation 5000/240, 260 */38#define MACH_DS5400 7 /* DECsystem 5400 */39#define MACH_DS5500 8 /* DECsystem 5500 */40#define MACH_DS5800 9 /* DECsystem 5800 */41#define MACH_DS5900 10 /* DECsystem 5900 */4243/*44* Valid machtype for group PMC-MSP45*/46#define MACH_MSP4200_EVAL 0 /* PMC-Sierra MSP4200 Evaluation */47#define MACH_MSP4200_GW 1 /* PMC-Sierra MSP4200 Gateway demo */48#define MACH_MSP4200_FPGA 2 /* PMC-Sierra MSP4200 Emulation */49#define MACH_MSP7120_EVAL 3 /* PMC-Sierra MSP7120 Evaluation */50#define MACH_MSP7120_GW 4 /* PMC-Sierra MSP7120 Residential GW */51#define MACH_MSP7120_FPGA 5 /* PMC-Sierra MSP7120 Emulation */52#define MACH_MSP_OTHER 255 /* PMC-Sierra unknown board type */5354/*55* Valid machtype for group Mikrotik56*/57#define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */58#define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */5960/*61* Valid machtype for Loongson family62*/63#define MACH_LOONGSON_UNKNOWN 064#define MACH_LEMOTE_FL2E 165#define MACH_LEMOTE_FL2F 266#define MACH_LEMOTE_ML2F7 367#define MACH_LEMOTE_YL2F89 468#define MACH_DEXXON_GDIUM2F10 569#define MACH_LEMOTE_NAS 670#define MACH_LEMOTE_LL2F 771#define MACH_LOONGSON_END 87273/*74* Valid machtype for group INGENIC75*/76#define MACH_INGENIC_JZ4730 0 /* JZ4730 SOC */77#define MACH_INGENIC_JZ4740 1 /* JZ4740 SOC */7879extern char *system_type;80const char *get_system_type(void);8182extern unsigned long mips_machtype;8384#define BOOT_MEM_MAP_MAX 3285#define BOOT_MEM_RAM 186#define BOOT_MEM_ROM_DATA 287#define BOOT_MEM_RESERVED 38889/*90* A memory map that's built upon what was determined91* or specified on the command line.92*/93struct boot_mem_map {94int nr_map;95struct boot_mem_map_entry {96phys_t addr; /* start of memory segment */97phys_t size; /* size of memory segment */98long type; /* type of memory segment */99} map[BOOT_MEM_MAP_MAX];100};101102extern struct boot_mem_map boot_mem_map;103104extern void add_memory_region(phys_t start, phys_t size, long type);105106extern void prom_init(void);107extern void prom_free_prom_memory(void);108109extern void free_init_pages(const char *what,110unsigned long begin, unsigned long end);111112/*113* Initial kernel command line, usually setup by prom_init()114*/115extern char arcs_cmdline[COMMAND_LINE_SIZE];116117/*118* Registers a0, a1, a3 and a4 as passed to the kernel entry by firmware119*/120extern unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3;121122/*123* Platform memory detection hook called by setup_arch124*/125extern void plat_mem_setup(void);126127#ifdef CONFIG_SWIOTLB128/*129* Optional platform hook to call swiotlb_setup().130*/131extern void plat_swiotlb_setup(void);132133#else134135static inline void plat_swiotlb_setup(void) {}136137#endif /* CONFIG_SWIOTLB */138139#endif /* _ASM_BOOTINFO_H */140141142