VirtualBox

Changeset 80684 in vbox


Ignore:
Timestamp:
Sep 9, 2019 8:13:38 PM (5 years ago)
Author:
vboxsync
Message:

DevHDA: Some more v-align nit. This is prep work for converting it to the new PDM model. bugref:9218

File:
1 edited

Legend:

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

    r76565 r80684  
    4848typedef struct HDAMIXERSINK
    4949{
    50     R3PTRTYPE(PHDASTREAM)  pStream;
     50    R3PTRTYPE(PHDASTREAM)   pStream;
    5151    /** Pointer to the actual audio mixer sink. */
    52     R3PTRTYPE(PAUDMIXSINK) pMixSink;
     52    R3PTRTYPE(PAUDMIXSINK)  pMixSink;
    5353} HDAMIXERSINK, *PHDAMIXERSINK;
    5454
     
    5959{
    6060    /** Own stream tag. */
    61     uint8_t               uTag;
    62     uint8_t               Padding[7];
     61    uint8_t                 uTag;
     62    uint8_t                 Padding[7];
    6363    /** Pointer to associated stream. */
    6464    R3PTRTYPE(PHDASTREAM) pStream;
     
    7171    /** Timestamp (in ns) of the last timer callback (hdaTimer).
    7272     * Used to calculate the time actually elapsed between two timer callbacks. */
    73     uint64_t                           tsTimerLastCalledNs;
     73    uint64_t                tsTimerLastCalledNs;
    7474    /** IRQ debugging information. */
    7575    struct
    7676    {
    7777        /** Timestamp (in ns) of last processed (asserted / deasserted) IRQ. */
    78         uint64_t                       tsProcessedLastNs;
     78        uint64_t            tsProcessedLastNs;
    7979        /** Timestamp (in ns) of last asserted IRQ. */
    80         uint64_t                       tsAssertedNs;
     80        uint64_t            tsAssertedNs;
    8181        /** How many IRQs have been asserted already. */
    82         uint64_t                       cAsserted;
     82        uint64_t            cAsserted;
    8383        /** Accumulated elapsed time (in ns) of all IRQ being asserted. */
    84         uint64_t                       tsAssertedTotalNs;
     84        uint64_t            tsAssertedTotalNs;
    8585        /** Timestamp (in ns) of last deasserted IRQ. */
    86         uint64_t                       tsDeassertedNs;
     86        uint64_t            tsDeassertedNs;
    8787        /** How many IRQs have been deasserted already. */
    88         uint64_t                       cDeasserted;
     88        uint64_t            cDeasserted;
    8989        /** Accumulated elapsed time (in ns) of all IRQ being deasserted. */
    90         uint64_t                       tsDeassertedTotalNs;
     90        uint64_t            tsDeassertedTotalNs;
    9191    } IRQ;
    9292#endif
    9393    /** Whether debugging is enabled or not. */
    94     bool                               fEnabled;
     94    bool                    fEnabled;
    9595    /** Path where to dump the debug output to.
    9696     *  Defaults to VBOX_AUDIO_DEBUG_DUMP_PCM_DATA_PATH. */
    97     char                               szOutPath[RTPATH_MAX + 1];
     97    char                    szOutPath[RTPATH_MAX + 1];
    9898} HDASTATEDBGINFO, *PHDASTATEDBGINFO;
    9999
     
    104104{
    105105    /** The PCI device structure. */
    106     PDMPCIDEV                          PciDev;
     106    PDMPCIDEV               PciDev;
    107107    /** R3 Pointer to the device instance. */
    108     PPDMDEVINSR3                       pDevInsR3;
     108    PPDMDEVINSR3            pDevInsR3;
    109109    /** R0 Pointer to the device instance. */
    110     PPDMDEVINSR0                       pDevInsR0;
     110    PPDMDEVINSR0            pDevInsR0;
    111111    /** R0 Pointer to the device instance. */
    112     PPDMDEVINSRC                       pDevInsRC;
     112    PPDMDEVINSRC            pDevInsRC;
    113113    /** Padding for alignment. */
    114     uint32_t                           u32Padding;
     114    uint32_t                u32Padding;
    115115    /** Critical section protecting the HDA state. */
    116     PDMCRITSECT                        CritSect;
     116    PDMCRITSECT             CritSect;
    117117    /** The base interface for LUN\#0. */
    118     PDMIBASE                           IBase;
    119     RTGCPHYS                           MMIOBaseAddr;
     118    PDMIBASE                IBase;
     119    RTGCPHYS                MMIOBaseAddr;
    120120    /** The HDA's register set. */
    121     uint32_t                           au32Regs[HDA_NUM_REGS];
     121    uint32_t                au32Regs[HDA_NUM_REGS];
    122122    /** Internal stream states. */
    123     HDASTREAM                          aStreams[HDA_MAX_STREAMS];
     123    HDASTREAM               aStreams[HDA_MAX_STREAMS];
    124124    /** Mapping table between stream tags and stream states. */
    125     HDATAG                             aTags[HDA_MAX_TAGS];
     125    HDATAG                  aTags[HDA_MAX_TAGS];
    126126    /** CORB buffer base address. */
    127     uint64_t                           u64CORBBase;
     127    uint64_t                u64CORBBase;
    128128    /** RIRB buffer base address. */
    129     uint64_t                           u64RIRBBase;
     129    uint64_t                u64RIRBBase;
    130130    /** DMA base address.
    131131     *  Made out of DPLBASE + DPUBASE (3.3.32 + 3.3.33). */
    132     uint64_t                           u64DPBase;
     132    uint64_t                u64DPBase;
    133133    /** Pointer to CORB buffer. */
    134     R3PTRTYPE(uint32_t *)              pu32CorbBuf;
     134    R3PTRTYPE(uint32_t *)   pu32CorbBuf;
    135135    /** Size in bytes of CORB buffer. */
    136     uint32_t                           cbCorbBuf;
     136    uint32_t                cbCorbBuf;
    137137    /** Padding for alignment. */
    138     uint32_t                           u32Padding1;
     138    uint32_t                u32Padding1;
    139139    /** Pointer to RIRB buffer. */
    140     R3PTRTYPE(uint64_t *)              pu64RirbBuf;
     140    R3PTRTYPE(uint64_t *)   pu64RirbBuf;
    141141    /** Size in bytes of RIRB buffer. */
    142     uint32_t                           cbRirbBuf;
     142    uint32_t                cbRirbBuf;
    143143    /** DMA position buffer enable bit. */
    144     bool                               fDMAPosition;
     144    bool                    fDMAPosition;
    145145    /** Flag whether the R0 and RC parts are enabled. */
    146     bool                               fRZEnabled;
     146    bool                    fRZEnabled;
    147147    /** Reserved. */
    148     bool                               fPadding1b;
     148    bool                    fPadding1b;
    149149    /** Number of active (running) SDn streams. */
    150     uint8_t                            cStreamsActive;
     150    uint8_t                 cStreamsActive;
    151151    /** The stream timers for pumping data thru the attached LUN drivers. */
    152     PTMTIMERR3                         pTimer[HDA_MAX_STREAMS];
     152    PTMTIMERR3              pTimer[HDA_MAX_STREAMS];
    153153#ifdef VBOX_WITH_STATISTICS
    154     STAMPROFILE                        StatTimer;
    155     STAMPROFILE                        StatIn;
    156     STAMPROFILE                        StatOut;
    157     STAMCOUNTER                        StatBytesRead;
    158     STAMCOUNTER                        StatBytesWritten;
     154    STAMPROFILE             StatTimer;
     155    STAMPROFILE             StatIn;
     156    STAMPROFILE             StatOut;
     157    STAMCOUNTER             StatBytesRead;
     158    STAMCOUNTER             StatBytesWritten;
    159159#endif
    160160    /** Pointer to HDA codec to use. */
    161     R3PTRTYPE(PHDACODEC)               pCodec;
     161    R3PTRTYPE(PHDACODEC)    pCodec;
    162162    /** List of associated LUN drivers (HDADRIVER). */
    163     RTLISTANCHORR3                     lstDrv;
     163    RTLISTANCHORR3          lstDrv;
    164164    /** The device' software mixer. */
    165     R3PTRTYPE(PAUDIOMIXER)             pMixer;
     165    R3PTRTYPE(PAUDIOMIXER)  pMixer;
    166166    /** HDA sink for (front) output. */
    167     HDAMIXERSINK                       SinkFront;
     167    HDAMIXERSINK            SinkFront;
    168168#ifdef VBOX_WITH_AUDIO_HDA_51_SURROUND
    169169    /** HDA sink for center / LFE output. */
    170     HDAMIXERSINK                       SinkCenterLFE;
     170    HDAMIXERSINK            SinkCenterLFE;
    171171    /** HDA sink for rear output. */
    172     HDAMIXERSINK                       SinkRear;
     172    HDAMIXERSINK            SinkRear;
    173173#endif
    174174    /** HDA mixer sink for line input. */
    175     HDAMIXERSINK                       SinkLineIn;
     175    HDAMIXERSINK            SinkLineIn;
    176176#ifdef VBOX_WITH_AUDIO_HDA_MIC_IN
    177177    /** Audio mixer sink for microphone input. */
    178     HDAMIXERSINK                       SinkMicIn;
     178    HDAMIXERSINK            SinkMicIn;
    179179#endif
    180180    /** Last updated wall clock (WALCLK) counter. */
    181     uint64_t                           u64WalClk;
     181    uint64_t                u64WalClk;
    182182    /** Response Interrupt Count (RINTCNT). */
    183     uint16_t                           u16RespIntCnt;
     183    uint16_t                u16RespIntCnt;
    184184    /** Position adjustment (in audio frames).
    185185     *
     
    192192     *  starting a stream.
    193193     */
    194     uint16_t                           cPosAdjustFrames;
     194    uint16_t                cPosAdjustFrames;
    195195    /** Whether the position adjustment is enabled or not. */
    196     bool                               fPosAdjustEnabled;
     196    bool                    fPosAdjustEnabled;
    197197#ifdef VBOX_STRICT
    198198    /** Wall clock (WALCLK) stale count.
    199      *  This indicates the number of set wall clock
    200      *  values which did not actually move the counter forward (stale). */
    201     uint8_t                            u8WalClkStaleCnt;
    202     uint8_t                            Padding1[2];
     199     *  This indicates the number of set wall clock values which did not actually
     200     *  move the counter forward (stale). */
     201    uint8_t                 u8WalClkStaleCnt;
     202    uint8_t                 Padding1[2];
    203203#else
    204     uint8_t                            Padding1[3];
     204    uint8_t                 Padding1[3];
    205205#endif
    206206    /** Current IRQ level. */
    207     uint8_t                            u8IRQL;
     207    uint8_t                 u8IRQL;
    208208    /** The device timer Hz rate. Defaults to HDA_TIMER_HZ_DEFAULT. */
    209     uint16_t                           uTimerHz;
     209    uint16_t                uTimerHz;
    210210    /** Padding for alignment. */
    211     uint8_t                            au8Padding3[3];
    212     HDASTATEDBGINFO                    Dbg;
     211    uint8_t                 au8Padding3[3];
     212    HDASTATEDBGINFO         Dbg;
    213213    /** This is for checking that the build was correctly configured in all contexts.
    214      * This is set to HDASTATE_ALIGNMENT_CHECK_MAGIC. */
    215     uint64_t                            uAlignmentCheckMagic;
     214     *  This is set to HDASTATE_ALIGNMENT_CHECK_MAGIC. */
     215    uint64_t                uAlignmentCheckMagic;
    216216} HDASTATE, *PHDASTATE;
    217217
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