1 | /*␊ |
2 | * Copyright 2008 mackerintel␊ |
3 | * 2010 mojodojo␊ |
4 | */␊ |
5 | ␊ |
6 | #ifndef __LIBSAIO_ACPI_PATCHER_H␊ |
7 | #define __LIBSAIO_ACPI_PATCHER_H␊ |
8 | ␊ |
9 | #include "libsaio.h"␊ |
10 | ␊ |
11 | /* From Foundation/Efi/Guid/Acpi/Acpi.h */␊ |
12 | /* Modified to wrap Data4 array init with {} */␊ |
13 | #define EFI_ACPI_TABLE_GUID {0xeb9d2d30, 0x2d88, 0x11d3, {0x9a, 0x16, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d}}␊ |
14 | #define EFI_ACPI_20_TABLE_GUID {0x8868e871, 0xe4f1, 0x11d3, {0xbc, 0x22, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81}}␊ |
15 | extern EFI_GUID const gEfiAcpiTableGuid;␊ |
16 | extern EFI_GUID const gEfiAcpi20TableGuid;␊ |
17 | ␊ |
18 | extern uint64_t acpi10_p;␊ |
19 | extern uint64_t acpi20_p;␊ |
20 | // extern uint64_t smbios_p; - moved to smbios.h␊ |
21 | ␊ |
22 | boolean_t tableSign(void *table, const char *sgn);␊ |
23 | struct acpi_2_rsdp *getRSDPaddress();␊ |
24 | ␊ |
25 | extern int setupAcpi();␊ |
26 | // extern EFI_STATUS addConfigurationTable();␊ |
27 | ␊ |
28 | struct p_state ␊ |
29 | {␊ |
30 | ␉union ␊ |
31 | ␉{␊ |
32 | ␉␉uint16_t Control;␊ |
33 | ␉␉struct ␊ |
34 | ␉␉{␊ |
35 | ␉␉␉uint8_t VID;␉// Voltage ID␊ |
36 | ␉␉␉uint8_t FID;␉// Frequency ID␊ |
37 | ␉␉};␊ |
38 | ␉};␊ |
39 | ␉␊ |
40 | ␉uint8_t␉␉CID;␉␉// Compare ID␊ |
41 | ␉uint32_t␉Frequency;␊ |
42 | };␊ |
43 | ␊ |
44 | #endif /* !__LIBSAIO_ACPI_PATCHER_H */␊ |
45 | |