blob: 1d081ac1cd69d24970d4f16c87dab9171f8fde71 [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>
Sebastian Andrzej Siewior96e0a072011-02-22 21:07:42 +010019#include <linux/pci.h>
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +010020
21#include <asm/irq.h>
Arun Sharma600634972011-07-26 16:09:06 -070022#include <linux/atomic.h>
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +010023#include <asm/setup.h>
24
25#ifdef CONFIG_OF
Sebastian Andrzej Siewior3879a6f2011-02-22 21:07:40 +010026extern int of_ioapic;
27extern u64 initial_dtb;
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +010028extern void add_dtb(u64 data);
Paul Gortmaker148f9bb2013-06-18 18:23:59 -040029void x86_of_pci_init(void);
Thomas Gleixnera906fda2011-02-25 16:09:31 +010030void x86_dtb_init(void);
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +010031#else
32static inline void add_dtb(u64 data) { }
Sebastian Andrzej Siewior96e0a072011-02-22 21:07:42 +010033static inline void x86_of_pci_init(void) { }
Thomas Gleixnera906fda2011-02-25 16:09:31 +010034static inline void x86_dtb_init(void) { }
Sebastian Andrzej Siewior3879a6f2011-02-22 21:07:40 +010035#define of_ioapic 0
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +010036#endif
37
38extern char cmd_line[COMMAND_LINE_SIZE];
39
Sebastian Andrzej Siewiorda6b7372011-02-22 21:07:37 +010040#endif /* __ASSEMBLY__ */
41#endif