mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
use PCI_HEADER_TYPE.
use symbolic value instead of 0x0e and related value. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
This commit is contained in:
parent
ccbb4d44fc
commit
6407f37373
21 changed files with 37 additions and 32 deletions
|
@ -1210,8 +1210,6 @@ static void pci_vmsvga_map_mem(PCIDevice *pci_dev, int region_num,
|
|||
iomemtype);
|
||||
}
|
||||
|
||||
#define PCI_CLASS_HEADERTYPE_00h 0x00
|
||||
|
||||
void pci_vmsvga_init(PCIBus *bus, int vga_ram_size)
|
||||
{
|
||||
struct pci_vmsvga_state_s *s;
|
||||
|
@ -1226,7 +1224,7 @@ void pci_vmsvga_init(PCIBus *bus, int vga_ram_size)
|
|||
pci_config_set_class(s->card.config, PCI_CLASS_DISPLAY_VGA);
|
||||
s->card.config[0x0c] = 0x08; /* Cache line size */
|
||||
s->card.config[0x0d] = 0x40; /* Latency timer */
|
||||
s->card.config[0x0e] = PCI_CLASS_HEADERTYPE_00h;
|
||||
s->card.config[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL;
|
||||
s->card.config[0x2c] = PCI_VENDOR_ID_VMWARE & 0xff;
|
||||
s->card.config[0x2d] = PCI_VENDOR_ID_VMWARE >> 8;
|
||||
s->card.config[0x2e] = SVGA_PCI_DEVICE_ID & 0xff;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue