VirtualBox

Changeset 81680 in vbox for trunk/src/VBox/Devices/Storage


Ignore:
Timestamp:
Nov 5, 2019 5:16:34 PM (5 years ago)
Author:
vboxsync
Message:

Virtio_1_0,DevVirtioScsi: Doxygen fixes. bugref:9218 bugref:9440

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevVirtioSCSI.cpp

    r81679 r81680  
    18021802 */
    18031803static DECLCALLBACK(int) virtioScsiR3QueryDeviceLocation(PPDMIMEDIAPORT pInterface, const char **ppcszController,
    1804                                                          uint32_t *piInstance, uint32_t *piTarget)
     1804                                                         uint32_t *piInstance, uint32_t *piLUN)
    18051805{
    18061806    PVIRTIOSCSITARGET pTarget = RT_FROM_MEMBER(pInterface, VIRTIOSCSITARGET, IMediaPort);
     
    18091809    AssertPtrReturn(ppcszController, VERR_INVALID_POINTER);
    18101810    AssertPtrReturn(piInstance, VERR_INVALID_POINTER);
    1811     AssertPtrReturn(piTarget, VERR_INVALID_POINTER);
     1811    AssertPtrReturn(piLUN, VERR_INVALID_POINTER);
    18121812
    18131813    *ppcszController = pDevIns->pReg->szName;
    18141814    *piInstance = pDevIns->iInstance;
    1815     *piTarget = pTarget->iTarget;
     1815    *piLUN = pTarget->iTarget;
    18161816
    18171817    return VINF_SUCCESS;
     
    18221822*   Virtio config.                                                                                                               *
    18231823*********************************************************************************************************************************/
    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);
    18311824
    18321825/**
     
    18781871        } \
    18791872    } while(0)
     1873
     1874/**
     1875 * Worker for virtioScsiR3DevCapWrite and virtioScsiR3DevCapRead.
     1876 */
     1877static 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);
    18801880
    18811881    if (MATCH_SCSI_CONFIG(            uNumQueues))
     
    19051905    }
    19061906    return VINF_SUCCESS;
     1907}
     1908
    19071909#undef SCSI_CONFIG_ACCESSOR_READONLY
    19081910#undef SCSI_CONFIG_ACCESSOR
    19091911#undef LOG_ACCESSOR
    19101912#undef MATCH_SCSI_CONFIG
    1911 }
    19121913
    19131914/**
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette