Linux Audio

Check our new training course

Loading...
v4.10.11
 
 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#include <linux/pci.h>
20
21#include <asm/irq.h>
22#include <linux/atomic.h>
23#include <asm/setup.h>
24
25#ifdef CONFIG_OF
26extern int of_ioapic;
27extern u64 initial_dtb;
28extern void add_dtb(u64 data);
29void x86_of_pci_init(void);
30void x86_dtb_init(void);
31#else
32static inline void add_dtb(u64 data) { }
33static inline void x86_of_pci_init(void) { }
34static inline void x86_dtb_init(void) { }
35#define of_ioapic 0
36#endif
37
38extern char cmd_line[COMMAND_LINE_SIZE];
39
40#endif /* __ASSEMBLY__ */
41#endif
v6.2
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Definitions for Device tree / OpenFirmware handling on X86
 4 *
 5 * based on arch/powerpc/include/asm/prom.h which is
 6 *         Copyright (C) 1996-2005 Paul Mackerras.
 
 
 
 
 
 7 */
 8
 9#ifndef _ASM_X86_PROM_H
10#define _ASM_X86_PROM_H
11#ifndef __ASSEMBLY__
12
13#include <linux/of.h>
14#include <linux/types.h>
15#include <linux/pci.h>
16
17#include <asm/irq.h>
18#include <linux/atomic.h>
19#include <asm/setup.h>
20
21#ifdef CONFIG_OF
22extern int of_ioapic;
23extern u64 initial_dtb;
24extern void add_dtb(u64 data);
25void x86_of_pci_init(void);
26void x86_dtb_init(void);
27#else
28static inline void add_dtb(u64 data) { }
29static inline void x86_of_pci_init(void) { }
30static inline void x86_dtb_init(void) { }
31#define of_ioapic 0
32#endif
33
34extern char cmd_line[COMMAND_LINE_SIZE];
35
36#endif /* __ASSEMBLY__ */
37#endif