Changeset 33142 in vbox
- Timestamp:
- Oct 14, 2010 5:25:09 PM (14 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r33127 r33142 415 415 return VINF_SUCCESS; 416 416 } 417 418 417 419 418 static int ich9pciDataRead(PPCIGLOBALS pGlobals, uint32_t addr, int len, uint32_t *pu32) … … 1353 1352 static uint32_t ich9pciConfigRead(PPCIGLOBALS pGlobals, uint8_t uBus, uint8_t uDevFn, uint32_t addr, uint32_t len) 1354 1353 { 1355 uint32_t u32Val;1354 uint32_t u32Val = 0xffffffff; 1356 1355 PciAddress aPciAddr; 1357 1356 … … 1862 1861 } PciSlotAssignments[] = { 1863 1862 { 1864 "piix3ide", 1, 1 // do we really need it?1865 },1866 {1867 1863 "lan", 25, 0 /* LAN controller */ 1868 1864 }, … … 1873 1869 "i82801", 30, 0 /* Host Controller */ 1874 1870 }, 1871 /** 1872 * Please note, that for devices being functions, like we do here, device 0 1873 * must be multifunction, i.e. have header type 0x80. Our LPC device is. 1874 * Alternative approach is to assign separate slot to each device. 1875 */ 1875 1876 { 1876 1877 "lpc", 31, 0 /* Low Pin Count bus */ 1877 1878 }, 1878 1879 { 1880 "piix3ide", 31, 1 /* IDE controller */ 1881 }, 1882 #if 0 1883 { 1879 1884 "ahci", 31, 2 /* SATA controller */ 1880 1885 }, 1886 #endif 1881 1887 { 1882 1888 "smbus", 31, 3 /* System Management Bus */ … … 1939 1945 * Find device position 1940 1946 */ 1941 if (iDev < 0 )1947 if (iDev < 0 || !strcmp(pszName, "piix3ide")) 1942 1948 { 1943 1949 iDev = assignPosition(pBus, pPciDev, pszName); -
trunk/src/VBox/Devices/PC/DevLPC.cpp
r32476 r33142 236 236 PCIDevSetClassSub (&pThis->dev, 0x01); /* PCI-to-ISA Bridge */ 237 237 PCIDevSetClassBase (&pThis->dev, 0x06); /* Bridge */ 238 PCIDevSetHeaderType (&pThis->dev, 0x 00); /* normal device*/238 PCIDevSetHeaderType (&pThis->dev, 0x80); /* normal, multifunction device (so that other devices can be its functions) */ 239 239 PCIDevSetSubSystemVendorId(&pThis->dev, 0x8086); 240 240 PCIDevSetSubSystemId (&pThis->dev, 0x7270); -
trunk/src/VBox/Devices/Storage/DevATA.cpp
r32943 r33142 6738 6738 return PDMDEV_SET_ERROR(pDevIns, rc, 6739 6739 N_("PIIX3 cannot register PCI device")); 6740 AssertMsg(pThis->dev.devfn == 9 || iInstance != 0, ("pThis->dev.devfn=%d\n", pThis->dev.devfn));6740 //AssertMsg(pThis->dev.devfn == 9 || iInstance != 0, ("pThis->dev.devfn=%d\n", pThis->dev.devfn)); 6741 6741 rc = PDMDevHlpPCIIORegionRegister(pDevIns, 4, 0x10, PCI_ADDRESS_SPACE_IO, ataBMDMAIORangeMap); 6742 6742 if (RT_FAILURE(rc))
Note:
See TracChangeset
for help on using the changeset viewer.