VirtualBox

Changeset 38622 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Sep 4, 2011 5:05:03 PM (13 years ago)
Author:
vboxsync
Message:

AHCI+DrvBlock+DrvVD: Add support for the TRIM command and connect with the VD discard support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmifs.h

    r37781 r38622  
    913913
    914914
     915/**
     916 * PDM range.
     917 */
     918typedef struct PDMRANGE
     919{
     920    /** Start offset. */
     921    uint64_t    offStart;
     922    /** Size. */
     923    size_t      cbRange;
     924} PDMRANGE;
     925/** Pointer to a PDM range. */
     926typedef PDMRANGE *PPDMRANGE;
     927
     928
    915929/** Pointer to a block interface. */
    916930typedef struct PDMIBLOCK *PPDMIBLOCK;
     
    10191033     */
    10201034    DECLR3CALLBACKMEMBER(int, pfnGetUuid,(PPDMIBLOCK pInterface, PRTUUID pUuid));
     1035
     1036    /**
     1037     * Discards the given range.
     1038     *
     1039     * @returns VBox status code.
     1040     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
     1041     * @param   paRanges        Array of ranges to discard.
     1042     * @param   cRanges         Number of entries in the array.
     1043     * @thread  Any thread.
     1044     */
     1045    DECLR3CALLBACKMEMBER(int, pfnDiscard,(PPDMIBLOCK pInterface, PPDMRANGE paRanges, unsigned cRanges));
    10211046} PDMIBLOCK;
    10221047/** PDMIBLOCK interface ID. */
    1023 #define PDMIBLOCK_IID                           "0a5f3156-8b21-4cf5-83fd-e097281d2900"
     1048#define PDMIBLOCK_IID                           "5e7123dd-8cdf-4a6e-97a5-ab0c68d7e850"
    10241049
    10251050
     
    13071332    DECLR3CALLBACKMEMBER(int, pfnGetUuid,(PPDMIMEDIA pInterface, PRTUUID pUuid));
    13081333
     1334    /**
     1335     * Discards the given range.
     1336     *
     1337     * @returns VBox status code.
     1338     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
     1339     * @param   paRanges        Array of ranges to discard.
     1340     * @param   cRanges         Number of entries in the array.
     1341     * @thread  Any thread.
     1342     */
     1343    DECLR3CALLBACKMEMBER(int, pfnDiscard,(PPDMIMEDIA pInterface, PPDMRANGE paRanges, unsigned cRanges));
     1344
    13091345} PDMIMEDIA;
    13101346/** PDMIMEDIA interface ID. */
    1311 #define PDMIMEDIA_IID                           "f5bb07c9-2843-46f8-a56f-cc090b6e5bac"
     1347#define PDMIMEDIA_IID                           "ec385d21-7aa9-42ca-8cfb-e1388297fa52"
    13121348
    13131349
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