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