diff options
author | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-01-15 20:43:03 +0000 |
---|---|---|
committer | Patrick Wildt <patrick@cvs.openbsd.org> | 2021-01-15 20:43:03 +0000 |
commit | b19a397055bb9a9c48dbeb22f2c4f47f3c8924ca (patch) | |
tree | 24182a6e3b809defee87a6013393884a6bc87c61 /sys/arch | |
parent | 235286ee04c96e7ee9171a23803f2465eaf5adac (diff) |
Move IO Remapping Table (IORT) struct defines to the common ACPI header
so that it can be used by more drivers.
ok kettenis@
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/dev/acpipci.c | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/sys/arch/arm64/dev/acpipci.c b/sys/arch/arm64/dev/acpipci.c index 6fef5f16e05..979a990c0f9 100644 --- a/sys/arch/arm64/dev/acpipci.c +++ b/sys/arch/arm64/dev/acpipci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpipci.c,v 1.22 2020/12/06 21:20:41 kettenis Exp $ */ +/* $OpenBSD: acpipci.c,v 1.23 2021/01/15 20:43:02 patrick Exp $ */ /* * Copyright (c) 2018 Mark Kettenis * @@ -598,40 +598,6 @@ pci_lookup_segment(int segment) * IORT support. */ -struct acpi_iort { - struct acpi_table_header hdr; -#define IORT_SIG "IORT" - uint32_t number_of_nodes; - uint32_t offset; - uint32_t reserved; -} __packed; - -struct acpi_iort_node { - uint8_t type; -#define ACPI_IORT_ITS 0 -#define ACPI_IORT_ROOT_COMPLEX 2 -#define ACPI_IORT_SMMU 3 - uint16_t length; - uint8_t revision; - uint32_t reserved1; - uint32_t number_of_mappings; - uint32_t mapping_offset; - uint64_t memory_access_properties; - uint32_t atf_attributes; - uint32_t segment; - uint8_t memory_address_size_limit; - uint8_t reserved2[3]; -} __packed; - -struct acpi_iort_mapping { - uint32_t input_base; - uint32_t number_of_ids; - uint32_t output_base; - uint32_t output_reference; - uint32_t flags; -#define ACPI_IORT_MAPPING_SINGLE 0x00000001 -} __packed; - uint32_t acpipci_iort_map(struct acpi_iort *, uint32_t, uint32_t); uint32_t |