mpparse.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) mpparse.c (d25316616842b593de6f89ce2101f1af62f4d559)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Intel Multiprocessor Specification 1.1 and 1.4
4 * compliant MP-table parsing routines.
5 *
6 * (c) 1995 Alan Cox, Building #3 <alan@lxorguk.ukuu.org.uk>
7 * (c) 1998, 1999, 2000, 2009 Ingo Molnar <mingo@redhat.com>
8 * (c) 2008 Alexey Starikovskiy <astarikovskiy@suse.de>

--- 5 unchanged lines hidden (view full) ---

14#include <linux/memblock.h>
15#include <linux/kernel_stat.h>
16#include <linux/mc146818rtc.h>
17#include <linux/bitops.h>
18#include <linux/acpi.h>
19#include <linux/smp.h>
20#include <linux/pci.h>
21
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Intel Multiprocessor Specification 1.1 and 1.4
4 * compliant MP-table parsing routines.
5 *
6 * (c) 1995 Alan Cox, Building #3 <alan@lxorguk.ukuu.org.uk>
7 * (c) 1998, 1999, 2000, 2009 Ingo Molnar <mingo@redhat.com>
8 * (c) 2008 Alexey Starikovskiy <astarikovskiy@suse.de>

--- 5 unchanged lines hidden (view full) ---

14#include <linux/memblock.h>
15#include <linux/kernel_stat.h>
16#include <linux/mc146818rtc.h>
17#include <linux/bitops.h>
18#include <linux/acpi.h>
19#include <linux/smp.h>
20#include <linux/pci.h>
21
22#include <asm/i8259.h>
22#include <asm/io_apic.h>
23#include <asm/acpi.h>
24#include <asm/irqdomain.h>
25#include <asm/mtrr.h>
26#include <asm/mpspec.h>
27#include <asm/proto.h>
28#include <asm/bios_ebda.h>
29#include <asm/e820/api.h>

--- 216 unchanged lines hidden (view full) ---

246}
247
248#ifdef CONFIG_X86_IO_APIC
249
250static int __init ELCR_trigger(unsigned int irq)
251{
252 unsigned int port;
253
23#include <asm/io_apic.h>
24#include <asm/acpi.h>
25#include <asm/irqdomain.h>
26#include <asm/mtrr.h>
27#include <asm/mpspec.h>
28#include <asm/proto.h>
29#include <asm/bios_ebda.h>
30#include <asm/e820/api.h>

--- 216 unchanged lines hidden (view full) ---

247}
248
249#ifdef CONFIG_X86_IO_APIC
250
251static int __init ELCR_trigger(unsigned int irq)
252{
253 unsigned int port;
254
254 port = 0x4d0 + (irq >> 3);
255 port = PIC_ELCR1 + (irq >> 3);
255 return (inb(port) >> (irq & 7)) & 1;
256}
257
258static void __init construct_default_ioirq_mptable(int mpc_default_type)
259{
260 struct mpc_intsrc intsrc;
261 int i;
262 int ELCR_fallback = 0;

--- 682 unchanged lines hidden ---
256 return (inb(port) >> (irq & 7)) & 1;
257}
258
259static void __init construct_default_ioirq_mptable(int mpc_default_type)
260{
261 struct mpc_intsrc intsrc;
262 int i;
263 int ELCR_fallback = 0;

--- 682 unchanged lines hidden ---