Changeset 81468 in vbox
- Timestamp:
- Oct 23, 2019 1:24:09 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 134193
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r81465 r81468 1655 1655 #endif /* IN_RING3 */ 1656 1656 1657 #define e1kCsEnter(ps, rc) PDM CritSectEnter(&ps->cs, rc)1658 #define e1kCsLeave(ps) PDM CritSectLeave(&ps->cs)1659 1660 #define e1kCsRxEnter(ps, rc) PDM CritSectEnter(&ps->csRx, rc)1661 #define e1kCsRxLeave(ps) PDM CritSectLeave(&ps->csRx)1662 #define e1kCsRxIsOwner(ps) PDM CritSectIsOwner(&ps->csRx)1657 #define e1kCsEnter(ps, rc) PDMDevHlpCritSectEnter(pDevIns, &ps->cs, rc) 1658 #define e1kCsLeave(ps) PDMDevHlpCritSectLeave(pDevIns, &ps->cs) 1659 1660 #define e1kCsRxEnter(ps, rc) PDMDevHlpCritSectEnter(pDevIns, &ps->csRx, rc) 1661 #define e1kCsRxLeave(ps) PDMDevHlpCritSectLeave(pDevIns, &ps->csRx) 1662 #define e1kCsRxIsOwner(ps) PDMDevHlpCritSectIsOwner(pDevIns, &ps->csRx) 1663 1663 1664 1664 #ifndef E1K_WITH_TX_CS … … 1666 1666 # define e1kCsTxLeave(ps) do { } while (0) 1667 1667 #else /* E1K_WITH_TX_CS */ 1668 # define e1kCsTxEnter(ps, rc) PDM CritSectEnter(&ps->csTx, rc)1669 # define e1kCsTxLeave(ps) PDM CritSectLeave(&ps->csTx)1668 # define e1kCsTxEnter(ps, rc) PDMDevHlpCritSectEnter(pDevIns, &ps->csTx, rc) 1669 # define e1kCsTxLeave(ps) PDMDevHlpCritSectLeave(pDevIns, &ps->csTx) 1670 1670 #endif /* E1K_WITH_TX_CS */ 1671 1671 … … 1789 1789 * Dump a packet to debug log. 1790 1790 * 1791 * @param pDevIns The device instance. 1791 1792 * @param pThis The device state structure. 1792 1793 * @param cpPacket The packet. … … 1795 1796 * @thread E1000_TX 1796 1797 */ 1797 DECLINLINE(void) e1kPacketDump(P E1KSTATE pThis, const uint8_t *cpPacket, size_t cb, const char *pszText)1798 DECLINLINE(void) e1kPacketDump(PPDMDEVINS pDevIns, PE1KSTATE pThis, const uint8_t *cpPacket, size_t cb, const char *pszText) 1798 1799 { 1799 1800 #ifdef DEBUG … … 4089 4090 if (pSg && pSg->pvAllocator != pThis) 4090 4091 { 4091 e1kPacketDump(p This, (uint8_t const *)pSg->aSegs[0].pvSeg, cbFrame, "--> Outgoing");4092 e1kPacketDump(pDevIns, pThis, (uint8_t const *)pSg->aSegs[0].pvSeg, cbFrame, "--> Outgoing"); 4092 4093 4093 4094 pThisCC->CTX_SUFF(pTxSg) = NULL; … … 4106 4107 { 4107 4108 Assert(pSg->aSegs[0].pvSeg == pThis->aTxPacketFallback); 4108 e1kPacketDump(p This, (uint8_t const *)pSg->aSegs[0].pvSeg, cbFrame, "--> Loopback");4109 e1kPacketDump(pDevIns, pThis, (uint8_t const *)pSg->aSegs[0].pvSeg, cbFrame, "--> Loopback"); 4109 4110 4110 4111 /** @todo do we actually need to check that we're in loopback mode here? */ … … 6708 6709 // return VERR_PERMISSION_DENIED; 6709 6710 6710 e1kPacketDump(p This, (const uint8_t*)pvBuf, cb, "<-- Incoming");6711 e1kPacketDump(pDevIns, pThis, (const uint8_t*)pvBuf, cb, "<-- Incoming"); 6711 6712 6712 6713 /* Update stats */ … … 7445 7446 AssertLogRelReturnVoid(iLUN == 0); 7446 7447 7447 PDM CritSectEnter(&pThis->cs, VERR_SEM_BUSY);7448 PDMDevHlpCritSectEnter(pDevIns, &pThis->cs, VERR_SEM_BUSY); 7448 7449 7449 7450 /** @todo r=pritesh still need to check if i missed … … 7461 7462 #endif 7462 7463 7463 PDM CritSectLeave(&pThis->cs);7464 PDMDevHlpCritSectLeave(pDevIns, &pThis->cs); 7464 7465 } 7465 7466 … … 7485 7486 AssertLogRelReturn(iLUN == 0, VERR_PDM_NO_SUCH_LUN); 7486 7487 7487 PDM CritSectEnter(&pThis->cs, VERR_SEM_BUSY);7488 PDMDevHlpCritSectEnter(pDevIns, &pThis->cs, VERR_SEM_BUSY); 7488 7489 7489 7490 /* … … 7529 7530 e1kR3LinkDownTemp(pDevIns, pThis, pThisCC); 7530 7531 7531 PDM CritSectLeave(&pThis->cs);7532 PDMDevHlpCritSectLeave(pDevIns, &pThis->cs); 7532 7533 return rc; 7533 7534 7534 } 7535 7535 … … 7615 7615 e1kDumpState(pThis); 7616 7616 E1kLog(("%s Destroying instance\n", pThis->szPrf)); 7617 if (PDM CritSectIsInitialized(&pThis->cs))7617 if (PDMDevHlpCritSectIsInitialized(pDevIns, &pThis->cs)) 7618 7618 { 7619 7619 if (pThis->hEventMoreRxDescAvail != NIL_SUPSEMEVENT) … … 7625 7625 } 7626 7626 #ifdef E1K_WITH_TX_CS 7627 PDM R3CritSectDelete(&pThis->csTx);7627 PDMDevHlpCritSectDelete(pDevIns, &pThis->csTx); 7628 7628 #endif /* E1K_WITH_TX_CS */ 7629 PDM R3CritSectDelete(&pThis->csRx);7630 PDM R3CritSectDelete(&pThis->cs);7629 PDMDevHlpCritSectDelete(pDevIns, &pThis->csRx); 7630 PDMDevHlpCritSectDelete(pDevIns, &pThis->cs); 7631 7631 } 7632 7632 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.