2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2012 MIPS Technologies, Inc.
11 #include <asm/bootinfo.h> /* For cleaner code... */
20 unsigned long base; /* Within KSEG0 */
21 unsigned int size; /* bytes */
22 enum fw_memtypes type; /* fw_memtypes */
25 /* Maximum number of memory block descriptors. */
26 #define FW_MAX_MEMBLOCKS 32
33 * Most firmware like YAMON, PMON, etc. pass arguments and environment
34 * variables as 32-bit pointers. These take care of sign extension.
36 #define fw_argv(index) ((char *)(long)_fw_argv[(index)])
37 #define fw_envp(index) ((char *)(long)_fw_envp[(index)])
39 extern void fw_init_cmdline(void);
40 extern char *fw_getcmdline(void);
41 extern fw_memblock_t *fw_getmdesc(int);
42 extern void fw_meminit(void);
43 extern char *fw_getenv(char *name);
44 extern unsigned long fw_getenvl(char *name);
45 extern void fw_init_early_console(char port);
47 #endif /* __ASM_FW_H_ */