From 99c88b792a2bc59ba8a76671dcc5537190ad91b3 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Sun, 3 May 2009 19:03:00 +0000 Subject: use PCI_HEADER_TYPE. use symbolic value instead of 0x0e and related value. Signed-off-by: Isaku Yamahata --- hw/vmware_vga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hw/vmware_vga.c') diff --git a/hw/vmware_vga.c b/hw/vmware_vga.c index 2299aff21c..26cf789817 100644 --- a/hw/vmware_vga.c +++ b/hw/vmware_vga.c @@ -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; -- cgit v1.2.3