VirtualBox

Changeset 28065 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Apr 7, 2010 8:54:34 PM (15 years ago)
Author:
vboxsync
Message:

Storage: Convert from PDMDATASEG to RTSGSEG to avoid casting between those two in VBoxHDD and more async I/O updates

Location:
trunk/include/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxHDD.h

    r27977 r28065  
    3535#include <iprt/mem.h>
    3636#include <iprt/net.h>
     37#include <iprt/sg.h>
    3738#include <VBox/cdefs.h>
    3839#include <VBox/types.h>
     
    589590     */
    590591    DECLR3CALLBACKMEMBER(int, pfnReadAsync, (void *pvUser, void *pStorage, uint64_t uOffset,
    591                                              PCPDMDATASEG paSegments, size_t cSegments,
     592                                             PCRTSGSEG paSegments, size_t cSegments,
    592593                                             size_t cbRead, void *pvCompletion,
    593594                                             void **ppTask));
     
    607608     */
    608609    DECLR3CALLBACKMEMBER(int, pfnWriteAsync, (void *pvUser, void *pStorage, uint64_t uOffset,
    609                                               PCPDMDATASEG paSegments, size_t cSegments,
     610                                              PCRTSGSEG paSegments, size_t cSegments,
    610611                                              size_t cbWrite, void *pvCompletion,
    611612                                              void **ppTask));
     
    21882189 */
    21892190VBOXDDU_DECL(int) VDAsyncRead(PVBOXHDD pDisk, uint64_t uOffset, size_t cbRead,
    2190                               PPDMDATASEG paSeg, unsigned cSeg,
     2191                              PCRTSGSEG paSeg, unsigned cSeg,
    21912192                              PFNVDASYNCTRANSFERCOMPLETE pfnComplete,
    21922193                              void *pvUser1, void *pvUser2);
     
    22062207 */
    22072208VBOXDDU_DECL(int) VDAsyncWrite(PVBOXHDD pDisk, uint64_t uOffset, size_t cbWrite,
    2208                                PPDMDATASEG paSeg, unsigned cSeg,
     2209                               PCRTSGSEG paSeg, unsigned cSeg,
    22092210                               PFNVDASYNCTRANSFERCOMPLETE pfnComplete,
    22102211                               void *pvUser1, void *pvUser2);
  • trunk/include/VBox/pdmasynccompletion.h

    r27920 r28065  
    3535#include <VBox/err.h>
    3636#include <iprt/assert.h>
     37#include <iprt/sg.h>
    3738
    3839RT_C_DECLS_BEGIN
     
    258259 */
    259260VMMR3DECL(int) PDMR3AsyncCompletionEpRead(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off,
    260                                           PCPDMDATASEG paSegments, size_t cSegments,
     261                                          PCRTSGSEG paSegments, unsigned cSegments,
    261262                                          size_t cbRead, void *pvUser,
    262263                                          PPPDMASYNCCOMPLETIONTASK ppTask);
     
    276277 */
    277278VMMR3DECL(int) PDMR3AsyncCompletionEpWrite(PPDMASYNCCOMPLETIONENDPOINT pEndpoint, RTFOFF off,
    278                                            PCPDMDATASEG paSegments, size_t cSegments,
     279                                           PCRTSGSEG paSegments, unsigned cSegments,
    279280                                           size_t cbWrite, void *pvUser,
    280281                                           PPPDMASYNCCOMPLETIONTASK ppTask);
  • trunk/include/VBox/pdmifs.h

    r28051 r28065  
    3131#define ___VBox_pdmifs_h
    3232
     33#include <iprt/sg.h>
    3334#include <VBox/types.h>
    3435#include <VBox/hgcmsvc.h>
     
    13921393     * @thread  Any thread.
    13931394     */
    1394     DECLR3CALLBACKMEMBER(int, pfnStartRead,(PPDMIBLOCKASYNC pInterface, uint64_t off, PPDMDATASEG pSeg, unsigned cSeg, size_t cbRead, void *pvUser));
     1395    DECLR3CALLBACKMEMBER(int, pfnStartRead,(PPDMIBLOCKASYNC pInterface, uint64_t off, PCRTSGSEG pSeg, unsigned cSeg, size_t cbRead, void *pvUser));
    13951396
    13961397    /**
     
    14061407     * @thread  Any thread.
    14071408     */
    1408     DECLR3CALLBACKMEMBER(int, pfnStartWrite,(PPDMIBLOCKASYNC pInterface, uint64_t off, PPDMDATASEG pSeg, unsigned cSeg, size_t cbWrite, void *pvUser));
     1409    DECLR3CALLBACKMEMBER(int, pfnStartWrite,(PPDMIBLOCKASYNC pInterface, uint64_t off, PCRTSGSEG pSeg, unsigned cSeg, size_t cbWrite, void *pvUser));
    14091410
    14101411} PDMIBLOCKASYNC;
     
    14551456     * @thread  Any thread.
    14561457     */
    1457     DECLR3CALLBACKMEMBER(int, pfnStartRead,(PPDMIMEDIAASYNC pInterface, uint64_t off, PPDMDATASEG pSeg, unsigned cSeg, size_t cbRead, void *pvUser));
     1458    DECLR3CALLBACKMEMBER(int, pfnStartRead,(PPDMIMEDIAASYNC pInterface, uint64_t off, PCRTSGSEG pSeg, unsigned cSeg, size_t cbRead, void *pvUser));
    14581459
    14591460    /**
     
    14691470     * @thread  Any thread.
    14701471     */
    1471     DECLR3CALLBACKMEMBER(int, pfnStartWrite,(PPDMIMEDIAASYNC pInterface, uint64_t off, PPDMDATASEG pSeg, unsigned cSeg, size_t cbWrite, void *pvUser));
     1472    DECLR3CALLBACKMEMBER(int, pfnStartWrite,(PPDMIMEDIAASYNC pInterface, uint64_t off, PCRTSGSEG pSeg, unsigned cSeg, size_t cbWrite, void *pvUser));
    14721473
    14731474} PDMIMEDIAASYNC;
     
    25342535    uint32_t               cScatterGatherEntries;
    25352536    /** Pointer to the head of the scatter gather list. */
    2536     PPDMDATASEG            paScatterGatherHead;
     2537    PRTSGSEG               paScatterGatherHead;
    25372538    /** Size of the sense buffer. */
    25382539    uint32_t               cbSenseBuffer;
  • trunk/include/VBox/vscsi.h

    r27901 r28065  
    3434#include <VBox/cdefs.h>
    3535#include <VBox/types.h>
     36#include <iprt/sg.h>
    3637
    3738RT_C_DECLS_BEGIN
     
    222223                                       uint32_t iLun, uint8_t *pbCDB, size_t cbCDB,
    223224                                       size_t cbSGList, unsigned cSGListEntries,
    224                                        PPDMDATASEG paSGList, uint8_t *pbSense,
     225                                       PCRTSGSEG paSGList, uint8_t *pbSense,
    225226                                       size_t cbSense, void *pvVScsiReqUser);
    226227
     
    280281VBOXDDU_DECL(int) VSCSIIoReqParamsGet(VSCSIIOREQ hVScsiIoReq, uint64_t *puOffset,
    281282                                      size_t *pcbTransfer, unsigned *pcSeg,
    282                                       size_t *pcbSeg, PCPDMDATASEG *ppaSeg);
     283                                      size_t *pcbSeg, PCRTSGSEG *ppaSeg);
    283284
    284285RT_C_DECLS_END
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