qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Reinauer <stepan@coresystems.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] vgabios and PCI data.
Date: Wed, 14 Mar 2007 12:57:46 +0100	[thread overview]
Message-ID: <20070314115746.GA7525@coresystems.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

attached patch to vgabios-0.6a adds the pci data structure to
vga-cirrus.bin

This is needed to boot LinuxBIOSv3 with VGA enabled on Qemu

It seems the vgabios project has stalled, so I am sending this patch to
this list as well. Can you update the vga-cirrus.bin image to include
this pci data structure?

-- 
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info@coresystems.de  • http://www.coresystems.de/

[-- Attachment #2: vgabios-0.6a-pcidata.diff --]
[-- Type: text/x-patch, Size: 960 bytes --]

--- vgabios-0.6a/vgabios.c	2006-07-10 09:47:51.000000000 +0200
+++ vgabios-0.6a.pci/vgabios.c	2007-03-12 17:08:06.000000000 +0100
@@ -149,16 +149,35 @@
            
   jmp vgabios_init_func
 
-vgabios_name:
-.ascii	"Plex86/Bochs VGABios"
-.ascii	" "
-.byte	0x00
+.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
+
+.word pci_data
 
 // Info from Bart Oldeman
 .org 0x1e
 .ascii  "IBM"
 .byte   0x00
 
+vgabios_name:
+.ascii	"Plex86/Bochs VGABios"
+.ascii	" "
+.byte	0x00
+
+
+// PCI data structure by Stefan Reinauer
+pci_data:
+.ascii "PCIR"		// signature
+.word 0x1013, 0x00b8	// vendor, device
+.word 0x0000		// vpd
+.word 0x0018		// pci data structure len
+.byte 0x00		// pci data structure revision
+.byte 0x00, 0x00, 0x03	// class code
+.word 0x46		// image length
+.word 0x0001		// image revision
+.byte 0x00		// code type: x86
+.byte 0x80		// flags: last image in rom
+.word 0x0000		// reserved
+
 vgabios_version:
 #ifndef VGABIOS_VERS
 .ascii	"current-cvs"

                 reply	other threads:[~2007-03-14 11:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20070314115746.GA7525@coresystems.de \
    --to=stepan@coresystems.de \
    --cc=qemu-devel@nongnu.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).