-/*++\r
-\r
-Copyright (c) 2006, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-Module Name:\r
-\r
- DebugAssert.h\r
-\r
-Abstract:\r
-\r
- This protocol allows provides debug services to a driver. This is not \r
- debugger support, but things like ASSERT() and DEBUG() macros\r
-\r
---*/\r
-\r
-#ifndef _DEBUG_ASSERT_H_\r
-#define _DEBUG_ASSERT_H_\r
-\r
-\r
-#define EFI_DEBUG_ASSERT_PROTOCOL_GUID \\r
- { 0xbe499c92, 0x7d4b, 0x11d4, {0xbc, 0xee, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81 } }\r
-\r
-//\r
-// Forward reference for pure ANSI compatability\r
-//\r
-typedef struct _EFI_DEBUG_ASSERT_PROTOCOL EFI_DEBUG_ASSERT_PROTOCOL;\r
-\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_DEBUG_ASSERT) (\r
- IN EFI_DEBUG_ASSERT_PROTOCOL *This,\r
- IN CHAR8 *FileName,\r
- IN INTN LineNumber,\r
- IN CHAR8 *Description\r
- );\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_DEBUG_PRINT) (\r
- IN EFI_DEBUG_ASSERT_PROTOCOL *This,\r
- IN UINTN ErrorLevel,\r
- IN CHAR8 *Format,\r
- IN VA_LIST Marker\r
- );\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_POST_CODE) (\r
- IN EFI_DEBUG_ASSERT_PROTOCOL *This,\r
- IN UINT16 PostCode,\r
- IN CHAR8 *PostCodeString OPTIONAL\r
- );\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_GET_ERROR_LEVEL) (\r
- IN EFI_DEBUG_ASSERT_PROTOCOL *This,\r
- IN UINTN *ErrorLevel\r
- );\r
-\r
-typedef\r
-EFI_STATUS\r
-(EFIAPI *EFI_SET_ERROR_LEVEL) (\r
- IN EFI_DEBUG_ASSERT_PROTOCOL *This,\r
- IN UINTN ErrorLevel\r
- );\r
-\r
-struct _EFI_DEBUG_ASSERT_PROTOCOL {\r
- \r
- EFI_DEBUG_ASSERT Assert;\r
- EFI_DEBUG_PRINT Print;\r
- EFI_POST_CODE PostCode;\r
-\r
- EFI_GET_ERROR_LEVEL GetErrorLevel;\r
- EFI_SET_ERROR_LEVEL SetErrorLevel;\r
-\r
-};\r
-\r
-extern EFI_GUID gEfiDebugAssertProtocolGuid;\r
-\r
-#endif\r