VirtualBox

source: vbox/trunk/src/VBox/Devices/Bus/DevIommuAmd.h@ 105381

Last change on this file since 105381 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.6 KB
Line 
1/* $Id: DevIommuAmd.h 98103 2023-01-17 14:15:46Z vboxsync $ */
2/** @file
3 * DevIommuAmd - I/O Memory Management Unit (AMD), header shared with the IOMMU, ACPI, chipset/firmware code.
4 */
5
6/*
7 * Copyright (C) 2020-2023 Oracle and/or its affiliates.
8 *
9 * This file is part of VirtualBox base platform packages, as
10 * available from https://www.virtualbox.org.
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation, in version 3 of the
15 * License.
16 *
17 * This program is distributed in the hope that it will be useful, but
18 * WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, see <https://www.gnu.org/licenses>.
24 *
25 * SPDX-License-Identifier: GPL-3.0-only
26 */
27
28#ifndef VBOX_INCLUDED_SRC_Bus_DevIommuAmd_h
29#define VBOX_INCLUDED_SRC_Bus_DevIommuAmd_h
30#ifndef RT_WITHOUT_PRAGMA_ONCE
31# pragma once
32#endif
33
34/** AMD's vendor ID. */
35#define IOMMU_PCI_VENDOR_ID 0x1022
36/** VirtualBox IOMMU device ID. */
37#define IOMMU_PCI_DEVICE_ID 0xc0de
38/** VirtualBox IOMMU device revision ID. */
39#define IOMMU_PCI_REVISION_ID 0x01
40/** The MMIO base address of the IOMMU (taken from real hardware). */
41#define IOMMU_MMIO_BASE_ADDR 0xfeb80000
42/** Size of the MMIO region in bytes. */
43#define IOMMU_MMIO_REGION_SIZE _16K
44/** Number of device table segments supported (power of 2). */
45#define IOMMU_MAX_DEV_TAB_SEGMENTS 3
46/** Maximum host address translation level supported (inclusive). NOTE! If you
47 * change this make sure to change the value in ACPI tables (DevACPI.cpp) */
48#define IOMMU_MAX_HOST_PT_LEVEL 6
49/** The device-specific feature major revision. */
50#define IOMMU_DEVSPEC_FEAT_MAJOR_VERSION 0x1
51/** The device-specific feature minor revision. */
52#define IOMMU_DEVSPEC_FEAT_MINOR_VERSION 0x0
53/** The device-specific control major revision. */
54#define IOMMU_DEVSPEC_CTRL_MAJOR_VERSION 0x1
55/** The device-specific control minor revision. */
56#define IOMMU_DEVSPEC_CTRL_MINOR_VERSION 0x0
57/** The device-specific status major revision. */
58#define IOMMU_DEVSPEC_STATUS_MAJOR_VERSION 0x1
59/** The device-specific status minor revision. */
60#define IOMMU_DEVSPEC_STATUS_MINOR_VERSION 0x0
61
62#endif /* !VBOX_INCLUDED_SRC_Bus_DevIommuAmd_h */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette