bioslogo.h revision c58f1213e628a545081c70e26c6b67a841cff880
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync/* $Id$ */
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync/** @file
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * BiosLogo - The Private BIOS Logo Interface. (DEV)
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync */
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync/*
304e26e9a9c1422dbc299ed139eceacca271a9ddvboxsync * Copyright (C) 2006-2010 Oracle Corporation
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync *
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * available from http://www.virtualbox.org. This file is free software;
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * you can redistribute it and/or modify it under the terms of the GNU
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * General Public License (GPL) as published by the Free Software
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync *
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * The contents of this file may alternatively be used under the terms
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * of the Common Development and Distribution License Version 1.0
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * VirtualBox OSE distribution, in which case the provisions of the
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * CDDL are applicable instead of those of the GPL.
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync *
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * You may elect to license modified versions of this file under the
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * terms and conditions of either the GPL or the CDDL or both.
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync */
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync#ifndef ___VBox_BiosLogo_h
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync#define ___VBox_BiosLogo_h
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync#ifndef VBOX_PC_BIOS
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync# include <iprt/types.h>
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync# include <iprt/assert.h>
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync#endif
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync
1eda04de692c4c416332941e87bab4cc8fc45a18vboxsync/** @defgroup grp_bios_logo The Private BIOS Logo Interface.
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync * @remark All this is currently duplicated in logo.c.
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * @internal
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync * @{
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync/** The extra port which is used to show the BIOS logo. */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync#define LOGO_IO_PORT 0x3b8
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync/** The BIOS logo fade in/fade out steps. */
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync#define LOGO_SHOW_STEPS 16
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync/** @name The BIOS logo commands.
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync * @{
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync#define LOGO_CMD_NOP 0
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync#define LOGO_CMD_SET_OFFSET 0x100
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync#define LOGO_CMD_SHOW_BMP 0x200
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync/** @} */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync/**
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync * PC Bios logo data structure.
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsynctypedef struct LOGOHDR
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync{
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync /** Signature (LOGO_HDR_MAGIC/0x66BB). */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync uint16_t u16Signature;
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync /** Logo time (msec). */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync uint16_t u16LogoMillies;
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync /** Fade in - boolean. */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync uint8_t fu8FadeIn;
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync /** Fade out - boolean. */
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync uint8_t fu8FadeOut;
6f82db701c69ae6925eb7e8bf1dfe25c9f951bddvboxsync /** Show setup - boolean. */
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync uint8_t fu8ShowBootMenu;
5bf0ee311caa414469f26237ff607cb1b3591508vboxsync /** Reserved / padding. */
uint8_t u8Reserved;
/** Logo file size. */
uint32_t cbLogo;
} LOGOHDR;
#ifndef VBOX_PC_BIOS
AssertCompileSize(LOGOHDR, 12);
#endif
/** Pointer to a PC Biso logo header. */
typedef LOGOHDR *PLOGOHDR;
/** The value of the LOGOHDR::u16Signature field. */
#define LOGO_HDR_MAGIC 0x66BB
/** The value which will switch you the default logo. */
#define LOGO_DEFAULT_LOGO 0xFFFF
/** @} */
#endif