summaryrefslogtreecommitdiff
path: root/Include/Protocol/PlatformToDriverConfiguration.h
blob: f97e383bacd170031f2d78fd33f767aed4d98b94 (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
//*************************************************************************
//*************************************************************************
//**                                                                     **
//**        (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/Core/Include/Protocol/PlatformToDriverConfiguration.h 1     4/22/11 6:45p Artems $
//
// $Revision: 1 $
//
// $Date: 4/22/11 6:45p $
//*************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/BIN/Core/Include/Protocol/PlatformToDriverConfiguration.h $
// 
// 1     4/22/11 6:45p Artems
// 
//*************************************************************************
//<AMI_FHDR_START>
//
// Name:  PlatformToDriverConfiguration.h
//
//  Description:
//  EFI_PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL definition file
//
//<AMI_FHDR_END>
//*************************************************************************
#ifndef __PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL__H__
#define __PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL__H__
#ifdef __cplusplus
extern "C" {
#endif

#include <EFI.h>

#define EFI_PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL_GUID \
    { 0x642cd590, 0x8059, 0x4c0a, 0xa9, 0x58, 0xc5, 0xec, 0x7, 0xd2, 0x3c, 0x4b }

GUID_VARIABLE_DECLARATION(gEfiPlatformToDriverConfigurationProtocolGuid, EFI_PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL_GUID);

typedef struct _EFI_PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL EFI_PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL;

typedef enum {
    EfiPlatformConfigurationActionNone              = 0,
    EfiPlatformConfigurationActionStopController    = 1,
    EfiPlatformConfigurationActionRestartController = 2,
    EfiPlatformConfigurationActionRestartPlatform   = 3,
    EfiPlatformConfigurationActionNvramFailed       = 4,
    EfiPlatformConfigurationActionMaximum
} EFI_PLATFORM_CONFIGURATION_ACTION;

typedef
EFI_STATUS
(EFIAPI *EFI_PLATFORM_TO_DRIVER_CONFIGURATION_QUERY) (
    IN  EFI_PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL *This,
    IN  EFI_HANDLE                                    ControllerHandle,
    IN  EFI_HANDLE                                    ChildHandle OPTIONAL,
    IN  UINTN                                         *Instance,
    OUT EFI_GUID                                      **ParameterTypeGuid,
    OUT VOID                                          **ParameterBlock,
    OUT UINTN                                         *ParameterBlockSize
);

typedef
EFI_STATUS
    (EFIAPI *EFI_PLATFORM_TO_DRIVER_CONFIGURATION_RESPONSE) (
    IN EFI_PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL *This,
    IN EFI_HANDLE                                    ControllerHandle,
    IN EFI_HANDLE                                    ChildHandle OPTIONAL,
    IN UINTN                                         *Instance,
    IN EFI_GUID                                      *ParameterTypeGuid,
    IN VOID                                          *ParameterBlock,
    IN UINTN                                         ParameterBlockSize,
    IN EFI_PLATFORM_CONFIGURATION_ACTION             ConfigurationAction
);

struct _EFI_PLATFORM_TO_DRIVER_CONFIGURATION_PROTOCOL {
    EFI_PLATFORM_TO_DRIVER_CONFIGURATION_QUERY Query;
    EFI_PLATFORM_TO_DRIVER_CONFIGURATION_RESPONSE Response;
};


/****** 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                         **
//**                                                                     **
//*************************************************************************
//*************************************************************************