aboutsummaryrefslogtreecommitdiff
path: root/PPPlat.c
blob: a7c8fb479e73d6b14211cd6db21c285884cb032e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// This file was extracted from the TCG Published
// Trusted Platform Module Library
// Part 4: Supporting Routines
// Family "2.0"
// Level 00 Revision 01.16
// October 30, 2014

#include "PlatformData.h"
//
//
//      Functions
//
//      _plat__PhysicalPresenceAsserted()
//
//     Check if physical presence is signaled
//
//     Return Value                      Meaning
//
//     TRUE                              if physical presence is signaled
//     FALSE                             if physical presence is not signaled
//
LIB_EXPORT BOOL
_plat__PhysicalPresenceAsserted(
   void
   )
{
   // Do not know how to check physical presence without real hardware.
   // so always return TRUE;
   return s_physicalPresence;
}
//
//
//      _plat__Signal_PhysicalPresenceOn()
//
//     Signal physical presence on
//
LIB_EXPORT void
_plat__Signal_PhysicalPresenceOn(
   void
   )
{
   s_physicalPresence = TRUE;
   return;
}
//
//
//      _plat__Signal_PhysicalPresenceOff()
//
//     Signal physical presence off
//
LIB_EXPORT void
_plat__Signal_PhysicalPresenceOff(
   void
   )
{
   s_physicalPresence = FALSE;
   return;
}