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 | // extern uint64_t smbios_p;␊ |
12 | boolean_t tableSign(void *table, const char *sgn);␊ |
13 | extern struct acpi_2_rsdp *getRSDPaddress();␊ |
14 | ␊ |
15 | extern int setupAcpi();␊ |
16 | // extern EFI_STATUS addConfigurationTable();␊ |
17 | ␊ |
18 | struct p_state ␊ |
19 | {␊ |
20 | ␉union ␊ |
21 | ␉{␊ |
22 | ␉␉uint16_t Control;␊ |
23 | ␉␉struct ␊ |
24 | ␉␉{␊ |
25 | ␉␉␉uint8_t VID;␉// Voltage ID␊ |
26 | ␉␉␉uint8_t FID;␉// Frequency ID␊ |
27 | ␉␉};␊ |
28 | ␉};␊ |
29 | ␉␊ |
30 | ␉uint8_t␉␉CID;␉␉// Compare ID␊ |
31 | ␉uint32_t␉Frequency;␊ |
32 | };␊ |
33 | ␊ |
34 | #endif /* !__LIBSAIO_ACPI_PATCHER_H */␊ |
35 | |