VirtualBox

Changeset 89894 in vbox


Ignore:
Timestamp:
Jun 24, 2021 5:42:18 PM (3 years ago)
Author:
vboxsync
Message:

DevHda: Cleanups... bugref:9890

File:
1 edited

Legend:

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

    r89893 r89894  
    317317/** Turn a short global register name into an memory index and a stringized name. */
    318318#define HDA_REG_IDX(abbrev)         HDA_MEM_IND_NAME(abbrev), #abbrev
    319 
    320319/** Turns a short stream register name into an memory index and a stringized name. */
    321320#define HDA_REG_IDX_STRM(reg, suff) HDA_MEM_IND_NAME(reg ## suff), #reg #suff
    322 
    323321/** Same as above for a register *not* stored in memory. */
    324322#define HDA_REG_IDX_NOMEM(abbrev)   0, #abbrev
    325323
    326324/** No register description (RD) flags defined. */
    327 #define HDA_RD_F_NONE           0
     325#define HDA_RD_F_NONE               0
    328326/** Writes to SD are allowed while RUN bit is set. */
    329 #define HDA_RD_F_SD_WRITE_RUN   RT_BIT(0)
     327#define HDA_RD_F_SD_WRITE_RUN       RT_BIT(0)
    330328
    331329/** Emits a single audio stream register set (e.g. OSD0) at a specified offset. */
    332330#define HDA_REG_MAP_STRM(offset, name) \
    333     /* offset        size     read mask   write mask  flags                     read callback   write callback     index + abbrev                 description */ \
    334     /* -------       -------  ----------  ----------  ------------------------- --------------  -----------------  -----------------------------  ----------- */ \
     331    /* offset        size     read mask   write mask  flags                  read callback   write callback     index + abbrev                 description */ \
     332    /* -------       -------  ----------  ----------  ---------------------- --------------  -----------------  -----------------------------  ----------- */ \
    335333    /* Offset 0x80 (SD0) */ \
    336334    { offset,        0x00003, 0x00FF001F, 0x00F0001F, HDA_RD_F_SD_WRITE_RUN, hdaRegReadU24 , hdaRegWriteSDCTL  , HDA_REG_IDX_STRM(name, CTL)  , #name " Stream Descriptor Control" }, \
     
    362360const HDAREGDESC g_aHdaRegMap[HDA_NUM_REGS] =
    363361{
    364     /* offset  size     read mask   write mask  flags             read callback     write callback       index + abbrev              */
    365     /*-------  -------  ----------  ----------  ----------------- ----------------  -------------------     ------------------------ */
     362    /* offset  size     read mask   write mask  flags          read callback     write callback       index + abbrev               */
     363    /*-------  -------  ----------  ----------  -------------- ----------------  -------------------  ------------------------    */
    366364    { 0x00000, 0x00002, 0x0000FFFB, 0x00000000, HDA_RD_F_NONE, hdaRegReadU16   , hdaRegWriteUnimpl  , HDA_REG_IDX(GCAP)         }, /* Global Capabilities */
    367365    { 0x00002, 0x00001, 0x000000FF, 0x00000000, HDA_RD_F_NONE, hdaRegReadU8    , hdaRegWriteUnimpl  , HDA_REG_IDX(VMIN)         }, /* Minor Version */
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