summaryrefslogtreecommitdiff
path: root/Chipset/SB/AcpiModeEnable.h
blob: 91943a8f43d24a59a9f409fb90c015b90e8c8221 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
//*************************************************************************
//*************************************************************************
//**                                                                     **
//**        (C)Copyright 1985-2011, American Megatrends, Inc.            **
//**                                                                     **
//**                       All Rights Reserved.                          **
//**                                                                     **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093           **
//**                                                                     **
//**                       Phone: (770)-246-8600                         **
//**                                                                     **
//*************************************************************************
//*************************************************************************

//*************************************************************************
// $Header: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/AcpiModeEnable/AcpiModeEnable.h 1     2/08/12 8:30a Yurenlai $
//
// $Revision: 1 $
//
// $Date: 2/08/12 8:30a $
//*************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/AcpiModeEnable/AcpiModeEnable.h $
// 
// 1     2/08/12 8:30a Yurenlai
// Intel Lynx Point/SB eChipset initially releases.
// 
//*************************************************************************

//<AMI_FHDR_START>
//----------------------------------------------------------------------------
//
// Name:        AcpiModeEnable.h
//
// Description: 
//
//----------------------------------------------------------------------------
//<AMI_FHDR_END>

#ifndef __SMM_ACPI_EN_PROTOCOL_H__
#define __SMM_ACPI_EN_PROTOCOL_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <EFI.h>

#define EFI_ACPI_EN_DISPATCH_PROTOCOL_GUID \
                            { 0xbd88ec68, 0xebe4, 0x4f7b, 0x93, 0x5a, 0x4f,\
                              0x66, 0x66, 0x42, 0xe7, 0x5f }

#define EFI_ACPI_DIS_DISPATCH_PROTOCOL_GUID \
                            { 0x9c939ba6, 0x1fcc, 0x46f6, 0xb4, 0xe1, 0x10, \
                              0x2d, 0xbe, 0x18, 0x65, 0x67 }

#define PM1_CNT                 0x04
#define BIT_WAK_STS             0x8000
#define BIT_SLP_TYP_MASK        0x1C00
#define S3_SLP_TYP              0x05

typedef struct _EFI_ACPI_DISPATCH_PROTOCOL EFI_ACPI_DISPATCH_PROTOCOL;

//----------------------------------------------------------------------------
// EFI_ACPI_DISPATCH
//----------------------------------------------------------------------------

#ifndef __SMM_CHILD_DISPATCH__H__
typedef struct _GENERIC_LINK GENERIC_LINK;
typedef struct _GENERIC_LINK {
    void                    *Link;
};
#endif

typedef VOID (EFIAPI *EFI_ACPI_DISPATCH) (
    IN EFI_HANDLE           DispatchHandle
);

typedef struct _ACPI_DISPATCH_LINK ACPI_DISPATCH_LINK;
struct _ACPI_DISPATCH_LINK {
    IN ACPI_DISPATCH_LINK   *Link;
    IN EFI_ACPI_DISPATCH    Function;
};

typedef EFI_STATUS (EFIAPI *EFI_ACPI_REGISTER) (
    IN EFI_ACPI_DISPATCH_PROTOCOL   *This,
    IN EFI_ACPI_DISPATCH            DispatchFunction,
    OUT EFI_HANDLE                  *DispatchHandle
);

typedef EFI_STATUS (EFIAPI *EFI_ACPI_UNREGISTER) (
    IN EFI_ACPI_DISPATCH_PROTOCOL   *This,
    IN EFI_HANDLE                   DispatchHandle
);


struct _EFI_ACPI_DISPATCH_PROTOCOL {
    EFI_ACPI_REGISTER       Register;
    EFI_ACPI_UNREGISTER     UnRegister;
};


typedef EFI_STATUS (*EFI_TASK_FUNCTION) (VOID);


/****** DO NOT WRITE BELOW THIS LINE *******/
#ifdef __cplusplus
}
#endif
#endif

//*************************************************************************
//*************************************************************************
//**                                                                     **
//**        (C)Copyright 1985-2011, American Megatrends, Inc.            **
//**                                                                     **
//**                       All Rights Reserved.                          **
//**                                                                     **
//**      5555 Oakbrook Parkway, Suite 200, Norcross, GA 30093           **
//**                                                                     **
//**                       Phone: (770)-246-8600                         **
//**                                                                     **
//*************************************************************************
//*************************************************************************