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
|
//**********************************************************************
//**********************************************************************
//** **
//** (C)Copyright 1985-2009, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//**********************************************************************
//**********************************************************************
// $Header: /Alaska/BIN/Modules/Terminal/TerminalAmiSerial.h 1 12/12/11 8:37a Rajeshms $
//
// $Revision: 1 $
//
// $Date: 12/12/11 8:37a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/BIN/Modules/Terminal/TerminalAmiSerial.h $
//
// 1 12/12/11 8:37a Rajeshms
// [TAG] EIP71636
// [Category] New Feature
// [Description] Implement the AMI_SERIAL_PROTOCOL for non-generic PCI
// Serial Device.
// [Files] AmiSerial.c, AmiSerial.sdl, AmiSerial.mak, AmiSerial.chm,
// AmiSerial.dxs, AmiSerial.cif, Terminal.c, SerialIo.c, TerminalSetup.c,
// InitTerminalStrings.c, TerminalSetupVar.h, Terminal.cif,
// TerminalAmiSerial.h, LegacySredir_Setup.c
//
//
//
//**********************************************************************
//<AMI_FHDR_START>
//--------------------------------------------------------------------------
//
// Name: TerminalAmiSerial.h
//
// Description: AMI Serial Protocol Definiton.
//
//--------------------------------------------------------------------------
//<AMI_FHDR_END>
#ifndef _AMI_SERIAL_H_
#define _AMI_SERIAL_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <EFI.h>
#include <Protocol\DevicePath.h>
#define AMI_SERIAL_VENDOR_DEVICE_PATH_GUID \
{0x32d1497b,0x288c,0x440a,0x9f,0xc3,0x65,0x1a,0x14,0xef,0xc7,0xb4}
#define AMI_SERIAL_PROTOCOL_GUID \
{0x50dc5c90,0x1d33,0x4fd6,0x87,0xe5,0x06,0x3b,0x1d,0xfa,0x21,0x70}
GUID_VARIABLE_DECLARATION(gAmiSerialProtocolGuid,AMI_SERIAL_PROTOCOL_GUID);
typedef struct _AMI_SERIAL_PROTOCOL AMI_SERIAL_PROTOCOL;
typedef VOID (EFIAPI *EFI_SERIAL_GET_BASE_ADDRESS) (
IN AMI_SERIAL_PROTOCOL *This,
OUT UINT64 *BaseAddress
);
typedef VOID (EFIAPI *EFI_CHECK_PCI_MMIO) (
IN AMI_SERIAL_PROTOCOL *This,
OUT BOOLEAN *Pci,
OUT BOOLEAN *Mmio
);
typedef VOID (EFIAPI *EFI_GET_PCI_LOCATION) (
IN AMI_SERIAL_PROTOCOL *This,
OUT UINTN *Bus,
OUT UINTN *Dev,
OUT UINTN *Func,
OUT UINT8 *Port
);
typedef VOID (EFIAPI *EFI_GET_SERIAL_IRQ) (
IN AMI_SERIAL_PROTOCOL *This,
OUT UINT8 *SerialIRQ
);
struct _AMI_SERIAL_PROTOCOL {
EFI_SERIAL_GET_BASE_ADDRESS GetBaseAddress;
EFI_CHECK_PCI_MMIO CheckPciMmio;
EFI_GET_PCI_LOCATION GetPciLocation;
EFI_GET_SERIAL_IRQ GetSerialIRQ;
};
typedef struct {
VENDOR_DEVICE_PATH VendorDevicePath;
UINT8 Bus;
UINT8 Device;
UINT8 Function;
UINT8 Port;
}AMI_SERIAL_VENDOR_DEVICE_PATH;
#ifdef __cplusplus
}
#endif
#endif
//**********************************************************************
//**********************************************************************
//** **
//** (C)Copyright 1985-2009, American Megatrends, Inc. **
//** **
//** All Rights Reserved. **
//** **
//** 5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093 **
//** **
//** Phone: (770)-246-8600 **
//** **
//**********************************************************************
//**********************************************************************
|