\r
/** Gets the type of chassis for the system.\r
\r
- @param ChassisType The type of the chassis.\r
-\r
- @retval EFI_SUCCESS The chassis type was fetched successfully.\r
+ @retval The type of the chassis.\r
**/\r
-EFI_STATUS\r
+MISC_CHASSIS_TYPE\r
EFIAPI\r
OemGetChassisType (\r
- OUT UINT8 *ChassisType\r
+ VOID\r
);\r
\r
/** Returns whether the specified processor is present or not.\r
\r
/** Gets the type of chassis for the system.\r
\r
- @param ChassisType The type of the chassis.\r
-\r
- @retval EFI_SUCCESS The chassis type was fetched successfully.\r
+ @retval The type of the chassis.\r
**/\r
-EFI_STATUS\r
+MISC_CHASSIS_TYPE\r
EFIAPI\r
OemGetChassisType (\r
- UINT8 *ChassisType\r
+ VOID\r
)\r
{\r
ASSERT (FALSE);\r
- *ChassisType = MiscChassisTypeUnknown;\r
- return EFI_SUCCESS;\r
+ return MiscChassisTypeUnknown;\r
}\r
\r
/** Returns whether the specified processor is present or not.\r
\r
#include "SmbiosMisc.h"\r
\r
-/**\r
- * Returns the chassis type in SMBIOS format.\r
- *\r
- * @return Chassis type\r
-**/\r
-UINT8\r
-GetChassisType (\r
- VOID\r
- )\r
-{\r
- EFI_STATUS Status;\r
- UINT8 ChassisType;\r
-\r
- Status = OemGetChassisType (&ChassisType);\r
- if (EFI_ERROR (Status)) {\r
- return 0;\r
- }\r
-\r
- return ChassisType;\r
-}\r
-\r
/**\r
This function makes boot time changes to the contents of the\r
MiscChassisManufacturer (Type 3) record.\r
CONTAINED_ELEMENT ContainedElements;\r
UINT8 ExtendLength;\r
\r
- UINT8 ChassisType;\r
-\r
ExtendLength = 0;\r
\r
//\r
\r
SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE3) + ExtendLength + 1;\r
\r
- ChassisType = GetChassisType ();\r
- if (ChassisType != 0) {\r
- SmbiosRecord->Type = ChassisType;\r
- }\r
+ SmbiosRecord->Type = OemGetChassisType ();\r
\r
//ContainedElements\r
ASSERT (ContainedElementCount < 2);\r