Commit 0f78cf0c442549e32c877ce37b4201af03e19a43

Authored by ths
1 parent 1823082c

Fix some Malta PCI config bits.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2955 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 13 additions and 9 deletions
hw/gt64xxx.c
... ... @@ -984,26 +984,30 @@ PCIBus *pci_gt64120_init(qemu_irq *pic)
984 984 d = pci_register_device(s->pci->bus, "GT64120 PCI Bus", sizeof(PCIDevice),
985 985 0, gt64120_read_config, gt64120_write_config);
986 986  
  987 + /* FIXME: Malta specific hw assumptions ahead */
  988 +
987 989 d->config[0x00] = 0xab; // vendor_id
988 990 d->config[0x01] = 0x11;
989 991 d->config[0x02] = 0x20; // device_id
990 992 d->config[0x03] = 0x46;
991   - d->config[0x04] = 0x06;
  993 +
  994 + d->config[0x04] = 0x00;
992 995 d->config[0x05] = 0x00;
993 996 d->config[0x06] = 0x80;
994   - d->config[0x07] = 0xa2;
  997 + d->config[0x07] = 0x02;
  998 +
995 999 d->config[0x08] = 0x10;
996 1000 d->config[0x09] = 0x00;
997   - d->config[0x0A] = 0x80;
998   - d->config[0x0B] = 0x05;
999   - d->config[0x0C] = 0x08;
1000   - d->config[0x0D] = 0x40;
1001   - d->config[0x0E] = 0x00;
1002   - d->config[0x0F] = 0x00;
1003   - d->config[0x17] = 0x08;
  1001 + d->config[0x0A] = 0x00;
  1002 + d->config[0x0B] = 0x06;
  1003 +
  1004 + d->config[0x10] = 0x08;
  1005 + d->config[0x14] = 0x08;
  1006 + d->config[0x17] = 0x01;
1004 1007 d->config[0x1B] = 0x1c;
1005 1008 d->config[0x1F] = 0x1f;
1006 1009 d->config[0x23] = 0x14;
  1010 + d->config[0x24] = 0x01;
1007 1011 d->config[0x27] = 0x14;
1008 1012 d->config[0x3D] = 0x01;
1009 1013  
... ...