儲存庫 vbox 的更動 83443
- 時間撮記:
- 2020-3-26 下午04:49:44 (5 年 以前)
- svn:sync-xref-src-repo-rev:
- 136671
- 位置:
- trunk/src/VBox/Devices/Input
- 檔案:
-
- 修改 4 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Devices/Input/DevPS2.cpp
r83300 r83443 731 731 { 732 732 Assert(cElements > 0); 733 LogFlowFunc(("Clearing queue %p\n", pQHdr));733 LogFlowFunc(("Clearing %s queue %p\n", pQHdr->pszDesc, pQHdr)); 734 734 pQHdr->wpos = pQHdr->rpos = pQHdr->rpos % cElements; 735 735 pQHdr->cUsed = 0; … … 764 764 pQHdr->cUsed = cUsed + 1; 765 765 766 LogRelFlowFunc(("inserted %#04x into queue %p\n", bValue, pQHdr));766 LogRelFlowFunc(("inserted %#04x into %s queue %p\n", bValue, pQHdr->pszDesc, pQHdr)); 767 767 } 768 768 else 769 769 { 770 770 Assert(cUsed == cElements); 771 LogRelFlowFunc((" queue %p full (%zu entries)\n", pQHdr, cElements));771 LogRelFlowFunc(("%s queue %p full (%zu entries)\n", pQHdr->pszDesc, pQHdr, cElements)); 772 772 } 773 773 } … … 804 804 pQHdr->cUsed = cUsed - 1; 805 805 806 LogFlowFunc(("removed 0x%02X from queue %p\n", *pbValue, pQHdr));806 LogFlowFunc(("removed 0x%02X from %s queue %p\n", *pbValue, pQHdr->pszDesc, pQHdr)); 807 807 rc = VINF_SUCCESS; 808 808 } 809 809 else 810 810 { 811 LogFlowFunc((" queue %p empty\n", pQHdr));811 LogFlowFunc(("%s queue %p empty\n", pQHdr->pszDesc, pQHdr)); 812 812 rc = VINF_TRY_AGAIN; 813 813 } … … 835 835 pHlp->pfnSSMPutU32(pSSM, cItems); 836 836 837 LogFlow(("Storing %u items from queue %p\n", cItems, pQHdr));837 LogFlow(("Storing %u items from %s queue %p\n", cItems, pQHdr->pszDesc, pQHdr)); 838 838 839 839 /* Save queue data - only the bytes actually used (typically zero). */ … … 860 860 AssertRCReturn(rc, rc); 861 861 862 LogFlow(("Loading %u items to queue %p\n", cUsed, pQHdr));862 LogFlow(("Loading %u items to %s queue %p\n", cUsed, pQHdr->pszDesc, pQHdr)); 863 863 864 864 AssertMsgReturn(cUsed <= cElements, ("Saved size=%u, actual=%zu\n", cUsed, cElements), -
trunk/src/VBox/Devices/Input/DevPS2.h
r83299 r83443 37 37 uint32_t volatile wpos; 38 38 uint32_t volatile cUsed; 39 uint32_t uPadding; 40 const char *pszDesc; 39 41 } PS2QHDR; 40 42 /** Pointer to a queue header. */ -
trunk/src/VBox/Devices/Input/DevPS2K.cpp
r83301 r83443 489 489 void PS2KLineDisable(PPS2K pThis) 490 490 { 491 LogFlowFunc(("Disabling keyboard serial line\n")); 492 491 493 pThis->fLineDisabled = true; 492 494 } … … 499 501 void PS2KLineEnable(PPS2K pThis) 500 502 { 503 LogFlowFunc(("Enabling keyboard serial line\n")); 504 501 505 pThis->fLineDisabled = false; 502 506 … … 1389 1393 pThisCC->Keyboard.IPort.pfnPutEventHid = ps2kR3KeyboardPort_PutEventHid; 1390 1394 1395 pThis->cmdQ.Hdr.pszDesc = "Kbd Cmd"; 1396 pThis->keyQ.Hdr.pszDesc = "Kbd Key"; 1397 1391 1398 /* 1392 1399 * Create the input rate throttling timer. -
trunk/src/VBox/Devices/Input/DevPS2M.cpp
r83301 r83443 219 219 static void ps2mR3Reset(PPS2M pThis, PPS2MR3 pThisCC) 220 220 { 221 LogFlowFunc(()); 222 221 223 PS2Q_INSERT(&pThis->cmdQ, ARSP_BAT_OK); 222 224 PS2Q_INSERT(&pThis->cmdQ, 0); … … 258 260 { 259 261 PS2M_PROTO enmOldProtocol = pThis->enmProtocol; 262 LogFlowFunc(("rate=%u\n", rate)); 260 263 261 264 switch (pThis->enmKnockState) … … 321 324 int dX, dY, dZ, dW; 322 325 326 LogFlowFunc(("cQElements=%zu, fAccumBtns=%RTbool\n", cQElements, fAccumBtns)); 327 323 328 /* Clamp the accumulated delta values to the allowed range. */ 324 329 dX = RT_MIN(RT_MAX(pThis->iAccumX, -255), 255); … … 334 339 335 340 /* Send the standard 3-byte packet (always the same). */ 341 LogFlowFunc(("Queuing standard 3-byte packet\n")); 336 342 PS2CmnInsertQueue(pQHdr, cQElements, pbQElements, val); 337 343 PS2CmnInsertQueue(pQHdr, cQElements, pbQElements, dX); … … 347 353 { 348 354 /* NB: Only uses 4-bit dZ range, despite using a full byte. */ 355 LogFlowFunc(("Queuing ImPS/2 last byte\n")); 349 356 PS2CmnInsertQueue(pQHdr, cQElements, pbQElements, dZ); 350 357 pThis->iAccumZ -= dZ; … … 356 363 val |= dZ & 0x0f; 357 364 pThis->iAccumZ -= dZ; 365 LogFlowFunc(("Queuing ImEx last byte\n")); 358 366 PS2CmnInsertQueue(pQHdr, cQElements, pbQElements, val); 359 367 } … … 388 396 val = (fBtnState & PS2M_IMEX_BTN_MASK) << 1; 389 397 } 398 LogFlowFunc(("Queuing ImEx+horz last byte\n")); 390 399 PS2CmnInsertQueue(pQHdr, cQElements, pbQElements, val); 391 400 } … … 428 437 void PS2MLineDisable(PPS2M pThis) 429 438 { 439 LogFlowFunc(("Disabling mouse serial line\n")); 440 430 441 pThis->fLineDisabled = true; 431 442 } … … 438 449 void PS2MLineEnable(PPS2M pThis) 439 450 { 451 LogFlowFunc(("Enabling mouse serial line\n")); 452 440 453 pThis->fLineDisabled = false; 441 454 … … 813 826 static int ps2mR3PutEventWorker(PPDMDEVINS pDevIns, PPS2M pThis, int32_t dx, int32_t dy, int32_t dz, int32_t dw, uint32_t fButtons) 814 827 { 828 LogFlowFunc(("dx=%d, dy=%d, dz=%d, dw=%d, fButtons=%X\n", dx, dy, dz, dw, fButtons)); 829 815 830 /* Update internal accumulators and button state. Ignore any buttons beyond 5. */ 816 831 pThis->iAccumX += dx; … … 1049 1064 { 1050 1065 LogFlowFunc(("\n")); 1066 1067 pThis->cmdQ.Hdr.pszDesc = "Aux Cmd"; 1068 pThis->evtQ.Hdr.pszDesc = "Aux Evt"; 1069 1051 1070 #ifdef RT_STRICT 1052 1071 ps2mR3TestAccumulation(); … … 1110 1129 This.u8State = AUX_STATE_ENABLED; 1111 1130 This.fThrottleActive = true; 1131 This.cmdQ.Hdr.pszDesc = "Test Aux Cmd"; 1132 This.evtQ.Hdr.pszDesc = "Test Aux Evt"; 1112 1133 /* Certain Windows touch pad drivers report a double tap as a press, then 1113 1134 * a release-press-release all within a single 10ms interval. Simulate
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器