OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
Smbios.c File Reference
#include <UserFile.h>
#include <UserGlobalVar.h>
#include <UserBootServices.h>
#include <UserPcd.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/OcSmbiosLib.h>
#include <Library/OcMiscLib.h>
#include <IndustryStandard/AppleSmBios.h>
#include <sys/time.h>
#include <stdint.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>

Go to the source code of this file.

Functions

int ENTRY_POINT (int argc, char *argv[])
 
int LLVMFuzzerTestOneInput (const uint8_t *Data, size_t Size)
 

Variables

STATIC GUID SystemUUID
 
STATIC UINT8 BoardType = 0xA
 
STATIC UINT8 MemoryFormFactor = 0xD
 
STATIC UINT8 ChassisType = 0xD
 
STATIC UINT32 PlatformFeature = 1
 
STATIC OC_SMBIOS_DATA SmbiosData
 
bool doDump = false
 
SMBIOS_TABLE_ENTRY_POINT gSmbios
 
SMBIOS_TABLE_3_0_ENTRY_POINT gSmbios3
 

Detailed Description

Copyright (C) 2018, vit9696. All rights reserved.

All rights reserved.

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.

Definition in file Smbios.c.

Function Documentation

◆ ENTRY_POINT()

int ENTRY_POINT ( int argc,
char * argv[] )

Definition at line 75 of file Smbios.c.

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t * Data,
size_t Size )

Definition at line 139 of file Smbios.c.

Variable Documentation

◆ BoardType

STATIC UINT8 BoardType = 0xA

Definition at line 35 of file Smbios.c.

◆ ChassisType

STATIC UINT8 ChassisType = 0xD

Definition at line 37 of file Smbios.c.

◆ doDump

bool doDump = false

Definition at line 69 of file Smbios.c.

◆ gSmbios

SMBIOS_TABLE_ENTRY_POINT gSmbios

Definition at line 71 of file Smbios.c.

◆ gSmbios3

SMBIOS_TABLE_3_0_ENTRY_POINT gSmbios3

Definition at line 72 of file Smbios.c.

◆ MemoryFormFactor

STATIC UINT8 MemoryFormFactor = 0xD

Definition at line 36 of file Smbios.c.

◆ PlatformFeature

STATIC UINT32 PlatformFeature = 1

Definition at line 38 of file Smbios.c.

◆ SmbiosData

STATIC OC_SMBIOS_DATA SmbiosData
Initial value:
= {
.BIOSVendor = NULL,
.BIOSVersion = "134.0.0.0.0",
.BIOSReleaseDate = "12/08/2017",
.SystemManufacturer = NULL,
.SystemProductName = "iMac14,2",
.SystemVersion = "1.0",
.SystemSerialNumber = "SU77OPENCORE",
.SystemUUID = &SystemUUID,
.SystemSKUNumber = "Mac-27ADBB7B4CEE8E61",
.SystemFamily = "iMac",
.BoardManufacturer = NULL,
.BoardProduct = "Mac-27ADBB7B4CEE8E61",
.BoardVersion = "iMac14,2",
.BoardSerialNumber = "SU77PEPELATZWAFFE",
.BoardAssetTag = "",
.BoardLocationInChassis = "Part Component",
.BoardType = &BoardType,
.MemoryFormFactor = &MemoryFormFactor,
.ChassisType = &ChassisType,
.ChassisManufacturer = NULL,
.ChassisVersion = "Mac-27ADBB7B4CEE8E61",
.ChassisSerialNumber = "SU77OPENCORE",
.ChassisAssetTag = "iMac-Aluminum",
.FirmwareFeatures = 0xE00FE137,
.FirmwareFeaturesMask = 0xFF1FFF3F,
.ProcessorType = NULL,
.PlatformFeature = &PlatformFeature
}
STATIC UINT8 BoardType
Definition Smbios.c:35
STATIC UINT8 MemoryFormFactor
Definition Smbios.c:36
STATIC GUID SystemUUID
Definition Smbios.c:32
STATIC UINT8 ChassisType
Definition Smbios.c:37
STATIC UINT32 PlatformFeature
Definition Smbios.c:38

Definition at line 39 of file Smbios.c.

◆ SystemUUID

STATIC GUID SystemUUID
Initial value:
= {
0x5BC82C38, 0x4DB6, 0x4883, { 0x85, 0x2E, 0xE7, 0x8D, 0x78, 0x0A, 0x6F, 0xE6 }
}

Definition at line 32 of file Smbios.c.