3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/* $Id$ */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** @file
fa11a1e5d812c442cfc865cfdcf9934074d35b7fvboxsync * BiosLogo - The Private BIOS Logo Interface. (DEV)
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/*
c58f1213e628a545081c70e26c6b67a841cff880vboxsync * Copyright (C) 2006-2010 Oracle Corporation
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. */
188b39ae923237e5efe949661eeec5aa150425a0vboxsync#define LOGO_SHOW_STEPS 16
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync/** @name The BIOS logo commands.
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync * @{
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync */
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_NOP 0
3cdf227bdf099f60b22215d6ea7685ec5ec64fe6vboxsync#define LOGO_CMD_SET_OFFSET 0x100
40788f70a2bd319d0d36dfbe7b73c0e9c364d87dvboxsync#define LOGO_CMD_SHOW_BMP 0x200
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