VirtualBox

Changeset 35959 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Feb 14, 2011 2:30:03 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70020
Message:

PCI: further R0/driver work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxPci/VBoxPci.c

    r35946 r35959  
    8585}
    8686
     87/**
     88 * @copydoc RAWPCIDEVPORT:: pfnRelease
     89 */
     90DECLHIDDEN(int) vboxPciDevInit(PRAWPCIDEVPORT pThis, uint32_t fFlags)
     91{
     92    return VINF_SUCCESS;
     93}
     94
    8795
    8896/**
     
    113121    pNew->DevPort.pfnRetain             = vboxPciDevRetain;
    114122    pNew->DevPort.pfnRelease            = vboxPciDevRelease;
     123    pNew->DevPort.pfnInit               = vboxPciDevInit;
    115124    pNew->DevPort.u32VersionEnd         = RAWPCIDEVPORT_VERSION;
    116125   
    117126    rc = RTSpinlockCreate(&pNew->hSpinlock);
    118     if (RT_SUCCESS(rc))
    119     {
    120         *ppDevPort = &pNew->DevPort;
     127
     128    if (RT_SUCCESS(rc))
     129    {
     130        rc = pNew->DevPort.pfnInit(&pNew->DevPort, fFlags);
     131        if (RT_SUCCESS(rc))
     132        {
     133            *ppDevPort = &pNew->DevPort;
     134        }
     135        else
     136        {
     137            RTSpinlockDestroy(pNew->hSpinlock);
     138            RTMemFree(pNew);
     139        }
    121140        return rc;
    122141    }
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