Blame view

arch/mips/include/asm/prom.h 782 Bytes
f2ffa5ab7   Dezhong Diao   of/mips: Add devi...
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.
   *
   */
dd5d1380f   Ralf Baechle   MIPS: SNI: Fix co...
11
12
  #ifndef __ASM_PROM_H
  #define __ASM_PROM_H
f2ffa5ab7   Dezhong Diao   of/mips: Add devi...
13
14
  
  #ifdef CONFIG_OF
f2ffa5ab7   Dezhong Diao   of/mips: Add devi...
15
  #include <asm/bootinfo.h>
f2ffa5ab7   Dezhong Diao   of/mips: Add devi...
16
17
18
19
20
  extern int early_init_dt_scan_memory_arch(unsigned long node,
  	const char *uname, int depth, void *data);
  
  extern int reserve_mem_mach(unsigned long addr, unsigned long size);
  extern void free_mem_mach(unsigned long addr, unsigned long size);
4c60071c1   David Daney   of/mips: Cleanup ...
21
  extern void device_tree_init(void);
f2ffa5ab7   Dezhong Diao   of/mips: Add devi...
22
  #else /* CONFIG_OF */
4c60071c1   David Daney   of/mips: Cleanup ...
23
  static inline void device_tree_init(void) { }
f2ffa5ab7   Dezhong Diao   of/mips: Add devi...
24
  #endif /* CONFIG_OF */
dd5d1380f   Ralf Baechle   MIPS: SNI: Fix co...
25
  #endif /* __ASM_PROM_H */