Sebastian Andrzej Siewior | da6b737 | 2011-02-22 21:07:37 +0100 | [diff] [blame] | 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 | |
| 20 | #include <asm/irq.h> |
| 21 | #include <asm/atomic.h> |
| 22 | #include <asm/setup.h> |
Sebastian Andrzej Siewior | 19c4f5f | 2011-02-22 21:07:39 +0100 | [diff] [blame^] | 23 | #include <asm/irq_controller.h> |
Sebastian Andrzej Siewior | da6b737 | 2011-02-22 21:07:37 +0100 | [diff] [blame] | 24 | |
| 25 | #ifdef CONFIG_OF |
| 26 | extern void add_dtb(u64 data); |
Sebastian Andrzej Siewior | 19c4f5f | 2011-02-22 21:07:39 +0100 | [diff] [blame^] | 27 | void add_interrupt_host(struct irq_domain *ih); |
Sebastian Andrzej Siewior | da6b737 | 2011-02-22 21:07:37 +0100 | [diff] [blame] | 28 | #else |
| 29 | static inline void add_dtb(u64 data) { } |
| 30 | #endif |
| 31 | |
| 32 | extern char cmd_line[COMMAND_LINE_SIZE]; |
| 33 | |
| 34 | #define pci_address_to_pio pci_address_to_pio |
| 35 | unsigned long pci_address_to_pio(phys_addr_t addr); |
| 36 | |
| 37 | /** |
| 38 | * irq_dispose_mapping - Unmap an interrupt |
| 39 | * @virq: linux virq number of the interrupt to unmap |
| 40 | * |
| 41 | * FIXME: We really should implement proper virq handling like power, |
| 42 | * but that's going to be major surgery. |
| 43 | */ |
| 44 | static inline void irq_dispose_mapping(unsigned int virq) { } |
| 45 | |
| 46 | #define HAVE_ARCH_DEVTREE_FIXUPS |
| 47 | |
| 48 | #endif /* __ASSEMBLY__ */ |
| 49 | #endif |