Blame SOURCES/0065-include-grub-i386-openbsd_bootarg.h-Add-addr-and-fre.patch

f731ee
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f731ee
From: Vladimir Serbinenko <phcoder@gmail.com>
f731ee
Date: Fri, 28 Feb 2014 10:50:05 +0100
f731ee
Subject: [PATCH] * include/grub/i386/openbsd_bootarg.h: Add addr and frequency
f731ee
 fields. * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
f731ee
MIME-Version: 1.0
f731ee
Content-Type: text/plain; charset=UTF-8
f731ee
Content-Transfer-Encoding: 8bit
f731ee
f731ee
	Suggested by: Markus Müller.
f731ee
---
f731ee
 grub-core/loader/i386/bsd.c         | 2 ++
f731ee
 include/grub/i386/openbsd_bootarg.h | 2 ++
f731ee
 ChangeLog                           | 7 +++++++
f731ee
 3 files changed, 11 insertions(+)
f731ee
f731ee
diff --git a/grub-core/loader/i386/bsd.c b/grub-core/loader/i386/bsd.c
f731ee
index ea0edfafe57..19985f03e65 100644
f731ee
--- a/grub-core/loader/i386/bsd.c
f731ee
+++ b/grub-core/loader/i386/bsd.c
f731ee
@@ -1646,6 +1646,7 @@ grub_cmd_openbsd (grub_extcmd_context_t ctxt, int argc, char *argv[])
f731ee
 
f731ee
       serial.device = (GRUB_OPENBSD_COM_MAJOR << 8) | port;
f731ee
       serial.speed = speed;
f731ee
+      serial.addr = grub_ns8250_hw_get_port (port);
f731ee
 	  
f731ee
       grub_bsd_add_meta (OPENBSD_BOOTARG_CONSOLE, &serial, sizeof (serial));
f731ee
       bootflags |= OPENBSD_RB_SERCONS;
f731ee
@@ -1656,6 +1657,7 @@ grub_cmd_openbsd (grub_extcmd_context_t ctxt, int argc, char *argv[])
f731ee
 
f731ee
       grub_memset (&serial, 0, sizeof (serial));
f731ee
       serial.device = (GRUB_OPENBSD_VGA_MAJOR << 8);
f731ee
+      serial.addr = 0xffffffff;
f731ee
       grub_bsd_add_meta (OPENBSD_BOOTARG_CONSOLE, &serial, sizeof (serial));
f731ee
       bootflags &= ~OPENBSD_RB_SERCONS;
f731ee
     }
f731ee
diff --git a/include/grub/i386/openbsd_bootarg.h b/include/grub/i386/openbsd_bootarg.h
f731ee
index 01ca4868b25..9ebe6b4e4b1 100644
f731ee
--- a/include/grub/i386/openbsd_bootarg.h
f731ee
+++ b/include/grub/i386/openbsd_bootarg.h
f731ee
@@ -75,6 +75,8 @@ struct grub_openbsd_bootarg_console
f731ee
 {
f731ee
   grub_uint32_t device;
f731ee
   grub_uint32_t speed;
f731ee
+  grub_uint32_t addr;
f731ee
+  grub_uint32_t frequency;
f731ee
 };
f731ee
 
f731ee
 struct grub_openbsd_bootarg_pcibios
f731ee
diff --git a/ChangeLog b/ChangeLog
f731ee
index 97cf57e253d..f571f66533b 100644
f731ee
--- a/ChangeLog
f731ee
+++ b/ChangeLog
f731ee
@@ -1,3 +1,10 @@
f731ee
+2014-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
f731ee
+
f731ee
+	* include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
f731ee
+	* grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
f731ee
+
f731ee
+	Suggested by: Markus Müller.
f731ee
+
f731ee
 2014-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
f731ee
 
f731ee
 	* grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map