VirtualBox

Changeset 26493 in vbox


Ignore:
Timestamp:
Feb 14, 2010 7:50:58 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57663
Message:

Additions: whitespace cleanup

Location:
trunk/src/VBox/Additions
Files:
36 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk

    r23452 r26493  
    5353        VBoxDisp.def \
    5454        VBoxDisp.rc
    55        
     55
    5656ifdef VBOX_WITH_VIDEOHWACCEL
    5757VBoxDisp_SOURCES     += vhwa.c
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/Mirror/driver.h

    r18246 r26493  
    8080typedef struct _MIRRSURF {
    8181    PPDEV   *pdev;
    82     ULONG   cx;               
     82    ULONG   cx;
    8383    ULONG   cy;
    8484    ULONG   lDelta;
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/Mirror/enable.c

    r18246 r26493  
    160160        goto error_free;
    161161    }
    162    
     162
    163163    // Copy the devinfo into the engine buffer.
    164164
     
    210210   PPDEV ppdev = (PPDEV) dhpdev;
    211211   DISPDBG((0,"DrvDisablePDEV\n"));
    212    
     212
    213213   EngDeletePalette(ppdev->hpalDefault);
    214214
     
    264264        flHooks = HOOKS_BMF32BPP;
    265265    }
    266    
     266
    267267    flHooks |= flGlobalHooks;
    268268
    269     mirrorsize = (ULONG)(sizeof(MIRRSURF) + 
     269    mirrorsize = (ULONG)(sizeof(MIRRSURF) +
    270270                         ppdev->lDeltaScreen * sizl.cy);
    271    
     271
    272272    mirrsurf = (MIRRSURF *) EngAllocMem(FL_ZERO_MEMORY,
    273273                                        mirrorsize,
     
    277277        return(FALSE);
    278278    }
    279    
    280    
     279
     280
    281281    dhsurf = (DHSURF) mirrsurf;
    282282
     
    310310
    311311    DISPDBG((0,"DrvEnableSurface OK\n"));
    312    
     312
    313313    return(hsurf);
    314314}
     
    329329
    330330    EngDeleteSurface( ppdev->hsurfEng );
    331    
     331
    332332    // deallocate MIRRSURF structure.
    333333
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/Mirror/screen.c

    r18246 r26493  
    111111    // the kernel driver.
    112112    //
    113    
     113
    114114    ppdev->ulMode = 0;
    115115    ppdev->cxScreen = pDevMode->dmPelsWidth;
     
    117117    ppdev->ulBitCount = pDevMode->dmBitsPerPel;
    118118    ppdev->lDeltaScreen = 0;
    119    
     119
    120120    ppdev->flRed = 0x00FF0000;
    121121    ppdev->flGreen = 0x000FF00;
    122122    ppdev->flBlue = 0x00000FF;
    123    
     123
    124124    pGdiInfo->ulVersion    = GDI_DRIVER_VERSION;
    125125    pGdiInfo->ulTechnology = DT_RASDISPLAY;
     
    132132    pGdiInfo->ulPanningVertRes = 0;
    133133    pGdiInfo->cBitsPixel       = 8;
    134     pGdiInfo->cPlanes          = 1; 
     134    pGdiInfo->cPlanes          = 1;
    135135    pGdiInfo->ulVRefresh       = 1;       // not used
    136136    pGdiInfo->ulBltAlignment   = 1;     // We don't have accelerated screen-
     
    258258
    259259    red = 0, green = 0, blue = 0;
    260    
     260
    261261    for (i = NUMPALRESERVED; i < NUMPALCOLORS; i++) {
    262262        palColors[i][0] = red;
     
    273273    {
    274274    pDevInfo->hpalDefault = ppdev->hpalDefault =
    275        
     275
    276276                  EngCreatePalette(PAL_INDEXED,
    277277                                   NUMPALCOLORS,     // cColors
     
    287287                                 ppdev->flRed,ppdev->flBlue,ppdev->flGreen);
    288288    }
    289    
     289
    290290    DISPDBG((0,"bInitPDEV OK\n"));
    291    
     291
    292292    return(TRUE);
    293293}
    294294
    295 
    296 
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/debug.h

    r20478 r26493  
    6666// #endif
    6767
    68 
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/vbva.c

    r17615 r26493  
    8686    BYTE *pu8Src;
    8787    BYTE *pu8Dest;
    88    
     88
    8989    if (!prclDest || !pptlSrc)
    9090    {
    9191        return TRUE;
    9292    }
    93    
     93
    9494    DISPDBG((1, "vbvaFindChangedRect: dest %d,%d %dx%d from %d,%d\n",
    9595             prclDest->left, prclDest->top, prclDest->right - prclDest->left, prclDest->bottom - prclDest->top,
    9696             pptlSrc->x, pptlSrc->y
    9797            ));
    98            
     98
    9999    switch (psoDest->iBitmapFormat)
    100100    {
     
    118118        return TRUE;
    119119    }
    120    
     120
    121121    rclDest = *prclDest;
    122    
     122
    123123    vrdpAdjustRect (psoDest, &rclDest);
    124    
     124
    125125    pptlSrc->x += rclDest.left - prclDest->left;
    126126    pptlSrc->y += rclDest.top - prclDest->top;
    127    
     127
    128128    *prclDest = rclDest;
    129    
     129
    130130    if (   rclDest.right == rclDest.left
    131131        || rclDest.bottom == rclDest.top)
     
    134134        return FALSE;
    135135    }
    136    
     136
    137137    rclSrc.left   = pptlSrc->x;
    138138    rclSrc.top    = pptlSrc->y;
     
    140140    rclSrc.bottom = pptlSrc->y + (rclDest.bottom - rclDest.top);
    141141    vrdpAdjustRect (psoSrc, &rclSrc);
    142    
     142
    143143    if (   rclSrc.right == rclSrc.left
    144144        || rclSrc.bottom == rclSrc.top)
     
    146146         prclDest->right = prclDest->left;
    147147         prclDest->bottom = prclDest->top;
    148          
     148
    149149         DISPDBG((1, "vbvaFindChangedRect: empty src rect: %d-%d, %d-%d\n", rclSrc.left, rclSrc.right, rclSrc.top, rclSrc.bottom));
    150150         return FALSE;
    151151    }
    152    
     152
    153153    VBVA_ASSERT(pptlSrc->x == rclSrc.left);
    154154    VBVA_ASSERT(pptlSrc->y == rclSrc.top);
    155    
     155
    156156    /*
    157157     * Compare the content of the screen surface (psoDest) with the source surface (psoSrc).
     
    161161    pu8Src = (BYTE *)psoSrc->pvScan0 + psoSrc->lDelta * pptlSrc->y + cbPixelSrc * pptlSrc->x;
    162162    pu8Dest = (BYTE *)psoDest->pvScan0 + psoDest->lDelta * prclDest->top + cbPixelDest * prclDest->left;
    163    
     163
    164164    /* Use the rclDest as the bounding rectangle for the changed area. */
    165165    rclDest.left   = prclDest->right;  /* +inf */
     
    167167    rclDest.top    = prclDest->bottom; /* +inf */
    168168    rclDest.bottom = prclDest->top;    /* -inf */
    169    
     169
    170170    fTopNonEqualFound = 0;
    171171    yTopmost = prclDest->top;        /* inclusive */
    172172    yBottommost = prclDest->top - 1; /* inclusive */
    173    
     173
    174174    for (y = prclDest->top; y < prclDest->bottom; y++)
    175175    {
    176176        int fLeftNonEqualFound = 0;
    177        
     177
    178178        /* Init to an empty line. */
    179179        int xLeftmost = prclDest->left;      /* inclusive */
    180180        int xRightmost = prclDest->left - 1; /* inclusive */
    181        
     181
    182182        BYTE *pu8SrcLine = pu8Src;
    183183        BYTE *pu8DestLine = pu8Dest;
    184        
     184
    185185        for (x = prclDest->left; x < prclDest->right; x++)
    186186        {
    187187            int fEqualPixels;
    188            
     188
    189189            if (cbPixelSrc == cbPixelDest)
    190190            {
     
    210210                }
    211211            }
    212            
     212
    213213            if (fEqualPixels)
    214214            {
     
    224224                xRightmost = x;
    225225            }
    226            
     226
    227227            pu8SrcLine += cbPixelSrc;
    228228            pu8DestLine += cbPixelDest;
    229229        }
    230        
     230
    231231        /* min */
    232232        if (rclDest.left > xLeftmost)
     
    234234            rclDest.left = xLeftmost;
    235235        }
    236        
     236
    237237        /* max */
    238238        if (rclDest.right < xRightmost)
     
    240240            rclDest.right = xRightmost;
    241241        }
    242        
     242
    243243        if (xLeftmost > xRightmost) /* xRightmost is inclusive, so '>', not '>='. */
    244244        {
     
    254254            yBottommost = y;
    255255        }
    256        
     256
    257257        pu8Src += psoSrc->lDelta;
    258258        pu8Dest += psoDest->lDelta;
    259259    }
    260    
     260
    261261    /* min */
    262262    if (rclDest.top > yTopmost)
     
    264264        rclDest.top = yTopmost;
    265265    }
    266        
     266
    267267    /* max */
    268268    if (rclDest.bottom < yBottommost)
     
    270270        rclDest.bottom = yBottommost;
    271271    }
    272        
     272
    273273    /* rclDest was calculated with right-bottom inclusive.
    274274     * The following checks and the caller require exclusive coords.
     
    276276    rclDest.right++;
    277277    rclDest.bottom++;
    278    
     278
    279279    DISPDBG((1, "vbvaFindChangedRect: new dest %d,%d %dx%d from %d,%d\n",
    280280             rclDest.left, rclDest.top, rclDest.right - rclDest.left, rclDest.bottom - rclDest.top,
    281281             pptlSrc->x, pptlSrc->y
    282282            ));
    283            
     283
    284284    /* Update the rectangle with the changed area. */
    285285    if (   rclDest.left >= rclDest.right
     
    292292        return FALSE;
    293293    }
    294    
     294
    295295    DISPDBG((1, "vbvaFindChangedRect: not empty\n"));
    296    
     296
    297297    pptlSrc->x += rclDest.left - prclDest->left;
    298298    pptlSrc->y += rclDest.top - prclDest->top;
    299    
     299
    300300    *prclDest = rclDest;
    301    
     301
    302302    return TRUE;
    303303}
     
    309309    {
    310310        VBVACMDHDR hdr;
    311        
     311
    312312        RECTL rect = *pRectOrig;
    313313
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Makefile.kmk

    r26301 r26493  
    7777 VBoxVideoWddm_TEMPLATE    = VBOXGUESTR0
    7878 ifdef VBOX_SIGN_ADDITIONS # (See the parent makefile.)
    79   # driver signing rules will be written once there are all files necessary for that are available, 
    80   # i.e. a u/m display driver miniport inf 
     79  # driver signing rules will be written once there are all files necessary for that are available,
     80  # i.e. a u/m display driver miniport inf
    8181  $(warning FIXME: !!!define wddm driver signing & install rules !!!)
    8282  VBoxVideoWddm_NOINST     = true
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideo.cpp

    r26324 r26493  
    740740     * the Additions service process. The mode table is guaranteed to have
    741741     * two spare entries for this mode (alternating index thus 2).
    742      * 
     742     *
    743743     * ... or ...
    744744     *
     
    14711471
    14721472          /* need to call VideoPortGetAccessRanges to ensure interrupt info in ConfigInfo gets set up */
    1473           VP_STATUS status; 
     1473          VP_STATUS status;
    14741474          if (vboxQueryWinVersion() == WINNT4)
    14751475          {
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/VBoxVideoHGSMI.cpp

    r26000 r26493  
    13911391 */
    13921392
    1393 
  • trunk/src/VBox/Additions/WINNT/MouseFilter/kbdmou.h

    r1 r26493  
    132132#endif // _KBDMOU_
    133133
    134 
  • trunk/src/VBox/Additions/WINNT/VBoxGINA/Dialog.cpp

    r25874 r26493  
    156156                    bIsFQDN = TRUE;
    157157                }
    158    
     158
    159159                if (bIsFQDN)
    160160                {
  • trunk/src/VBox/Additions/WINNT/VBoxGINA/WinWlx.h

    r20961 r26493  
    525525// from gina in response to WlxGetConsoleSwitchCredentials calls.
    526526
    527 // This structure is also returned from winlogon in response to 
     527// This structure is also returned from winlogon in response to
    528528// to WlxQueryConsoleSwitchCredentials call
    529529//
    530 // This is used to implement single session Terminal Server. A remote 
     530// This is used to implement single session Terminal Server. A remote
    531531// session winlogon calls WlxGetConsoleSwitchCredentials to get the token
    532532// and other info of the logged on user from msgina. This info is then passed to
    533533// the console session winlogon to autologon the user on the console session.
    534 // The gina on console session calls WlxQueryConsoleSwitchCredentials to get 
     534// The gina on console session calls WlxQueryConsoleSwitchCredentials to get
    535535// this info from winlogon and logs on the user.
    536536//
     
    563563
    564564    //
    565     // From MSV1_0_INTERACTIVE_PROFILE 
     565    // From MSV1_0_INTERACTIVE_PROFILE
    566566    //
    567567    DWORD            MessageType;
  • trunk/src/VBox/Additions/WINNT/VBoxHook/dllmain.cpp

    r8387 r26493  
    3232    BOOL        bStatus = TRUE;
    3333
    34     switch (fdwReason) 
     34    switch (fdwReason)
    3535    {
    3636    case DLL_PROCESS_ATTACH:
     
    5353}
    5454
    55 
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxHostVersion.cpp

    r23876 r26493  
    2828
    2929
    30 /** @todo Move this part in VbglR3 and just provide a callback for the platform-specific 
     30/** @todo Move this part in VbglR3 and just provide a callback for the platform-specific
    3131          notification stuff, since this is very similar to the VBoxClient code. */
    3232int VBoxCheckHostVersion ()
     
    4848                char szMsg[256]; /* Sizes according to MSDN. */
    4949                char szTitle[64];
    50        
     50
    5151                /** @todo add some translation macros here */
    5252                _snprintf(szTitle, sizeof(szTitle), "VirtualBox Guest Additions update available!");
     
    5454                                                "We recommend updating to the latest version (%s) by choosing the "
    5555                                                "install option from the Devices menu.", pszGuestVersion, pszHostVersion);
    56        
     56
    5757                rc = showBalloonTip(gInstance, gToolWindow, ID_TRAYICON, szMsg, szTitle, 5000, 0);
    5858                if (RT_FAILURE(rc))
     
    6262            /* Store host version to not notify again */
    6363            rc = VbglR3HostVersionLastCheckedStore(uGuestPropSvcClientID, pszHostVersion);
    64    
     64
    6565            VbglR3GuestPropReadValueFree(pszHostVersion);
    6666            VbglR3GuestPropReadValueFree(pszGuestVersion);
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxRestore.cpp

    r21219 r26493  
    167167}
    168168
    169 
  • trunk/src/VBox/Additions/WINNT/VBoxTray/VBoxVRDP.cpp

    r21219 r26493  
    448448}
    449449
    450 
  • trunk/src/VBox/Additions/WINNT/i8042prt/kbdcmn.c

    r1 r26493  
    1010Abstract:
    1111
    12     The common portions of the Intel i8042 port driver which 
    13     apply to the keyboard device. 
     12    The common portions of the Intel i8042 port driver which
     13    apply to the keyboard device.
    1414
    1515Environment:
     
    8080    BOOLEAN moreDpcProcessing;
    8181    ULONG dataNotConsumed = 0;
    82     ULONG inputDataConsumed = 0; 
     82    ULONG inputDataConsumed = 0;
    8383    LARGE_INTEGER deltaTime;
    8484
     
    101101    //
    102102
    103     operationContext.VariableAddress = 
     103    operationContext.VariableAddress =
    104104        &deviceExtension->DpcInterlockKeyboard;
    105105    operationContext.Operation = IncrementOperation;
     
    122122        // Get the port InputData queue pointers synchronously.
    123123        //
    124    
     124
    125125        getPointerContext.DeviceExtension = deviceExtension;
    126126        setPointerContext.DeviceExtension = deviceExtension;
     
    128128        setPointerContext.DeviceType = (CCHAR) KeyboardDeviceType;
    129129        setPointerContext.InputCount = 0;
    130    
     130
    131131        KeSynchronizeExecution(
    132132            deviceExtension->KeyboardInterruptObject,
     
    134134            (PVOID) &getPointerContext
    135135            );
    136    
     136
    137137        if (getPointerContext.InputCount != 0) {
    138        
     138
    139139            //
    140140            // Call the connected class driver's callback ISR with the
    141141            // port InputData queue pointers.  If we have to wrap the queue,
    142             // break the operation into two pieces, and call the class 
     142            // break the operation into two pieces, and call the class
    143143            // callback ISR once for each piece.
    144144            //
    145        
     145
    146146            classDeviceObject =
    147147                deviceExtension->KeyboardExtension.ConnectData.ClassDeviceObject;
     
    149149                deviceExtension->KeyboardExtension.ConnectData.ClassService;
    150150            ASSERT(classService != NULL);
    151        
     151
    152152            if (getPointerContext.DataOut >= getPointerContext.DataIn) {
    153        
     153
    154154                //
    155155                // We'll have to wrap the InputData circular buffer.  Call
    156                 // the class callback ISR with the chunk of data starting at 
     156                // the class callback ISR with the chunk of data starting at
    157157                // DataOut and ending at the end of the queue.
    158158                //
    159        
    160                 I8xPrint((
    161                     2, 
     159
     160                I8xPrint((
     161                    2,
    162162                    "I8042PRT-I8042KeyboardIsrDpc: calling class callback\n"
    163163                    ));
     
    168168                    deviceExtension->KeyboardExtension.DataEnd
    169169                    ));
    170        
     170
    171171                (*(PSERVICE_CALLBACK_ROUTINE) classService)(
    172172                      classDeviceObject,
     
    175175                      &inputDataConsumed
    176176                      );
    177        
     177
    178178                dataNotConsumed = (((PUCHAR)
    179179                    deviceExtension->KeyboardExtension.DataEnd -
    180                     (PUCHAR) getPointerContext.DataOut) 
     180                    (PUCHAR) getPointerContext.DataOut)
    181181                    / sizeof(KEYBOARD_INPUT_DATA)) - inputDataConsumed;
    182182
     
    189189
    190190                setPointerContext.InputCount += inputDataConsumed;
    191        
     191
    192192                if (dataNotConsumed) {
    193                     setPointerContext.DataOut = 
    194                         ((PUCHAR)getPointerContext.DataOut) + 
     193                    setPointerContext.DataOut =
     194                        ((PUCHAR)getPointerContext.DataOut) +
    195195                        (inputDataConsumed * sizeof(KEYBOARD_INPUT_DATA));
    196196                } else {
     
    200200                }
    201201            }
    202        
     202
    203203            //
    204204            // Call the class callback ISR with data remaining in the queue.
    205205            //
    206        
     206
    207207            if ((dataNotConsumed == 0) &&
    208208                (inputDataConsumed < getPointerContext.InputCount)){
    209209                I8xPrint((
    210                     2, 
     210                    2,
    211211                    "I8042PRT-I8042KeyboardIsrDpc: calling class callback\n"
    212212                    ));
     
    217217                    getPointerContext.DataIn
    218218                    ));
    219        
     219
    220220                (*(PSERVICE_CALLBACK_ROUTINE) classService)(
    221221                      classDeviceObject,
     
    225225                      );
    226226
    227                 dataNotConsumed = (((PUCHAR) getPointerContext.DataIn - 
     227                dataNotConsumed = (((PUCHAR) getPointerContext.DataIn -
    228228                      (PUCHAR) getPointerContext.DataOut)
    229229                      / sizeof(KEYBOARD_INPUT_DATA)) - inputDataConsumed;
    230        
     230
    231231                I8xPrint((
    232232                    2,
     
    236236                    ));
    237237
    238                 setPointerContext.DataOut = 
     238                setPointerContext.DataOut =
    239239                    ((PUCHAR)getPointerContext.DataOut) +
    240240                    (inputDataConsumed * sizeof(KEYBOARD_INPUT_DATA));
     
    242242
    243243            }
    244        
     244
    245245            //
    246246            // Update the port InputData queue DataOut pointer and InputCount
    247247            // synchronously.
    248248            //
    249        
     249
    250250            KeSynchronizeExecution(
    251251                deviceExtension->KeyboardInterruptObject,
     
    253253                (PVOID) &setPointerContext
    254254                );
    255        
     255
    256256        }
    257257
     
    259259
    260260            //
    261             // The class driver was unable to consume all the data. 
     261            // The class driver was unable to consume all the data.
    262262            // Reset the interlocked variable to -1.  We do not want
    263263            // to attempt to move more data to the class driver at this
     
    266266            // of the data out of the class driver's queue.  We accomplish
    267267            // this "wait" via a timer.
    268             // 
     268            //
    269269
    270270            I8xPrint((2, "I8042PRT-I8042KeyboardIsrDpc: set timer in DPC\n"));
     
    273273            interlockedResult = -1;
    274274            operationContext.NewValue = &interlockedResult;
    275        
     275
    276276            KeSynchronizeExecution(
    277277                    deviceExtension->KeyboardInterruptObject,
     
    289289                       );
    290290
    291             moreDpcProcessing = FALSE; 
     291            moreDpcProcessing = FALSE;
    292292
    293293        } else {
    294    
     294
    295295            //
    296296            // Decrement DpcInterlockKeyboard.  If the result goes negative,
    297297            // then we're all finished processing the DPC.  Otherwise, either
    298298            // the ISR incremented DpcInterlockKeyboard because it has more
    299             // work for the ISR DPC to do, or a concurrent DPC executed on 
    300             // some processor while the current DPC was running (the 
    301             // concurrent DPC wouldn't have done any work).  Make sure that 
     299            // work for the ISR DPC to do, or a concurrent DPC executed on
     300            // some processor while the current DPC was running (the
     301            // concurrent DPC wouldn't have done any work).  Make sure that
    302302            // the current DPC handles any extra work that is ready to be
    303303            // done.
     
    306306            operationContext.Operation = DecrementOperation;
    307307            operationContext.NewValue = &interlockedResult;
    308        
     308
    309309            KeSynchronizeExecution(
    310310                    deviceExtension->KeyboardInterruptObject,
     
    325325                interlockedResult = 0;
    326326                operationContext.NewValue = &interlockedResult;
    327        
     327
    328328                KeSynchronizeExecution(
    329329                    deviceExtension->KeyboardInterruptObject,
  • trunk/src/VBox/Additions/WINNT/i8042prt/kbddep.c

    r20961 r26493  
    886886    PI8042_CONFIGURATION_INFORMATION configuration;
    887887    PKEYBOARD_ID keyboardId;
    888 #endif 
     888#endif
    889889    LARGE_INTEGER startOfSpin, nextQuery, difference, tenSeconds;
    890890    BOOLEAN waitForAckOnReset = WAIT_FOR_ACKNOWLEDGE;
  • trunk/src/VBox/Additions/WINNT/i8042prt/moucmn.c

    r1 r26493  
    1010Abstract:
    1111
    12     The common portions of the Intel i8042 port driver which 
    13     apply to the auxiliary (PS/2 mouse) device. 
     12    The common portions of the Intel i8042 port driver which
     13    apply to the auxiliary (PS/2 mouse) device.
    1414
    1515Environment:
     
    8080    BOOLEAN moreDpcProcessing;
    8181    ULONG dataNotConsumed = 0;
    82     ULONG inputDataConsumed = 0; 
     82    ULONG inputDataConsumed = 0;
    8383    LARGE_INTEGER deltaTime;
    8484
     
    101101    //
    102102
    103     operationContext.VariableAddress = 
     103    operationContext.VariableAddress =
    104104        &deviceExtension->DpcInterlockMouse;
    105105    operationContext.Operation = IncrementOperation;
     
    122122        // Get the port InputData queue pointers synchronously.
    123123        //
    124    
     124
    125125        getPointerContext.DeviceExtension = deviceExtension;
    126126        setPointerContext.DeviceExtension = deviceExtension;
     
    128128        setPointerContext.DeviceType = (CCHAR) MouseDeviceType;
    129129        setPointerContext.InputCount = 0;
    130    
     130
    131131        KeSynchronizeExecution(
    132132            deviceExtension->MouseInterruptObject,
     
    134134            (PVOID) &getPointerContext
    135135            );
    136    
     136
    137137        if (getPointerContext.InputCount != 0) {
    138        
     138
    139139            //
    140140            // Call the connected class driver's callback ISR with the
     
    143143            // ISR once for each piece.
    144144            //
    145        
     145
    146146            classDeviceObject =
    147147                deviceExtension->MouseExtension.ConnectData.ClassDeviceObject;
     
    149149                deviceExtension->MouseExtension.ConnectData.ClassService;
    150150            ASSERT(classService != NULL);
    151        
     151
    152152            if (getPointerContext.DataOut >= getPointerContext.DataIn) {
    153        
     153
    154154                //
    155155                // We'll have to wrap the InputData circular buffer.  Call
    156                 // the class callback ISR with the chunk of data starting at 
     156                // the class callback ISR with the chunk of data starting at
    157157                // DataOut and ending at the end of the queue.
    158158                //
    159        
    160                 I8xPrint((
    161                     2, 
     159
     160                I8xPrint((
     161                    2,
    162162                    "I8042PRT-I8042MouseIsrDpc: calling class callback\n"
    163163                    ));
     
    168168                    deviceExtension->MouseExtension.DataEnd
    169169                    ));
    170        
     170
    171171                (*(PSERVICE_CALLBACK_ROUTINE) classService)(
    172172                      classDeviceObject,
     
    175175                      &inputDataConsumed
    176176                      );
    177        
     177
    178178                dataNotConsumed = (((PUCHAR)
    179179                    deviceExtension->MouseExtension.DataEnd -
    180                     (PUCHAR) getPointerContext.DataOut) 
     180                    (PUCHAR) getPointerContext.DataOut)
    181181                    / sizeof(MOUSE_INPUT_DATA)) - inputDataConsumed;
    182182
     
    189189
    190190                setPointerContext.InputCount += inputDataConsumed;
    191        
     191
    192192                if (dataNotConsumed) {
    193                     setPointerContext.DataOut = 
    194                         ((PUCHAR)getPointerContext.DataOut) + 
     193                    setPointerContext.DataOut =
     194                        ((PUCHAR)getPointerContext.DataOut) +
    195195                        (inputDataConsumed * sizeof(MOUSE_INPUT_DATA));
    196196                } else {
     
    200200                }
    201201            }
    202        
     202
    203203            //
    204204            // Call the class callback ISR with data remaining in the queue.
    205205            //
    206        
     206
    207207            if ((dataNotConsumed == 0) &&
    208208                (inputDataConsumed < getPointerContext.InputCount)){
    209209                I8xPrint((
    210                     2, 
     210                    2,
    211211                    "I8042PRT-I8042MouseIsrDpc: calling class callback\n"
    212212                    ));
     
    217217                    getPointerContext.DataIn
    218218                    ));
    219        
     219
    220220                (*(PSERVICE_CALLBACK_ROUTINE) classService)(
    221221                      classDeviceObject,
     
    225225                      );
    226226
    227                 dataNotConsumed = (((PUCHAR) getPointerContext.DataIn - 
     227                dataNotConsumed = (((PUCHAR) getPointerContext.DataIn -
    228228                      (PUCHAR) getPointerContext.DataOut)
    229229                      / sizeof(MOUSE_INPUT_DATA)) - inputDataConsumed;
    230        
     230
    231231                I8xPrint((
    232232                    2,
     
    236236                    ));
    237237
    238                 setPointerContext.DataOut = 
     238                setPointerContext.DataOut =
    239239                    ((PUCHAR)getPointerContext.DataOut) +
    240240                    (inputDataConsumed * sizeof(MOUSE_INPUT_DATA));
     
    242242
    243243            }
    244        
     244
    245245            //
    246246            // Update the port InputData queue DataOut pointer and InputCount
    247247            // synchronously.
    248248            //
    249        
     249
    250250            KeSynchronizeExecution(
    251251                deviceExtension->MouseInterruptObject,
     
    253253                (PVOID) &setPointerContext
    254254                );
    255        
     255
    256256        }
    257        
     257
    258258        if (dataNotConsumed) {
    259259
    260260            //
    261             // The class driver was unable to consume all the data. 
     261            // The class driver was unable to consume all the data.
    262262            // Reset the interlocked variable to -1.  We do not want
    263263            // to attempt to move more data to the class driver at this
     
    266266            // of the data out of the class driver's queue.  We accomplish
    267267            // this "wait" via a timer.
    268             // 
     268            //
    269269
    270270            I8xPrint((2, "I8042PRT-I8042MouseIsrDpc: set timer in DPC\n"));
     
    273273            interlockedResult = -1;
    274274            operationContext.NewValue = &interlockedResult;
    275        
     275
    276276            KeSynchronizeExecution(
    277277                    deviceExtension->MouseInterruptObject,
     
    289289                       );
    290290
    291             moreDpcProcessing = FALSE; 
     291            moreDpcProcessing = FALSE;
    292292
    293293        } else {
    294    
     294
    295295            //
    296296            // Decrement DpcInterlockMouse.  If the result goes negative,
    297297            // then we're all finished processing the DPC.  Otherwise, either
    298298            // the ISR incremented DpcInterlockMouse because it has more
    299             // work for the ISR DPC to do, or a concurrent DPC executed on 
    300             // some processor while the current DPC was running (the 
    301             // concurrent DPC wouldn't have done any work).  Make sure that 
     299            // work for the ISR DPC to do, or a concurrent DPC executed on
     300            // some processor while the current DPC was running (the
     301            // concurrent DPC wouldn't have done any work).  Make sure that
    302302            // the current DPC handles any extra work that is ready to be
    303303            // done.
     
    306306            operationContext.Operation = DecrementOperation;
    307307            operationContext.NewValue = &interlockedResult;
    308        
     308
    309309            KeSynchronizeExecution(
    310310                    deviceExtension->MouseInterruptObject,
     
    325325                interlockedResult = 0;
    326326                operationContext.NewValue = &interlockedResult;
    327        
     327
    328328                KeSynchronizeExecution(
    329329                    deviceExtension->MouseInterruptObject,
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuestIDC-unix.c.h

    r21613 r26493  
    9494}
    9595
    96 
  • trunk/src/VBox/Additions/common/VBoxGuestLib/GenericRequest.cpp

    r26425 r26493  
    7272
    7373    /* This can be a variable size request. Check the request type and limit the size
    74      * to VMMDEV_MAX_VMMDEVREQ_SIZE, which is max size supported by the host. 
     74     * to VMMDEV_MAX_VMMDEVREQ_SIZE, which is max size supported by the host.
    7575     */
    7676    if (   pReq->requestType == VMMDevReq_LogString
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp

    r26425 r26493  
    331331    return RTErrConvertFromWin32(RegCloseKey(hKey));
    332332}
    333 #endif /* RT_OS_WINDOWS */ 
     333#endif /* RT_OS_WINDOWS */
    334334
    335335
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibVideo.cpp

    r26425 r26493  
    145145 *                      most recent host request, otherwise it will return the
    146146 *                      last request to be acknowleged.
    147  *                     
     147 *
    148148 */
    149149VBGLR3DECL(int) VbglR3GetDisplayChangeRequest(uint32_t *pcx, uint32_t *pcy, uint32_t *pcBits, uint32_t *piDisplay, bool fAck)
  • trunk/src/VBox/Additions/linux/installer/autorun.sh

    r26465 r26493  
    7979                    idbin=$found
    8080                fi
    81             fi       
     81            fi
    8282
    8383            # check if pfexec can get the job done
     
    104104rdepend=quit
    105105space=quit
    106 mail= 
     106mail=
    107107" > /tmp/vbox.autoinstall
    108108
  • trunk/src/VBox/Additions/os2/Makefile.kmk

    r23452 r26493  
    3838
    3939include $(KBUILD_PATH)/subfooter.kmk
    40                                                                        
     40
  • trunk/src/VBox/Additions/solaris/DRM/include/drm.h

    r18057 r26493  
    603603         DRM_DRAWABLE_CLIPRECTS,
    604604} drm_drawable_info_type_t;
    605  
     605
    606606typedef struct drm_update_draw {
    607607        drm_drawable_t handle;
     
    639639} drm_vblank_seq_type_t;
    640640
    641 #define _DRM_VBLANK_TYPES_MASK (_DRM_VBLANK_ABSOLUTE | _DRM_VBLANK_RELATIVE) 
     641#define _DRM_VBLANK_TYPES_MASK (_DRM_VBLANK_ABSOLUTE | _DRM_VBLANK_RELATIVE)
    642642#define _DRM_VBLANK_FLAGS_MASK (_DRM_VBLANK_SIGNAL | _DRM_VBLANK_SECONDARY | \
    643         _DRM_VBLANK_NEXTONMISS) 
     643        _DRM_VBLANK_NEXTONMISS)
    644644
    645645struct drm_wait_vblank_request {
  • trunk/src/VBox/Additions/solaris/DRM/vboxvideo_drm.c

    r18576 r26493  
    386386    pDriver->irq_handler        = drm_driver_irq_handler;
    387387
    388     pDriver->driver_ioctls      = 
    389     pDriver->max_driver_ioctls  = 
     388    pDriver->driver_ioctls      =
     389    pDriver->max_driver_ioctls  =
    390390#endif
    391391
  • trunk/src/VBox/Additions/solaris/Makefile.kmk

    r25911 r26493  
    297297else # !VBOX_WITH_COMBINED_SOLARIS_GUEST_PACKAGE
    298298 ifdef VBOX_COMPRESS
    299         $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_COMPRESS_FILES)) 
     299        $(QUIET)$(VBOX_COMPRESS) $(addprefix $(SOLARIS_VBOXADDINST_DIR_ISA)/,$(SOLARIS_ADD_COMPRESS_FILES))
    300300 endif
    301301        $(LN_SYMLINK) -f ../../..$(SOLARIS_VBOXADDINST_SUBDIR)/$(SOLARIS_ADDDIR_NAME_ISA)/vboxfsmount         $(SOLARIS_ADD_ETCFS_DIR)/mount
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vfs.c

    r25883 r26493  
    306306        if (error)
    307307                return (error);
    308        
     308
    309309        /*
    310310         * find what we are mounting
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vnode.c

    r25883 r26493  
    295295        if (!node->sf_is_stale && node->sf_type == VDIR) {
    296296                len = strlen(node->sf_path);
    297                
     297
    298298                n = node;
    299299                while ((n = AVL_NEXT(&sfnodes, node)) != NULL) {
     
    474474
    475475        /*
    476          * Look for an existing node. 
     476         * Look for an existing node.
    477477         */
    478478        fullpath = sfnode_construct_path(dir, name);
     
    630630        }
    631631        names = (void *)prov_buff;
    632        
     632
    633633        /*
    634634         * Lookup each of the names, so that we have ino's.
  • trunk/src/VBox/Additions/x11/vboxmouse/vboxmouse_15.c

    r26024 r26493  
    104104                                 miPointerGetMotionBufferSize()
    105105#elif GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
    106                                  GetMotionHistory, VBoxPtrCtrlProc, 
     106                                 GetMotionHistory, VBoxPtrCtrlProc,
    107107                                 GetMotionHistorySize(), 2 /* Number of axes */
    108108
  • trunk/src/VBox/Additions/x11/vboxmouse/xorg14/mouse.c

    r12929 r26493  
    39093909#endif /* XFree86LOADER */
    39103910
    3911 
  • trunk/src/VBox/Additions/x11/vboxmouse/xorg70/mouse.c

    r12929 r26493  
    38743874#endif /* XFree86LOADER */
    38753875
    3876 
  • trunk/src/VBox/Additions/x11/vboxmouse/xorg71/mouse.c

    r12929 r26493  
    38863886#endif /* XFree86LOADER */
    38873887
    3888 
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_13.c

    r26040 r26493  
    204204
    205205    TRACE_LOG("width=%d, height=%d\n", width, height);
    206     /* We only support horizontal resolutions which are a multiple of 8. 
     206    /* We only support horizontal resolutions which are a multiple of 8.
    207207     * Round up if necessary. */
    208208    width = (width + 7) & ~7;
     
    10631063    }
    10641064    pScrn->vtSema = FALSE;
    1065    
     1065
    10661066    /* Destroy the VGA hardware record */
    10671067    vgaHWFreeHWRec(pScrn);
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_70.c

    r26054 r26493  
    611611        }
    612612    }
    613        
     613
    614614    /* Colour weight - we always call this, since we are always in
    615615       truecolour. */
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