Print this page
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) 1986,1997-1998 by Sun Microsystems, Inc.
  24  * All rights reserved.
  25  */
  26 
  27 #ifndef _SYS_FBIO_H
  28 #define _SYS_FBIO_H
  29 
  30 #pragma ident   "%Z%%M% %I%     %E% SMI"        /* SunOS4.1.2 5.49 */
  31 
  32 #include <sys/types.h>
  33 
  34 #ifdef  __cplusplus
  35 extern "C" {
  36 #endif
  37 
  38 #ifndef ASM
  39 /*
  40  * Frame buffer descriptor.
  41  * Returned by FBIOGTYPE ioctl on frame buffer devices.
  42  */
  43 struct  fbtype {
  44         int     fb_type;        /* as defined below */
  45         int     fb_height;      /* in pixels */
  46         int     fb_width;       /* in pixels */
  47         int     fb_depth;       /* bits per pixel */
  48         int     fb_cmsize;      /* size of color map (entries) */
  49         int     fb_size;        /* total size in bytes */
  50 };
  51 


 283 
 284 struct fb_wid_dbl_info {
 285         struct fb_wid_alloc dbl_wid;
 286         char            dbl_fore;
 287         char            dbl_back;
 288         char            dbl_read_state;
 289         char            dbl_write_state;
 290 };
 291 
 292 #define FBIO_WID_ALLOC  (FIOC|30)
 293 #define FBIO_WID_FREE   (FIOC|31)
 294 #define FBIO_WID_PUT    (FIOC|32)
 295 #define FBIO_WID_GET    (FIOC|33)
 296 
 297 #define FBIO_DEVID      (FIOC|34)
 298 #define FBIO_U_RST      (FIOC|35)
 299 #define FBIO_FULLSCREEN_ELIMINATION_GROUPS      (FIOC|36)
 300 #define FBIO_WID_DBL_SET        (FIOC|37)
 301 #define FBIOVRTOFFSET   (FIOC|38)
 302 














 303 struct cg6_info {
 304         ushort_t  accessible_width;     /* accessible bytes in scanline */
 305         ushort_t  accessible_height;    /* number of accessible scanlines */
 306         ushort_t  line_bytes;           /* number of bytes/scanline */
 307         ushort_t  hdb_capable;          /* can this thing hardware db? */
 308         ushort_t  vmsize;               /* this is Mb of video memory */
 309         uchar_t   boardrev;             /* board revision # */
 310         uchar_t   slot;                 /* sbus slot # */
 311         uint_t    pad1;                 /* expansion */
 312 };
 313 
 314 struct s3_info {
 315         ushort_t  accessible_width;     /* accessible bytes in scanline */
 316         ushort_t  accessible_height;    /* number of accessible scanlines */
 317         ushort_t  line_bytes;           /* number of bytes/scanline */
 318         ushort_t  hdb_capable;          /* can this thing hardware db? */
 319         ushort_t  vmsize;               /* this is Mb of video memory */
 320         uchar_t   boardrev;             /* board revision # */
 321         uchar_t   slot;                 /* sbus slot # */
 322         uint_t    pad1;                 /* expansion */




  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) 1986,1997-1998 by Sun Microsystems, Inc.
  24  * All rights reserved.
  25  */
  26 
  27 #ifndef _SYS_FBIO_H
  28 #define _SYS_FBIO_H
  29 


  30 #include <sys/types.h>
  31 
  32 #ifdef  __cplusplus
  33 extern "C" {
  34 #endif
  35 
  36 #ifndef ASM
  37 /*
  38  * Frame buffer descriptor.
  39  * Returned by FBIOGTYPE ioctl on frame buffer devices.
  40  */
  41 struct  fbtype {
  42         int     fb_type;        /* as defined below */
  43         int     fb_height;      /* in pixels */
  44         int     fb_width;       /* in pixels */
  45         int     fb_depth;       /* bits per pixel */
  46         int     fb_cmsize;      /* size of color map (entries) */
  47         int     fb_size;        /* total size in bytes */
  48 };
  49 


 281 
 282 struct fb_wid_dbl_info {
 283         struct fb_wid_alloc dbl_wid;
 284         char            dbl_fore;
 285         char            dbl_back;
 286         char            dbl_read_state;
 287         char            dbl_write_state;
 288 };
 289 
 290 #define FBIO_WID_ALLOC  (FIOC|30)
 291 #define FBIO_WID_FREE   (FIOC|31)
 292 #define FBIO_WID_PUT    (FIOC|32)
 293 #define FBIO_WID_GET    (FIOC|33)
 294 
 295 #define FBIO_DEVID      (FIOC|34)
 296 #define FBIO_U_RST      (FIOC|35)
 297 #define FBIO_FULLSCREEN_ELIMINATION_GROUPS      (FIOC|36)
 298 #define FBIO_WID_DBL_SET        (FIOC|37)
 299 #define FBIOVRTOFFSET   (FIOC|38)
 300 
 301 struct gfxfb_info {
 302         uint16_t terminal_origin_x;
 303         uint16_t terminal_origin_y;
 304         uint32_t pitch;
 305         uint16_t font_width;
 306         uint16_t font_height;
 307         uint8_t red_mask_size;
 308         uint8_t red_field_position;
 309         uint8_t green_mask_size;
 310         uint8_t green_field_position;
 311         uint8_t blue_mask_size;
 312         uint8_t blue_field_position;
 313 };
 314 
 315 struct cg6_info {
 316         ushort_t  accessible_width;     /* accessible bytes in scanline */
 317         ushort_t  accessible_height;    /* number of accessible scanlines */
 318         ushort_t  line_bytes;           /* number of bytes/scanline */
 319         ushort_t  hdb_capable;          /* can this thing hardware db? */
 320         ushort_t  vmsize;               /* this is Mb of video memory */
 321         uchar_t   boardrev;             /* board revision # */
 322         uchar_t   slot;                 /* sbus slot # */
 323         uint_t    pad1;                 /* expansion */
 324 };
 325 
 326 struct s3_info {
 327         ushort_t  accessible_width;     /* accessible bytes in scanline */
 328         ushort_t  accessible_height;    /* number of accessible scanlines */
 329         ushort_t  line_bytes;           /* number of bytes/scanline */
 330         ushort_t  hdb_capable;          /* can this thing hardware db? */
 331         ushort_t  vmsize;               /* this is Mb of video memory */
 332         uchar_t   boardrev;             /* board revision # */
 333         uchar_t   slot;                 /* sbus slot # */
 334         uint_t    pad1;                 /* expansion */