diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-05-03 19:03:00 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-05-03 19:03:00 +0000 |
commit | 6407f37373093fd56cde9e20b0b5a878b67521ca (patch) | |
tree | 88aaaa831dd73aa4d3381a53f506ea89b7d685bf /hw/cirrus_vga.c | |
parent | ccbb4d44fc5e92bac6006a218ccda3138407352c (diff) |
use PCI_HEADER_TYPE.
use symbolic value instead of 0x0e and related value.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Diffstat (limited to 'hw/cirrus_vga.c')
-rw-r--r-- | hw/cirrus_vga.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 52ac346d12..e4728a494a 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -187,7 +187,6 @@ // PCI 0x08, 0x00ff0000 #define PCI_CLASS_SUB_VGA 0x00 // PCI 0x0c, 0x00ff0000 (0x0c:cacheline,0x0d:latency,0x0e:headertype,0x0f:Built-in self test) -#define PCI_CLASS_HEADERTYPE_00h 0x00 // 0x10-0x3f (headertype 00h) // PCI 0x10,0x14,0x18,0x1c,0x20,0x24: base address mapping registers // 0x10: MEMBASE, 0x14: IOBASE(hard-coded in XFree86 3.x) @@ -3319,7 +3318,7 @@ void pci_cirrus_vga_init(PCIBus *bus, int vga_ram_size) pci_config_set_device_id(pci_conf, device_id); pci_conf[0x04] = PCI_COMMAND_IOACCESS | PCI_COMMAND_MEMACCESS; pci_config_set_class(pci_conf, PCI_CLASS_DISPLAY_VGA); - pci_conf[0x0e] = PCI_CLASS_HEADERTYPE_00h; + pci_conf[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; /* setup VGA */ s = &d->cirrus_vga; |