Changeset 9331 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Jun 2, 2008 10:57:31 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 31545
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevIchAc97.cpp
r9329 r9331 1598 1598 s->IBase.pfnQueryInterface = ichac97QueryInterface; 1599 1599 1600 /* PCI Device */ 1601 /** @todo convert to PCI*(). */ 1602 pData->dev.config[0x00] = 0x86; /* vid vendor id intel ro */ 1603 pData->dev.config[0x01] = 0x80; /* intel */ 1604 1605 pData->dev.config[0x02] = 0x15; /* did device id 82801 ro */ 1606 pData->dev.config[0x03] = 0x24; /* 82801aa */ 1607 1608 pData->dev.config[0x04] = 0x00; /* pcicmd pci command rw, ro */ 1609 pData->dev.config[0x05] = 0x00; 1610 1611 pData->dev.config[0x06] = 0x80; /* pcists pci status rwc, ro */ 1612 pData->dev.config[0x07] = 0x02; 1613 1614 pData->dev.config[0x08] = 0x01; /* rid revision ro */ 1615 pData->dev.config[0x09] = 0x00; /* pi programming interface ro */ 1616 pData->dev.config[0x0a] = 0x01; /* scc sub class code ro */ 1617 pData->dev.config[0x0b] = 0x04; /* bcc base class code ro */ 1618 pData->dev.config[0x0e] = 0x00; /* headtyp header type ro */ 1619 1620 pData->dev.config[0x10] = 0x01; /* nambar native audio mixer base 1621 * address rw */ 1622 pData->dev.config[0x11] = 0x00; 1623 pData->dev.config[0x12] = 0x00; 1624 pData->dev.config[0x13] = 0x00; 1625 1626 pData->dev.config[0x14] = 0x01; /* nabmbar native audio bus mastering 1627 * base address rw */ 1628 pData->dev.config[0x15] = 0x00; 1629 pData->dev.config[0x16] = 0x00; 1630 pData->dev.config[0x17] = 0x00; 1631 1632 pData->dev.config[0x2c] = 0x86; /* svid subsystem vendor id rwo */ 1633 pData->dev.config[0x2d] = 0x80; 1634 1635 pData->dev.config[0x2e] = 0x00; /* sid subsystem id rwo */ 1636 pData->dev.config[0x2f] = 0x00; 1637 1638 pData->dev.config[0x3c] = 0x00; /* intr_ln interrupt line rw */ 1639 pData->dev.config[0x3d] = 0x01; /* intr_pn interrupt pin ro */ 1600 /* PCI Device (the assertions will be removed later) */ 1601 PCIDevSetVendorId (&pData->dev, 0x8086); /* 00 ro - intel. */ Assert (pData->dev.config[0x00] == 0x86); Assert (pData->dev.config[0x01] == 0x80); 1602 PCIDevSetDeviceId (&pData->dev, 0x2415); /* 02 ro - 82801 / 82801aa(?). */Assert (pData->dev.config[0x02] == 0x15); Assert (pData->dev.config[0x03] == 0x24); 1603 PCIDevSetCommand (&pData->dev, 0x0000); /* 04 rw,ro - pcicmd. */ Assert (pData->dev.config[0x04] == 0x00); Assert (pData->dev.config[0x05] == 0x00); 1604 PCIDevSetStatus (&pData->dev, 0x0280); /* 06 rwc?,ro? - pcists. */ Assert (pData->dev.config[0x06] == 0x80); Assert (pData->dev.config[0x07] == 0x02); 1605 PCIDevSetRevisionId (&pData->dev, 0x01); /* 08 ro - rid. */ Assert (pData->dev.config[0x08] == 0x01); 1606 PCIDevSetClassProg (&pData->dev, 0x00); /* 09 ro - pi. */ Assert (pData->dev.config[0x09] == 0x00); 1607 PCIDevSetClassSub (&pData->dev, 0x01); /* 0a ro - scc; 01 == Audio. */ Assert (pData->dev.config[0x0a] == 0x01); 1608 PCIDevSetClassBase (&pData->dev, 0x04); /* 0b ro - bcc; 04 == multimedia. */ Assert (pData->dev.config[0x0b] == 0x04); 1609 PCIDevSetHeaderType (&pData->dev, 0x00); /* 0e ro - headtyp. */ Assert (pData->dev.config[0x0e] == 0x00); 1610 PCIDevSetBaseAddress (&pData->dev, 0, /* 10 rw - nambar - native audio mixer base. */ 1611 true /* fIoSpace */, false /* fPrefetchable */, false /* f64Bit */, 0x00000000); Assert (pData->dev.config[0x10] == 0x01); Assert (pData->dev.config[0x11] == 0x00); Assert (pData->dev.config[0x12] == 0x00); Assert (pData->dev.config[0x13] == 0x00); 1612 PCIDevSetBaseAddress (&pData->dev, 1, /* 14 rw - nabmbar - native audio bus mastering. */ 1613 true /* fIoSpace */, false /* fPrefetchable */, false /* f64Bit */, 0x00000000); Assert (pData->dev.config[0x14] == 0x01); Assert (pData->dev.config[0x15] == 0x00); Assert (pData->dev.config[0x16] == 0x00); Assert (pData->dev.config[0x17] == 0x00); 1614 PCIDevSetSubSystemVendorId (&pData->dev, 0x8086); /* 2c ro - intel.) */ Assert (pData->dev.config[0x2c] == 0x86); Assert (pData->dev.config[0x2d] == 0x80); 1615 PCIDevSetSubSystemId (&pData->dev, 0x0000); /* 2e ro. */ Assert (pData->dev.config[0x2e] == 0x00); Assert (pData->dev.config[0x2f] == 0x00); 1616 PCIDevSetInterruptLine (&pData->dev, 0x00); /* 3c rw. */ Assert (pData->dev.config[0x3c] == 0x00); 1617 PCIDevSetInterruptPin (&pData->dev, 0x01); /* 3d ro - INTA#. */ Assert (pData->dev.config[0x3d] == 0x01); 1640 1618 1641 1619 /*
Note:
See TracChangeset
for help on using the changeset viewer.