1 | /* $Id: bioslogo.h 62476 2016-07-22 18:23:50Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * BiosLogo - The Private BIOS Logo Interface. (DEV)
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2006-2016 Oracle Corporation
|
---|
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 | * @ingroup grp_devdrv
|
---|
37 | * @internal
|
---|
38 | *
|
---|
39 | * @remark All this is currently duplicated in logo.c.
|
---|
40 | *
|
---|
41 | * @{
|
---|
42 | */
|
---|
43 |
|
---|
44 | /** The extra port which is used to show the BIOS logo. */
|
---|
45 | #define LOGO_IO_PORT 0x3b8
|
---|
46 |
|
---|
47 | /** The BIOS logo fade in/fade out steps. */
|
---|
48 | #define LOGO_SHOW_STEPS 16
|
---|
49 |
|
---|
50 | /** @name The BIOS logo commands.
|
---|
51 | * @{
|
---|
52 | */
|
---|
53 | #define LOGO_CMD_NOP 0
|
---|
54 | #define LOGO_CMD_SET_OFFSET 0x100
|
---|
55 | #define LOGO_CMD_SHOW_BMP 0x200
|
---|
56 | /** @} */
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * PC Bios logo data structure.
|
---|
60 | */
|
---|
61 | typedef struct LOGOHDR
|
---|
62 | {
|
---|
63 | /** Signature (LOGO_HDR_MAGIC/0x66BB). */
|
---|
64 | uint16_t u16Signature;
|
---|
65 | /** Logo time (msec). */
|
---|
66 | uint16_t u16LogoMillies;
|
---|
67 | /** Fade in - boolean. */
|
---|
68 | uint8_t fu8FadeIn;
|
---|
69 | /** Fade out - boolean. */
|
---|
70 | uint8_t fu8FadeOut;
|
---|
71 | /** Show setup - boolean. */
|
---|
72 | uint8_t fu8ShowBootMenu;
|
---|
73 | /** Reserved / padding. */
|
---|
74 | uint8_t u8Reserved;
|
---|
75 | /** Logo file size. */
|
---|
76 | uint32_t cbLogo;
|
---|
77 | } LOGOHDR;
|
---|
78 | #ifndef VBOX_PC_BIOS
|
---|
79 | AssertCompileSize(LOGOHDR, 12);
|
---|
80 | #endif
|
---|
81 | /** Pointer to a PC BIOS logo header. */
|
---|
82 | typedef LOGOHDR *PLOGOHDR;
|
---|
83 | /** Pointer to a const PC BIOS logo header. */
|
---|
84 | typedef LOGOHDR const *PCLOGOHDR;
|
---|
85 |
|
---|
86 | /** The value of the LOGOHDR::u16Signature field. */
|
---|
87 | #define LOGO_HDR_MAGIC 0x66BB
|
---|
88 |
|
---|
89 | /** The value which will switch you the default logo. */
|
---|
90 | #define LOGO_DEFAULT_LOGO 0xFFFF
|
---|
91 |
|
---|
92 | /** @} */
|
---|
93 |
|
---|
94 | #endif
|
---|
95 |
|
---|