hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/include/linux/tboot.h
....@@ -1,23 +1,10 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * tboot.h: shared data structure with tboot and kernel and functions
34 * used by kernel for runtime support of Intel(R) Trusted
45 * Execution Technology
56 *
67 * Copyright (c) 2006-2009, Intel Corporation
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms and conditions of the GNU General Public License,
10
- * version 2, as published by the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
16
- *
17
- * You should have received a copy of the GNU General Public License along with
18
- * this program; if not, write to the Free Software Foundation, Inc.,
19
- * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
20
- *
218 */
229
2310 #ifndef _LINUX_TBOOT_H
....@@ -57,7 +44,7 @@
5744
5845 /*
5946 * combines Sx info from FADT and FACS tables per ACPI 2.0+ spec
60
- * (http://www.acpi.info/)
47
+ * (https://uefi.org/specifications)
6148 */
6249 struct tboot_acpi_sleep_info {
6350 struct tboot_acpi_generic_address pm1a_cnt_blk;
....@@ -134,13 +121,7 @@
134121 #define TBOOT_UUID {0xff, 0x8d, 0x3c, 0x66, 0xb3, 0xe8, 0x82, 0x4b, 0xbf,\
135122 0xaa, 0x19, 0xea, 0x4d, 0x5, 0x7a, 0x8}
136123
137
-extern struct tboot *tboot;
138
-
139
-static inline int tboot_enabled(void)
140
-{
141
- return tboot != NULL;
142
-}
143
-
124
+bool tboot_enabled(void);
144125 extern void tboot_probe(void);
145126 extern void tboot_shutdown(u32 shutdown_type);
146127 extern struct acpi_table_header *tboot_get_dmar_table(