Chameleon

Chameleon Svn Source Tree

Root/branches/meklort/i386/modules/ACPIPatcher/acpi_patcher.h

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_02
12#define ACPI_1_01
13
14
15extern uint64_t acpi10_p;
16extern uint64_t acpi20_p;
17extern uint64_t smbios_p;
18
19extern int setupAcpi();
20
21extern EFI_STATUS addConfigurationTable();
22
23extern EFI_GUID gEfiAcpiTableGuid;
24extern EFI_GUID gEfiAcpi20TableGuid;
25
26struct p_state
27{
28union
29{
30uint16_t Control;
31struct
32{
33uint8_t VID;// Voltage ID
34uint8_t FID;// Frequency ID
35};
36};
37
38uint8_tCID;// Compare ID
39uint32_tFrequency;
40};
41
42#endif /* !__LIBSAIO_ACPI_PATCHER_H */
43

Archive Download this file

Revision: 655