blob: 7a6e82ef449b3bf4e8747974dd3ed81c2a231401 [file] [log] [blame]
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -06001/*
2 * arch/mips/include/asm/prom.h
3 *
4 * Copyright (C) 2010 Cisco Systems Inc. <dediao@cisco.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 */
Ralf Baechledd5d1382011-06-27 09:45:42 +010011#ifndef __ASM_PROM_H
12#define __ASM_PROM_H
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -060013
14#ifdef CONFIG_OF
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -060015#include <asm/bootinfo.h>
16
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -060017extern int early_init_dt_scan_memory_arch(unsigned long node,
18 const char *uname, int depth, void *data);
19
20extern int reserve_mem_mach(unsigned long addr, unsigned long size);
21extern void free_mem_mach(unsigned long addr, unsigned long size);
22
David Daney4c600712010-10-19 15:50:31 -070023extern void device_tree_init(void);
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -060024#else /* CONFIG_OF */
David Daney4c600712010-10-19 15:50:31 -070025static inline void device_tree_init(void) { }
Dezhong Diaof2ffa5a2010-10-13 00:52:46 -060026#endif /* CONFIG_OF */
27
Ralf Baechledd5d1382011-06-27 09:45:42 +010028#endif /* __ASM_PROM_H */