VirtualBox

Changeset 91935 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Oct 21, 2021 11:08:45 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147741
Message:

VMM,Devices: Eliminate direct calls to IOMIOPortWrite API and introduce callbacks in the device helper callback table, bugref:10074

File:
1 edited

Legend:

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

    r91930 r91935  
    24242424
    24252425/** Current PDMDEVHLPR3 version number. */
    2426 #define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 56, 0)
     2426#define PDM_DEVHLPR3_VERSION                    PDM_VERSION_MAKE_PP(0xffe7, 57, 0)
    24272427
    24282428/**
     
    25082508     */
    25092509    DECLR3CALLBACKMEMBER(uint32_t, pfnIoPortGetMappingAddress,(PPDMDEVINS pDevIns, IOMIOPORTHANDLE hIoPorts));
     2510
     2511    /**
     2512     * Writes to an I/O port register.
     2513     *
     2514     * @returns Strict VBox status code. Informational status codes other than the one documented
     2515     *          here are to be treated as internal failure. Use IOM_SUCCESS() to check for success.
     2516     * @retval  VINF_SUCCESS                Success.
     2517     * @retval  VINF_EM_FIRST-VINF_EM_LAST  Success with some exceptions (see IOM_SUCCESS()), the
     2518     *                                      status code must be passed on to EM.
     2519     *
     2520     * @param   pDevIns     The device instance to register the ports with.
     2521     * @param   Port        The port to write to.
     2522     * @param   u32Value    The value to write.
     2523     * @param   cbValue     The size of the register to read in bytes. 1, 2 or 4 bytes.
     2524     *
     2525     * @thread EMT
     2526     * @todo r=aeichner This is only used by DevPCI.cpp to write the ELCR of the PIC. This shouldn't be done that way
     2527     *       and removed again as soon as possible (no time right now)...
     2528     */
     2529    DECLR3CALLBACKMEMBER(VBOXSTRICTRC, pfnIoPortWrite,(PPDMDEVINS pDevIns, RTIOPORT Port, uint32_t u32Value, size_t cbValue));
    25102530    /** @}  */
    25112531
Note: See TracChangeset for help on using the changeset viewer.

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