儲存庫 vbox 的更動 62614
- 時間撮記:
- 2016-7-28 上午10:40:46 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Audio/DevIchHda.cpp
r62613 r62614 2016 2016 static int hdaRegReadUnimpl(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value) 2017 2017 { 2018 RT_NOREF_PV(pThis); RT_NOREF_PV(iReg); 2018 2019 *pu32Value = 0; 2019 2020 return VINF_SUCCESS; … … 2022 2023 static int hdaRegWriteUnimpl(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value) 2023 2024 { 2025 RT_NOREF_PV(pThis); RT_NOREF_PV(iReg); RT_NOREF_PV(u32Value); 2024 2026 return VINF_SUCCESS; 2025 2027 } … … 2084 2086 static int hdaRegWriteGCTL(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value) 2085 2087 { 2088 RT_NOREF_PV(iReg); 2089 2086 2090 if (u32Value & HDA_REG_FIELD_FLAG_MASK(GCTL, RST)) 2087 2091 { … … 2134 2138 static int hdaRegReadINTSTS(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value) 2135 2139 { 2140 RT_NOREF_PV(iReg); 2141 2136 2142 uint32_t v = 0; 2137 2143 if ( HDA_REG_FLAG_VALUE(pThis, RIRBSTS, RIRBOIS) … … 2188 2194 static int hdaRegReadWALCLK(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value) 2189 2195 { 2196 RT_NOREF_PV(iReg); 2197 2190 2198 /* HDA spec (1a): 3.3.16 WALCLK counter ticks with 24Mhz bitclock rate. */ 2191 2199 *pu32Value = (uint32_t)ASMMultU64ByU32DivByU32(PDMDevHlpTMTimeVirtGetNano(pThis->CTX_SUFF(pDevIns)) … … 2197 2205 static int hdaRegReadSSYNC(PHDASTATE pThis, uint32_t iReg, uint32_t *pu32Value) 2198 2206 { 2207 RT_NOREF_PV(iReg); 2208 2199 2209 /* HDA spec (1a): 3.3.16 WALCLK counter ticks with 24Mhz bitclock rate. */ 2200 2210 *pu32Value = HDA_REG(pThis, SSYNC); … … 2211 2221 static int hdaRegWriteCORBRP(PHDASTATE pThis, uint32_t iReg, uint32_t u32Value) 2212 2222 { 2223 RT_NOREF_PV(iReg); 2224 2213 2225 if (u32Value & HDA_REG_FIELD_FLAG_MASK(CORBRP, RST)) 2214 2226 { … … 2234 2246 return rc; 2235 2247 #else 2248 RT_NOREF_PV(pThis); RT_NOREF_PV(iReg); RT_NOREF_PV(u32Value); 2236 2249 return VINF_IOM_R3_MMIO_WRITE; 2237 2250 #endif … … 2259 2272 return rc; 2260 2273 #else /* !IN_RING3 */ 2274 RT_NOREF_PV(pThis); RT_NOREF_PV(iReg); RT_NOREF_PV(u32Value); 2261 2275 return VINF_IOM_R3_MMIO_WRITE; 2262 2276 #endif /* IN_RING3 */ … … 2293 2307 return VINF_SUCCESS; /* Always return success to the MMIO handler. */ 2294 2308 #else /* !IN_RING3 */ 2309 RT_NOREF_PV(pThis); RT_NOREF_PV(iReg); RT_NOREF_PV(u32Value); 2295 2310 return VINF_IOM_R3_MMIO_WRITE; 2296 2311 #endif /* IN_RING3 */ … … 2325 2340 return hdaRegWriteU24(pThis, iReg, u32Value); 2326 2341 } 2342 2343 2344 2345 /** @todo r=bird: Andy, the spotty IN_RING3 in the rest of this function makes 2346 * little sense. If you need to request a lock in ring-3, why don't 2347 * you need it in ring-0 / RC? Or, reversely, why can you do the 2348 * fInReset handling without locking and resolving pStream in R0+RC 2349 * but not in ring-3? 2350 * 2351 * What makes the least sense, is that you do fInReset + 2352 * hdaProcessInterrupt in R0/RC and then unconditionally forces a trip to 2353 * ring-3 and does the same again. 2354 * 2355 * Please, do make up your mind what you want to do here ASAP! 2356 */ 2357 2327 2358 2328 2359 #ifdef IN_RING3
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器