Changeset 89894 in vbox
- Timestamp:
- Jun 24, 2021 5:42:18 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DevHda.cpp
r89893 r89894 317 317 /** Turn a short global register name into an memory index and a stringized name. */ 318 318 #define HDA_REG_IDX(abbrev) HDA_MEM_IND_NAME(abbrev), #abbrev 319 320 319 /** Turns a short stream register name into an memory index and a stringized name. */ 321 320 #define HDA_REG_IDX_STRM(reg, suff) HDA_MEM_IND_NAME(reg ## suff), #reg #suff 322 323 321 /** Same as above for a register *not* stored in memory. */ 324 322 #define HDA_REG_IDX_NOMEM(abbrev) 0, #abbrev 325 323 326 324 /** No register description (RD) flags defined. */ 327 #define HDA_RD_F_NONE 0325 #define HDA_RD_F_NONE 0 328 326 /** 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) 330 328 331 329 /** Emits a single audio stream register set (e.g. OSD0) at a specified offset. */ 332 330 #define HDA_REG_MAP_STRM(offset, name) \ 333 /* offset size read mask write mask flags 334 /* ------- ------- ---------- ---------- ---------------------- ----------------- ----------------- ----------------------------- ----------- */ \331 /* offset size read mask write mask flags read callback write callback index + abbrev description */ \ 332 /* ------- ------- ---------- ---------- ---------------------- -------------- ----------------- ----------------------------- ----------- */ \ 335 333 /* Offset 0x80 (SD0) */ \ 336 334 { offset, 0x00003, 0x00FF001F, 0x00F0001F, HDA_RD_F_SD_WRITE_RUN, hdaRegReadU24 , hdaRegWriteSDCTL , HDA_REG_IDX_STRM(name, CTL) , #name " Stream Descriptor Control" }, \ … … 362 360 const HDAREGDESC g_aHdaRegMap[HDA_NUM_REGS] = 363 361 { 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 /*------- ------- ---------- ---------- -------------- ---------------- ------------------- ------------------------ */ 366 364 { 0x00000, 0x00002, 0x0000FFFB, 0x00000000, HDA_RD_F_NONE, hdaRegReadU16 , hdaRegWriteUnimpl , HDA_REG_IDX(GCAP) }, /* Global Capabilities */ 367 365 { 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.