Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
prom.h
Go to the documentation of this file.
1 /*
2  * arch/arm/include/asm/prom.h
3  *
4  * Copyright (C) 2009 Canonical Ltd. <[email protected]>
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  */
11 #ifndef __ASMARM_PROM_H
12 #define __ASMARM_PROM_H
13 
14 #ifdef CONFIG_OF
15 
16 extern struct machine_desc *setup_machine_fdt(unsigned int dt_phys);
17 extern void arm_dt_memblock_reserve(void);
18 
19 #else /* CONFIG_OF */
20 
21 static inline struct machine_desc *setup_machine_fdt(unsigned int dt_phys)
22 {
23  return NULL;
24 }
25 
26 static inline void arm_dt_memblock_reserve(void) { }
27 
28 #endif /* CONFIG_OF */
29 #endif /* ASMARM_PROM_H */