prom.h 841 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
/*
 *  arch/mips/include/asm/prom.h
 *
 *  Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 */
11 12
#ifndef __ASM_PROM_H
#define __ASM_PROM_H
13 14

#ifdef CONFIG_OF
R
Ralf Baechle 已提交
15 16 17
#include <linux/bug.h>
#include <linux/io.h>
#include <linux/types.h>
18 19
#include <asm/bootinfo.h>

20
extern void device_tree_init(void);
R
Ralf Baechle 已提交
21

22 23
struct boot_param_header;

24
extern void __dt_setup_arch(void *bph);
25
extern int __dt_register_buses(const char *bus0, const char *bus1);
26

27
#else /* CONFIG_OF */
28
static inline void device_tree_init(void) { }
29 30
#endif /* CONFIG_OF */

31 32 33
extern char *mips_get_machine_name(void);
extern void mips_set_machine_name(const char *name);

34
#endif /* __ASM_PROM_H */