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