VirtualBox

Changeset 89888 in vbox


Ignore:
Timestamp:
Jun 24, 2021 12:52:47 PM (4 years ago)
Author:
vboxsync
Message:

DevHda: Moved the HDA_SAVED_STATE_XXX defines to DevHda.h (no idea why it was in the codec header). bugref:9890

Location:
trunk/src/VBox/Devices/Audio
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DevHda.h

    r89887 r89888  
    124124    uint32_t        writable;
    125125    /** Register descriptor (RD) flags of type HDA_RD_F_XXX. These are used to
    126      *  specify the handling (read/write) policy of the register. */
     126     *  specify the read/write handling policy of the register. */
    127127    uint32_t        fFlags;
    128128    /** Read callback. */
     
    166166 * HDA_REG_xxx macros (also HDA_REG_IND_NAME()).
    167167 *
    168  * The au32Regs[] layout is kept unchanged for saved state
    169  * compatibility.
     168 * The au32Regs[] layout is kept unchanged for saved state compatibility.
    170169 */
    171170
     
    827826uint8_t hdaSDFIFOWToBytes(uint16_t u16RegFIFOW);
    828827
     828
     829
     830/** @name Saved state versions for the HDA device
     831 * @{ */
     832/** The current staved state version.
     833 * @note Only for the registration call.  Never used for tests. */
     834#define HDA_SAVED_STATE_VERSION         HDA_SAVED_STATE_WITHOUT_PERIOD
     835
     836/** Removed period and redefined wall clock. */
     837#define HDA_SAVED_STATE_WITHOUT_PERIOD  8
     838/** Added (Controller):              Current wall clock value (this independent from WALCLK register value).
     839  * Added (Controller):              Current IRQ level.
     840  * Added (Per stream):              Ring buffer. This is optional and can be skipped if (not) needed.
     841  * Added (Per stream):              Struct g_aSSMStreamStateFields7.
     842  * Added (Per stream):              Struct g_aSSMStreamPeriodFields7.
     843  * Added (Current BDLE per stream): Struct g_aSSMBDLEDescFields7.
     844  * Added (Current BDLE per stream): Struct g_aSSMBDLEStateFields7. */
     845#define HDA_SAVED_STATE_VERSION_7       7
     846/** Saves the current BDLE state.
     847 * @since 5.0.14 (r104839) */
     848#define HDA_SAVED_STATE_VERSION_6       6
     849/** Introduced dynamic number of streams + stream identifiers for serialization.
     850 *  Bug: Did not save the BDLE states correctly.
     851 *  Those will be skipped on load then.
     852 * @since 5.0.12 (r104520)  */
     853#define HDA_SAVED_STATE_VERSION_5       5
     854/** Since this version the number of MMIO registers can be flexible. */
     855#define HDA_SAVED_STATE_VERSION_4       4
     856#define HDA_SAVED_STATE_VERSION_3       3
     857#define HDA_SAVED_STATE_VERSION_2       2
     858#define HDA_SAVED_STATE_VERSION_1       1
     859/** @} */
     860
    829861#endif /* !VBOX_INCLUDED_SRC_Audio_DevHda_h */
    830862
  • trunk/src/VBox/Devices/Audio/DevHdaCodec.h

    r89869 r89888  
    957957void hdaCodecReset(PHDACODEC pThis);
    958958
    959 /** @name DevHDA saved state versions
    960  * @{ */
    961 /** The current staved state version. */
    962 #define HDA_SAVED_STATE_VERSION  HDA_SAVED_STATE_WITHOUT_PERIOD
    963 
    964 /** Removed period and redefined wall clock. */
    965 #define HDA_SAVED_STATE_WITHOUT_PERIOD 8
    966 /** Added (Controller):              Current wall clock value (this independent from WALCLK register value).
    967   * Added (Controller):              Current IRQ level.
    968   * Added (Per stream):              Ring buffer. This is optional and can be skipped if (not) needed.
    969   * Added (Per stream):              Struct g_aSSMStreamStateFields7.
    970   * Added (Per stream):              Struct g_aSSMStreamPeriodFields7.
    971   * Added (Current BDLE per stream): Struct g_aSSMBDLEDescFields7.
    972   * Added (Current BDLE per stream): Struct g_aSSMBDLEStateFields7. */
    973 #define HDA_SAVED_STATE_VERSION_7 7
    974 /** Saves the current BDLE state.
    975  * @since 5.0.14 (r104839) */
    976 #define HDA_SAVED_STATE_VERSION_6 6
    977 /** Introduced dynamic number of streams + stream identifiers for serialization.
    978  *  Bug: Did not save the BDLE states correctly.
    979  *  Those will be skipped on load then.
    980  * @since 5.0.12 (r104520)  */
    981 #define HDA_SAVED_STATE_VERSION_5 5
    982 /** Since this version the number of MMIO registers can be flexible. */
    983 #define HDA_SAVED_STATE_VERSION_4 4
    984 #define HDA_SAVED_STATE_VERSION_3 3
    985 #define HDA_SAVED_STATE_VERSION_2 2
    986 #define HDA_SAVED_STATE_VERSION_1 1
    987 /** @} */
    988 
    989959#endif /* !VBOX_INCLUDED_SRC_Audio_DevHdaCodec_h */
    990960
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