1 // 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 // 22 LIB_EXPORT BOOL _plat__PhysicalPresenceAsserted(void)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 // 37 LIB_EXPORT void _plat__Signal_PhysicalPresenceOn(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 // 51 LIB_EXPORT void _plat__Signal_PhysicalPresenceOff(void)52_plat__Signal_PhysicalPresenceOff( 53 void 54 ) 55 { 56 s_physicalPresence = FALSE; 57 return; 58 } 59