Changeset 64471 in vbox for trunk/src/VBox
- Timestamp:
- Oct 28, 2016 3:24:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r64469 r64471 1760 1760 1761 1761 1762 /* -=-=-=-=-=- PCI Config Space -=-=-=-=-=- */ 1763 1764 1762 1765 /** 1763 1766 * @callback_method_impl{PFNPCICONFIGREAD, Default config space read callback.} … … 1808 1811 } 1809 1812 1813 1810 1814 /** 1811 1815 * Worker for ich9pciResetDevice and devpciR3UpdateMappings that unmaps a region. … … 1852 1856 } 1853 1857 1854 static void devpciR3UpdateMappings(PDMPCIDEV* pDev) 1855 { 1856 uint16_t const u16Cmd = ich9pciGetWord(pDev, VBOX_PCI_COMMAND); 1858 1859 /** 1860 * Worker for devpciR3IsConfigByteWritable that update BAR and ROM mappings. 1861 * 1862 * @param pDev The PCI device to update the mappings for. 1863 */ 1864 static void devpciR3UpdateMappings(PPDMPCIDEV pPciDev) 1865 { 1866 uint16_t const u16Cmd = ich9pciGetWord(pPciDev, VBOX_PCI_COMMAND); 1857 1867 for (unsigned iRegion = 0; iRegion < VBOX_PCI_NUM_REGIONS; iRegion++) 1858 1868 { 1859 PCIIORegion *pRegion = &p Dev->Int.s.aIORegions[iRegion];1869 PCIIORegion *pRegion = &pPciDev->Int.s.aIORegions[iRegion]; 1860 1870 uint64_t const cbRegion = pRegion->size; 1861 1871 if (cbRegion != 0) … … 1873 1883 if (u16Cmd & PCI_COMMAND_IOACCESS) 1874 1884 { 1875 uint32_t uIoBase = ich9pciGetDWord(p Dev, offCfgReg);1885 uint32_t uIoBase = ich9pciGetDWord(pPciDev, offCfgReg); 1876 1886 uIoBase &= ~(uint32_t)(cbRegion - 1); 1877 1887 … … 1891 1901 else if (u16Cmd & PCI_COMMAND_MEMACCESS) 1892 1902 { 1893 uint64_t uMemBase = ich9pciGetDWord(p Dev, offCfgReg);1903 uint64_t uMemBase = ich9pciGetDWord(pPciDev, offCfgReg); 1894 1904 if (f64Bit) 1895 1905 { 1896 1906 Assert(iRegion < VBOX_PCI_ROM_SLOT); 1897 uMemBase |= (uint64_t)ich9pciGetDWord(p Dev, offCfgReg + 4) << 32;1907 uMemBase |= (uint64_t)ich9pciGetDWord(pPciDev, offCfgReg + 4) << 32; 1898 1908 } 1899 1909 if ( iRegion != PCI_ROM_SLOT … … 1917 1927 { 1918 1928 LogRel2(("PCI: config dev %u/%u (%s) BAR%i: %#RX64 -> %#RX64 (LB %RX64 (%RU64))\n", 1919 p Dev->uDevFn >> VBOX_PCI_DEVFN_DEV_SHIFT, pDev->uDevFn & VBOX_PCI_DEVFN_FUN_MASK, pDev->pszNameR3,1920 iRegion, pRegion->addr, uNew, cbRegion, cbRegion));1921 1922 ich9pciUnmapRegion(p Dev, iRegion);1929 pPciDev->uDevFn >> VBOX_PCI_DEVFN_DEV_SHIFT, pPciDev->uDevFn & VBOX_PCI_DEVFN_FUN_MASK, 1930 pPciDev->pszNameR3, iRegion, pRegion->addr, uNew, cbRegion, cbRegion)); 1931 1932 ich9pciUnmapRegion(pPciDev, iRegion); 1923 1933 pRegion->addr = uNew; 1924 1934 if (uNew != INVALID_PCI_ADDRESS) 1925 1935 { 1926 int rc ;1927 rc = pRegion->map_func(pDev->Int.s.pDevInsR3, pDev, iRegion, uNew, cbRegion,(PCIADDRESSSPACE)(pRegion->type));1936 int rc = pRegion->map_func(pPciDev->Int.s.pDevInsR3, pPciDev, iRegion, uNew, cbRegion, 1937 (PCIADDRESSSPACE)(pRegion->type)); 1928 1938 AssertRC(rc); 1929 1939 }
Note:
See TracChangeset
for help on using the changeset viewer.