VirtualBox

source: vbox/trunk/include/VBox/bioslogo.h@ 8006

Last change on this file since 8006 was 8006, checked in by vboxsync, 16 years ago

Speed up logo fade in/out.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1/* $Id: bioslogo.h 8006 2008-04-15 15:47:59Z vboxsync $ */
2/** @file
3 * BiosLogo - The Private BIOS Logo Interface.
4 */
5
6/*
7 * Copyright (C) 2006-2007 innotek GmbH
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * The contents of this file may alternatively be used under the terms
18 * of the Common Development and Distribution License Version 1.0
19 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20 * VirtualBox OSE distribution, in which case the provisions of the
21 * CDDL are applicable instead of those of the GPL.
22 *
23 * You may elect to license modified versions of this file under the
24 * terms and conditions of either the GPL or the CDDL or both.
25 */
26
27#ifndef ___VBox_BiosLogo_h
28#define ___VBox_BiosLogo_h
29
30#ifndef VBOX_PC_BIOS
31# include <iprt/types.h>
32# include <iprt/assert.h>
33#endif
34
35/** @defgroup grp_bios_logo The Private BIOS Logo Interface.
36 * @remark All this is currently duplicated in logo.c.
37 * @internal
38 * @{
39 */
40
41/** The extra port which is used to show the BIOS logo. */
42#define LOGO_IO_PORT 0x3b8
43
44/** The BIOS logo fade in/fade out steps. */
45#define LOGO_SHOW_STEPS 16
46
47/** @name The BIOS logo commands.
48 * @{
49 */
50#define LOGO_CMD_NOP 0
51#define LOGO_CMD_SET_OFFSET 0x100
52#define LOGO_CMD_SHOW_BMP 0x200
53/** @} */
54
55/**
56 * PC Bios logo data structure.
57 */
58typedef struct LOGOHDR
59{
60 /** Signature (LOGO_HDR_MAGIC/0x66BB). */
61 uint16_t u16Signature;
62 /** Logo time (msec). */
63 uint16_t u16LogoMillies;
64 /** Fade in - boolean. */
65 uint8_t fu8FadeIn;
66 /** Fade out - boolean. */
67 uint8_t fu8FadeOut;
68 /** Show setup - boolean. */
69 uint8_t fu8ShowBootMenu;
70 /** Reserved / padding. */
71 uint8_t u8Reserved;
72 /** Logo file size. */
73 uint32_t cbLogo;
74} LOGOHDR;
75#ifndef VBOX_PC_BIOS
76AssertCompileSize(LOGOHDR, 12);
77#endif
78/** Pointer to a PC Biso logo header. */
79typedef LOGOHDR *PLOGOHDR;
80
81/** The value of the LOGOHDR::u16Signature field. */
82#define LOGO_HDR_MAGIC 0x66BB
83
84/** The value which will switch you the default logo. */
85#define LOGO_DEFAULT_LOGO 0xFFFF
86
87/** @} */
88
89#endif
90
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use