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
|
//
// This file contains 'Framework Code' and is licensed as such
// under the terms of your license agreement with Intel or your
// vendor. This file may not be modified, except as allowed by
// additional terms of your license agreement.
//
/*++
Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved
This software and associated documentation (if any) is furnished
under a license and may only be used or copied in accordance
with the terms of the license. Except as permitted by such
license, no part of this software or documentation may be
reproduced, stored in a retrieval system, or transmitted in any
form or by any means without the express written consent of
Intel Corporation.
Module Name:
TelnetServer.h
Abstract:
Private Data definition for Telnet Server driver
--*/
#ifndef _EFI_TELNET_SERVER_PROTOCOL_H_
#define _EFI_TELNET_SERVER_PROTOCOL_H_
#define EFI_TELNET_SERVER_PROTOCOL_GUID \
{ \
0x6d3569d4, 0x85e5, 0x4943, 0xae, 0x46, 0xee, 0x67, 0xa6, 0xe1, 0xab, 0x5a \
}
EFI_FORWARD_DECLARATION (EFI_TELNET_SERVER_PROTOCOL);
//
// Telnet Options (used in conjunction with Telnet Commands)
//
#define TRANSMIT_BINARY (UINT8) 0 // Transmit in 8-bit binary form
#define ECHO (UINT8) 1 // Allow one side to echo data it receives
#define SUPPRESS_GA (UINT8) 3 // Suppress Go-ahead signal after data
#define STATUS (UINT8) 5 // Request status of TELNET option from
// remote
//
#define TIMING_MARK (UINT8) 6 // Request timing mark be inserted in return
// stream to synch two ends of connection
//
#define TERMINAL_TYPE (UINT8) 24 // Exchange information about the make and
// model of a terminal being used
//
#define END_OF_RECORD (UINT8) 25 // Terminate data sent with EOR code
#define WINDOW_SIZE (UINT8) 31 // Send sub-option with windowing size back
#define LINE_MODE (UINT8) 34 // Send complete lines instead of
// individual characters
//
// Supported terminal type
//
#define PcAnsiType 0
#define VT100Type 1
#define VT100PlusType 2
#define VTUTF8Type 3
typedef
EFI_STATUS
(EFIAPI *EFI_TELNET_SERVER_SET_OPTION) (
IN EFI_TELNET_SERVER_PROTOCOL * This,
IN UINT8 OptionCode,
IN UINTN OptionValue
);
//
// Efi Telnet Server Protocol structure
//
#define EFI_TELNET_SERVER_REVISION 0x00010000
typedef struct _EFI_TELNET_SERVER_PROTOCOL {
UINT64 Revision;
UINT8 TerminalType;
EFI_TELNET_SERVER_SET_OPTION SetOption;
} EFI_TELNET_SERVER_PROTOCOL;
//
// Global Variables
//
extern EFI_GUID gEfiTelnetServerGuid;
#endif
|