rename a file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11504 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -0,0 +1,91 @@
|
||||
/** @file
|
||||
Tools of clarify the content of the smbios table.
|
||||
|
||||
Copyright (c) 2005 - 2010, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _SMBIOS_VIEW_H
|
||||
#define _SMBIOS_VIEW_H
|
||||
|
||||
#define STRUCTURE_TYPE_RANDOM (UINT8) 0xFE
|
||||
#define STRUCTURE_TYPE_INVALID (UINT8) 0xFF
|
||||
|
||||
#define STRUCTURE_HANDLE_INVALID (UINT16) 0xFFFF
|
||||
|
||||
typedef struct {
|
||||
UINT16 Index;
|
||||
UINT8 Type;
|
||||
UINT16 Handle;
|
||||
UINT16 Addr; // offset from table head
|
||||
UINT16 Length; // total structure length
|
||||
} STRUCTURE_STATISTICS;
|
||||
|
||||
/**
|
||||
Query all structures Data from SMBIOS table and Display
|
||||
the information to users as required display option.
|
||||
|
||||
@param[in] QueryType Structure type to view.
|
||||
@param[in] QueryHandle Structure handle to view.
|
||||
@param[in] Option Display option: none,outline,normal,detail.
|
||||
@param[in] RandomView Support for -h parameter.
|
||||
|
||||
@retval EFI_SUCCESS print is successful.
|
||||
@retval EFI_BAD_BUFFER_SIZE structure is out of the range of SMBIOS table.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
SMBiosView (
|
||||
IN UINT8 QueryType,
|
||||
IN UINT16 QueryHandle,
|
||||
IN UINT8 Option,
|
||||
IN BOOLEAN RandomView
|
||||
);
|
||||
|
||||
/**
|
||||
Function to initialize the global mStatisticsTable object.
|
||||
|
||||
@retval EFI_SUCCESS print is successful.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
InitSmbiosTableStatistics (
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Function to display the global mStatisticsTable object.
|
||||
|
||||
@param[in] Option ECHO, NORMAL, or DETAIL control the amount of detail displayed.
|
||||
|
||||
@retval EFI_SUCCESS print is successful.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
DisplayStatisticsTable (
|
||||
IN UINT8 Option
|
||||
);
|
||||
|
||||
/**
|
||||
function to return a string of the detail level.
|
||||
|
||||
@param[in] ShowType The detail level whose name is desired in clear text.
|
||||
|
||||
@return A pointer to a string representing the ShowType (or 'undefined type' if not known).
|
||||
**/
|
||||
CHAR16*
|
||||
EFIAPI
|
||||
GetShowTypeString (
|
||||
UINT8 ShowType
|
||||
);
|
||||
|
||||
extern UINT8 gShowType;
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user