VirtualBox

Ignore:
Timestamp:
Dec 17, 2009 12:58:03 PM (15 years ago)
Author:
vboxsync
Message:

SUPDrv: some cleanup.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrv.c

    r25459 r25460  
    112112static DECLCALLBACK(void) supdrvGipAsyncTimer(PRTTIMER pTimer, void *pvUser, uint64_t iTick);
    113113static DECLCALLBACK(void) supdrvGipMpEvent(RTMPEVENT enmEvent, RTCPUID idCpu, void *pvUser);
     114static void     supdrvGipInit(PSUPDRVDEVEXT pDevExt, PSUPGLOBALINFOPAGE pGip, RTHCPHYS HCPhys, uint64_t u64NanoTS, unsigned uUpdateHz);
     115static void     supdrvGipTerm(PSUPGLOBALINFOPAGE pGip);
     116static void     supdrvGipUpdate(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, uint64_t u64TSC, uint64_t iTick);
     117static void     supdrvGipUpdatePerCpu(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, uint64_t u64TSC, unsigned iCpu, uint64_t iTick);
    114118
    115119
     
    45894593 * Initializes the GIP data.
    45904594 *
    4591  * @returns IPRT status code.
    45924595 * @param   pDevExt     Pointer to the device instance data.
    45934596 * @param   pGip        Pointer to the read-write kernel mapping of the GIP.
     
    45964599 * @param   uUpdateHz   The update freqence.
    45974600 */
    4598 int VBOXCALL supdrvGipInit(PSUPDRVDEVEXT pDevExt, PSUPGLOBALINFOPAGE pGip, RTHCPHYS HCPhys, uint64_t u64NanoTS, unsigned uUpdateHz)
     4601static void supdrvGipInit(PSUPDRVDEVEXT pDevExt, PSUPGLOBALINFOPAGE pGip, RTHCPHYS HCPhys, uint64_t u64NanoTS, unsigned uUpdateHz)
    45994602{
    46004603    unsigned i;
     
    46464649    pDevExt->HCPhysGip = HCPhys;
    46474650    pDevExt->cGipUsers = 0;
    4648 
    4649     return VINF_SUCCESS;
    46504651}
    46514652
     
    47534754 * @param   pGip        Pointer to the read-write kernel mapping of the GIP.
    47544755 */
    4755 void VBOXCALL supdrvGipTerm(PSUPGLOBALINFOPAGE pGip)
     4756static void supdrvGipTerm(PSUPGLOBALINFOPAGE pGip)
    47564757{
    47574758    unsigned i;
     
    48874888 * @param   iTick           The current timer tick.
    48884889 */
    4889 void VBOXCALL supdrvGipUpdate(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, uint64_t u64TSC, uint64_t iTick)
     4890static void supdrvGipUpdate(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, uint64_t u64TSC, uint64_t iTick)
    48904891{
    48914892    /*
     
    49564957 * @param   iTick           The current timer tick.
    49574958 */
    4958 void VBOXCALL supdrvGipUpdatePerCpu(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, uint64_t u64TSC, unsigned iCpu, uint64_t iTick)
     4959static void supdrvGipUpdatePerCpu(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, uint64_t u64TSC, unsigned iCpu, uint64_t iTick)
    49594960{
    49604961    PSUPGIPCPU  pGipCpu;
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r25459 r25460  
    714714void VBOXCALL   supdrvCloseSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
    715715void VBOXCALL   supdrvCleanupSession(PSUPDRVDEVEXT pDevExt, PSUPDRVSESSION pSession);
    716 int  VBOXCALL   supdrvGipInit(PSUPDRVDEVEXT pDevExt, PSUPGLOBALINFOPAGE pGip, RTHCPHYS HCPhys, uint64_t u64NanoTS, unsigned uUpdateHz);
    717 void VBOXCALL   supdrvGipTerm(PSUPGLOBALINFOPAGE pGip);
    718 void VBOXCALL   supdrvGipUpdate(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, uint64_t u64TSC, uint64_t iTick);
    719 void VBOXCALL   supdrvGipUpdatePerCpu(PSUPGLOBALINFOPAGE pGip, uint64_t u64NanoTS, uint64_t u64TSC, unsigned iCpu, uint64_t iTick);
    720716bool VBOXCALL   supdrvDetermineAsyncTsc(uint64_t *pu64DiffCores);
    721717
Note: See TracChangeset for help on using the changeset viewer.

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