Root/
Source at commit 655 created 13 years 4 months ago. By meklort, Modules update. removed hardcoding for dyld_stub_bunder in modules.c Added a subset of klibc for a more complete c library implimentation. Added a subset of uclibc++ for an initial c++ implimentation. Note: cout / cin / file io has been disabled. Also note that exceptions and rtti is disabled. Modified the helow world code foa small c++ test. | |
---|---|
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 | #include "efi.h"␊ |
10 | ␊ |
11 | #define ACPI_2_0␉␉2␊ |
12 | #define ACPI_1_0␉␉1␊ |
13 | ␊ |
14 | ␊ |
15 | extern uint64_t acpi10_p;␊ |
16 | extern uint64_t acpi20_p;␊ |
17 | extern uint64_t smbios_p;␊ |
18 | ␊ |
19 | extern int setupAcpi();␊ |
20 | ␊ |
21 | extern EFI_STATUS addConfigurationTable();␊ |
22 | ␊ |
23 | extern EFI_GUID gEfiAcpiTableGuid;␊ |
24 | extern EFI_GUID gEfiAcpi20TableGuid;␊ |
25 | ␊ |
26 | struct p_state ␊ |
27 | {␊ |
28 | ␉union ␊ |
29 | ␉{␊ |
30 | ␉␉uint16_t Control;␊ |
31 | ␉␉struct ␊ |
32 | ␉␉{␊ |
33 | ␉␉␉uint8_t VID;␉// Voltage ID␊ |
34 | ␉␉␉uint8_t FID;␉// Frequency ID␊ |
35 | ␉␉};␊ |
36 | ␉};␊ |
37 | ␉␊ |
38 | ␉uint8_t␉␉CID;␉␉// Compare ID␊ |
39 | ␉uint32_t␉Frequency;␊ |
40 | };␊ |
41 | ␊ |
42 | #endif /* !__LIBSAIO_ACPI_PATCHER_H */␊ |
43 |