[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbios
Subject:    [OpenBIOS] [PATCH v2] Implement copy-resolutions-property
From:       Programmingkid <programmingkidx () gmail ! com>
Date:       2016-09-26 17:05:40
Message-ID: F139FDD3-F703-4AF0-AFBD-35C7230DC2F2 () gmail ! com
[Download RAW message or body]

The copy-resolutions-property copies all the resolutions from the resolutions
property of the options node to the resolutions property of the QEMU,VGA node.
This is used to support specifying resolutions via the command-line.

Signed-off-by: John Arbuckle <programmingkidx@gmail.com>
---
v2:
Eliminated all if conditions.

 arch/ppc/qemu/qemu.fs | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/ppc/qemu/qemu.fs b/arch/ppc/qemu/qemu.fs
index 3d99a34..b53115a 100644
--- a/arch/ppc/qemu/qemu.fs
+++ b/arch/ppc/qemu/qemu.fs
@@ -138,3 +138,13 @@ variable keyboard-phandle 0 keyboard-phandle !
     3drop 0
   then
 ;
+
+\ Copies the resolutions property from the /options node to QEMU,VGA node
+
+: copy-resolutions-property  ( -- )
+    " /options" find-device
+    " resolutions" active-package get-package-property
+    abort" copy-resolutions-property: Failed to find resolutions property!"
+    " /pci/QEMU,VGA" find-device
+    " resolutions" property
+;
-- 
2.7.2



-- 
OpenBIOS                 http://openbios.org/
Mailinglist:  http://lists.openbios.org/mailman/listinfo
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic