Skip to contentSkip to conversation

vgabios and PCI data.

PATCH New Stefan Reinauer 1 participant 1 message Mar 14, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vgabios and PCI data.

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?

Signature · 3 lines
coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: [email protected]  • http://www.coresystems.de/
vgabios.c +23 -4
@@ -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"