From: Gerd Hoffmann <kraxel@redhat.com>
To: seabios@seabios.org
Cc: qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH 6/7] sercon: add compile time option
Date: Wed, 28 Sep 2016 11:07:19 +0200 [thread overview]
Message-ID: <1475053640-30483-7-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1475053640-30483-1-git-send-email-kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
src/Kconfig | 5 +++++
src/sercon.c | 10 ++++++++++
2 files changed, 15 insertions(+)
diff --git a/src/Kconfig b/src/Kconfig
index e767be1..35e7433 100644
--- a/src/Kconfig
+++ b/src/Kconfig
@@ -300,6 +300,11 @@ menu "Hardware support"
default y
help
Support serial ports. This also enables int 14 serial port calls.
+ config SERCON
+ bool "Serial console"
+ default y
+ help
+ Support redirecting vga output to the serial console.
config LPT
bool "Parallel port"
default y
diff --git a/src/sercon.c b/src/sercon.c
index d9b6143..c204af3 100644
--- a/src/sercon.c
+++ b/src/sercon.c
@@ -456,6 +456,8 @@ static void sercon_10XX(struct bregs *regs)
void VISIBLE16
sercon_10(struct bregs *regs)
{
+ if (!CONFIG_SERCON)
+ return;
if (!GET_LOW(sercon_port))
return;
@@ -477,6 +479,8 @@ sercon_10(struct bregs *regs)
void VISIBLE16
sercon_10_splitmode(struct bregs *regs)
{
+ if (!CONFIG_SERCON)
+ return;
if (!GET_LOW(sercon_port))
return;
@@ -499,6 +503,9 @@ sercon_10_splitmode(struct bregs *regs)
void sercon_enable(void)
{
+ if (!CONFIG_SERCON)
+ return;
+
struct segoff_s seabios, vgabios;
u16 addr = PORT_SERIAL1;
@@ -596,6 +603,9 @@ static int findseq(void)
void
sercon_check_event(void)
{
+ if (!CONFIG_SERCON)
+ return;
+
u16 addr = GET_LOW(sercon_port);
u16 keycode;
u8 byte, count = 0;
--
1.8.3.1
next prev parent reply other threads:[~2016-09-28 9:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-28 9:07 [Qemu-devel] [PATCH 0/7] serial console support Gerd Hoffmann
2016-09-28 9:07 ` [Qemu-devel] [PATCH 1/7] std: add cp437 to unicode map Gerd Hoffmann
2016-09-28 9:07 ` [Qemu-devel] [PATCH 2/7] kbd: make enqueue_key public, add ascii_to_keycode Gerd Hoffmann
2016-09-28 9:07 ` [Qemu-devel] [PATCH 3/7] paravirt: read QEMU_CFG_NOGRAPHIC, store in etc/sercon-enable romfile Gerd Hoffmann
2016-09-28 9:07 ` [Qemu-devel] [PATCH 4/7] add serial console support Gerd Hoffmann
2016-09-28 9:07 ` [Qemu-devel] [PATCH 5/7] sercon: split-output implementation Gerd Hoffmann
2016-09-28 9:07 ` Gerd Hoffmann [this message]
2016-09-28 9:07 ` [Qemu-devel] [PATCH 7/7] [hack] ignore sgabios, enable sercon instead Gerd Hoffmann
2016-10-19 0:20 ` [Qemu-devel] [SeaBIOS] [PATCH 0/7] serial console support Kevin O'Connor
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=1475053640-30483-7-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=seabios@seabios.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;
as well as URLs for NNTP newsgroup(s).