From 886c1ffc652efe7e0d3345dfb34a38669041e467 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 25 Oct 2022 17:48:30 +0200 Subject: mb/amd,google: move fch_irq_routing struct definition to soc/amd Define the fch_irq_routing struct once in a common header file instead of in every mainboard's code. Signed-off-by: Felix Held Change-Id: I11d9000b6ed7529e4afd7f6e8a7332c390da6dab Reviewed-on: https://review.coreboot.org/c/coreboot/+/68817 Reviewed-by: Fred Reitberger Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/include/amdblocks/amd_pci_util.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/soc/amd') diff --git a/src/soc/amd/common/block/include/amdblocks/amd_pci_util.h b/src/soc/amd/common/block/include/amdblocks/amd_pci_util.h index 0a4061f631..6543853439 100644 --- a/src/soc/amd/common/block/include/amdblocks/amd_pci_util.h +++ b/src/soc/amd/common/block/include/amdblocks/amd_pci_util.h @@ -11,6 +11,12 @@ #define PCI_INTR_INDEX 0xc00 #define PCI_INTR_DATA 0xc01 +struct fch_irq_routing { + uint8_t intr_index; + uint8_t pic_irq_num; + uint8_t apic_irq_num; +}; + struct pirq_struct { u8 devfn; u8 PIN[4]; /* PINA/B/C/D are index 0/1/2/3 */ -- cgit v1.2.3