From: Cory Fields <FOSS@AtlasTechnologiesInc.com>
To: kvm@vger.kernel.org
Subject: [PATCH 3/4] probe for quietboot in vgabios
Date: Fri, 6 Feb 2009 19:17:04 -0500 [thread overview]
Message-ID: <1233965825-17970-4-git-send-email-FOSS@AtlasTechnologiesInc.com> (raw)
In-Reply-To: <1233965825-17970-1-git-send-email-FOSS@AtlasTechnologiesInc.com>
If quietboot is set disable all normal text output
Errors should still be shown
Signed-off-by: Cory Fields <FOSS@AtlasTechnologiesInc.com>
---
vgabios/vgabios.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/vgabios/vgabios.c b/vgabios/vgabios.c
index e6fe2a0..923ea66 100644
--- a/vgabios/vgabios.c
+++ b/vgabios/vgabios.c
@@ -55,6 +55,10 @@
#endif
#define USE_BX_INFO
+#define BX_CFG_CTL_PORT 0x510
+#define BX_CFG_DATA_PORT 0x511
+#define BX_CFG_SIGNATURE 0x00
+#define BX_CFG_QUIETBOOT 0x08
/* Declares */
static Bit8u read_byte();
@@ -250,6 +254,10 @@ vgabios_init_func:
call cirrus_init
#endif
+ call _qemu_quietboot_probe
+ test al,al
+ jnz skip_display
+
;; display splash screen
call _display_splash_screen
@@ -269,7 +277,7 @@ vgabios_init_func:
;; show cirrus info
call cirrus_display_info
#endif
-
+skip_display:
retf
ASM_END
@@ -3839,6 +3847,13 @@ void printf(s)
#endif
// --------------------------------------------------------------------------------------------
+static int qemu_quietboot_probe()
+{
+ outw(BX_CFG_CTL_PORT, BX_CFG_QUIETBOOT);
+
+ if (inb(BX_CFG_DATA_PORT)) return 1;
+ return 0;
+}
ASM_START
;; DATA_SEG_DEFS_HERE
--
1.6.0.6
next prev parent reply other threads:[~2009-02-06 23:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-07 0:17 [PATCH 0/4] Arguments to skip boot menu and to hide bios output Cory Fields
2009-02-06 23:49 ` Anthony Liguori
2009-02-07 18:20 ` Cory Fields
2009-02-09 8:44 ` Daniel P. Berrange
[not found] ` <200902071303.20187.Cory@atlastechnologiesinc.com>
2009-02-08 0:02 ` Anthony Liguori
2009-02-07 0:17 ` [PATCH 1/4] Define new channels for quietboot and fastboot Cory Fields
2009-02-07 0:17 ` [PATCH 2/4] add args for fastboot and quietboot Cory Fields
2009-02-07 0:17 ` Cory Fields [this message]
2009-02-07 0:17 ` [PATCH 4/4] probe for quietboot and fastboot in rombios Cory Fields
2009-02-07 11:09 ` [PATCH 0/4] Arguments to skip boot menu and to hide bios output Daniel P. Berrange
2009-02-07 16:01 ` Anthony Liguori
2009-02-07 11:13 ` Jan Kiszka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1233965825-17970-4-git-send-email-FOSS@AtlasTechnologiesInc.com \
--to=foss@atlastechnologiesinc.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox