mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-10 09:40:53 +01:00
50 lines
662 B
C
50 lines
662 B
C
/*
|
|
* FixBiosDsdt.h
|
|
*
|
|
* Created on: 16 Apr 2020
|
|
* Author: jief
|
|
*/
|
|
|
|
#ifndef PLATFORM_FIXBIOSDSDT_H_
|
|
#define PLATFORM_FIXBIOSDSDT_H_
|
|
|
|
|
|
VOID
|
|
FixBiosDsdt (
|
|
UINT8 *Dsdt,
|
|
EFI_ACPI_2_0_FIXED_ACPI_DESCRIPTION_TABLE *fadt,
|
|
CHAR8 *OSVersion
|
|
);
|
|
|
|
|
|
VOID
|
|
RenameDevices(UINT8* table);
|
|
|
|
VOID
|
|
GetBiosRegions (
|
|
UINT8 *buffer
|
|
);
|
|
|
|
INT32
|
|
FindBin (
|
|
UINT8 *Array,
|
|
UINT32 ArrayLen,
|
|
UINT8 *Pattern,
|
|
UINT32 PatternLen
|
|
);
|
|
|
|
|
|
UINT32
|
|
FixAny (
|
|
UINT8* dsdt,
|
|
UINT32 len,
|
|
UINT8* ToFind,
|
|
UINT32 LenTF,
|
|
UINT8* ToReplace,
|
|
UINT32 LenTR
|
|
);
|
|
|
|
|
|
|
|
#endif /* PLATFORM_FIXBIOSDSDT_H_ */
|