Revision d3e2f135 hw/es1370.c
b/hw/es1370.c | ||
---|---|---|
1000 | 1000 |
|
1001 | 1001 |
pci_config_set_vendor_id (c, PCI_VENDOR_ID_ENSONIQ); |
1002 | 1002 |
pci_config_set_device_id (c, PCI_DEVICE_ID_ENSONIQ_ES1370); |
1003 |
c[0x07] = 2 << 1;
|
|
1003 |
c[PCI_STATUS + 1] = PCI_STATUS_DEVSEL_SLOW >> 8;
|
|
1004 | 1004 |
pci_config_set_class (c, PCI_CLASS_MULTIMEDIA_AUDIO); |
1005 | 1005 |
|
1006 | 1006 |
#if 1 |
1007 |
c[0x2c] = 0x42;
|
|
1008 |
c[0x2d] = 0x49;
|
|
1009 |
c[0x2e] = 0x4c;
|
|
1010 |
c[0x2f] = 0x4c;
|
|
1007 |
c[PCI_SUBSYSTEM_VENDOR_ID] = 0x42;
|
|
1008 |
c[PCI_SUBSYSTEM_VENDOR_ID + 1] = 0x49;
|
|
1009 |
c[PCI_SUBSYSTEM_ID] = 0x4c;
|
|
1010 |
c[PCI_SUBSYSTEM_ID + 1] = 0x4c;
|
|
1011 | 1011 |
#else |
1012 |
c[0x2c] = 0x74;
|
|
1013 |
c[0x2d] = 0x12;
|
|
1014 |
c[0x2e] = 0x71;
|
|
1015 |
c[0x2f] = 0x13;
|
|
1016 |
c[0x34] = 0xdc;
|
|
1017 |
c[0x3c] = 10;
|
|
1012 |
c[PCI_SUBSYSTEM_VENDOR_ID] = 0x74;
|
|
1013 |
c[PCI_SUBSYSTEM_VENDOR_ID + 1] = 0x12;
|
|
1014 |
c[PCI_SUBSYSTEM_ID] = 0x71;
|
|
1015 |
c[PCI_SUBSYSTEM_ID + 1] = 0x13;
|
|
1016 |
c[PCI_CAPABILITY_LIST] = 0xdc;
|
|
1017 |
c[PCI_INTERRUPT_LINE] = 10;
|
|
1018 | 1018 |
c[0xdc] = 0x00; |
1019 | 1019 |
#endif |
1020 | 1020 |
|
1021 |
c[0x3d] = 1; |
|
1022 |
c[0x3e] = 0x0c; |
|
1023 |
c[0x3f] = 0x80; |
|
1021 |
/* TODO: RST# value should be 0. */ |
|
1022 |
c[PCI_INTERRUPT_PIN] = 1; |
|
1023 |
c[PCI_MIN_GNT] = 0x0c; |
|
1024 |
c[PCI_MAX_LAT] = 0x80; |
|
1024 | 1025 |
|
1025 | 1026 |
pci_register_bar (&s->dev, 0, 256, PCI_BASE_ADDRESS_SPACE_IO, es1370_map); |
1026 | 1027 |
qemu_register_reset (es1370_on_reset, s); |
Also available in: Unified diff