1 | /*␊ |
2 | * Copyright 2008 mackerintel␊ |
3 | */␊ |
4 | ␊ |
5 | #ifndef __LIBSAIO_ACPI_PATCHER_H␊ |
6 | #define __LIBSAIO_ACPI_PATCHER_H␊ |
7 | ␊ |
8 | #include "libsaio.h"␊ |
9 | //Slice - it's bullshit to define variables in header file␊ |
10 | //uint64_t acpi10_p;␊ |
11 | //uint64_t acpi20_p;␊ |
12 | //uint64_t smbios_p;␊ |
13 | ␊ |
14 | extern void *new_dsdt;␊ |
15 | extern uint64_t smbios_p;␊ |
16 | ␊ |
17 | extern int setupAcpi();␊ |
18 | ␊ |
19 | extern EFI_STATUS addConfigurationTable();␊ |
20 | //extern int search_and_get_acpi_fd(const char *, const char **);␊ |
21 | ␊ |
22 | extern EFI_GUID gEfiAcpiTableGuid;␊ |
23 | extern EFI_GUID gEfiAcpi20TableGuid;␊ |
24 | ␊ |
25 | struct p_state ␊ |
26 | {␊ |
27 | ␉union ␊ |
28 | ␉{␊ |
29 | ␉␉uint16_t Control;␊ |
30 | ␉␉struct ␊ |
31 | ␉␉{␊ |
32 | ␉␉␉uint8_t VID;␉// Voltage ID␊ |
33 | ␉␉␉uint8_t FID;␉// Frequency ID␊ |
34 | ␉␉};␊ |
35 | ␉};␊ |
36 | ␉␊ |
37 | ␉uint8_t␉␉CID;␉␉// Compare ID␊ |
38 | ␉uint32_t␉Frequency;␊ |
39 | };␊ |
40 | ␊ |
41 | #endif /* !__LIBSAIO_ACPI_PATCHER_H */␊ |
42 | |