Deleted Added
full compact
eficon.h (96893) eficon.h (163898)
1/* $FreeBSD: head/sys/boot/efi/include/eficon.h 96893 2002-05-19 03:17:22Z marcel $ */
1/* $FreeBSD: head/sys/boot/efi/include/eficon.h 163898 2006-11-02 02:42:48Z marcel $ */
2#ifndef _EFI_CON_H
3#define _EFI_CON_H
4
5/*++
6
2#ifndef _EFI_CON_H
3#define _EFI_CON_H
4
5/*++
6
7Copyright (c) 1998 Intel Corporation
7Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved
8This software and associated documentation (if any) is furnished
9under a license and may only be used or copied in accordance
10with the terms of the license. Except as permitted by such
11license, no part of this software or documentation may be
12reproduced, stored in a retrieval system, or transmitted in any
13form or by any means without the express written consent of
14Intel Corporation.
8
9Module Name:
10
11 eficon.h
12
13Abstract:
14
15 EFI console protocols
16
17
18
19Revision History
20
21--*/
22
15
16Module Name:
17
18 eficon.h
19
20Abstract:
21
22 EFI console protocols
23
24
25
26Revision History
27
28--*/
29
23/*
24 * Text output protocol
25 */
30//
31// Text output protocol
32//
26
27#define SIMPLE_TEXT_OUTPUT_PROTOCOL \
28 { 0x387477c2, 0x69c7, 0x11d2, 0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b }
29
30INTERFACE_DECL(_SIMPLE_TEXT_OUTPUT_INTERFACE);
31
32typedef
33EFI_STATUS

--- 87 unchanged lines hidden (view full) ---

121EFI_STATUS
122(EFIAPI *EFI_TEXT_ENABLE_CURSOR) (
123 IN struct _SIMPLE_TEXT_OUTPUT_INTERFACE *This,
124 IN BOOLEAN Enable
125 );
126
127typedef struct {
128 INT32 MaxMode;
33
34#define SIMPLE_TEXT_OUTPUT_PROTOCOL \
35 { 0x387477c2, 0x69c7, 0x11d2, 0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b }
36
37INTERFACE_DECL(_SIMPLE_TEXT_OUTPUT_INTERFACE);
38
39typedef
40EFI_STATUS

--- 87 unchanged lines hidden (view full) ---

128EFI_STATUS
129(EFIAPI *EFI_TEXT_ENABLE_CURSOR) (
130 IN struct _SIMPLE_TEXT_OUTPUT_INTERFACE *This,
131 IN BOOLEAN Enable
132 );
133
134typedef struct {
135 INT32 MaxMode;
129 /* current settings */
136 // current settings
130 INT32 Mode;
131 INT32 Attribute;
132 INT32 CursorColumn;
133 INT32 CursorRow;
134 BOOLEAN CursorVisible;
135} SIMPLE_TEXT_OUTPUT_MODE;
136
137typedef struct _SIMPLE_TEXT_OUTPUT_INTERFACE {

--- 5 unchanged lines hidden (view full) ---

143 EFI_TEXT_QUERY_MODE QueryMode;
144 EFI_TEXT_SET_MODE SetMode;
145 EFI_TEXT_SET_ATTRIBUTE SetAttribute;
146
147 EFI_TEXT_CLEAR_SCREEN ClearScreen;
148 EFI_TEXT_SET_CURSOR_POSITION SetCursorPosition;
149 EFI_TEXT_ENABLE_CURSOR EnableCursor;
150
137 INT32 Mode;
138 INT32 Attribute;
139 INT32 CursorColumn;
140 INT32 CursorRow;
141 BOOLEAN CursorVisible;
142} SIMPLE_TEXT_OUTPUT_MODE;
143
144typedef struct _SIMPLE_TEXT_OUTPUT_INTERFACE {

--- 5 unchanged lines hidden (view full) ---

150 EFI_TEXT_QUERY_MODE QueryMode;
151 EFI_TEXT_SET_MODE SetMode;
152 EFI_TEXT_SET_ATTRIBUTE SetAttribute;
153
154 EFI_TEXT_CLEAR_SCREEN ClearScreen;
155 EFI_TEXT_SET_CURSOR_POSITION SetCursorPosition;
156 EFI_TEXT_ENABLE_CURSOR EnableCursor;
157
151 /* Current mode */
158 // Current mode
152 SIMPLE_TEXT_OUTPUT_MODE *Mode;
153} SIMPLE_TEXT_OUTPUT_INTERFACE;
154
159 SIMPLE_TEXT_OUTPUT_MODE *Mode;
160} SIMPLE_TEXT_OUTPUT_INTERFACE;
161
155/*
156 * Define's for required EFI Unicode Box Draw character
157 */
162//
163// Define's for required EFI Unicode Box Draw character
164//
158
159#define BOXDRAW_HORIZONTAL 0x2500
160#define BOXDRAW_VERTICAL 0x2502
161#define BOXDRAW_DOWN_RIGHT 0x250c
162#define BOXDRAW_DOWN_LEFT 0x2510
163#define BOXDRAW_UP_RIGHT 0x2514
164#define BOXDRAW_UP_LEFT 0x2518
165#define BOXDRAW_VERTICAL_RIGHT 0x251c

--- 35 unchanged lines hidden (view full) ---

