Linux Audio

Check our new training course

Linux BSP upgrade and security maintenance

Need help to get security updates for your Linux BSP?
Loading...
 1/*
 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
 4 * for more details.
 5 *
 6 * Copyright (C) 2012 MIPS Technologies, Inc.
 7 */
 8#ifndef __ASM_FW_H_
 9#define __ASM_FW_H_
10
11#include <asm/bootinfo.h>	/* For cleaner code... */
12
13extern int fw_argc;
14extern int *_fw_argv;
15extern int *_fw_envp;
16
17/*
18 * Most firmware like YAMON, PMON, etc. pass arguments and environment
19 * variables as 32-bit pointers. These take care of sign extension.
20 */
21#define fw_argv(index)		((char *)(long)_fw_argv[(index)])
22#define fw_envp(index)		((char *)(long)_fw_envp[(index)])
23
24extern void fw_init_cmdline(void);
25extern char *fw_getcmdline(void);
26extern void fw_meminit(void);
27extern char *fw_getenv(char *name);
28extern unsigned long fw_getenvl(char *name);
29extern void fw_init_early_console(void);
30
31#endif /* __ASM_FW_H_ */