mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 08:58:07 +00:00
2874c5fd28
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
37 lines
821 B
C
37 lines
821 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Definitions for Device tree / OpenFirmware handling on X86
|
|
*
|
|
* based on arch/powerpc/include/asm/prom.h which is
|
|
* Copyright (C) 1996-2005 Paul Mackerras.
|
|
*/
|
|
|
|
#ifndef _ASM_X86_PROM_H
|
|
#define _ASM_X86_PROM_H
|
|
#ifndef __ASSEMBLY__
|
|
|
|
#include <linux/of.h>
|
|
#include <linux/types.h>
|
|
#include <linux/pci.h>
|
|
|
|
#include <asm/irq.h>
|
|
#include <linux/atomic.h>
|
|
#include <asm/setup.h>
|
|
|
|
#ifdef CONFIG_OF
|
|
extern int of_ioapic;
|
|
extern u64 initial_dtb;
|
|
extern void add_dtb(u64 data);
|
|
void x86_of_pci_init(void);
|
|
void x86_dtb_init(void);
|
|
#else
|
|
static inline void add_dtb(u64 data) { }
|
|
static inline void x86_of_pci_init(void) { }
|
|
static inline void x86_dtb_init(void) { }
|
|
#define of_ioapic 0
|
|
#endif
|
|
|
|
extern char cmd_line[COMMAND_LINE_SIZE];
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
#endif
|