NEX-16819 loader UEFI support
Includes work by Toomas Soome <tsoome@me.com>
Upstream commits:
loader: pxe receive cleanup
9475 libefi: Do not return only if ReceiveFilter
installboot: should support efi system partition
8931 boot1.efi: scan all display modes rather than
loader: spinconsole updates
loader: gfx experiment to try GOP Blt() function.
sha1 build test
loader: add sha1 hash calculation
common/sha1: update for loader build
loader: biosdisk rework
uts: 32-bit kernel FB needs mapping in low memory
uts: add diag-device
uts: boot console mirror with diag-device
uts: enable very early console on ttya
kmdb: add diag-device as input/output device
uts: test VGA memory exclusion from mapping
uts: clear boot mapping and protect boot pages test
uts: add dboot map debug printf
uts: need to release FB pages in release_bootstrap()
uts: add screenmap ioctl
uts: update sys/queue.h
loader: add illumos uts/common to include path
loader: tem/gfx font cleanup
loader: vbe checks
uts: gfx_private set KD_TEXT when KD_RESETTEXT is
uts: gfx 8-bit update
loader: gfx 8-bit fix
loader: always set media size from partition.
uts: MB2 support for 32-bit kernel
loader: x86 should have tem 80x25
uts: x86 should have tem 80x25
uts: font update
loader: font update
uts: tem attributes
loader: tem.c comment added
uts: use font module
loader: add font module
loader: build rules for new font setup
uts: gfx_private update for new font structure
uts: early boot update for new font structure
uts: font update
uts: font build rules update for new fonts
uts: tem update to new font structure
loader: module.c needs to include tem_impl.h
uts: gfx_private 8x16 font rework
uts: make font_lookup public
loader: font rework
uts: font rework
9259 libefi: efi_alloc_and_read should check for PMBR
uts: tem utf-8 support
loader: implement tem utf-8 support
loader: tem should be able to display UTF-8
7784 uts: console input should support utf-8
7796 uts: ldterm default to utf-8
uts: do not reset serial console
uts: set up colors even if tem is not console
uts: add type for early boot properties
uts: gfx_private experiment with drm and vga
uts: gfx_private should use setmode drm callback.
uts: identify FB types and set up gfx_private based
loader: replace gop and vesa with framebuffer
uts: boot needs simple tem to support mdb
uts: boot_keyboard should emit esc sequences for
uts: gfx_private FB showuld be written by line
kmdb: set terminal window size
uts: gfx_private needs to keep track of early boot FB
pnglite: move pnglite to usr/src/common
loader: gfx_fb
ficl-sys: add gfx primitives
loader: add illumos.png logo
ficl: add fb-putimage
loader: add png support
loader: add alpha blending for gfx_fb
loader: use term-drawrect for menu frame
ficl: add simple gfx words
uts: provide fb_info via fbgattr dev_specific array.
uts: gfx_private add alpha blending
uts: update sys/ascii.h
uts: tem OSC support (incomplete)
uts: implement env module support and use data from
uts: tem get colors from early boot data
loader: use crc32 from libstand (libz)
loader: optimize for size
loader: pass tem info to the environment
loader: import tem for loader console
loader: UEFI loader needs to set ISADIR based on
loader: need UEFI32 support
8918 loader.efi: add vesa edid support
uts: tem_safe_pix_clear_prom_output() should only
uts: tem_safe_pix_clear_entire_screen() should use
uts: tem_safe_check_first_time() should query cursor
uts: tem implement cls callback & visual_io v4
uts: gfx_vgatext use block cursor for vgatext
uts: gfx_private implement cls callback & visual_io
uts: gfx_private bitmap framebuffer implementation
uts: early start frame buffer console support
uts: font functions should check the input char
uts: font rendering should support 16/24/32bit depths
uts: use smallest font as fallback default.
uts: update terminal dimensions based on selected
7834 uts: vgatext should use gfx_private
uts: add spacing property to 8859-1.bdf
terminfo: add underline for sun-color
terminfo: sun-color has 16 colors
uts: add font load callback type
loader: do not repeat int13 calls with error 0x20 and
8905 loader: add skein/edonr support
8904 common/crypto: make skein and edonr loader
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Revert "NEX-16819 loader UEFI support"
This reverts commit ec06b9fc617b99234e538bf2e7e4d02a24993e0c.
Reverting due to failures in the zfs-tests and the sharefs-tests
NEX-16819 loader UEFI support
Includes work by Toomas Soome <tsoome@me.com>
Upstream commits:
loader: pxe receive cleanup
9475 libefi: Do not return only if ReceiveFilter
installboot: should support efi system partition
8931 boot1.efi: scan all display modes rather than
loader: spinconsole updates
loader: gfx experiment to try GOP Blt() function.
sha1 build test
loader: add sha1 hash calculation
common/sha1: update for loader build
loader: biosdisk rework
uts: 32-bit kernel FB needs mapping in low memory
uts: add diag-device
uts: boot console mirror with diag-device
uts: enable very early console on ttya
kmdb: add diag-device as input/output device
uts: test VGA memory exclusion from mapping
uts: clear boot mapping and protect boot pages test
uts: add dboot map debug printf
uts: need to release FB pages in release_bootstrap()
uts: add screenmap ioctl
uts: update sys/queue.h
loader: add illumos uts/common to include path
loader: tem/gfx font cleanup
loader: vbe checks
uts: gfx_private set KD_TEXT when KD_RESETTEXT is
uts: gfx 8-bit update
loader: gfx 8-bit fix
loader: always set media size from partition.
uts: MB2 support for 32-bit kernel
loader: x86 should have tem 80x25
uts: x86 should have tem 80x25
uts: font update
loader: font update
uts: tem attributes
loader: tem.c comment added
uts: use font module
loader: add font module
loader: build rules for new font setup
uts: gfx_private update for new font structure
uts: early boot update for new font structure
uts: font update
uts: font build rules update for new fonts
uts: tem update to new font structure
loader: module.c needs to include tem_impl.h
uts: gfx_private 8x16 font rework
uts: make font_lookup public
loader: font rework
uts: font rework
libefi: efi_alloc_and_read should check for PMBR
uts: tem utf-8 support
loader: implement tem utf-8 support
loader: tem should be able to display UTF-8
7784 uts: console input should support utf-8
7796 uts: ldterm default to utf-8
uts: do not reset serial console
uts: set up colors even if tem is not console
uts: add type for early boot properties
uts: gfx_private experiment with drm and vga
uts: gfx_private should use setmode drm callback.
uts: identify FB types and set up gfx_private based
loader: replace gop and vesa with framebuffer
uts: boot needs simple tem to support mdb
uts: boot_keyboard should emit esc sequences for
uts: gfx_private FB showuld be written by line
kmdb: set terminal window size
uts: gfx_private needs to keep track of early boot FB
pnglite: move pnglite to usr/src/common
loader: gfx_fb
ficl-sys: add gfx primitives
loader: add illumos.png logo
ficl: add fb-putimage
loader: add png support
loader: add alpha blending for gfx_fb
loader: use term-drawrect for menu frame
ficl: add simple gfx words
uts: provide fb_info via fbgattr dev_specific array.
uts: gfx_private add alpha blending
uts: update sys/ascii.h
uts: tem OSC support (incomplete)
uts: implement env module support and use data from
uts: tem get colors from early boot data
loader: use crc32 from libstand (libz)
loader: optimize for size
loader: pass tem info to the environment
loader: import tem for loader console
loader: UEFI loader needs to set ISADIR based on
loader: need UEFI32 support
8918 loader.efi: add vesa edid support
uts: tem_safe_pix_clear_prom_output() should only
uts: tem_safe_pix_clear_entire_screen() should use
uts: tem_safe_check_first_time() should query cursor
uts: tem implement cls callback & visual_io v4
uts: gfx_vgatext use block cursor for vgatext
uts: gfx_private implement cls callback & visual_io
uts: gfx_private bitmap framebuffer implementation
uts: early start frame buffer console support
uts: font functions should check the input char
uts: font rendering should support 16/24/32bit depths
uts: use smallest font as fallback default.
uts: update terminal dimensions based on selected
7834 uts: vgatext should use gfx_private
uts: add spacing property to 8859-1.bdf
terminfo: add underline for sun-color
terminfo: sun-color has 16 colors
uts: add font load callback type
loader: do not repeat int13 calls with error 0x20 and
8905 loader: add skein/edonr support
8904 common/crypto: make skein and edonr loader
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Evan Layton <evan.layton@nexenta.com>
10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright (c) 1999 by Sun Microsystems, Inc. 24 * All rights reserved. 25 */ 26 27 #ifndef _KBTRANS_LOWER_H 28 #define _KBTRANS_LOWER_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 /* 37 * This structure describes the state of the keyboard. 38 * and also specifies the keytables. 39 */ 40 struct kbtrans_lower { 41 /* Generating pre-4.1 events? */ 42 int kbtrans_compat; 43 44 /* key to repeat in TR_ASCII mode */ 45 kbtrans_key_t kbtrans_repeatkey; 46 47 /* Current state of the LED's */ 48 uchar_t kbtrans_led_state; 49 50 /* Pointer to keyboard maps */ 51 struct keyboard *kbtrans_keyboard; 52 53 /* Current shift state */ 54 uint_t kbtrans_shiftmask; 55 56 uchar_t kbtrans_state; /* compose state */ 57 uint_t kbtrans_buckybits; /* current buckybits */ 58 uint_t kbtrans_togglemask; /* Toggle shifts state */ 59 ushort_t kbtrans_compose_key; /* first compose key */ 60 ushort_t kbtrans_fltaccent_entry; /* floating accent keymap entry */ 61 62 /* 63 * Various mapping tables. 64 */ 65 signed char *kbtrans_compose_map; 66 struct compose_sequence_t *kbtrans_compose_table; 67 struct fltaccent_sequence_t *kbtrans_fltaccent_table; 68 69 /* Strings sent by various keys */ 70 char (*kbtrans_keystringtab)[KTAB_STRLEN]; 71 72 /* Num lock table */ 73 unsigned char *kbtrans_numlock_table; 74 75 /* 76 * The kbtrans structure specifies the state of the 77 * stream. 78 */ 79 struct kbtrans *kbtrans_upper; 80 }; 110 /* 111 * Initialize a repeat character 112 */ 113 void (*kc_setup_repeat)(struct kbtrans *, uint_t, kbtrans_key_t); 114 115 /* 116 * Cancel a repeat character 117 */ 118 void (*kc_cancel_repeat)(struct kbtrans *); 119 120 /* 121 * Process the led state change 122 */ 123 void (*kc_setled)(struct kbtrans *); 124 }; 125 126 /* 127 * Process a scancode. This routine will call the functions in 128 * keyboard_callback to handle the translated key. 129 */ 130 void 131 kbtrans_processkey( 132 struct kbtrans_lower *lower, 133 struct keyboard_callback *cb, 134 kbtrans_key_t key, 135 enum keystate state 136 ); 137 138 /* 139 * This routine finds the entry for the specified keycode based on the 140 * specified shift mask. 141 */ 142 unsigned short * 143 kbtrans_find_entry( 144 struct kbtrans_lower *lower, 145 uint_t mask, 146 kbtrans_key_t 147 ); 148 149 /* 150 * Debug printing 151 */ 152 #ifndef DPRINTF 153 #ifdef DEBUG 154 #define DPRINTF(l, m, args) \ 155 (((l) >= kbtrans_errlevel) && ((m) & kbtrans_errmask) ? \ 156 kbtrans_dprintf args : \ 157 (void) 0) 158 #else 159 #define DPRINTF(l, m, args) 160 #endif 161 #endif 162 163 /* 164 * Severity levels for printing 165 */ 166 #define PRINT_L0 0 /* print every message */ 167 #define PRINT_L1 1 /* debug */ |
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22 /*
23 * Copyright (c) 1999 by Sun Microsystems, Inc.
24 * All rights reserved.
25 */
26
27 #ifndef _KBTRANS_LOWER_H
28 #define _KBTRANS_LOWER_H
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33
34 /*
35 * This structure describes the state of the keyboard.
36 * and also specifies the keytables.
37 */
38 struct kbtrans_lower {
39 /* Generating pre-4.1 events? */
40 int kbtrans_compat;
41
42 /* key to repeat in TR_ASCII mode */
43 kbtrans_key_t kbtrans_repeatkey;
44
45 /* Current state of the LED's */
46 uchar_t kbtrans_led_state;
47
48 /* Pointer to keyboard maps */
49 struct keyboard *kbtrans_keyboard;
50
51 /* Current shift state */
52 uint_t kbtrans_shiftmask;
53
54 uchar_t kbtrans_state; /* compose state */
55 uint_t kbtrans_buckybits; /* current buckybits */
56 uint_t kbtrans_togglemask; /* Toggle shifts state */
57 kbtrans_key_t kbtrans_compose_key; /* first compose key */
58 kbtrans_key_t kbtrans_fltaccent_entry; /* floating accent entry */
59
60 /*
61 * Various mapping tables.
62 */
63 signed char *kbtrans_compose_map;
64 struct compose_sequence_t *kbtrans_compose_table;
65 struct fltaccent_sequence_t *kbtrans_fltaccent_table;
66
67 /* Strings sent by various keys */
68 char (*kbtrans_keystringtab)[KTAB_STRLEN];
69
70 /* Num lock table */
71 unsigned char *kbtrans_numlock_table;
72
73 /*
74 * The kbtrans structure specifies the state of the
75 * stream.
76 */
77 struct kbtrans *kbtrans_upper;
78 };
108 /* 109 * Initialize a repeat character 110 */ 111 void (*kc_setup_repeat)(struct kbtrans *, uint_t, kbtrans_key_t); 112 113 /* 114 * Cancel a repeat character 115 */ 116 void (*kc_cancel_repeat)(struct kbtrans *); 117 118 /* 119 * Process the led state change 120 */ 121 void (*kc_setled)(struct kbtrans *); 122 }; 123 124 /* 125 * Process a scancode. This routine will call the functions in 126 * keyboard_callback to handle the translated key. 127 */ 128 void kbtrans_processkey(struct kbtrans_lower *, struct keyboard_callback *, 129 kbtrans_key_t, enum keystate); 130 131 /* 132 * This routine finds the entry for the specified keycode based on the 133 * specified shift mask. 134 */ 135 keymap_entry_t *kbtrans_find_entry(struct kbtrans_lower *, uint_t, 136 kbtrans_key_t); 137 138 /* 139 * Debug printing 140 */ 141 #ifndef DPRINTF 142 #ifdef DEBUG 143 #define DPRINTF(l, m, args) \ 144 (((l) >= kbtrans_errlevel) && ((m) & kbtrans_errmask) ? \ 145 kbtrans_dprintf args : \ 146 (void) 0) 147 #else 148 #define DPRINTF(l, m, args) 149 #endif 150 #endif 151 152 /* 153 * Severity levels for printing 154 */ 155 #define PRINT_L0 0 /* print every message */ 156 #define PRINT_L1 1 /* debug */ |