Jungo WinDriver  
Official Documentation
kp_pci.c File Reference
#include "kpstdlib.h"
#include "wd_kp.h"
#include "pci_regs.h"
#include "../pci_lib.h"

Go to the source code of this file.

Macros

#define PTR32   UINT32
 
#define DRIVER_VER_STR   "My Driver V1.00"
 
#define USE_MULTI_TRANSFER
 

Functions

BOOL __cdecl KP_PCI_Open (KP_OPEN_CALL *kpOpenCall, HANDLE hWD, PVOID pOpenData, PVOID *ppDrvContext)
 Kernel PlugIn open function.
 
BOOL __cdecl KP_PCI_Open_32_64 (KP_OPEN_CALL *kpOpenCall, HANDLE hWD, PVOID pOpenData, PVOID *ppDrvContext)
 KP_PCI_Open_32_64 is called when WD_KernelPlugInOpen() is called from a 32-bit user mode application to open a handle to a 64-bit Kernel PlugIn.
 
void __cdecl KP_PCI_Close (PVOID pDrvContext)
 Called when WD_KernelPlugInClose() (see the WinDriver PCI Low-Level API Reference) is called from user mode.
 
void __cdecl KP_PCI_Call (PVOID pDrvContext, WD_KERNEL_PLUGIN_CALL *kpCall)
 Called when the user-mode application calls WDC_CallKerPlug() (or the low-level WD_KernelPlugInCall() function — see the WinDriver PCI Low-Level API Reference).
 
BOOL __cdecl KP_PCI_IntEnable (PVOID pDrvContext, WD_KERNEL_PLUGIN_CALL *kpCall, PVOID *ppIntContext)
 Called when WDC_IntEnable() / WD_IntEnable() is called from the user mode with a Kernel PlugIn handle.
 
void __cdecl KP_PCI_IntDisable (PVOID pIntContext)
 Called when WDC_IntDisable() / WD_IntDisable() is called from the user mode for interrupts that were enabled in the Kernel PlugIn.
 
BOOL __cdecl KP_PCI_IntAtIrql (PVOID pIntContext, BOOL *pfIsMyInterrupt)
 High-priority legacy interrupt handler routine, which is run at high interrupt request level.
 
DWORD __cdecl KP_PCI_IntAtDpc (PVOID pIntContext, DWORD dwCount)
 Deferred processing legacy interrupt handler routine.
 
BOOL __cdecl KP_PCI_IntAtIrqlMSI (PVOID pIntContext, ULONG dwLastMessage, DWORD dwReserved)
 High-priority Message-Signaled Interrupts (MSI) / Extended Message-Signaled Interrupts (MSI-X) handler routine, which is run at high interrupt request level.
 
DWORD __cdecl KP_PCI_IntAtDpcMSI (PVOID pIntContext, DWORD dwCount, ULONG dwLastMessage, DWORD dwReserved)
 Deferred processing Message-Signaled Interrupts (MSI) / Extended Message-Signaled Interrupts (MSI-X) handler routine.
 
BOOL __cdecl KP_PCI_Event (PVOID pDrvContext, WD_EVENT *wd_event)
 Called when a Plug-and-Play or power management event for the device is received, provided the user-mode application first called WDC_EventRegister() with fUseKP = TRUE (or the low-level EventRegister() function with a Kernel PlugIn handle — see WinDriver PCI Low-Level API Reference)
 
BOOL __cdecl KP_Init (KP_INIT *kpInit)
 KP_Init is called when the Kernel PlugIn driver is loaded.