| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <amdblocks/ioapic.h> |
| 4 | #include <amdblocks/root_complex.h> |
| 5 | #include <arch/ioapic.h> |
| 6 | #include <device/device.h> |
| 7 | #include <types.h> |
| 8 | |
| 9 | void amd_pci_domain_init(struct device *domain) |
| 10 | { |
| 11 | struct resource *res = probe_resource(domain, IOMMU_IOAPIC_IDX); |
| 12 | if (!res) |
| 13 | return; |
| 14 | |
| 15 | register_new_ioapic((uintptr_t)res->base); |
| 16 | } |