Lee Leahy | 89b5fbd | 2015-05-11 17:24:31 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2013 Google Inc. |
| 5 | * Copyright (C) 2015 Intel Corp. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; version 2 of the License. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
Lee Leahy | 89b5fbd | 2015-05-11 17:24:31 -0700 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #include <soc/irq.h> |
| 18 | #include <soc/pci_devs.h> |
| 19 | #include <soc/pm.h> |
| 20 | |
| 21 | #define PCI_DEV_PIRQ_ROUTES \ |
| 22 | PCI_DEV_PIRQ_ROUTE(GFX_DEV, A, B, C, D), \ |
| 23 | PCI_DEV_PIRQ_ROUTE(SDIO_DEV, A, B, C, D), \ |
| 24 | PCI_DEV_PIRQ_ROUTE(SD_DEV, C, D, E, F), \ |
| 25 | PCI_DEV_PIRQ_ROUTE(SATA_DEV, A, B, C, D), \ |
| 26 | PCI_DEV_PIRQ_ROUTE(XHCI_DEV, A, B, C, D), \ |
| 27 | PCI_DEV_PIRQ_ROUTE(LPE_DEV, A, B, C, D), \ |
| 28 | PCI_DEV_PIRQ_ROUTE(MMC_DEV, D, E, F, G), \ |
| 29 | PCI_DEV_PIRQ_ROUTE(SIO1_DEV, A, B, C, D), \ |
| 30 | PCI_DEV_PIRQ_ROUTE(TXE_DEV, A, B, C, D), \ |
| 31 | PCI_DEV_PIRQ_ROUTE(HDA_DEV, A, B, C, D), \ |
| 32 | PCI_DEV_PIRQ_ROUTE(PCIE_DEV, A, B, C, D), \ |
| 33 | PCI_DEV_PIRQ_ROUTE(SIO2_DEV, B, C, D, E), \ |
| 34 | PCI_DEV_PIRQ_ROUTE(PCU_DEV, A, B, C, D) |
| 35 | |
| 36 | #define PIRQ_PIC_ROUTES \ |
| 37 | PIRQ_PIC(A, DISABLE), \ |
| 38 | PIRQ_PIC(B, DISABLE), \ |
| 39 | PIRQ_PIC(C, DISABLE), \ |
| 40 | PIRQ_PIC(D, DISABLE), \ |
| 41 | PIRQ_PIC(E, DISABLE), \ |
| 42 | PIRQ_PIC(F, DISABLE), \ |
| 43 | PIRQ_PIC(G, DISABLE), \ |
| 44 | PIRQ_PIC(H, DISABLE) |
| 45 | |