blob: a7c8fb479e73d6b14211cd6db21c285884cb032e [file] [log] [blame]
Vadim Bendebury56797522015-05-20 10:32:25 -07001// This file was extracted from the TCG Published
2// Trusted Platform Module Library
3// Part 4: Supporting Routines
4// Family "2.0"
5// Level 00 Revision 01.16
6// October 30, 2014
7
8#include "PlatformData.h"
9//
10//
11// Functions
12//
13// _plat__PhysicalPresenceAsserted()
14//
15// Check if physical presence is signaled
16//
17// Return Value Meaning
18//
19// TRUE if physical presence is signaled
20// FALSE if physical presence is not signaled
21//
22LIB_EXPORT BOOL
23_plat__PhysicalPresenceAsserted(
24 void
25 )
26{
27 // Do not know how to check physical presence without real hardware.
28 // so always return TRUE;
29 return s_physicalPresence;
30}
31//
32//
33// _plat__Signal_PhysicalPresenceOn()
34//
35// Signal physical presence on
36//
37LIB_EXPORT void
38_plat__Signal_PhysicalPresenceOn(
39 void
40 )
41{
42 s_physicalPresence = TRUE;
43 return;
44}
45//
46//
47// _plat__Signal_PhysicalPresenceOff()
48//
49// Signal physical presence off
50//
51LIB_EXPORT void
52_plat__Signal_PhysicalPresenceOff(
53 void
54 )
55{
56 s_physicalPresence = FALSE;
57 return;
58}