// // This file contains 'Framework Code' and is licensed as such // under the terms of your license agreement with Intel or your // vendor. This file may not be modified, except as allowed by // additional terms of your license agreement. // /** @file Definitions for the TraceHubHook Lib. INTEL CONFIDENTIAL Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.
This software and associated documentation (if any) is furnished under a license and may only be used or copied in accordance with the terms of the license. Except as permitted by such license, no part of this software or documentation may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without the express written consent of Intel Corporation. **/ #ifndef __TRACE_HUB_HOOK_LIB_H__ #define __TRACE_HUB_HOOK_LIB_H__ /** Return TraceHub Trace Address. @param [in] Thread Host is being used. @param [in] Channel Channel is being used. @param [out] TraceAddress TraceHub Address for the Host/Channel is being used. @retval RETURN_SUCCESS Retrieve correct Address. @retval RETURN_UNSUPPORTED Not implemented. @retval Other Fail to Retrieve correct TraceHub Address. **/ RETURN_STATUS EFIAPI TraceHubMmioTraceAddress ( IN UINT32 Master, IN UINT32 Channel, OUT UINT32 *TraceAddress ); /** Return Scratch Pad2 Register Value. @param [out] ScratchPad2RegValue Scratch Pad2 Register Value. @retval RETURN_SUCCESS Retrieve Scratch Pad2 Register Value. @retval RETURN_UNSUPPORTED Not implemented. @retval Other Fail to Retrieve Scratch Pad2 Register Value. **/ RETURN_STATUS EFIAPI TraceHubScratchPad2RegValue ( OUT UINT8 *ScratchPad2RegValue ); #endif // _TRACE_HUB_LIB_H_