Chameleon

Chameleon Svn Source Tree

Root/branches/Bungo/i386/libsaio/acpi_patcher.h

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/* From Foundation/Efi/Guid/Acpi/Acpi.h */
12/* Modified to wrap Data4 array init with {} */
13#define EFI_ACPI_TABLE_GUID {0xeb9d2d30, 0x2d88, 0x11d3, {0x9a, 0x16, 0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d}}
14#define EFI_ACPI_20_TABLE_GUID {0x8868e871, 0xe4f1, 0x11d3, {0xbc, 0x22, 0x0, 0x80, 0xc7, 0x3c, 0x88, 0x81}}
15extern EFI_GUID const gEfiAcpiTableGuid;
16extern EFI_GUID const gEfiAcpi20TableGuid;
17
18extern uint64_t acpi10_p;
19extern uint64_t acpi20_p;
20// extern uint64_t smbios_p; - moved to smbios.h
21
22boolean_t tableSign(void *table, const char *sgn);
23struct acpi_2_rsdp *getRSDPaddress();
24
25extern int setupAcpi();
26// extern EFI_STATUS addConfigurationTable();
27
28struct p_state
29{
30union
31{
32uint16_t Control;
33struct
34{
35uint8_t VID;// Voltage ID
36uint8_t FID;// Frequency ID
37};
38};
39
40uint8_tCID;// Compare ID
41uint32_tFrequency;
42};
43
44#endif /* !__LIBSAIO_ACPI_PATCHER_H */
45

Archive Download this file

Revision: 2469