VirtualBox

Changeset 36502 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 1, 2011 1:45:14 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70914
Message:

DevE1000: Two incorrect PDMBOTHCBDECL uses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DevE1000.cpp

    r35353 r36502  
    14151415
    14161416#ifdef E1K_GLOBAL_MUTEX
     1417
    14171418DECLINLINE(int) e1kCsEnter(E1KSTATE *pState, int iBusyRc)
    14181419{
     
    14241425}
    14251426
    1426 #define e1kCsRxEnter(ps, rc) VINF_SUCCESS
    1427 #define e1kCsRxLeave(ps) do { } while (0)
    1428 
    1429 #define e1kCsTxEnter(ps, rc) VINF_SUCCESS
    1430 #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)
    14311432
    14321433
     
    14561457
    14571458#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_SUCCESS
    1465 #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 0
     1459# 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
    14701471DECLINLINE(int) e1kCsEnter(E1KSTATE *pState, PPDMCRITSECT pCs, int iBusyRc, RT_SRC_POS_DECL)
    14711472{
     
    14911492    PDMCritSectLeave(&pState->cs);
    14921493}
    1493 #endif
     1494# endif
    14941495DECLINLINE(int) e1kMutexAcquire(E1KSTATE *pState, int iBusyRc, RT_SRC_POS_DECL)
    14951496{
     
    15001501{
    15011502}
     1503
    15021504#endif /* !E1K_GLOBAL_MUTEX */
    1503 
    15041505#ifdef IN_RING3
     1506
    15051507/**
    15061508 * Wakeup the RX thread.
     
    15231525 * @param   pState      The device state structure.
    15241526 */
    1525 PDMBOTHCBDECL(void) e1kHardReset(E1KSTATE *pState)
     1527static void e1kHardReset(E1KSTATE *pState)
    15261528{
    15271529    E1kLog(("%s Hard reset triggered\n", INSTANCE(pState)));
     
    15441546        pState->pDrvR3->pfnSetPromiscuousMode(pState->pDrvR3, false);
    15451547}
    1546 #endif
     1548
     1549#endif /* IN_RING3 */
    15471550
    15481551/**
     
    17341737 * @param   pState      The device state structure.
    17351738 */
    1736 PDMBOTHCBDECL(int) e1kRaiseInterrupt(E1KSTATE *pState, int rcBusy, uint32_t u32IntCause = 0)
     1739static int e1kRaiseInterrupt(E1KSTATE *pState, int rcBusy, uint32_t u32IntCause = 0)
    17371740{
    17381741    int rc = e1kCsEnter(pState, rcBusy);
     
    44324435 */
    44334436PDMBOTHCBDECL(int) e1kIOPortIn(PPDMDEVINS pDevIns, void *pvUser,
    4434               RTIOPORT port, uint32_t *pu32, unsigned cb)
     4437                               RTIOPORT port, uint32_t *pu32, unsigned cb)
    44354438{
    44364439    E1KSTATE   *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *);
     
    44834486 */
    44844487PDMBOTHCBDECL(int) e1kIOPortOut(PPDMDEVINS pDevIns, void *pvUser,
    4485               RTIOPORT port, uint32_t u32, unsigned cb)
     4488                                RTIOPORT port, uint32_t u32, unsigned cb)
    44864489{
    44874490    E1KSTATE   *pState = PDMINS_2_DATA(pDevIns, E1KSTATE *);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette