WIP FPC-III support
[linux/fpc-iii.git] / arch / x86 / include / asm / prom.h
blobb716d291d0d4442e688d8313a4138e4b5013a487
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Definitions for Device tree / OpenFirmware handling on X86
5 * based on arch/powerpc/include/asm/prom.h which is
6 * Copyright (C) 1996-2005 Paul Mackerras.
7 */
9 #ifndef _ASM_X86_PROM_H
10 #define _ASM_X86_PROM_H
11 #ifndef __ASSEMBLY__
13 #include <linux/of.h>
14 #include <linux/types.h>
15 #include <linux/pci.h>
17 #include <asm/irq.h>
18 #include <linux/atomic.h>
19 #include <asm/setup.h>
21 #ifdef CONFIG_OF
22 extern int of_ioapic;
23 extern u64 initial_dtb;
24 extern void add_dtb(u64 data);
25 void x86_of_pci_init(void);
26 void x86_dtb_init(void);
27 #else
28 static inline void add_dtb(u64 data) { }
29 static inline void x86_of_pci_init(void) { }
30 static inline void x86_dtb_init(void) { }
31 #define of_ioapic 0
32 #endif
34 extern char cmd_line[COMMAND_LINE_SIZE];
36 #endif /* __ASSEMBLY__ */
37 #endif