Changeset 81680 in vbox for trunk/src/VBox/Devices/Storage
- Timestamp:
- Nov 5, 2019 5:16:34 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp
r81679 r81680 1802 1802 */ 1803 1803 static DECLCALLBACK(int) virtioScsiR3QueryDeviceLocation(PPDMIMEDIAPORT pInterface, const char **ppcszController, 1804 uint32_t *piInstance, uint32_t *pi Target)1804 uint32_t *piInstance, uint32_t *piLUN) 1805 1805 { 1806 1806 PVIRTIOSCSITARGET pTarget = RT_FROM_MEMBER(pInterface, VIRTIOSCSITARGET, IMediaPort); … … 1809 1809 AssertPtrReturn(ppcszController, VERR_INVALID_POINTER); 1810 1810 AssertPtrReturn(piInstance, VERR_INVALID_POINTER); 1811 AssertPtrReturn(pi Target, VERR_INVALID_POINTER);1811 AssertPtrReturn(piLUN, VERR_INVALID_POINTER); 1812 1812 1813 1813 *ppcszController = pDevIns->pReg->szName; 1814 1814 *piInstance = pDevIns->iInstance; 1815 *pi Target= pTarget->iTarget;1815 *piLUN = pTarget->iTarget; 1816 1816 1817 1817 return VINF_SUCCESS; … … 1822 1822 * Virtio config. * 1823 1823 *********************************************************************************************************************************/ 1824 1825 /**1826 * Worker for virtioScsiR3DevCapWrite and virtioScsiR3DevCapRead.1827 */1828 static int virtioScsiR3CfgAccessed(PVIRTIOSCSI pThis, uint32_t offConfig, void *pv, uint32_t cb, bool fWrite)1829 {1830 AssertReturn(pv && cb <= sizeof(uint32_t), fWrite ? VINF_SUCCESS : VINF_IOM_MMIO_UNUSED_00);1831 1824 1832 1825 /** … … 1878 1871 } \ 1879 1872 } while(0) 1873 1874 /** 1875 * Worker for virtioScsiR3DevCapWrite and virtioScsiR3DevCapRead. 1876 */ 1877 static int virtioScsiR3CfgAccessed(PVIRTIOSCSI pThis, uint32_t offConfig, void *pv, uint32_t cb, bool fWrite) 1878 { 1879 AssertReturn(pv && cb <= sizeof(uint32_t), fWrite ? VINF_SUCCESS : VINF_IOM_MMIO_UNUSED_00); 1880 1880 1881 1881 if (MATCH_SCSI_CONFIG( uNumQueues)) … … 1905 1905 } 1906 1906 return VINF_SUCCESS; 1907 } 1908 1907 1909 #undef SCSI_CONFIG_ACCESSOR_READONLY 1908 1910 #undef SCSI_CONFIG_ACCESSOR 1909 1911 #undef LOG_ACCESSOR 1910 1912 #undef MATCH_SCSI_CONFIG 1911 }1912 1913 1913 1914 /**
Note:
See TracChangeset
for help on using the changeset viewer.