Merge branch 'writeback-for-next' of git://git.kernel.org/pub/scm/linux/kernel/git...
[deliverable/linux.git] / arch / x86 / include / asm / prom.h
CommitLineData
da6b737b
SAS
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>
96e0a079 19#include <linux/pci.h>
da6b737b
SAS
20
21#include <asm/irq.h>
60063497 22#include <linux/atomic.h>
da6b737b
SAS
23#include <asm/setup.h>
24
25#ifdef CONFIG_OF
3879a6f3
SAS
26extern int of_ioapic;
27extern u64 initial_dtb;
da6b737b 28extern void add_dtb(u64 data);
bcc7c124 29extern void x86_add_irq_domains(void);
96e0a079 30void __cpuinit x86_of_pci_init(void);
a906fdaa 31void x86_dtb_init(void);
da6b737b
SAS
32#else
33static inline void add_dtb(u64 data) { }
bcc7c124 34static inline void x86_add_irq_domains(void) { }
96e0a079 35static inline void x86_of_pci_init(void) { }
a906fdaa 36static inline void x86_dtb_init(void) { }
3879a6f3 37#define of_ioapic 0
da6b737b
SAS
38#endif
39
40extern char cmd_line[COMMAND_LINE_SIZE];
41
42#define pci_address_to_pio pci_address_to_pio
43unsigned long pci_address_to_pio(phys_addr_t addr);
44
da6b737b
SAS
45#define HAVE_ARCH_DEVTREE_FIXUPS
46
47#endif /* __ASSEMBLY__ */
48#endif
This page took 0.14406 seconds and 5 git commands to generate.