X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=vgasrc%2Fvga.c;h=748ddd49bfe0fd643a2459b42cf1fa7eeaad1ac4;hb=7c6509cb10417c38334d74c0dff8a3511f6d9c60;hp=b515d1d589a78f604797dd708f571f276fddfd55;hpb=bc6097b0316fec04411c0603058154cbcd8320de;p=seabios.git diff --git a/vgasrc/vga.c b/vgasrc/vga.c index b515d1d..748ddd4 100644 --- a/vgasrc/vga.c +++ b/vgasrc/vga.c @@ -15,6 +15,8 @@ #include "biosvar.h" // GET_BDA #include "util.h" // memset #include "vgatables.h" // find_vga_entry +#include "optionroms.h" // struct pci_data +#include "config.h" // CONFIG_* // XXX #define CONFIG_VGA_BOCHS 0 @@ -26,6 +28,21 @@ #define SET_VGA(var, val) SET_FARVAR(get_global_seg(), (var), (val)) +/**************************************************************** + * PCI Data + ****************************************************************/ +#if CONFIG_VGA_PCI == 1 +struct pci_data rom_pci_data VAR16VISIBLE = { + .signature = PCI_ROM_SIGNATURE, + .vendor = CONFIG_VGA_VID, + .device = CONFIG_VGA_DID, + .dlen = 0x18, + .class_hi = 0x300, + .irevision = 1, + .type = PCIROM_CODETYPE_X86, + .indicator = 0x80, +}; +#endif /**************************************************************** * Helper functions