summaryrefslogtreecommitdiff
path: root/Include/Protocol/SmmBiosWriteDispatch.h
blob: 6ac88e7a35d5051f097cfebc39cd7a10ae8e07b9 (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
//*************************************************************************
//*************************************************************************
//**                                                                     **
//**        (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/SB Protocols/SmmBiosWriteDispatch.h 1     2/08/12 8:26a Yurenlai $
//
// $Revision: 1 $
//
// $Date: 2/08/12 8:26a $
//*************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/BIN/Chipset/Intel/SouthBridge/LynxPoint/Intel Pch SB Chipset/SB Protocols/SmmBiosWriteDispatch.h $
// 
// 1     2/08/12 8:26a Yurenlai
// Intel Lynx Point/SB eChipset initially releases.
// 
//*************************************************************************
//<AMI_FHDR_START>
//
// Name: SmmBiosWriteDispatch.h
//
// Description:	SMM BIOS Write Dispatch Protocol header.
//
//<AMI_FHDR_END>
//*************************************************************************

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

// {E512DFE4-BF44-480d-9B7A-777B0BE32775}
#define EFI_SMM_BIOS_WRITE_DISPATCH_PROTOCOL_GUID \
  {0xe512dfe4, 0xbf44, 0x480d, 0x9b, 0x7a, 0x77, 0x7b, 0xb, 0xe3, 0x27, 0x75}

GUID_VARIABLE_DECLARATION( gEfiSmmBiosWriteDispatchProtocolGuid, \
                                  EFI_SMM_BIOS_WRITE_DISPATCH_PROTOCOL_GUID);

typedef struct _EFI_SMM_BIOS_WRITE_DISPATCH_PROTOCOL \
                                        EFI_SMM_BIOS_WRITE_DISPATCH_PROTOCOL;

//******************************************************
// EFI_SMM_BIOS_WRITE_DISPATCH
//******************************************************
typedef VOID (EFIAPI *EFI_SMM_BIOS_WRITE_DISPATCH) (
    IN EFI_HANDLE                           DispatchHandle,
	IN VOID                                 *DispatchContext
);


typedef EFI_STATUS (EFIAPI *EFI_SMM_BIOS_WRITE_REGISTER) (
    IN EFI_SMM_BIOS_WRITE_DISPATCH_PROTOCOL *This,
    IN EFI_SMM_BIOS_WRITE_DISPATCH          DispatchFunction,
    OUT EFI_HANDLE                          *DispatchHandle
);

typedef EFI_STATUS (EFIAPI *EFI_SMM_BIOS_WRITE_UNREGISTER) (
    IN EFI_SMM_BIOS_WRITE_DISPATCH_PROTOCOL *This,
    IN EFI_HANDLE                           DispatchHandle
);


struct _EFI_SMM_BIOS_WRITE_DISPATCH_PROTOCOL {
    EFI_SMM_BIOS_WRITE_REGISTER             Register;
    EFI_SMM_BIOS_WRITE_UNREGISTER           UnRegister;
};


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