blob: 83833ac33dd10398f6675d75b08a1886963b1b34 [file] [log] [blame]
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +01001/*
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 Siewior19c4f5f2011-02-22 21:07:39 +010023#include <asm/irq_controller.h>
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +010024
25#ifdef CONFIG_OF
26extern void add_dtb(u64 data);
Sebastian Andrzej Siewior19c4f5f2011-02-22 21:07:39 +010027void add_interrupt_host(struct irq_domain *ih);
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +010028#else
29static inline void add_dtb(u64 data) { }
30#endif
31
32extern char cmd_line[COMMAND_LINE_SIZE];
33
34#define pci_address_to_pio pci_address_to_pio
35unsigned 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 */
44static inline void irq_dispose_mapping(unsigned int virq) { }
45
46#define HAVE_ARCH_DEVTREE_FIXUPS
47
48#endif /* __ASSEMBLY__ */
49#endif