201#define BOXDRAW_UP_HORIZONTAL_DOUBLE 0x2567
202#define BOXDRAW_UP_DOUBLE_HORIZONTAL 0x2568
203#define BOXDRAW_DOUBLE_UP_HORIZONTAL 0x2569
204
205#define BOXDRAW_VERTICAL_HORIZONTAL_DOUBLE 0x256a
206#define BOXDRAW_VERTICAL_DOUBLE_HORIZONTAL 0x256b
207#define BOXDRAW_DOUBLE_VERTICAL_HORIZONTAL 0x256c
208
165
166#define BOXDRAW_HORIZONTAL 0x2500
167#define BOXDRAW_VERTICAL 0x2502
168#define BOXDRAW_DOWN_RIGHT 0x250c
169#define BOXDRAW_DOWN_LEFT 0x2510
170#define BOXDRAW_UP_RIGHT 0x2514
171#define BOXDRAW_UP_LEFT 0x2518
172#define BOXDRAW_VERTICAL_RIGHT 0x251c

--- 35 unchanged lines hidden (view full) ---

208#define BOXDRAW_UP_HORIZONTAL_DOUBLE 0x2567
209#define BOXDRAW_UP_DOUBLE_HORIZONTAL 0x2568
210#define BOXDRAW_DOUBLE_UP_HORIZONTAL 0x2569
211
212#define BOXDRAW_VERTICAL_HORIZONTAL_DOUBLE 0x256a
213#define BOXDRAW_VERTICAL_DOUBLE_HORIZONTAL 0x256b
214#define BOXDRAW_DOUBLE_VERTICAL_HORIZONTAL 0x256c
215
209/*
210 * EFI Required Block Elements Code Chart
211 */
216//
217// EFI Required Block Elements Code Chart
218//
219
212#define BLOCKELEMENT_FULL_BLOCK 0x2588
213#define BLOCKELEMENT_LIGHT_SHADE 0x2591
220#define BLOCKELEMENT_FULL_BLOCK 0x2588
221#define BLOCKELEMENT_LIGHT_SHADE 0x2591
222//
223// EFI Required Geometric Shapes Code Chart
224//
214
225
215/*
216 * EFI Required Geometric Shapes Code Chart
217 */
218#define GEOMETRICSHAPE_UP_TRIANGLE 0x25b2
219#define GEOMETRICSHAPE_RIGHT_TRIANGLE 0x25ba
220#define GEOMETRICSHAPE_DOWN_TRIANGLE 0x25bc
221#define GEOMETRICSHAPE_LEFT_TRIANGLE 0x25c4
222
226#define GEOMETRICSHAPE_UP_TRIANGLE 0x25b2
227#define GEOMETRICSHAPE_RIGHT_TRIANGLE 0x25ba
228#define GEOMETRICSHAPE_DOWN_TRIANGLE 0x25bc
229#define GEOMETRICSHAPE_LEFT_TRIANGLE 0x25c4
230
223/*
224 * EFI Required Arrow shapes
225 */
231//
232// EFI Required Arrow shapes
233//
234
226#define ARROW_UP 0x2191
227#define ARROW_DOWN 0x2193
228
235#define ARROW_UP 0x2191
236#define ARROW_DOWN 0x2193
237
229/*
230 * Text input protocol
231 */
238//
239// Text input protocol
240//
232
233#define SIMPLE_TEXT_INPUT_PROTOCOL \
234 { 0x387477c1, 0x69c7, 0x11d2, 0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b }
235
236INTERFACE_DECL(_SIMPLE_INPUT_INTERFACE);
237
238typedef struct {
239 UINT16 ScanCode;
240 CHAR16 UnicodeChar;
241} EFI_INPUT_KEY;
242
241
242#define SIMPLE_TEXT_INPUT_PROTOCOL \
243 { 0x387477c1, 0x69c7, 0x11d2, 0x8e, 0x39, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b }
244
245INTERFACE_DECL(_SIMPLE_INPUT_INTERFACE);
246
247typedef struct {
248 UINT16 ScanCode;
249 CHAR16 UnicodeChar;
250} EFI_INPUT_KEY;
251
243/*
244 * Baseline unicode control chars
245 */
252//
253// Baseline unicode control chars
254//
246
247#define CHAR_NULL 0x0000
248#define CHAR_BACKSPACE 0x0008
249#define CHAR_TAB 0x0009
250#define CHAR_LINEFEED 0x000A
251#define CHAR_CARRIAGE_RETURN 0x000D
252
255
256#define CHAR_NULL 0x0000
257#define CHAR_BACKSPACE 0x0008
258#define CHAR_TAB 0x0009
259#define CHAR_LINEFEED 0x000A
260#define CHAR_CARRIAGE_RETURN 0x000D
261
253/*
254 * Scan codes for base line keys
255 */
262//
263// Scan codes for base line keys
264//
265
256#define SCAN_NULL 0x0000
257#define SCAN_UP 0x0001
258#define SCAN_DOWN 0x0002
259#define SCAN_RIGHT 0x0003
260#define SCAN_LEFT 0x0004
261#define SCAN_HOME 0x0005
262#define SCAN_END 0x0006
263#define SCAN_INSERT 0x0007

--- 36 unchanged lines hidden ---
266#define SCAN_NULL 0x0000
267#define SCAN_UP 0x0001
268#define SCAN_DOWN 0x0002
269#define SCAN_RIGHT 0x0003
270#define SCAN_LEFT 0x0004
271#define SCAN_HOME 0x0005
272#define SCAN_END 0x0006
273#define SCAN_INSERT 0x0007

--- 36 unchanged lines hidden ---