/** @file
This driver installs SMBIOS information for OVMF
Copyright (c) 2011, Bei Guan <gbtju85@gmail.com>
Copyright (c) 2011, 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
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#include "SmbiosPlatformDxe.h"
/**
Validates the SMBIOS entry point structure
@param EntryPointStructure SMBIOS entry point structure
@retval TRUE The entry point structure is valid
@retval FALSE The entry point structure is not valid
**/
)
{
Checksum = 0;
}
if (Checksum != 0) {
return FALSE;
} else {
return TRUE;
}
}
/**
Get SMBIOS record length.
@param SmbiosTable SMBIOS pointer.
**/
)
{
//
// Each structure shall be terminated by a double-null (SMBIOS spec.7.1)
//
AChar ++;
}
return Length;
}
/**
Install all structures from the given SMBIOS structures block
@param Smbios SMBIOS protocol
@param EntryPointStructure SMBIOS entry point structures block
**/
)
{
return EFI_INVALID_PARAMETER;
}
//
// Log the SMBIOS data for this structure
//
NULL,
);
//
// Get the next structure address
//
}
return EFI_SUCCESS;
}
/**
Installs SMBIOS information for OVMF
@param ImageHandle Module's image handle
@param SystemTable Pointer of EFI_SYSTEM_TABLE
@retval EFI_SUCCESS Smbios data successfully installed
@retval Other Smbios data was not installed
**/
)
{
//
// Find the SMBIOS protocol
//
NULL,
);
return Status;
}
//
// Add Xen SMBIOS data if found
//
if (EntryPointStructure != NULL) {
}
return Status;
}