summaryrefslogtreecommitdiff
path: root/Core/EM/Terminal/TerminalSetupVar.h
blob: 081679dd0738a5256aac0464df3a982ce1aa5b00 (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
//****************************************************************************
//****************************************************************************
//**                                                                        **
//**             (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/TerminalSetupVar.h 14    12/12/11 6:55a Rajeshms $
//
// $Revision: 14 $
//
// $Date: 12/12/11 6:55a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/BIN/Modules/Terminal/TerminalSetupVar.h $
// 
// 14    12/12/11 6:55a 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
// 
// 13    1/24/11 4:04a Lavanyap
// [TAG] - EIP48183
// [Category] - IMPROVEMENT
// [Description] - Update the Terminal eModule to utilize Setup
// Customization 
// [Files] - Terminal.sd, TerminalSetupVar.h
// 
// 12    5/03/10 12:22a Rameshr
// Issue:VT-UTF8 mode support for Console redirection with Debugger
// Solution: Serial Port attribute Setup questions added for the debugger
// console redirection port.
// EIP 37440
// 
// 11    9/28/09 4:09p Rameshr
// Terminal assumes UID to be started from 0. This assumption removed as
// UID should be unique and not be started from 0.
// EIP 17239
// 
// 10    7/02/09 5:01p Rameshr
// Coding Standard and File header updated.
// 
// 9     6/22/09 12:58p Ambikas
// 
// 8     4/14/08 6:51p Ambikas
// 
// 7     6/12/07 3:55p Ambikas
// 
// 6     6/06/07 7:53p Ambikas
// We no longer save segment and bus number of pci serial device.
// 
// 5     6/05/07 6:16p Ambikas
// 
// 4     6/05/07 11:47a Ambikas
//
// 3     6/4/2007 7:31p
// The setup question related data structures for the serial ports will
// not be defined if TOTAL_SERIAL_PORTS is 0.  
//
// 2     5/24/2007 2:33p Ambikas
//
// 1     5/05/2006 5:33p Ambikas
//
//**********************************************************************
//<AMI_FHDR_START>
//
// Name: TerminalSetupVar.h
//
// Description: Contains definition of PCI_SERIAL_PORTS_LOCATION_VAR 
//		and of varstore declaration SERIAL_PORTS_ENABLED_VAR.
//
//<AMI_FHDR_END>
//**********************************************************************

#ifndef _TERMINAL_SETUP_VAR_H
#define _TERMINAL_SETUP_VAR_H
#ifdef __cplusplus
extern "C" {
#endif

#include <token.h>

#define TERMINAL_VAR_GUID \
{0x560bf58a, 0x1e0d, 0x4d7e, 0x95, 0x3f, 0x29, 0x80, 0xa2, 0x61, 0xe0, 0x31}

#define SERIAL_PORTS_ENABLED_VAR_C_NAME         L"SerialPortsEnabledVar"
#define SIO_SERIAL_PORTS_LOCATION_VAR_C_NAME    L"SioSerialPortsLocationVar"
#define PCI_SERIAL_PORTS_LOCATION_VAR_C_NAME    L"PciSerialPortsLocationVar"
#define DEBUGGER_SERIAL_PORTS_ENABLED_VAR_C_NAME         L"DebuggerSerialPortsEnabledVar"

#define DEBUGGER_TERMINAL_VAR_GUID \
{0x97ca1a5b, 0xb760, 0x4d1f, 0xa5, 0x4b, 0xd1, 0x90, 0x92, 0x3, 0x2c, 0x90}

#pragma pack(1)

#ifndef TYPEDEF_DEBUGGER_SERIAL_PORTS_ENABLED_VAR
#define TYPEDEF_DEBUGGER_SERIAL_PORTS_ENABLED_VAR
    typedef struct { 
        UINT8 PortEnabled;
    } DEBUGGER_SERIAL_PORTS_ENABLED_VAR;
#endif

#if (TOTAL_SERIAL_PORTS > 0)
#ifndef TYPEDEF_SERIAL_PORTS_ENABLED_VAR
#define TYPEDEF_SERIAL_PORTS_ENABLED_VAR
    typedef struct { 
        UINT8 PortsEnabled[ TOTAL_SERIAL_PORTS ];
    } SERIAL_PORTS_ENABLED_VAR;
#endif
#endif

#if (TOTAL_SIO_SERIAL_PORTS > 0)
#ifndef TYPEDEF_SIO_SERIAL_PORTS_LOCATION_VAR
#define TYPEDEF_SIO_SERIAL_PORTS_LOCATION_VAR
    typedef struct { 
        UINT8 PortUid[ TOTAL_SIO_SERIAL_PORTS ];
        UINT8 Valid[ TOTAL_SIO_SERIAL_PORTS ];
    } SIO_SERIAL_PORTS_LOCATION_VAR;
#endif
#endif

#if (TOTAL_PCI_SERIAL_PORTS > 0)
#ifndef TYPEDEF_PCI_SERIAL_PORTS_LOCATION_VAR
#define TYPEDEF_PCI_SERIAL_PORTS_LOCATION_VAR
    typedef struct { 
        UINT8 Segment[ TOTAL_PCI_SERIAL_PORTS ]; 
        UINT8 Bus[ TOTAL_PCI_SERIAL_PORTS ]; 
        UINT8 Device[ TOTAL_PCI_SERIAL_PORTS ]; 
        UINT8 Function[ TOTAL_PCI_SERIAL_PORTS ]; 
        UINT8 AmiPciSerialPresent[ TOTAL_PCI_SERIAL_PORTS ];
        UINT8 Port[ TOTAL_PCI_SERIAL_PORTS ]; 
    } PCI_SERIAL_PORTS_LOCATION_VAR;
#endif
#endif

#pragma pack()

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