VirtualBox

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

Last change on this file since 86763 was 85915, checked in by vboxsync, 4 years ago

AMD IOMMU: bugref:9654 Comment fix.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/* $Id: DevIommuAmd.h 85915 2020-08-28 07:50:33Z 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 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_DevIommuAmd_h
19#define VBOX_INCLUDED_SRC_Bus_DevIommuAmd_h
20#ifndef RT_WITHOUT_PRAGMA_ONCE
21# pragma once
22#endif
23
24/** AMD's vendor ID. */
25#define IOMMU_PCI_VENDOR_ID 0x1022
26/** VirtualBox IOMMU device ID. */
27#define IOMMU_PCI_DEVICE_ID 0xc0de
28/** VirtualBox IOMMU device revision ID. */
29#define IOMMU_PCI_REVISION_ID 0x01
30/** The MMIO base address of the IOMMU (taken from real hardware). */
31#define IOMMU_MMIO_BASE_ADDR 0xfeb80000
32/** Size of the MMIO region in bytes. */
33#define IOMMU_MMIO_REGION_SIZE _16K
34/** Number of device table segments supported (power of 2). */
35#define IOMMU_MAX_DEV_TAB_SEGMENTS 3
36/** Maximum host address translation level supported (inclusive). NOTE! If you
37 * change this make sure to change the value in ACPI tables (DevACPI.cpp) */
38#define IOMMU_MAX_HOST_PT_LEVEL 6
39/** The device-specific feature major revision. */
40#define IOMMU_DEVSPEC_FEAT_MAJOR_VERSION 0x1
41/** The device-specific feature minor revision. */
42#define IOMMU_DEVSPEC_FEAT_MINOR_VERSION 0x0
43/** The device-specific control major revision. */
44#define IOMMU_DEVSPEC_CTRL_MAJOR_VERSION 0x1
45/** The device-specific control minor revision. */
46#define IOMMU_DEVSPEC_CTRL_MINOR_VERSION 0x0
47/** The device-specific status major revision. */
48#define IOMMU_DEVSPEC_STATUS_MAJOR_VERSION 0x1
49/** The device-specific status minor revision. */
50#define IOMMU_DEVSPEC_STATUS_MINOR_VERSION 0x0
51
52#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