1 | /* $Id: DevIommuIntel.h 88484 2021-04-13 05:50:44Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * DevIommuIntel - I/O Memory Management Unit (Intel), header shared with the IOMMU, ACPI, chipset/firmware code.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2021 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef VBOX_INCLUDED_SRC_Bus_DevIommuIntel_h
|
---|
19 | #define VBOX_INCLUDED_SRC_Bus_DevIommuIntel_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #include <VBox/iommu-intel.h>
|
---|
25 |
|
---|
26 | /** Intel vendor ID for the DMAR unit. */
|
---|
27 | #define DMAR_PCI_VENDOR_ID 0x8086
|
---|
28 | /** VirtualBox DMAR unit's device ID. */
|
---|
29 | #define DMAR_PCI_DEVICE_ID 0xc0de
|
---|
30 | /** VirtualBox DMAR unit's device revision ID. */
|
---|
31 | #define DMAR_PCI_REVISION_ID 0x01
|
---|
32 |
|
---|
33 | /** Feature/capability flags exposed to the guest. */
|
---|
34 | #define DMAR_ACPI_DMAR_FLAGS ACPI_DMAR_F_INTR_REMAP
|
---|
35 |
|
---|
36 | /** The MMIO base address of the DMAR unit (taken from real hardware). */
|
---|
37 | #define DMAR_MMIO_BASE_PHYSADDR UINT64_C(0xfed90000)
|
---|
38 | /** The size of the MMIO region (in bytes). */
|
---|
39 | #define DMAR_MMIO_SIZE 4096
|
---|
40 |
|
---|
41 | #endif /* !VBOX_INCLUDED_SRC_Bus_DevIommuIntel_h */
|
---|