Felix Held | 416cc66 | 2024-01-31 12:17:58 +0100 | [diff] [blame] | 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> |
Felix Held | 416cc66 | 2024-01-31 12:17:58 +0100 | [diff] [blame] | 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 | |
Felix Held | 0d19289 | 2024-02-06 16:55:29 +0100 | [diff] [blame] | 15 | register_new_ioapic((uintptr_t)res->base); |
Felix Held | 416cc66 | 2024-01-31 12:17:58 +0100 | [diff] [blame] | 16 | } |