Changeset 36502 in vbox for trunk/src/VBox
- Timestamp:
- Apr 1, 2011 1:45:14 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70914
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DevE1000.cpp
r35353 r36502 1415 1415 1416 1416 #ifdef E1K_GLOBAL_MUTEX 1417 1417 1418 DECLINLINE(int) e1kCsEnter(E1KSTATE *pState, int iBusyRc) 1418 1419 { … … 1424 1425 } 1425 1426 1426 # define e1kCsRxEnter(ps, rc) VINF_SUCCESS1427 # define e1kCsRxLeave(ps) do { } while (0)1428 1429 # define e1kCsTxEnter(ps, rc) VINF_SUCCESS1430 # define e1kCsTxLeave(ps) do { } while (0)1427 # define e1kCsRxEnter(ps, rc) VINF_SUCCESS 1428 # define e1kCsRxLeave(ps) do { } while (0) 1429 1430 # define e1kCsTxEnter(ps, rc) VINF_SUCCESS 1431 # define e1kCsTxLeave(ps) do { } while (0) 1431 1432 1432 1433 … … 1456 1457 1457 1458 #else /* !E1K_GLOBAL_MUTEX */ 1458 # define e1kCsEnter(ps, rc) PDMCritSectEnter(&ps->cs, rc)1459 # define e1kCsLeave(ps) PDMCritSectLeave(&ps->cs)1460 1461 # define e1kCsRxEnter(ps, rc) PDMCritSectEnter(&ps->csRx, rc)1462 # define e1kCsRxLeave(ps) PDMCritSectLeave(&ps->csRx)1463 1464 # define e1kCsTxEnter(ps, rc) VINF_SUCCESS1465 # define e1kCsTxLeave(ps) do { } while (0)1466 //# define e1kCsTxEnter(ps, rc) PDMCritSectEnter(&ps->csTx, rc)1467 //# define e1kCsTxLeave(ps) PDMCritSectLeave(&ps->csTx)1468 1469 # if 01459 # define e1kCsEnter(ps, rc) PDMCritSectEnter(&ps->cs, rc) 1460 # define e1kCsLeave(ps) PDMCritSectLeave(&ps->cs) 1461 1462 # define e1kCsRxEnter(ps, rc) PDMCritSectEnter(&ps->csRx, rc) 1463 # define e1kCsRxLeave(ps) PDMCritSectLeave(&ps->csRx) 1464 1465 # define e1kCsTxEnter(ps, rc) VINF_SUCCESS 1466 # define e1kCsTxLeave(ps) do { } while (0) 1467 //# define e1kCsTxEnter(ps, rc) PDMCritSectEnter(&ps->csTx, rc) 1468 //# define e1kCsTxLeave(ps) PDMCritSectLeave(&ps->csTx) 1469 1470 # if 0 1470 1471 DECLINLINE(int) e1kCsEnter(E1KSTATE *pState, PPDMCRITSECT pCs, int iBusyRc, RT_SRC_POS_DECL) 1471 1472 { … … 1491 1492 PDMCritSectLeave(&pState->cs); 1492 1493 } 1493 # endif1494 # endif 1494 1495 DECLINLINE(int) e1kMutexAcquire(E1KSTATE *pState, int iBusyRc, RT_SRC_POS_DECL) 1495 1496 { … … 1500 1501 { 1501 1502 } 1503 1502 1504 #endif /* !E1K_GLOBAL_MUTEX */ 1503 1504 1505 #ifdef IN_RING3 1506 1505 1507 /** 1506 1508 * Wakeup the RX thread. … … 1523 1525 * @param pState The device state structure. 1524 1526 */ 1525 PDMBOTHCBDECL(void)e1kHardReset(E1KSTATE *pState)1527 static void e1kHardReset(E1KSTATE *pState) 1526 1528 { 1527 1529 E1kLog(("%s Hard reset triggered\n", INSTANCE(pState))); … … 1544 1546 pState->pDrvR3->pfnSetPromiscuousMode(pState->pDrvR3, false); 1545 1547 } 1546 #endif 1548 1549 #endif /* IN_RING3 */ 1547 1550 1548 1551 /** … … 1734 1737 * @param pState The device state structure. 1735 1738 */ 1736 PDMBOTHCBDECL(int)e1kRaiseInterrupt(E1KSTATE *pState, int rcBusy, uint32_t u32IntCause = 0)1739 static int e1kRaiseInterrupt(E1KSTATE *pState, int rcBusy, uint32_t u32IntCause = 0) 1737 1740 { 1738 1741 int rc = e1kCsEnter(pState, rcBusy); … … 4432 4435 */ 4433 4436 PDMBOTHCBDECL(int) e1kIOPortIn(PPDMDEVINS pDevIns, void *pvUser, 4434 RTIOPORT port, uint32_t *pu32, unsigned cb)4437 RTIOPORT port, uint32_t *pu32, unsigned cb) 4435 4438 { 4436 4439 E1KSTATE *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *); … … 4483 4486 */ 4484 4487 PDMBOTHCBDECL(int) e1kIOPortOut(PPDMDEVINS pDevIns, void *pvUser, 4485 RTIOPORT port, uint32_t u32, unsigned cb)4488 RTIOPORT port, uint32_t u32, unsigned cb) 4486 4489 { 4487 4490 E1KSTATE *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *);
Note:
See TracChangeset
for help on using the changeset viewer.