/** @file Definitions for the TraceHubStatusCodeHandlerRuntimeDxe @copyright Copyright (c) 2013 - 2014 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 the 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. 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. @par Specification Reference: **/ #ifndef __TRACE_HUB_STATUS_CODE_WORKER_RUNTIME_DXE_H__ #define __TRACE_HUB_STATUS_CODE_WORKER_RUNTIME_DXE_H__ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include extern psven_handle_t TraceHubHandle; /** Convert status code value and extended data to readable ASCII string, send string to TraceHub device. @param CodeType Indicates the type of status code being reported. @param Value Describes the current status of a hardware or software entity. This included information about the class and subclass that is used to classify the entity as well as an operation. @param Instance The enumeration of a hardware or software entity within the system. Valid instance numbers start with 1. @param CallerId This optional parameter may be used to identify the caller. This parameter allows the status code driver to apply different rules to different callers. @param Data This optional parameter may be used to pass additional data. @retval EFI_SUCCESS Status code reported to TraceHub successfully. @retval EFI_DEVICE_ERROR EFI TraceHub device cannot work after ExitBootService() is called. @retval EFI_DEVICE_ERROR EFI TraceHub device cannot work with TPL higher than TPL_CALLBACK. **/ EFI_STATUS EFIAPI TraceHubStatusCodeReportWorkerRuntimeDxe ( IN EFI_STATUS_CODE_TYPE CodeType, IN EFI_STATUS_CODE_VALUE Value, IN UINT32 Instance, IN EFI_GUID *CallerId, IN EFI_STATUS_CODE_DATA *Data OPTIONAL ); #endif