VirtualBox

Ignore:
Timestamp:
Sep 14, 2007 2:59:15 PM (17 years ago)
Author:
vboxsync
Message:

Redid the supdrv interface. works on windows and linux while the other OSes still needs some adjusting/testing. internal networking is temporarily broken as the SUPCallVMMR0Ex interface is being reworked (this is what all this is really about).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/os2/SUPLib-os2.cpp

    r4071 r4800  
    131131
    132132
    133 int suplibOsIOCtl(unsigned uFunction, void *pvIn, size_t cbIn, void *pvOut, size_t cbOut)
     133int suplibOsIOCtl(uintptr_t uFunction, void *pvReq, size_t cbReq)
    134134{
    135135    AssertMsg(g_hDevice != (HFILE)-1, ("SUPLIB not initiated successfully!\n"));
    136136
    137     SUPDRVIOCTLDATA Args;
    138     Args.pvIn = pvIn;
    139     Args.cbIn = cbIn;
    140     Args.pvOut = pvOut;
    141     Args.cbOut = cbOut;
    142     Args.rc = VERR_INTERNAL_ERROR;
    143 
    144     ULONG cbReturned = sizeof(Args);
     137    ULONG cbReturned = sizeof(SUPREQHDR);
    145138    int rc = DosDevIOCtl(g_hDevice, SUP_CTL_CATEGORY, uFunction,
    146                          &Args, sizeof(Args), &cbReturned,
     139                         &cbIn, cbReturned, &cbReturned,
    147140                         NULL, 0, NULL);
    148141    if (RT_LIKELY(rc == NO_ERROR))
    149         rc = Args.rc;
    150     else
    151         rc = RTErrConvertFromOS2(rc);
    152     return rc;
     142        return VINF_SUCCESS;
     143    return RTErrConvertFromOS2(rc);
    153144}
    154145
    155146
    156147#ifdef VBOX_WITHOUT_IDT_PATCHING
    157 int suplibOSIOCtlFast(unsigned uFunction)
     148int suplibOSIOCtlFast(uintptr_t uFunction)
    158149{
    159150    int32_t rcRet = VERR_INTERNAL_ERROR;
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