bioslogo.h revision 3cdf227bdf099f60b22215d6ea7685ec5ec64fe6
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/* $Id$ */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** @file
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * BiosLogo - The Private BIOS Logo Interface.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/*
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * Copyright (C) 2006-2007 innotek GmbH
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync *
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * available from http://www.virtualbox.org. This file is free software;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * you can redistribute it and/or modify it under the terms of the GNU
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * General Public License (GPL) as published by the Free Software
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync *
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * The contents of this file may alternatively be used under the terms
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * of the Common Development and Distribution License Version 1.0
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * VirtualBox OSE distribution, in which case the provisions of the
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * CDDL are applicable instead of those of the GPL.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync *
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * You may elect to license modified versions of this file under the
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * terms and conditions of either the GPL or the CDDL or both.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#ifndef ___VBox_BiosLogo_h
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define ___VBox_BiosLogo_h
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#ifndef VBOX_PC_BIOS
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync# include <iprt/types.h>
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync# include <iprt/assert.h>
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#endif
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** @defgroup grp_bios_logo The Private BIOS Logo Interface.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * @remark All this is currently duplicated in logo.c.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * @internal
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * @{
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** The extra port which is used to show the BIOS logo. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_IO_PORT 0x3b8
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** The BIOS logo fade in/fade out steps. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_SHOW_STEPS 64
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** The BIOS boot menu text position, X. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_F12TEXT_X 340
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** The BIOS boot menu text position, Y. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_F12TEXT_Y 455
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** Width of the "Press F12 to select boot device." bitmap.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync Anything that exceeds the limit of F12BootText below is filled with
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync background. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_F12TEXT_WIDTH 286
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** Height of the boot device selection bitmap, see LOGO_F12TEXT_WIDTH. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_F12TEXT_HEIGHT 12
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_IMAGE_DEFAULT 0
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_IMAGE_EXTERNAL 1
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_MAX_WIDTH 640
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_MAX_HEIGHT 480
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** @name The BIOS logo commands.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * @{
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_NOP 0
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_OFFSET 0x100
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_X 0x200
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_Y 0x300
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_WIDTH 0x400
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_HEIGHT 0x500
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_DEPTH 0x600
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_PALSIZE 0x700
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_DEFAULT 0x800
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_PAL 0x900
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SHOW_BMP 0xA00
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SHOW_TEXT 0xB00
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_CLS 0xC00
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** @} */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/**
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * PC Bios logo data structure.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsynctypedef struct LOGOHDR
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync{
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync /** Signature (LOGO_HDR_MAGIC/0x66BB). */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync uint16_t u16Signature;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync /** Logo time (msec). */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync uint16_t u16LogoMillies;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync /** Fade in - boolean. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync uint8_t fu8FadeIn;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync /** Fade out - boolean. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync uint8_t fu8FadeOut;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync /** Show setup - boolean. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync uint8_t fu8ShowBootMenu;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync /** Reserved / padding. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync uint8_t u8Reserved;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync /** Logo file size. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync uint32_t cbLogo;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync} LOGOHDR;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#ifndef VBOX_PC_BIOS
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsyncAssertCompileSize(LOGOHDR, 12);
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#endif
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** Pointer to a PC Biso logo header. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsynctypedef LOGOHDR *PLOGOHDR;
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** The value of the LOGOHDR::u16Signature field. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_HDR_MAGIC 0x66BB
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** The value which will switch you the default logo. */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_DEFAULT_LOGO 0xFFFF
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** @} */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#endif
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync