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
|
//**********************************************************************
//**********************************************************************
//** **
//** (C)Copyright 1985-2011, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//**********************************************************************
//**********************************************************************
// $Header: /Alaska/SOURCE/Modules/KbcEmulation/ALASKA/KBCEMUL/Ap4x.c 3 2/10/11 1:09a Rameshr $
//
// $Revision: 3 $
//
// $Date: 2/10/11 1:09a $
//
//****************************************************************************
// Revision History
// ----------------
// $Log: /Alaska/SOURCE/Modules/KbcEmulation/ALASKA/KBCEMUL/Ap4x.c $
//
// 3 2/10/11 1:09a Rameshr
// [TAG] EIP53687
// [Category] Improvement
// [Description] AMI headers update for KbcEmulation Module
// [Files] KbcEmul.mak,KbcEmul.dxs,KbcEmul.c,KbcEmul.h,KbcEmulLib.h,Kbc
// EmulLib.c,Kbc.h,KbcDevEmul.h,Kbccore.c,Legacykbc.c,Legacykbd.c,LegacyMo
// use.c,VirtualKbc.c,VirtualKbd.c,VirtualMouse.c,Ap4x.h,Ap4x.c,KbcUhci.c,
// KbcUhci.h,KbcEmulIrq.c, KbcOhci.c, Kbcohci.h
//
// 2 6/30/09 11:32a Rameshr
// Coding Standard and File header updated.
//
// 1 12/14/07 10:26a Rameshraju
// Initial Check-in
//****************************************************************************
//<AMI_FHDR_START>
//****************************************************************************
// Name: Ap4x.c
//
// Description: It has the Aptio4.x compatibility function
//
//****************************************************************************
//<AMI_FHDR_END>
#include "KbcEmul.h"
EFI_SMM_CPU_IO_INTERFACE* gCpuIo = 0;
EFI_SMM_BASE_PROTOCOL* gSMM = 0;
EFI_SMM_SYSTEM_TABLE* gSmst = 0;
extern EFI_GUID gEfiSmmBaseProtocolGuid;
initializeLib(IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable)
{
EfiInitializeSmmDriverLib (ImageHandle, SystemTable);
gBS->LocateProtocol (&gEfiSmmBaseProtocolGuid, NULL, &gSMM);
gSMM->GetSmstLocation (gSMM, &gSmst);
gCpuIo = &gSmst->SmmIo;
}
//**********************************************************************
//**********************************************************************
//** **
//** (C)Copyright 1985-2011, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//**********************************************************************
//**********************************************************************
|