VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/vbox-tpm.dsl@ 97028

Last change on this file since 97028 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.5 KB
Line 
1/* $Id: vbox-tpm.dsl 96407 2022-08-22 17:43:14Z vboxsync $ */
2/** @file
3 * VirtualBox ACPI - TPM ACPI device.
4 */
5
6/*
7 * Copyright (C) 2021-2022 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
28DefinitionBlock ("SSDT.aml", "SSDT", 1, "VBOX ", "VBOXTPMT", 2)
29{
30 Scope (\_SB)
31 {
32 Device (TPM)
33 {
34 Method (_HID, 0, NotSerialized)
35 {
36 If (LEqual(IFID, One))
37 {
38 Return ("PNP0C31")
39 }
40 Else
41 {
42 Return ("MSFT0101")
43 }
44 }
45
46 Method (_CID, 0, NotSerialized)
47 {
48 If (LEqual(IFID, One))
49 {
50 Return ("PNP0C31")
51 }
52 Else
53 {
54 Return ("MSFT0101")
55 }
56 }
57
58 Method (_STR, 0, NotSerialized)
59 {
60 If (LEqual(IFID, One))
61 {
62 Return (Unicode ("TPM 1.2 Device"))
63 }
64 Else
65 {
66 Return (Unicode ("TPM 2.0 Device"))
67 }
68 }
69
70 Method (_STA, 0, NotSerialized)
71 {
72 Return (0x0F)
73 }
74
75 OperationRegion (TPMR, SystemMemory, 0xFED40000, 0x5000)
76 Field(TPMR, AnyAcc, NoLock, Preserve)
77 {
78 Offset(0x30),
79 IFID, 1,
80 }
81
82 Name(RES, ResourceTemplate()
83 {
84 Memory32Fixed (ReadWrite, 0xfed40000, 0x5000, REG1)
85 })
86
87 Method (_CRS, 0, Serialized)
88 {
89 Return (RES)
90 }
91 }
92 }
93}
94
95/*
96 * Local Variables:
97 * comment-start: "//"
98 * End:
99 */
100
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