blob: 3062c92a3165d7bf4d5c9b8ab32929b143693479 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/** @file
This header file contains processors power management definitions.
Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php.
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef _POWER_MANAGEMENT_H_
#define _POWER_MANAGEMENT_H_
#include "PowerMgmtCommon.h"
//
// Function prototypes
//
/**
Initialize the power management support.
This function will do boot time configuration:
Install into SMRAM/SMM
Detect HW capabilities and SW configuration
Initialize HW and software state (primarily MSR and ACPI tables)
Install SMI handlers for runtime interfacess
@param[in] ImageHandle Pointer to the loaded image protocol for this driver
@param[in] SystemTable Pointer to the EFI System Table
@retval EFI_SUCCESS The driver installed/initialized correctly.
@retval Driver will ASSERT in debug builds on error. PPM functionality is considered critical for mobile systems.
**/
EFI_STATUS
EFIAPI
InitPowerManagement (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
);
/**
Initializes the CPU power management global variable.
This must be called prior to any of the functions being used.
**/
VOID
InitPowerManagementGlobalVariables (
VOID
);
/**
Initialize the platform power management based on hardware capabilities
and user configuration settings.
This includes creating FVID table, updating ACPI tables,
and updating processor and chipset hardware configuration.
This should be called prior to any Px, Cx, Tx activity.
@retval EFI_SUCCESS On success
@retval Appropiate failure code on error
**/
EFI_STATUS
InitPpmDxe (
VOID
);
#endif
|