VirtualBox

Changeset 106344 in vbox for trunk


Ignore:
Timestamp:
Oct 16, 2024 9:06:04 AM (7 weeks ago)
Author:
vboxsync
Message:

Runtime: Add ACPI table builder API to dynamically generate a DSDT/SSDT, bugref:10733 [doxygen fix]

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/acpi.h

    r106343 r106344  
    7070 * Generates and writes the table header checksum for the given ACPI table.
    7171 *
    72  * @returns nothing.
    7372 * @param   pTbl                Pointer to the ACPI table to set the checksum for.
    7473 * @param   cbTbl               Size of the table in bytes, including the ACPI table header.
     
    9897 * Destroys the given ACPI table, freeing all resources.
    9998 *
    100  * @parm   hAcpiTbl             The ACPI table handle to destroy.
     99 * @param  hAcpiTbl             The ACPI table handle to destroy.
    101100 */
    102101RTDECL(void) RTAcpiTblDestroy(RTACPITBL hAcpiTbl);
     
    382381 * @returns IPRT status code.
    383382 * @param   hAcpiRes            The ACPI resource handle.
    384  * @param   ppvBuf              Where to store the pointer to the buffer holding the encoded resource template on success.
    385  * @param   pcbBuf              Where to store the size of the encoded data in bytes on success.
     383 * @param   ppvRes              Where to store the pointer to the buffer holding the encoded resource template on success.
     384 * @param   pcbRes              Where to store the size of the encoded data in bytes on success.
    386385 *
    387386 * @note The ACPI resource must be successfully sealed with RTAcpiResourceSeal() for this function to succeed.
    388387 *       Also the buffer pointer will only be valid until a call to any other RTAcpiResource* method.
    389388 */
    390 RTDECL(int) RTAcpiResourceQueryBuffer(RTACPIRES hAcpiRes, const void **ppvRes, size_t *pcbBuf);
     389RTDECL(int) RTAcpiResourceQueryBuffer(RTACPIRES hAcpiRes, const void **ppvRes, size_t *pcbRes);
    391390
    392391
  • trunk/src/VBox/Runtime/common/misc/acpi.cpp

    r106342 r106344  
    970970
    971971
    972 RTDECL(int) RTAcpiResourceQueryBuffer(RTACPIRES hAcpiRes, const void **ppvRes, size_t *pcbBuf)
     972RTDECL(int) RTAcpiResourceQueryBuffer(RTACPIRES hAcpiRes, const void **ppvRes, size_t *pcbRes)
    973973{
    974974    PRTACPIRESINT pThis = hAcpiRes;
     
    978978
    979979    *ppvRes = pThis->pbResBuf;
    980     *pcbBuf = pThis->offResBuf;
     980    *pcbRes = pThis->offResBuf;
    981981    return VINF_SUCCESS;
    982982}
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