VirtualBox

Changeset 81432 in vbox for trunk


Ignore:
Timestamp:
Oct 21, 2019 8:13:22 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
134150
Message:

DevE1000: Converted to new model (wrt critsects, I/O, and pointers at least). bugref:9218

File:
1 edited

Legend:

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

    r81424 r81432  
    81148114    PE1KSTATECC pThisCC = PDMINS_2_DATA_CC(pDevIns, PE1KSTATECC);
    81158115
     8116    /* Initialize context specific state data: */
    81168117    pThisCC->CTX_SUFF(pDevIns)      = pDevIns;
    81178118    /** @todo @bugref{9218} ring-0 driver stuff */
     
    81198120    pThisCC->CTX_SUFF(pTxSg)        = NULL;
    81208121
    8121     int rc = PDMDevHlpMmioSetUpContext(pDevIns, pThis->hMmioRegion, e1kMMIOWrite, e1kMMIORead, NULL /*pvUser*/);
     8122    /* Configure critical sections the same way: */
     8123    int rc = PDMDevHlpSetDeviceCritSect(pDevIns, PDMDevHlpCritSectGetNop(pDevIns));
     8124    AssertRCReturn(rc, rc);
     8125
     8126    /* Set up MMIO and I/O port callbacks for this context: */
     8127    rc = PDMDevHlpMmioSetUpContext(pDevIns, pThis->hMmioRegion, e1kMMIOWrite, e1kMMIORead, NULL /*pvUser*/);
    81228128    AssertRCReturn(rc, rc);
    81238129
     
    81388144    /* .uReserved0 = */             0,
    81398145    /* .szName = */                 "e1000",
    8140     /* .fFlags = */                 PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0,
     8146    /* .fFlags = */                 PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0 | PDM_DEVREG_FLAGS_NEW_STYLE,
    81418147    /* .fClass = */                 PDM_DEVREG_CLASS_NETWORK,
    81428148    /* .cMaxInstances = */          ~0U,
Note: See TracChangeset for help on using the changeset viewer.

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