internal-r0drv-nt.h revision 6f67aa0a6cb53538f437727dbb6f33c5a85a5636
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync/* $Id$ */
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync/** @file
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * IPRT - Internal Header for the NT Ring-0 Driver Code.
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync */
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync/*
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * Copyright (C) 2008 Sun Microsystems, Inc.
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync *
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * available from http://www.virtualbox.org. This file is free software;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * you can redistribute it and/or modify it under the terms of the GNU
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * General Public License (GPL) as published by the Free Software
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync *
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * The contents of this file may alternatively be used under the terms
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * of the Common Development and Distribution License Version 1.0
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * VirtualBox OSE distribution, in which case the provisions of the
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * CDDL are applicable instead of those of the GPL.
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync *
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * You may elect to license modified versions of this file under the
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * terms and conditions of either the GPL or the CDDL or both.
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync *
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync * additional information or have any questions.
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync */
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync#ifndef ___internal_r0drv_h
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync#define ___internal_r0drv_h
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync#include <iprt/cpuset.h>
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncRT_C_DECLS_BEGIN
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync/*******************************************************************************
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync* Structures and Typedefs *
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync*******************************************************************************/
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsynctypedef ULONG (__stdcall *PFNMYEXSETTIMERRESOLUTION)(ULONG, BOOLEAN);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsynctypedef VOID (__stdcall *PFNMYKEFLUSHQUEUEDDPCS)(VOID);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsynctypedef VOID (__stdcall *PFNHALREQUESTIPI)(KAFFINITY TargetSet);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsynctypedef VOID (__stdcall *PFNHALSENDSOFTWAREINTERRUPT)(ULONG ProcessorNumber, KIRQL Irql);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsynctypedef int (__stdcall *PFNRTSENDIPI)(RTCPUID idCpu);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsynctypedef ULONG_PTR (__stdcall *PFNRTKEIPIGENERICCALL)(PKIPI_BROADCAST_WORKER BroadcastFunction, ULONG_PTR Context);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync/*******************************************************************************
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync* Global Variables *
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync*******************************************************************************/
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern RTCPUSET g_rtMpNtCpuSet;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern PFNMYEXSETTIMERRESOLUTION g_pfnrtNtExSetTimerResolution;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern PFNMYKEFLUSHQUEUEDDPCS g_pfnrtNtKeFlushQueuedDpcs;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern PFNHALREQUESTIPI g_pfnrtNtHalRequestIpi;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern PFNHALSENDSOFTWAREINTERRUPT g_pfnrtNtHalSendSoftwareInterrupt;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern PFNRTSENDIPI g_pfnrtSendIpi;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern PFNRTKEIPIGENERICCALL g_pfnrtKeIpiGenericCall;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern uint32_t g_offrtNtPbQuantumEnd;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern uint32_t g_cbrtNtPbQuantumEnd;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncextern uint32_t g_offrtNtPbDpcQueueDepth;
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncint rtMpSendIpiVista(RTCPUID idCpu);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncint rtMpSendIpiWin7(RTCPUID idCpu);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncint rtMpSendIpiDummy(RTCPUID idCpu);
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsyncRT_C_DECLS_END
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync#endif
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync
b0ab7e3ff45cca3c9755432dde464562cdde61f0vboxsync