Blame view

arch/x86/include/asm/prom.h 1.54 KB
da6b737b9   Sebastian Andrzej Siewior   x86: Add device t...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  /*
   * Definitions for Device tree / OpenFirmware handling on X86
   *
   * based on arch/powerpc/include/asm/prom.h which is
   *         Copyright (C) 1996-2005 Paul Mackerras.
   *
   * This program is free software; you can redistribute it and/or
   * modify it under the terms of the GNU General Public License
   * as published by the Free Software Foundation; either version
   * 2 of the License, or (at your option) any later version.
   */
  
  #ifndef _ASM_X86_PROM_H
  #define _ASM_X86_PROM_H
  #ifndef __ASSEMBLY__
  
  #include <linux/of.h>
  #include <linux/types.h>
96e0a0797   Sebastian Andrzej Siewior   x86: dtb: Add sup...
19
  #include <linux/pci.h>
da6b737b9   Sebastian Andrzej Siewior   x86: Add device t...
20
21
  
  #include <asm/irq.h>
60063497a   Arun Sharma   atomic: use <linu...
22
  #include <linux/atomic.h>
da6b737b9   Sebastian Andrzej Siewior   x86: Add device t...
23
  #include <asm/setup.h>
19c4f5f7f   Sebastian Andrzej Siewior   x86: dtb: Add irq...
24
  #include <asm/irq_controller.h>
da6b737b9   Sebastian Andrzej Siewior   x86: Add device t...
25
26
  
  #ifdef CONFIG_OF
3879a6f32   Sebastian Andrzej Siewior   x86: dtb: Add ear...
27
28
  extern int of_ioapic;
  extern u64 initial_dtb;
da6b737b9   Sebastian Andrzej Siewior   x86: Add device t...
29
  extern void add_dtb(u64 data);
bcc7c1244   Sebastian Andrzej Siewior   x86: ioapic: Add ...
30
  extern void x86_add_irq_domains(void);
96e0a0797   Sebastian Andrzej Siewior   x86: dtb: Add sup...
31
  void __cpuinit x86_of_pci_init(void);
a906fdaac   Thomas Gleixner   x86: dt: Cleanup ...
32
  void x86_dtb_init(void);
da6b737b9   Sebastian Andrzej Siewior   x86: Add device t...
33
34
  #else
  static inline void add_dtb(u64 data) { }
bcc7c1244   Sebastian Andrzej Siewior   x86: ioapic: Add ...
35
  static inline void x86_add_irq_domains(void) { }
96e0a0797   Sebastian Andrzej Siewior   x86: dtb: Add sup...
36
  static inline void x86_of_pci_init(void) { }
a906fdaac   Thomas Gleixner   x86: dt: Cleanup ...
37
  static inline void x86_dtb_init(void) { }
3879a6f32   Sebastian Andrzej Siewior   x86: dtb: Add ear...
38
  #define of_ioapic 0
da6b737b9   Sebastian Andrzej Siewior   x86: Add device t...
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
  #endif
  
  extern char cmd_line[COMMAND_LINE_SIZE];
  
  #define pci_address_to_pio pci_address_to_pio
  unsigned long pci_address_to_pio(phys_addr_t addr);
  
  /**
   * irq_dispose_mapping - Unmap an interrupt
   * @virq: linux virq number of the interrupt to unmap
   *
   * FIXME: We really should implement proper virq handling like power,
   * but that's going to be major surgery.
   */
  static inline void irq_dispose_mapping(unsigned int virq) { }
  
  #define HAVE_ARCH_DEVTREE_FIXUPS
  
  #endif /* __ASSEMBLY__ */
  #endif