tree: drop last paragraph of GPL copyright header
[coreboot.git] / src / soc / intel / baytrail / acpi / irq_helper.h
blob9198833fdf5f02c67be3f88b72b27b4d069677ca
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2013 Google Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #undef PCI_DEV_PIRQ_ROUTES
17 #undef ACPI_DEV_APIC_IRQ
18 #undef PCI_DEV_PIRQ_ROUTE
19 #undef PIRQ_PIC_ROUTES
20 #undef PIRQ_PIC
22 #if defined(PIC_MODE)
24 #define ACPI_DEV_APIC_IRQ(dev_, pin_, pin_name_) \
25 Package() { ## dev_ ## ffff, pin_, \_SB.PCI0.LPCB.LNK ## pin_name_, 0 }
27 #else /* defined(PIC_MODE) */
29 #define ACPI_DEV_APIC_IRQ(dev_, pin_, pin_name_) \
30 Package() { ## dev_ ## ffff, pin_, 0, PIRQ ## pin_name_ ## _APIC_IRQ }
32 #endif
34 #define PCI_DEV_PIRQ_ROUTE(dev_, a_, b_, c_, d_) \
35 ACPI_DEV_APIC_IRQ(dev_, 0, a_), \
36 ACPI_DEV_APIC_IRQ(dev_, 1, b_), \
37 ACPI_DEV_APIC_IRQ(dev_, 2, c_), \
38 ACPI_DEV_APIC_IRQ(dev_, 3, d_)
40 /* Empty PIRQ_PIC definition. */
41 #define PIRQ_PIC(pirq_, pic_irq_)
43 /* Include the mainboard irq route definition. */
44 #include "irqroute.h"