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> | ||||
7 | #include <device/resource.h> | ||||
8 | #include <types.h> | ||||
9 | |||||
10 | void amd_pci_domain_init(struct device *domain) | ||||
11 | { | ||||
12 | struct resource *res = probe_resource(domain, IOMMU_IOAPIC_IDX); | ||||
13 | if (!res) | ||||
14 | return; | ||||
15 | |||||
16 | register_new_ioapic((void *)(uintptr_t)res->base); | ||||
17 | } |