3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Header for the status code data hub logging component
22 #ifndef _EFI_BS_DATA_HUB_STATUS_CODE_H_
23 #define _EFI_BS_DATA_HUB_STATUS_CODE_H_
26 // Private data declarations
28 #define MAX_RECORD_NUM 1000
29 #define BYTES_PER_RECORD EFI_STATUS_CODE_DATA_MAX_SIZE
30 #define EMPTY_RECORD_TAG 0xFF
32 #define BS_DATA_HUB_STATUS_CODE_SIGNATURE EFI_SIGNATURE_32 ('B', 'D', 'H', 'S')
37 UINT8 RecordBuffer
[BYTES_PER_RECORD
];
38 } STATUS_CODE_RECORD_LIST
;
41 // Function prototypes
43 STATUS_CODE_RECORD_LIST
*
53 Returned buffer of length BYTES_PER_RECORD
61 Entry in mRecordBuffer or NULL if non available
64 DATA_HUB_STATUS_CODE_DATA_RECORD
*
65 AquireEmptyRecordBuffer (
74 Allocate a mRecordBuffer entry in the form of a pointer.
82 Pointer to new buffer. NULL if none exist.
87 IN STATUS_CODE_RECORD_LIST
*RecordBuffer
95 Release a mRecordBuffer entry allocated by AquireEmptyRecordBuffer ().
99 RecordBuffer - Data to free
103 EFI_SUCCESS - If RecordBuffer is valid
104 EFI_UNSUPPORTED - The record list has empty
109 LogDataHubEventHandler (
119 Event Handler that log in Status code in Data Hub.
123 (Standard EFI Event Handler - EFI_EVENT_NOTIFY)