VirtualBox

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


Ignore:
Timestamp:
Oct 28, 2010 9:27:05 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67140
Message:

*: spelling fixes, thanks Timeless!

Location:
trunk/src/VBox/HostDrivers
Files:
57 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Makefile.kmk

    r32230 r33540  
    4242 if1of ($(KBUILD_TARGET),linux freebsd)
    4343  #
    44   # Install the Makefile for module compliation on Linux and FreeBSD hosts
     44  # Install the Makefile for module compilation on Linux and FreeBSD hosts
    4545  #
    4646  INSTALLS += HostDrivers-src
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r33375 r33540  
    170170# VBoxDrv.sys - The Windows driver.
    171171#
    172 ## @todo consoliate all the targets into a single mess.
     172## @todo consolidate all the targets into a single mess.
    173173ifeq ($(KBUILD_TARGET),win)
    174174VBoxDrv_TEMPLATE      = VBOXR0DRV
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r33375 r33540  
    8484 *
    8585 * Logging requires BUILD_TYPE=debug and possibly changes to the logger
    86  * instanciation in log-vbox.c(pp).
     86 * instantiation in log-vbox.c(pp).
    8787 */
    8888
     
    18531853
    18541854/**
    1855  * Inter-Driver Communcation (IDC) worker.
     1855 * Inter-Driver Communication (IDC) worker.
    18561856 *
    18571857 * @returns VBox status code.
     
    28682868 * @param   cbSub       How much to map. Must be page aligned.
    28692869 * @param   fFlags      Flags, MBZ.
    2870  * @param   ppvR0       Where to reutrn the address of the ring-0 mapping on
     2870 * @param   ppvR0       Where to return the address of the ring-0 mapping on
    28712871 *                      success.
    28722872 */
     
    29222922    {
    29232923        /*
    2924          * Do some furter input validations before calling IPRT.
     2924         * Do some further input validations before calling IPRT.
    29252925         * (Cleanup is done indirectly by telling RTR0MemObjFree to include mappings.)
    29262926         */
     
    30123012    {
    30133013        /*
    3014          * Do some furter input validations before calling IPRT.
     3014         * Do some further input validations before calling IPRT.
    30153015         */
    30163016        size_t cbMemObj = hMemObjR0 != NIL_RTR0PTR ? RTR0MemObjSize(hMemObjR0) : RTR0MemObjSize(hMemObjR3);
     
    51085108 *
    51095109 * @param   poffMin     Pointer to the determined difference between different cores.
    5110  * @return  false if the time stamp counters appear to be synchron, true otherwise.
     5110 * @return  false if the time stamp counters appear to be synchronized, true otherwise.
    51115111 */
    51125112static bool supdrvDetermineAsyncTsc(uint64_t *poffMin)
     
    51785178
    51795179/**
    5180  * Determin the GIP TSC mode.
     5180 * Determine the GIP TSC mode.
    51815181 *
    51825182 * @returns The most suitable TSC mode.
     
    51885188     * On SMP we're faced with two problems:
    51895189     *      (1) There might be a skew between the CPU, so that cpu0
    5190      *          returns a TSC that is sligtly different from cpu1.
     5190     *          returns a TSC that is slightly different from cpu1.
    51915191     *      (2) Power management (and other things) may cause the TSC
    51925192     *          to run at a non-constant speed, and cause the speed
     
    51945194     *
    51955195     * So, on SMP systems we'll have to select the ASYNC update method
    5196      * if there are symphoms of these problems.
     5196     * if there are symptoms of these problems.
    51975197     */
    51985198    if (RTMpGetCount() > 1)
     
    52015201        uint64_t u64DiffCoresIgnored;
    52025202
    5203         /* Permit the user and/or the OS specfic bits to force async mode. */
     5203        /* Permit the user and/or the OS specific bits to force async mode. */
    52045204        if (supdrvOSGetForcedAsyncTscMode(pDevExt))
    52055205            return SUPGIPMODE_ASYNC_TSC;
     
    52435243 * @param   HCPhys      The physical address of the GIP.
    52445244 * @param   u64NanoTS   The current nanosecond timestamp.
    5245  * @param   uUpdateHz   The update freqence.
     5245 * @param   uUpdateHz   The update frequency.
    52465246 */
    52475247static void supdrvGipInit(PSUPDRVDEVEXT pDevExt, PSUPGLOBALINFOPAGE pGip, RTHCPHYS HCPhys, uint64_t u64NanoTS, unsigned uUpdateHz)
     
    54005400        u32UpdateIntervalTSC >>= 1;
    54015401
    5402         /* Value choosen for a 2GHz Athlon64 running linux 2.6.10/11, . */
     5402        /* Value chosen for a 2GHz Athlon64 running linux 2.6.10/11, . */
    54035403        u32UpdateIntervalTSCSlack = u32UpdateIntervalTSC >> 14;
    54045404    }
     
    54095409        u32UpdateIntervalTSC >>= 1;
    54105410
    5411         /* value choosen on a 2GHz thinkpad running windows */
     5411        /* value chosen on a 2GHz thinkpad running windows */
    54125412        u32UpdateIntervalTSCSlack = u32UpdateIntervalTSC >> 7;
    54135413    }
     
    54405440{
    54415441    /*
    5442      * Determin the relevant CPU data.
     5442     * Determine the relevant CPU data.
    54435443     */
    54445444    PSUPGIPCPU pGipCpu;
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIDC.h

    r28800 r33540  
    11/* $Id$ */
    22/** @file
    3  * VirtualBox Support Driver - Inter-Driver Communciation (IDC) definitions.
     3 * VirtualBox Support Driver - Inter-Driver Communication (IDC) definitions.
    44 */
    55
     
    3535 * @param Function      The function number to encode, 1..255.
    3636 *
    37  * @remarks We can take a sligtly more relaxed attitude wrt to size encoding
     37 * @remarks We can take a slightly more relaxed attitude wrt to size encoding
    3838 *          here since only windows will use standard I/O control function code.
    3939 */
     
    194194
    195195/**
    196  * SUPDRV IDC: Dergister a component factory.
     196 * SUPDRV IDC: Deregister a component factory.
    197197 * This request takes a SUPDRVIDCREQCOMPDEREGFACTORY packet.
    198198 */
  • trunk/src/VBox/HostDrivers/Support/SUPDrvIOC.h

    r33167 r33540  
    285285        struct
    286286        {
    287             /** Size of the image we'll be loading (includeing tables). */
     287            /** Size of the image we'll be loading (including tables). */
    288288            uint32_t        cbImageWithTabs;
    289289            /** The size of the image bits. (Less or equal to cbImageWithTabs.) */
     
    772772        struct
    773773        {
    774             /** Start of page range of a range previuosly pinned. */
     774            /** Start of page range of a range previously pinned. */
    775775            RTR3PTR         pvR3;
    776776        } In;
     
    781781
    782782/** @name SUP_IOCTL_CONT_ALLOC
    783  * Allocate contious memory.
     783 * Allocate continuous memory.
    784784 * @{
    785785 */
     
    817817 * @{
    818818 */
    819 /** Free contious memory. */
     819/** Free continuous memory. */
    820820#define SUP_IOCTL_CONT_FREE                             SUP_CTL_CODE_SIZE(17, SUP_IOCTL_CONT_FREE_SIZE)
    821821#define SUP_IOCTL_CONT_FREE_SIZE                        sizeof(SUPCONTFREE)
     
    10811081/** Signal the semaphore. */
    10821082#define SUPSEMOP_SIGNAL     1
    1083 /** Reset the sempahore (only applicable to SUP_SEM_TYPE_EVENT_MULTI). */
     1083/** Reset the semaphore (only applicable to SUP_SEM_TYPE_EVENT_MULTI). */
    10841084#define SUPSEMOP_RESET      2
    10851085/** Close the semaphore handle. */
     
    11411141/** Signal the semaphore. */
    11421142#define SUPSEMOP2_SIGNAL            3
    1143 /** Reset the sempahore (only applicable to SUP_SEM_TYPE_EVENT_MULTI). */
     1143/** Reset the semaphore (only applicable to SUP_SEM_TYPE_EVENT_MULTI). */
    11441144#define SUPSEMOP2_RESET             4
    11451145/** Close the semaphore handle. */
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r29250 r33540  
    179179
    180180/** @name Context values for the per-session handle tables.
    181  * The context value is used to distiguish between the different kinds of
     181 * The context value is used to distinguish between the different kinds of
    182182 * handles, making the handle table API do all the work.
    183183 * @{ */
     
    216216    /** Locked memory (r3 mapping only). */
    217217    MEMREF_TYPE_LOCKED,
    218     /** Continous memory block (r3 and r0 mapping). */
     218    /** Continuous memory block (r3 and r0 mapping). */
    219219    MEMREF_TYPE_CONT,
    220220    /** Low memory block (r3 and r0 mapping). */
     
    290290    /** Service request handler. This is NULL for non-service modules. */
    291291    PFNSUPR0SERVICEREQHANDLER       pfnServiceReqHandler;
    292     /** The ldr image state. (IOCtl code of last opration.) */
     292    /** The ldr image state. (IOCtl code of last operation.) */
    293293    uint32_t                        uState;
    294294    /** Usage count. */
     
    548548 *                              success, pvImageAlloc can also be set if
    549549 *                              appropriate.
    550  * @param   pszFilename         The file name - UTF-8, may containg UNIX
     550 * @param   pszFilename         The file name - UTF-8, may containing UNIX
    551551 *                              slashes on non-UNIX systems.
    552552 */
  • trunk/src/VBox/HostDrivers/Support/SUPLib.cpp

    r33167 r33540  
    3737 *
    3838 * The Ring-0 calling is done thru a generic SUP interface which will
    39  * tranfer an argument set and call a predefined entry point in the Host
     39 * transfer an argument set and call a predefined entry point in the Host
    4040 * VMM Ring-0 code.
    4141 *
     
    9494static bool                     g_fPreInited = false;
    9595/** The SUPLib instance data.
    96  * Well, at least parts of it, specificly the parts that are being handed over
     96 * Well, at least parts of it, specifically the parts that are being handed over
    9797 * via the pre-init mechanism from the hardened executable stub.  */
    9898SUPLIBDATA                      g_supLibData =
     
    109109 *
    110110 * This pointer is valid as long as SUPLib has a open session. Anyone using
    111  * the page must treat this pointer as higly volatile and not trust it beyond
     111 * the page must treat this pointer as highly volatile and not trust it beyond
    112112 * one transaction.
    113113 *
     
    762762 * @param   pszFlags    The flags settings.
    763763 * @param   pszGroups   The groups settings.
    764  * @param   pszDest     The destionation specificier.
     764 * @param   pszDest     The destination specificier.
    765765 */
    766766static int supR3LoggerSettings(SUPLOGGER enmWhich, uint32_t fWhat, const char *pszFlags, const char *pszGroups, const char *pszDest)
  • trunk/src/VBox/HostDrivers/Support/SUPR0IdcClient.c

    r30111 r33540  
    4343 *
    4444 * This will perform basic version negotiations and fail if the
    45  * minmum requirements aren't met.
     45 * minimum requirements aren't met.
    4646 *
    4747 * @returns VBox status code.
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp

    r28800 r33540  
    119119/** The pre-init data we pass on to SUPR3 (residing in VBoxRT). */
    120120static SUPPREINITDATA g_SupPreInitData;
    121 /** The progam executable path. */
     121/** The program executable path. */
    122122static char g_szSupLibHardenedExePath[RTPATH_MAX];
    123123/** The program directory path. */
     
    467467     * find it.  We'll fork before we attempt this because that way the
    468468     * session management in main will see us exiting immediately (if
    469      * it's invovled with us).
     469     * it's involved with us).
    470470     */
    471471#if !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2)
     
    733733# if defined(RT_OS_DARWIN)
    734734    /* The really great thing here is that setreuid isn't available on
    735        OS X 10.4, libc emulates it. While 10.4 have a sligtly different and
     735       OS X 10.4, libc emulates it. While 10.4 have a slightly different and
    736736       non-standard setuid implementation compared to 10.5, the following
    737737       works the same way with both version since we're super user (10.5 req).
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp

    r29250 r33540  
    198198
    199199/**
    200  * Assembles the path to a dirtory.
     200 * Assembles the path to a directory.
    201201 *
    202202 * @returns VINF_SUCCESS on success, some error code on failure (fFatal
     
    613613 * @returns VINF_SUCCESS on success.
    614614 *          VERR_NOT_FOUND if the file isn't in the table, this isn't ever a fatal error.
    615  *          On verfication failure, an error code will be returned when fFatal is clear,
    616  *          otherwise the program will be termindated.
     615 *          On verification failure, an error code will be returned when fFatal is clear,
     616 *          otherwise the program will be terminated.
    617617 *
    618618 * @param   pszFilename         The filename.
     
    711711 *
    712712 * @returns VINF_SUCCESS on success.
    713  *          On verfication failure, an error code will be returned when fFatal is clear,
    714  *          otherwise the program will be termindated.
     713 *          On verification failure, an error code will be returned when fFatal is clear,
     714 *          otherwise the program will be terminated.
    715715 *
    716716 * @param   fFatal              Whether validation failures should be treated as
    717717 *                              fatal (true) or not (false).
    718  * @param   fLeaveFilesOpen     If set, all the verfied files are left open.
     718 * @param   fLeaveFilesOpen     If set, all the verified files are left open.
    719719 * @param   pszProgName         Optional program name. This is used by SUPR3HardenedMain
    720720 *                              to verify that both the executable and corresponding
  • trunk/src/VBox/HostDrivers/Support/SUPSvc.cpp

    r28800 r33540  
    283283
    284284/**
    285  * Logs the message to the appropirate system log.
     285 * Logs the message to the appropriate system log.
    286286 *
    287287 * In debug builds this will also put it in the debug log.
     
    299299
    300300/**
    301  * Logs the message to the appropirate system log.
     301 * Logs the message to the appropriate system log.
    302302 *
    303303 * In debug builds this will also put it in the debug log.
     
    325325
    326326/**
    327  * Logs the error message to the appropirate system log.
     327 * Logs the error message to the appropriate system log.
    328328 *
    329329 * In debug builds this will also put it in the debug log.
  • trunk/src/VBox/HostDrivers/Support/SUPSvcGrant.cpp

    r30112 r33540  
    168168
    169169    /*
    170      * Process client requests untill it quits or we're cancelled on termination.
     170     * Process client requests until it quits or we're cancelled on termination.
    171171     */
    172172    while (!ASMAtomicUoReadBool(&pThis->fTerminate))
     
    252252{
    253253    /*
    254      * Iterate untill be make it all the way thru the list.
     254     * Iterate until be make it all the way thru the list.
    255255     *
    256256     * Only use the thread state as and indicator on whether we can destroy
  • trunk/src/VBox/HostDrivers/Support/SUPSvcInternal.h

    r28800 r33540  
    5252 * @{ */
    5353/**
    54  * Logs the message to the appropirate system log.
     54 * Logs the message to the appropriate system log.
    5555 *
    5656 * @param   psMsg       The log string.
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r29255 r33540  
    392392        kauth_cred_unref(&pCred);
    393393#else  /* 10.4 */
    394         /* The 10.4u SDK headers and 10.4.11 kernel source have inconsisten defintions
     394        /* The 10.4u SDK headers and 10.4.11 kernel source have inconsistent definitions
    395395           of kauth_cred_unref(), so use the other (now deprecated) API for releasing it. */
    396396        kauth_cred_rele(pCred);
     
    720720   kernel map on another CPU while this is going on, there is a fair chance
    721721   that it might cause the host_vmxon thread to block and hence panic since
    722    preemption is disabled. Arrrg! */
     722   preemption is disabled. Argh! */
    723723#if 0 /*def VBOX_WITH_HOST_VMX*/
    724724    int rc;
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPLib-darwin.cpp

    r28800 r33540  
    235235
    236236    /*
    237      * Check if we're initited at all.
     237     * Check if we're inited at all.
    238238     */
    239239    if (pThis->hDevice != NIL_RTFILE)
  • trunk/src/VBox/HostDrivers/Support/freebsd/SUPLib-freebsd.cpp

    r28800 r33540  
    131131{
    132132    /*
    133      * Check if we're initited at all.
     133     * Check if we're inited at all.
    134134     */
    135135    if (pThis->hDevice != NIL_RTFILE)
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r28800 r33540  
    232232    .resume  = VBoxDrvResume,   /* after wakeup from deep sleep */
    233233    .freeze  = VBoxDrvSuspend,  /* before creating hibernation image */
    234     .restore = VBoxDrvResume,   /* after wakeing up from hibernation */
     234    .restore = VBoxDrvResume,   /* after waking up from hibernation */
    235235};
    236236# endif
     
    410410#ifdef CONFIG_X86_LOCAL_APIC
    411411    /*
    412      * If an NMI occurs while we are inside the world switcher the macine will crash.
     412     * If an NMI occurs while we are inside the world switcher the machine will crash.
    413413     * The Linux NMI watchdog generates periodic NMIs increasing a counter which is
    414414     * compared with another counter increased in the timer interrupt handler. Therefore
     
    417417# if !defined(VBOX_REDHAT_KABI)
    418418    /*
    419      * First test: NMI actiated? Works only works with Linux 2.6 -- 2.4 does not export
     419     * First test: NMI activated? Works only works with Linux 2.6 -- 2.4 does not export
    420420     *             the nmi_watchdog variable.
    421421     */
     
    472472#  else /* < 2.6.19 */
    473473    /*
    474      * Older 2.6 kernels: nmi_watchdog is not initalized by default
     474     * Older 2.6 kernels: nmi_watchdog is not initialized by default
    475475     */
    476476    if (nmi_watchdog != NMI_NONE)
     
    503503                 * vector as NMI. We can't disable the framework but the kernel loader
    504504                 * script will do 'echo 2 > /proc/sys/kernel/perf_counter_paranoid'
    505                  * which hopefilly prevents any usage of hardware performance counters
     505                 * which hopefully prevents any usage of hardware performance counters
    506506                 * and therefore triggering of NMIs.
    507507                 * 2.6.32+: CONFIG_PERF_COUNTERS => CONFIG_PERF_EVENTS */
  • trunk/src/VBox/HostDrivers/Support/os2/SUPLib-os2.cpp

    r28800 r33540  
    110110{
    111111    /*
    112      * Check if we're initited at all.
     112     * Check if we're inited at all.
    113113     */
    114114    if (pThis->hDevice != NIL_RTFILE)
  • trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp

    r28800 r33540  
    473473{
    474474    /*
    475      * Check if we're initited at all.
     475     * Check if we're inited at all.
    476476     */
    477477    if (pThis->hDevice != NIL_RTFILE)
  • trunk/src/VBox/HostDrivers/Support/win/SUPR0IdcClient-win.c

    r28800 r33540  
    8282                                         Executive,         /* WaitReason */
    8383                                         KernelMode,        /* WaitMode */
    84                                          FALSE,             /* Altertable */
     84                                         FALSE,             /* Alertable */
    8585                                         NULL);             /* TimeOut */
    8686            rcNt = IoStatusBlock.Status;
  • trunk/src/VBox/HostDrivers/Support/win/SUPSvc-win.cpp

    r28854 r33540  
    111111 *          NULL on failure, will display an error message unless it's ignored.
    112112 *
    113  * @param   pszAction           The action which is requestion access to the service.
     113 * @param   pszAction           The action which is requesting access to the service.
    114114 * @param   dwSCMAccess         The service control manager access.
    115115 * @param   dwSVCAccess         The desired service access.
     
    446446 * @param   dwControl       The control code.
    447447 * @param   dwEventType     Event type. (specific to the control?)
    448  * @param   pvEventData     Event data, specfic to the event.
     448 * @param   pvEventData     Event data, specific to the event.
    449449 * @param   pvContext       The context pointer registered with the handler.
    450450 *                          Currently not used.
     
    573573                         *
    574574                         * The work loop is just a dummy wait here as the services run
    575                          * in independant threads.
     575                         * in independent threads.
    576576                         */
    577577                        if (supSvcWinSetServiceStatus(SERVICE_RUNNING, 0, 0))
     
    783783
    784784    /*
    785      * Parse the initial arguments to determin the desired action.
     785     * Parse the initial arguments to determine the desired action.
    786786     */
    787787    enum
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/Makefile.kmk

    r32183 r33540  
    9494ifeq ($(KBUILD_TARGET),linux)
    9595 #
    96  # Install source files for compliation on Linux.
     96 # Install source files for compilation on Linux.
    9797 # files_vboxnetadp defines VBOX_VBOXNETADP_SOURCES.
    9898 #
     
    143143ifeq ($(KBUILD_TARGET),freebsd)
    144144 #
    145  # Install source files for compliation on FreeBSD.
     145 # Install source files for compilation on FreeBSD.
    146146 # files_vboxnetadp defines VBOX_VBOXNETADP_SOURCES.
    147147 #
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/VBoxNetAdp.c

    r28830 r33540  
    4545#include <VBox/version.h>
    4646
    47 /** r=bird: why is this here in the agnositc code? */
     47/** r=bird: why is this here in the agnostic code? */
    4848#ifdef RT_OS_DARWIN
    4949# include <net/ethernet.h>
     
    803803 * though the "base is still needed for the driver to functions".
    804804 * @param pGlobals
    805  * @return VINF_SUCCESS on succes, VERR_WRONG_ORDER if we're busy.
     805 * @return VINF_SUCCESS on success, VERR_WRONG_ORDER if we're busy.
    806806 */
    807807DECLHIDDEN(int) vboxNetAdpTryDeleteIdc(PVBOXNETADPGLOBALS pGlobals)
     
    926926 * Called by the native part when the OS wants the driver to unload.
    927927 *
    928  * @returns VINF_SUCCESS on succes, VERR_WRONG_ORDER if we're busy.
     928 * @returns VINF_SUCCESS on success, VERR_WRONG_ORDER if we're busy.
    929929 *
    930930 * @param   pGlobals        Pointer to the globals.
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/freebsd/VBoxNetAdp-freebsd.c

    r31556 r33540  
    202202/**
    203203 * Transmit packets.
    204  * netflt has aldready done everything for us so we just hand the
     204 * netflt has already done everything for us so we just hand the
    205205 * packets to BPF and increment the packet stats.
    206206 */
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile

    r32537 r33540  
    179179
    180180# By default we use remap_pfn_range() kernel API to make kernel pages
    181 # visible for userland. Unfortuately, it leads to situation that
     181# visible for userland. Unfortunately, it leads to situation that
    182182# during debug session all structures on that page (such as PVM pointer)
    183183# are not accessible to the debugger (see #3214).
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/VBoxNetAdp-linux.c

    r31730 r33540  
    279279
    280280    Log(("VBoxNetAdpLinuxIOCtl: param len %#x; uCmd=%#x; add=%#x\n", _IOC_SIZE(uCmd), uCmd, VBOXNETADP_CTL_ADD));
    281     if (RT_UNLIKELY(_IOC_SIZE(uCmd) != sizeof(Req))) /* paraonia */
     281    if (RT_UNLIKELY(_IOC_SIZE(uCmd) != sizeof(Req))) /* paranoia */
    282282    {
    283283        Log(("VBoxNetAdpLinuxIOCtl: bad ioctl sizeof(Req)=%#x _IOC_SIZE=%#x; uCmd=%#x.\n", sizeof(Req), _IOC_SIZE(uCmd), uCmd));
  • trunk/src/VBox/HostDrivers/VBoxNetAdp/solaris/VBoxNetAdp-solaris.c

    r28800 r33540  
    296296
    297297                    /*
    298                      * Setup GLD MAC layer registeration info.
     298                     * Setup GLD MAC layer registration info.
    299299                     */
    300300                    pMacInfo->gldm_reset = vboxNetAdpSolarisStub;
     
    334334                        /*
    335335                         * Now try registering our GLD with the MAC layer.
    336                          * Registeration can fail on some S10 versions when the MTU size is more than 1500.
     336                         * Registration can fail on some S10 versions when the MTU size is more than 1500.
    337337                         * When we implement jumbo frames we should probably retry with MTU 1500 for S10.
    338338                         */
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk

    r32773 r33540  
    354354ifeq ($(KBUILD_TARGET),linux)
    355355 #
    356  # Install source files for compliation on Linux.
     356 # Install source files for compilation on Linux.
    357357 # files_vboxnetflt defines VBOX_VBOXNETFLT_SOURCES.
    358358 #
     
    408408
    409409 #
    410  # Install source files for compliation on FreeBSD.
     410 # Install source files for compilation on FreeBSD.
    411411 # files_vboxnetflt defines VBOX_VBOXNETFLT_SOURCES.
    412412 #
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c

    r29696 r33540  
    383383     * Don't do rediscovery if we're called with preemption disabled.
    384384     *
    385      * Note! This may cause trouble if we're always called with preemptioni
     385     * Note! This may cause trouble if we're always called with preemption
    386386     *       disabled and vboxNetFltOsMaybeRediscovered actually does some real
    387387     *       work.  For the time being though, only Darwin and FreeBSD depends
     
    11441144                        /** @todo This reconnect stuff should be serialized correctly for static
    11451145                         *        devices. Shouldn't it? In the dynamic case we're using the INTNET
    1146                          *        outbound thrunk lock, but that doesn't quite cut it here, or does
     1146                         *        outbound thunk lock, but that doesn't quite cut it here, or does
    11471147                         *        it? We could either transition to initializing  or make a callback
    1148                          *        while owning the mutext here... */
     1148                         *        while owning the mutex here... */
    11491149                        if (enmState == kVBoxNetFltInsState_Disconnecting)
    11501150                        {
     
    13241324 * @returns Pointer to an interface. NULL if not supported.
    13251325 *
    1326  * @param   pSupDrvFactory      Pointer to the componet factory registration structure.
     1326 * @param   pSupDrvFactory      Pointer to the component factory registration structure.
    13271327 * @param   pSession            The session - unused.
    13281328 * @param   pszInterfaceUuid    The factory interface id.
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/darwin/VBoxNetFlt-darwin.cpp

    r32740 r33540  
    9595 * We have to associate the ethernet header with each packet we're sending
    9696 * because things like icmp will inherit the tag it self so the tag along
    97  * isn't sufficent to identify our mbufs. For the icmp scenario the ethernet
    98  * header naturarlly changes before the packet is send pack, so let check it.
     97 * isn't sufficient to identify our mbufs. For the icmp scenario the ethernet
     98 * header naturally changes before the packet is send pack, so let check it.
    9999 */
    100100typedef struct VBOXNETFLTTAG
     
    132132
    133133/** The unique tag id for this module.
    134  * This is basically a unique string hash that lives on untill reboot.
     134 * This is basically a unique string hash that lives on until reboot.
    135135 * It is used for tagging mbufs. */
    136136static mbuf_tag_id_t g_idTag;
     
    324324static mbuf_t vboxNetFltDarwinMBufFromSG(PVBOXNETFLTINS pThis, PINTNETSG pSG)
    325325{
    326     /// @todo future? mbuf_how_t How = preemtion enabled ? MBUF_DONTWAIT : MBUF_WAITOK;
     326    /// @todo future? mbuf_how_t How = preemption enabled ? MBUF_DONTWAIT : MBUF_WAITOK;
    327327    mbuf_how_t How = MBUF_WAITOK;
    328328
     
    350350     *
    351351     * So, in the end it's better to just do it the simple way that will work
    352      * 100%, even if it involes some extra work (alloc + copy) we really wished
     352     * 100%, even if it involves some extra work (alloc + copy) we really wished
    353353     * to avoid.
    354354     *
    355355     * Note. We can't make use of the physical addresses on darwin because the
    356      *       way the mbuf / cluster stuffe works (see mbuf_data_to_physical and
     356     *       way the mbuf / cluster stuff works (see mbuf_data_to_physical and
    357357     *       mcl_to_paddr).
    358358     */
     
    10561056             * This api is a bit weird, the best reference is the code.
    10571057             *
    1058              * Also, we have a bit or race conditions wrt the maintance of
     1058             * Also, we have a bit or race conditions wrt the maintenance of
    10591059             * host the interface promiscuity for vboxNetFltPortOsIsPromiscuous.
    10601060             */
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/Makefile

    r32537 r33540  
    183183
    184184# By default we use remap_pfn_range() kernel API to make kernel pages
    185 # visible for userland. Unfortuately, it leads to situation that
     185# visible for userland. Unfortunately, it leads to situation that
    186186# during debug session all structures on that page (such as PVM pointer)
    187187# are not accessible to the debugger (see #3214).
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r33506 r33540  
    635635#  endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 32) */
    636636# endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 27) */
    637         /* Synch the queue len with our child */
     637        /* Sync the queue len with our child */
    638638        pNew->q.qlen = pPriv->pChild->q.qlen;
    639639    }
     
    808808
    809809/**
    810  * Experiment where we filter trafic from the host to the internal network
     810 * Experiment where we filter traffic from the host to the internal network
    811811 * before it reaches the NIC driver.
    812812 *
     
    881881
    882882    /*
    883      * Do the filtering base on the defaul OUI of our virtual NICs
     883     * Do the filtering base on the default OUI of our virtual NICs
    884884     *
    885885     * Note! In a real solution, we would ask the switch whether the
     
    11321132        /*
    11331133         * We need to set checksum fields even if the packet goes to the host
    1134          * directly as it may be immediately forwared by IP layer @bugref{5020}.
     1134         * directly as it may be immediately forwarded by IP layer @bugref{5020}.
    11351135         */
    11361136        Assert(skb_headlen(pPkt) >= pSG->GsoCtx.cbHdrs);
     
    18401840
    18411841/**
    1842  * Reports the GSO capabilites of the hardware NIC.
     1842 * Reports the GSO capabilities of the hardware NIC.
    18431843 *
    18441844 * @param   pThis               The net filter instance.  The caller hold a
     
    18891889
    18901890/**
    1891  * Helper that determins whether the host (ignoreing us) is operating the
     1891 * Helper that determines whether the host (ignoreing us) is operating the
    18921892 * interface in promiscuous mode or not.
    18931893 */
     
    20192019
    20202020    /*
    2021      * If the above succeeded report GSO capabilites,  if not undo and
     2021     * If the above succeeded report GSO capabilities,  if not undo and
    20222022     * release the device.
    20232023     */
     
    22752275         * This api is a bit weird, the best reference is the code.
    22762276         *
    2277          * Also, we have a bit or race conditions wrt the maintance of
     2277         * Also, we have a bit or race conditions wrt the maintenance of
    22782278         * host the interface promiscuity for vboxNetFltPortOsIsPromiscuous.
    22792279         */
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/solaris/VBoxNetFlt-solaris.c

    r33141 r33540  
    328328{
    329329    vboxnetflt_stream_t Stream;           /* dedicated/promiscuous stream */
    330     bool fPromisc;                        /* cached promiscous value */
     330    bool fPromisc;                        /* cached promiscuous value */
    331331    bool fRawMode;                        /* whether raw mode request was successful */
    332332    uint32_t ModeReqId;                   /* track MIOCTLs for swallowing our fake request acknowledgements */
     
    11181118                        {
    11191119                            /*
    1120                              * Swallow our fake promiscous request acknowledgement.
     1120                             * Swallow our fake promiscuous request acknowledgement.
    11211121                             */
    11221122                            dl_ok_ack_t *pOkAck = (dl_ok_ack_t *)pMsg->b_rptr;
     
    13831383/**
    13841384 * Callback wrapper for qtimeout() to safely send promiscuous requests. This is
    1385  * called at the inner perimenter with shared lock.
     1385 * called at the inner perimeter with shared lock.
    13861386 *
    13871387 * @param pvData            Pointer to vboxnetflt_promisc_params_t. See
     
    20932093
    20942094    /*
    2095      * Statuatory Warning: Hackish code ahead.
     2095     * Statutory Warning: Hackish code ahead.
    20962096     */
    20972097    char *pszModName = DEVICE_NAME;
     
    23602360
    23612361    /*
    2362      * Statuatory Warning: Hackish code ahead.
     2362     * Statutory Warning: Hackish code ahead.
    23632363     */
    23642364    char *pszModName = DEVICE_NAME;
     
    27002700            /*
    27012701             * If Ip6 interface is not plumbed and an Ip6 polling interval is specified, we need
    2702              * to begin polling to attach on the Ip6 interface whenver it comes up.
     2702             * to begin polling to attach on the Ip6 interface whenever it comes up.
    27032703             */
    27042704            if (   rc2 == VERR_INTNET_FLT_IF_NOT_FOUND
     
    32573257    /*
    32583258     * MAC address change acknowledgements are intercepted on the read side
    3259      * hence theoritically we are always update to date with any changes.
     3259     * hence theoretically we are always update to date with any changes.
    32603260     */
    32613261    return pThis->u.s.MacAddr.au16[0] == pMac->au16[0]
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/NetFltInstall.cpp

    r28800 r33540  
    3232}
    3333
    34 /** Wrapper aroung GetfullPathNameW that will try an alternative INF location.
     34/** Wrapper around GetfullPathNameW that will try an alternative INF location.
    3535 *
    3636 * The default location is the current directory.  If not found there, the
    37  * alternative locatoin is the executable directory.  If not found there either,
     37 * alternative location is the executable directory.  If not found there either,
    3838 * the first alternative is present to the caller.
    3939 */
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.c

    r30007 r33540  
    4141
    4242/**
    43  * represents the queue of jobs processed by the worker thred
     43 * represents the queue of jobs processed by the worker thread
    4444 *
    4545 * we use the thread to process tasks which are required to be done at passive level
     
    508508    if (pMyPacket)
    509509    {
    510         /* we have successfuly initialized our packet, post it to the host or to the wire */
     510        /* we have successfully initialized our packet, post it to the host or to the wire */
    511511        if(bSrcHost)
    512512        {
     
    601601     * Besides that the NDIS_PACKET contained in the queue could be either the one passed to us in our send/receive callback
    602602     * or the one created by us. The latter is possible in case our ProtocolReceive callback is called and we call NdisTransferData
    603      * in this case we need to allocate the packet the data to be transfered to.
     603     * in this case we need to allocate the packet the data to be transferred to.
    604604     * If the enqueued packet is the one allocated by us the PACKET_MINE flag is set
    605605     * */
     
    18261826
    18271827/*
    1828  * frees NDIS_PACKET creaed with vboxNetFltWinNdisPacketFromSG
     1828 * frees NDIS_PACKET created with vboxNetFltWinNdisPacketFromSG
    18291829 */
    18301830DECLHIDDEN(void) vboxNetFltWinFreeSGNdisPacket(PNDIS_PACKET pPacket, bool bFreeMem)
     
    21572157        int rc;
    21582158        PVBOXNETFLTINS pInstance;
    2159         USHORT cbAnsiName = pBindToMiniportName->Length;/* the lenght is is bytes ; *2 ;RtlUnicodeStringToAnsiSize(pBindToMiniportName)*/
     2159        USHORT cbAnsiName = pBindToMiniportName->Length;/* the length is is bytes ; *2 ;RtlUnicodeStringToAnsiSize(pBindToMiniportName)*/
    21602160        CREATE_INSTANCE_CONTEXT Context;
    21612161        RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;
     
    29872987        }
    29882988
    2989         /* it's interupted */
     2989        /* it's interrupted */
    29902990        rc = VERR_INTERRUPTED;
    29912991    }
     
    31113111/*    Assert(!pThis->fActive); */
    31123112
    3113     /* paranoya to ensyre the instance is not removed while we're waiting on the mutex
     3113    /* paranoia to ensyre the instance is not removed while we're waiting on the mutex
    31143114     * in case ndis does something unpredictable, e.g. calls our miniport halt independently
    31153115     * from protocol unbind and concurrently with it*/
     
    31483148            Assert(vboxNetFltWinGetOpState(&pAdapt->PTState) == kVBoxNetDevOpState_Deinitialized);
    31493149#endif
    3150 //            /* paranoya */
     3150//            /* paranoia */
    31513151//            vboxNetFltWinSetOpState(&pAdapt->MPState, kVBoxNetDevOpState_Deinitialized);
    31523152//#ifndef VBOXNETADP
     
    33173317                            Assert(vboxNetFltWinGetOpState(&pAdapt->PTState) == kVBoxNetDevOpState_Initialized);
    33183318#endif
    3319 //                            /* paranoya */
     3319//                            /* paranoia */
    33203320////                            vboxNetFltWinSetAdaptState(&pAdapt->MPState, kVBoxNetDevOpState_Initialized);
    33213321//#ifndef VBOXNETADP
     
    33643364            Assert(vboxNetFltWinGetOpState(&pAdapt->PTState) == kVBoxNetDevOpState_Deinitialized);
    33653365#endif
    3366 //            /* paranoya */
     3366//            /* paranoia */
    33673367//            vboxNetFltWinSetOpState(&pAdapt->MPState, kVBoxNetDevOpState_Deinitialized);
    33683368//#ifndef VBOXNETADP
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFlt-win.h

    r30111 r33540  
    898898
    899899/* convenience method used which allocates and initializes the PINTNETSG containing one
    900  * segment refering the buffer of size cbBufSize
     900 * segment referring the buffer of size cbBufSize
    901901 * the allocated PINTNETSG should be freed with the vboxNetFltWinMemFree.
    902902 *
     
    10041004
    10051005/**************************************************************
    1006  * utility methofs for ndis packet creation/initialization    *
     1006 * utility methods for ndis packet creation/initialization    *
    10071007 **************************************************************/
    10081008
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltCommon-win.h

    r32338 r33540  
    11/* $Id$ */
    22/** @file
    3  * VBoxNetFltCommon.h - Network Filter Driver (Host), Windows Specific Code. Common headeer with commonly used defines and decls
     3 * VBoxNetFltCommon.h - Network Filter Driver (Host), Windows Specific Code. Common header with commonly used defines and decls
    44 */
    55
     
    182182 * i.e. we could use it on our needs and should not return it
    183183 * we are enqueueing "our" packets on ProtocolReceive call-back when
    184  * Ndis does not give us a receive acket (the driver below us has called NdisM..IndicateReceive)
     184 * Ndis does not give us a receive packet (the driver below us has called NdisM..IndicateReceive)
    185185 * this is supported for Ndis Packet only */
    186186#define PACKET_MINE                 0x00000004
     
    212212/*
    213213 * we are using non-interlocked versions of LIST_ENTRY-related operations macros and synchronize
    214  * access to the queue and its elements by aquiring/releasing a spinlock using Ndis[Acquire,Release]Spinlock
     214 * access to the queue and its elements by acquiring/releasing a spinlock using Ndis[Acquire,Release]Spinlock
    215215 *
    216216 * we are NOT using interlocked versions of insert/remove head/tail list functions because we need to iterate though
     
    395395    NDIS_HANDLE                    hSendBufferPoolHandle;
    396396    /** open/close adapter status.
    397      * Since ndis adapter open and close requests may complete assynchronously,
     397     * Since ndis adapter open and close requests may complete asynchronously,
    398398     * we are using event mechanism to wait for open/close completion
    399399     * the status field is being set by the completion call-back */
     
    443443} SEND_RSVD, *PSEND_RSVD;
    444444
    445 /** represents the data stored in the protocol recerved field of ndis packet on NdisTransferData processing*/
     445/** represents the data stored in the protocol reserved field of ndis packet on NdisTransferData processing*/
    446446typedef struct _TRANSFERDATA_RSVD
    447447{
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltMp-win.c

    r29592 r33540  
    210210#ifdef VBOXNETFLT_WITH_IOCTL_SECURITY
    211211            /* NdisMRegisterDevice does not offers us the ability to set security attributes */
    212             /* need to do this "manualy" for the device to be accessible by the non-privileged users */
     212            /* need to do this "manually" for the device to be accessible by the non-privileged users */
    213213            Status = vboxNetFltWinSetSecurity(&DeviceLinkUnicodeString);
    214214            Assert(Status == STATUS_SUCCESS);
     
    347347
    348348        Assert(vboxNetFltWinGetOpState(&pAdapt->MPState) == kVBoxNetDevOpState_Initializing);
    349         /* the MP state should be already set to kVBoxNetDevOpState_Initializing, just a paranoya
    350          * in case NDIS for some reason calls us in some unregular way */
     349        /* the MP state should be already set to kVBoxNetDevOpState_Initializing, just a paranoia
     350         * in case NDIS for some reason calls us in some irregular way */
    351351        vboxNetFltWinSetOpState(&pAdapt->MPState, kVBoxNetDevOpState_Initializing);
    352352
     
    496496    /*
    497497     * Set the flag that the miniport below is unbinding, so the request handlers will
    498      * fail any request comming later
     498     * fail any request coming later
    499499     */
    500500    RTSpinlockAcquireNoInts(pNetFlt->hSpinlock, &Tmp);
     
    11511151
    11521152/**
    1153  * This routine does all the procssing for a request with a SetPower Oid
     1153 * This routine does all the processing for a request with a SetPower Oid
    11541154 * The miniport shoud accept  the Set Power and transition to the new state
    11551155 *
     
    16161616        case OID_GEN_MEDIA_IN_USE:
    16171617            //
    1618             // Specifiy a complete list of the media types that the NIC
     1618            // Specify a complete list of the media types that the NIC
    16191619            // currently uses.
    16201620            //
     
    16501650        case OID_GEN_MAXIMUM_FRAME_SIZE:
    16511651            //
    1652             // Specifiy the maximum network packet size, in bytes, that the
     1652            // Specify the maximum network packet size, in bytes, that the
    16531653            // NIC supports excluding the header. A NIC driver that emulates
    16541654            // another medium type for binding to a transport must ensure that
     
    18371837        case OID_GEN_CURRENT_PACKET_FILTER:
    18381838            //
    1839             // Specifiy the types of net packets such as directed, broadcast
     1839            // Specify the types of net packets such as directed, broadcast
    18401840            // multicast, for which a protocol receives indications from a
    18411841            // NIC driver. After NIC is initialized, a protocol driver
     
    18951895            // Return the MAC address the NIC is currently programmed to
    18961896            // use. Note that this address could be different from the
    1897             // permananent address as the user can override using
     1897            // permanent address as the user can override using
    18981898            // registry. Read NdisReadNetworkAddress doc for more info.
    18991899            //
     
    21292129
    21302130    //
    2131     // Program the hardware to add suport for these muticast addresses
     2131    // Program the hardware to add support for these multicast addresses
    21322132    //
    21332133
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/VBoxNetFltPt-win.c

    r32338 r33540  
    2828/** protocol handle */
    2929static NDIS_HANDLE         g_hProtHandle = NULL;
    30 /** medium array used while opening underlying adaprot
     30/** medium array used while opening underlying adaptor
    3131 * we are actually binding to NdisMedium802_3 and NdisMediumWan
    3232 * as specified in VBoxNetFlt.inf:
     
    161161 * @param DeviceName         - Device name to bind to. This is passed to NdisOpenAdapter.
    162162 * @param SystemSpecific1    - Can be passed to NdisOpenProtocolConfiguration to read per-binding information
    163  * @paran SystemSpecific2    - Unused
     163 * @param SystemSpecific2    - Unused
    164164 * @return NDIS_STATUS_PENDING    if this call is pended. In this case call NdisCompleteBindAdapter to complete.
    165165 *                                Anything else          Completes this call synchronously */
     
    297297    /*
    298298     * Set the flag that the miniport below is unbinding, so the request handlers will
    299      * fail any request comming later
     299     * fail any request coming later
    300300     */
    301301    RTSpinlockAcquireNoInts(pNetFlt->hSpinlock, &Tmp);
     
    513513    if(pSynchRequest == NdisRequest)
    514514    {
    515         /* assynchronous completion of our synch request */
     515        /* asynchronous completion of our sync request */
    516516
    517517        /*1.set the status */
     
    789789#endif
    790790        {
    791             /* if the ptk is zerro - the ptk was originated by netFlt send/receive
     791            /* if the ptk is zero - the ptk was originated by netFlt send/receive
    792792             * need to free packet buffers */
    793793            PVOID pBufToFree = SendRsvd->pBufToFree;
     
    856856
    857857        /*
    858          * pAdapt->ReceviePacketCount must be less than MAX_RECEIVE_PACKET_ARRAY_SIZE because
     858         * pAdapt->ReceivePacketCount must be less than MAX_RECEIVE_PACKET_ARRAY_SIZE because
    859859         * the thread which held the pVElan->Lock before should already indicate the packet(s)
    860          * up if pAdapt->ReceviePacketCount == MAX_RECEIVE_PACKET_ARRAY_SIZE.
     860         * up if pAdapt->ReceivePacketCount == MAX_RECEIVE_PACKET_ARRAY_SIZE.
    861861         */
    862862        pAdapt->aReceivedPackets[pAdapt->cReceivedPacketCount] = Packet;
     
    875875        /*
    876876         *  If our receive packet array is full, or the miniport below indicated the packets
    877          *  with resources, do the indicatin now.
     877         *  with resources, do the indicating now.
    878878         */
    879879
     
    905905        {
    906906            /* the tcp stack can send ACK packets right in the context of its PtReceive for this packet,
    907              * and thoose (tcp-sent) packets can be looped back again.
     907             * and those (tcp-sent) packets can be looped back again.
    908908             * If this happens there is a possibility that new RX packets are received by us
    909909             * after we do this NdisMIndicateReceivePacket and before we do a new NdisMIndicateReceivePacket
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/WinNetConfig.cpp

    r28800 r33540  
    14691469 * @param pencbp Binding path enumerator reference.
    14701470 * @param ppncbp Address the Binding path reference to be stored to
    1471  * @return S_OK on sucess, otherwise an error code.
     1471 * @return S_OK on success, otherwise an error code.
    14721472 */
    14731473VBOXNETCFGWIN_DECL(HRESULT)
     
    25912591            /* if the function failed and GetLastError() returned
    25922592             * ERROR_NO_MORE_ITEMS, then we have reached the end of the
    2593              * list.  Othewise there was something wrong with this
     2593             * list.  Otherwise there was something wrong with this
    25942594             * particular driver. */
    25952595            if (!ret)
  • trunk/src/VBox/HostDrivers/VBoxUSB/USBFilter.cpp

    r31898 r33540  
    3232
    3333/**
    34  * Initalizes an USBFILTER structure.
     34 * Initializes an USBFILTER structure.
    3535 *
    3636 * @param   pFilter     The filter to initialize.
    3737 * @param   enmType     The filter type. If not valid, the filter will not
    38  *                      be properly initalized and all other calls will fail.
     38 *                      be properly initialized and all other calls will fail.
    3939 */
    4040USBLIB_DECL(void) USBFilterInit(PUSBFILTER pFilter, USBFILTERTYPE enmType)
     
    152152
    153153/**
    154  * Reads a number from a numbereric expression.
     154 * Reads a number from a numeric expression.
    155155 *
    156156 * @returns IPRT status code.
     
    290290
    291291/**
    292  * Thorougly validates the USB Filter.
     292 * Thoroughly validates the USB Filter.
    293293 *
    294294 * @returns Appropriate VBox status code.
     
    14671467
    14681468/**
    1469  * Gets the numerica value of a field.
     1469 * Gets the numeric value of a field.
    14701470 *
    14711471 * The field must contain a number, we're not doing any conversions for you.
     
    14921492
    14931493/**
    1494  * Gets the numerica value of a field.
     1494 * Gets the numeric value of a field.
    14951495 *
    14961496 * The field must contain a number, we're not doing any conversions for you.
  • trunk/src/VBox/HostDrivers/VBoxUSB/VBoxUSBFilterMgr.cpp

    r31898 r33540  
    7272
    7373/**
    74  * VBoxUSB internal filter represenation.
     74 * VBoxUSB internal filter representation.
    7575 */
    7676typedef struct VBOXUSBFILTER
     
    117117
    118118/**
    119  * Initalizes the VBoxUSB filter manager.
     119 * Initializes the VBoxUSB filter manager.
    120120 *
    121121 * @returns IPRT status code.
     
    397397                 *
    398398                 * The code does NOT implement the case where there are two or more
    399                  * filter clients, and one of them is releaseing a device that's
     399                 * filter clients, and one of them is releasing a device that's
    400400                 * requested by some of the others. It's just too much work for a
    401401                 * situation that noone will encounter.
  • trunk/src/VBox/HostDrivers/VBoxUSB/darwin/VBoxUSB.cpp

    r31898 r33540  
    44 *
    55 * This driver is responsible for hijacking USB devices when any of the
    6  * VBoxSVC daemons requests it. It is also responsible for arbriating
     6 * VBoxSVC daemons requests it. It is also responsible for arbitrating
    77 * access to hijacked USB devices.
    88 */
     
    287287org_virtualbox_VBoxUSBDevice * volatile org_virtualbox_VBoxUSBDevice::s_pHead = NULL;
    288288
    289 /** Global instance count - just for checking prooving that everything is destroyed correctly. */
     289/** Global instance count - just for checking proving that everything is destroyed correctly. */
    290290static volatile uint32_t g_cInstances = 0;
    291291
     
    993993 * that we'll be the first driver to be started. We'll also set a couple of
    994994 * attributes so that it's not necessary to do a rematch in init to find
    995  * the appropriate filter (might not be necssary..., see todo).
     995 * the appropriate filter (might not be necessary..., see todo).
    996996 *
    997997 * @returns Service instance to be started and *pi32Score if matching.
     
    12841284     * But, when we're unloaded the provider service isn't terminated, and
    12851285     * for some funny reason we're frequently causing kernel panics when the
    1286      * device is deteached (after we're unloaded). So, for now, let's try
     1286     * device is detached (after we're unloaded). So, for now, let's try
    12871287     * re-enumerate it in stop.
    12881288     *
     
    13211321         * This message is send to the current IOService client from IOService::handleOpen(),
    13221322         * expecting it to call pProvider->close() if it agrees to the other party seizing
    1323          * the service. It is also called in IOSerivce::didTerminate() and perhaps some other
     1323         * the service. It is also called in IOService::didTerminate() and perhaps some other
    13241324         * odd places. The way to find out is to examin the pvArg, which would be including
    13251325         * kIOServiceSeize if it's the handleOpen case.
     
    17121712
    17131713    /*
    1714      * Close and relase the IOUSBInterface if didn't do that already in message().
     1714     * Close and release the IOUSBInterface if didn't do that already in message().
    17151715     */
    17161716    if (m_pInterface)
  • trunk/src/VBox/HostDrivers/VBoxUSB/os2/usbcalls.c

    r31896 r33540  
    5353
    5454#define  IOCAT_USBRES            0x000000A0  /* USB Resource device control */
    55 #define  IOCTLF_NUMDEVICE        0x00000031  /* Get Number of pluged in Devices */
     55#define  IOCTLF_NUMDEVICE        0x00000031  /* Get Number of plugged in Devices */
    5656#define  IOCTLF_GETINFO          0x00000032  /* Get Info About a device */
    5757#define  IOCTLF_AQUIREDEVICE     0x00000033
     
    123123  USHORT usProductID;
    124124  USHORT usBCDDevice;
    125   USHORT usDeviceNumber; /* Get the usDeviceNumber device in the system fi. if 2 aquire the 2nd device
    126                             0 means first not aquired device. */
     125  USHORT usDeviceNumber; /* Get the usDeviceNumber device in the system fi. if 2 acquire the 2nd device
     126                            0 means first not acquired device. */
    127127} AQUIREDEV, *PAQUIREDEV;
    128128
     
    164164typedef struct
    165165{
    166   ULONG  hSemAccess;        /* Syncronise access to the Pos values */
     166  ULONG  hSemAccess;        /* Synchronise access to the Pos values */
    167167  ULONG  hDevice;
    168168  USHORT usPosWrite;
     
    275275      {
    276276        pIter->hDevice        = 0;
    277         pIter->hSemAccess     = 0;      /* Syncronise access to the Pos values */
     277        pIter->hSemAccess     = 0;      /* Synchronise access to the Pos values */
    278278        pIter->usPosWrite     = 0;
    279279        pIter->usPosRead      = 0;
     
    672672                    pHandle, ulDataLen, &ulDataLen);
    673673
    674   /* @@ ToDO maybe gether some info about device here (endpoints etc for savety checks) */
     674  /* @@ ToDO maybe gether some info about device here (endpoints etc for safety checks) */
    675675  return rc;
    676676
     
    821821    if (BulkRequest.usDataProcessed != ulDataLen)
    822822    {
    823       /* Transfered less than we wanted? so something is wrong,
     823      /* Transferred less than we wanted? so something is wrong,
    824824         or device doesn't wish to send more, exit loop */
    825825      rc = USB_ERROR_LESSTRANSFERED;
  • trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSB-solaris.c

    r31898 r33540  
    208208    uint16_t                cIsocInUrbs;     /* Number of Isoc. IN inflight URBs */
    209209    list_t                  hIsocInLandedReqs;   /* Isoc. IN landed requests */
    210     uint16_t                cbIsocInLandedReqs;  /* Cummulative size of landed Isoc. IN requests */
     210    uint16_t                cbIsocInLandedReqs;  /* Cumulative size of landed Isoc. IN requests */
    211211    size_t                  cbMaxIsocData;   /* Maximum size of Isoc. IN landed buffer */
    212212} vboxusb_ep_t;
     
    286286    int                     fPoll;           /* Polling status flag */
    287287    RTPROCESS               Process;         /* The process (id) of the session */
    288     VBOXUSBREQ_CLIENT_INFO  ClientInfo;      /* Registeration data */
     288    VBOXUSBREQ_CLIENT_INFO  ClientInfo;      /* Registration data */
    289289    vboxusb_power_t        *pPower;          /* Power Management */
    290290} vboxusb_state_t;
     
    11261126
    11271127/**
    1128  * IOCtl processor for user to kernel and kernel to kernel communcation.
     1128 * IOCtl processor for user to kernel and kernel to kernel communication.
    11291129 *
    11301130 * @returns  VBox status code.
     
    28312831    {
    28322832        /*
    2833          * Remove from head and move to tail so that when several URBs are reaped continously we get to use
     2833         * Remove from head and move to tail so that when several URBs are reaped continuously we get to use
    28342834         * up each one free 'head'.
    28352835         */
  • trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSBHelper.cpp

    r31898 r33540  
    6565 *     -1 - no root permission
    6666 *     -2 - insufficient arguments
    67  *     -3 - abormal termination of udpate_drv (not likely)
     67 *     -3 - abnormal termination of update_drv (not likely)
    6868 *     -4 - update_drv failed (mostly trying to add already existing alias)
    6969 */
  • trunk/src/VBox/HostDrivers/VBoxUSB/solaris/VBoxUSBMon-solaris.c

    r31911 r33540  
    148148{
    149149    dev_info_t                 *pDip;                       /* Client device info. pointer */
    150     VBOXUSB_CLIENT_INFO         Info;                       /* Client registeration data. */
     150    VBOXUSB_CLIENT_INFO         Info;                       /* Client registration data. */
    151151    struct vboxusbmon_client_t *pNext;                      /* Pointer to next client */
    152152} vboxusbmon_client_t;
     
    664664
    665665/**
    666  * IOCtl processor for user to kernel and kernel to kernel communcation.
     666 * IOCtl processor for user to kernel and kernel to kernel communication.
    667667 *
    668668 * @returns  VBox status code.
  • trunk/src/VBox/HostDrivers/VBoxUSB/solaris/include/usbai_private.h

    r31896 r33540  
    178178/*
    179179 * USB CPR support
    180  *      A client driver must call this funtion in pre-suspend event handler
     180 *      A client driver must call this function in pre-suspend event handler
    181181 *      to inform the USBA framework that it can't suspend because
    182182 *      driver instance or device could not be quiesced.
     
    573573 *
    574574 * Return Values:
    575  *      USB_SUCCESS     - the registeration was successful
    576  *      USB_FAILURE     - the registeration failed
     575 *      USB_SUCCESS     - the registration was successful
     576 *      USB_FAILURE     - the registration failed
    577577 */
    578578int usb_register_dev_driver(
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Device/vboxdev.cpp

    r32431 r33540  
    11491149        // 1. completion routine does not attempt to touch the irp freed by
    11501150        //    CancelSelectSuspend routine.
    1151         // 2. CancelSelectSuspend routine doesnt wait for ever for the completion
     1151        // 2. CancelSelectSuspend routine doesn't wait for ever for the completion
    11521152        //    routine to complete!
    11531153        //
     
    13231323        // count is decremented twice (one for the system Irp and the
    13241324        // other for the device Irp. An increment here compensates for
    1325         // the sytem irp..The decrement corresponding to this increment
     1325        // the system irp..The decrement corresponding to this increment
    13261326        // is in the completion function
    13271327        //
     
    15951595        // This routine has the irp pointer.
    15961596        // It is safe to call IoCancelIrp because we know that
    1597         // the compleiton routine will not free this irp unless...
     1597        // the completion routine will not free this irp unless...
    15981598        //
    15991599        //
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Device/vboxpnp.cpp

    r31896 r33540  
    493493    // Read the first configuration descriptor
    494494    // This requires two steps:
    495     // 1. Read the fixed sized configuration desciptor (CD)
     495    // 1. Read the fixed sized configuration descriptor (CD)
    496496    // 2. Read the CD with all embedded interface and endpoint descriptors
    497497    //
     
    17811781        //
    17821782        // since its safe to surprise-remove this device, we shall
    1783         // set the SurpriseRemoveOK flag to supress any dialog to
     1783        // set the SurpriseRemoveOK flag to suppress any dialog to
    17841784        // user.
    17851785        //
     
    20302030
    20312031                //
    2032                 // the cancel routine for this IRP hasnt been called yet
     2032                // the cancel routine for this IRP hasn't been called yet
    20332033                // so queue the IRP in the cancelledIrp list and complete
    20342034                // after releasing the lock
     
    21052105Routine Description:
    21062106
    2107     This routine reads the specified reqistry value.
     2107    This routine reads the specified registry value.
    21082108
    21092109Arguments:
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Device/vboxrwr.cpp

    r31896 r33540  
    137137    This read/write is performed in stages of VBoxUSB_MAX_TRANSFER_SIZE.
    138138    once a stage of transfer is complete, then the irp is circulated again,
    139     until the requested length of tranfer is performed.
     139    until the requested length of transfer is performed.
    140140
    141141Arguments:
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Device/vboxrwr.h

    r31896 r33540  
    2727    PMDL              Mdl;
    2828    ULONG             Length;         // remaining to xfer
    29     ULONG             Numxfer;        // cumulate xfer
     29    ULONG             Numxfer;        // acumulated xfer
    3030    ULONG_PTR         VirtualAddress; // va for next segment of xfer.
    3131    PDEVICE_EXTENSION DeviceExtension;
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Device/vboxusb.cpp

    r31896 r33540  
    212212
    213213    PhysicalDeviceObject - Pointer to the device object created by the
    214                            undelying bus driver.
     214                           underlying bus driver.
    215215
    216216Return:
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Device/vboxusb.h

    r31896 r33540  
    255255    KEVENT NoIdleReqPendEvent;
    256256
    257     // default power state to power down to on self-susped
     257    // default power state to power down to on self-suspend
    258258    ULONG PowerDownLevel;
    259259
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Filter/USBFilt-win32.cpp

    r31898 r33540  
    147147
    148148    //
    149     // On the way up, pagable might become clear. Mimic the driver below us.
     149    // On the way up, pageable might become clear. Mimic the driver below us.
    150150    //
    151151    if (!(pdx->NextLowerDriver->Flags & DO_POWER_PAGABLE)) {
     
    442442    }
    443443
    444     /* depricated */
     444    /* deprecated */
    445445    case SUPUSBFLT_IOCTL_IGNORE_DEVICE:
    446446    {
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/Filter/USBFilter.c

    r31896 r33540  
    258258    //
    259259    // Let us use remove lock to keep count of IRPs so that we don't
    260     // deteach and delete our deviceobject until all pending I/Os in our
     260    // detach and delete our deviceobject until all pending I/Os in our
    261261    // devstack are completed. Remlock is required to protect us from
    262262    // various race conditions where our driver can get unloaded while we
     
    555555
    556556        //
    557         // On the way down, pagable might become set. Mimic the driver
    558         // above us. If no one is above us, just set pagable.
     557        // On the way down, pageable might become set. Mimic the driver
     558        // above us. If no one is above us, just set pageable.
    559559        //
    560560        if ((DeviceObject->AttachedDevice == NULL) ||
     
    584584#endif
    585585        //
    586         // On the way down, pagable might become set. Mimic the driver
    587         // above us. If no one is above us, just set pagable.
     586        // On the way down, pageable might become set. Mimic the driver
     587        // above us. If no one is above us, just set pageable.
    588588        //
    589589        if ((DeviceObject->AttachedDevice == NULL) ||
     
    707707
    708708    //
    709     // On the way up, pagable might become clear. Mimic the driver below us.
     709    // On the way up, pageable might become clear. Mimic the driver below us.
    710710    //
    711711    if (!(deviceExtension->NextLowerDriver->Flags & DO_POWER_PAGABLE)) {
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/USBLib-win.cpp

    r31898 r33540  
    430430
    431431//
    432 // Structures assocated with TreeView items through the lParam.  When an item
     432// Structures associated with TreeView items through the lParam.  When an item
    433433// is selected, the lParam is retrieved and the structure it which it points
    434434// is used to display information in the edit control.
     
    16681668    //     bRequest  = 0x06
    16691669    //
    1670     // We must inititialize these fields:
     1670    // We must initialize these fields:
    16711671    //     wValue    = Descriptor Type (high) and Descriptor Index (low byte)
    16721672    //     wIndex    = Zero (or Language ID for String Descriptors)
     
    17381738    //     bRequest  = 0x06
    17391739    //
    1740     // We must inititialize these fields:
     1740    // We must initialize these fields:
    17411741    //     wValue    = Descriptor Type (high) and Descriptor Index (low byte)
    17421742    //     wIndex    = Zero (or Language ID for String Descriptors)
     
    20892089    //     bRequest  = 0x06
    20902090    //
    2091     // We must inititialize these fields:
     2091    // We must initialize these fields:
    20922092    //     wValue    = Descriptor Type (high) and Descriptor Index (low byte)
    20932093    //     wIndex    = Zero (or Language ID for String Descriptors)
     
    27852785
    27862786        AssertMsg((int32_t)numdev.cUSBDevices >= 0, ("%d", numdev.cUSBDevices));
    2787         if ((int32_t)numdev.cUSBDevices <= 0) /** @todo why does this return -1. Happend here when detaching a captured device which hadn't yet been opened by a VM process. */
     2787        if ((int32_t)numdev.cUSBDevices <= 0) /** @todo why does this return -1. Happened here when detaching a captured device which hadn't yet been opened by a VM process. */
    27882788            break;
    27892789
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