};\r
\r
\r
-/**\r
- Validates the SMBIOS entry point structure\r
-\r
- @param EntryPointStructure SMBIOS entry point structure\r
-\r
- @retval TRUE The entry point structure is valid\r
- @retval FALSE The entry point structure is not valid\r
-\r
-**/\r
-BOOLEAN\r
-IsEntryPointStructureValid (\r
- IN SMBIOS_TABLE_ENTRY_POINT *EntryPointStructure\r
- )\r
-{\r
- UINTN Index;\r
- UINT8 Length;\r
- UINT8 Checksum;\r
- UINT8 *BytePtr;\r
-\r
- BytePtr = (UINT8*) EntryPointStructure;\r
- Length = EntryPointStructure->EntryPointLength;\r
- Checksum = 0;\r
-\r
- for (Index = 0; Index < Length; Index++) {\r
- Checksum = Checksum + (UINT8) BytePtr[Index];\r
- }\r
-\r
- if (Checksum != 0) {\r
- return FALSE;\r
- } else {\r
- return TRUE;\r
- }\r
-}\r
-\r
-\r
/**\r
Get SMBIOS record length.\r
\r