pciwdmdv.h
来自「是一个PCI板卡的WDM驱动程序」· C头文件 代码 · 共 51 行
H
51 行
// pciwdmdv.h - include file for device class of PCIWDM driver
//=============================================================================
//
// Compuware Corporation
// NuMega Lab
// 9 Townsend West
// Nashua, NH 03060 USA
//
// Copyright (c) 1998 Compuware Corporation. All Rights Reserved.
// Unpublished - rights reserved under the Copyright laws of the
// United States.
//
//=============================================================================
class PciwdmDevice : public KPnpDevice
{
public:
PciwdmDevice(PDEVICE_OBJECT PDO, ULONG instance);
DEVMEMBER_DISPATCHERS
virtual NTSTATUS DefaultPnp(KIrp I);
virtual NTSTATUS DefaultPower(KIrp I);
virtual NTSTATUS OnStartDevice(KIrp I);
virtual NTSTATUS OnStopDevice(KIrp I);
MEMBER_ISR (PciwdmDevice, TheIsr)
MEMBER_DPC (PciwdmDevice, TheDpc)
#ifdef __COMMENT_ONLY
// The following member functions are actually defined by the
// a DEVMEMBER_XXX macro (such as DEVMEMBER_DISPATCHERS).
// The macro __COMMENT_ONLY never gets defined. These comment-only
// definitions simply allow easy navigation to the functions within
// the Developer Studio using the class browser.
BOOLEAN TheIsr(void); // COMMENT_ONLY
VOID TheDpc(PVOID Arg1, PVOID Arg2); // COMMENT_ONLY
virtual NTSTATUS Create(KIrp I); // COMMENT_ONLY
virtual NTSTATUS Close(KIrp I); // COMMENT_ONLY
virtual NTSTATUS DeviceControl(KIrp I); // COMMENT_ONLY
#endif
// The device has one interrupt and one memory range (Base address register)
KPnpLowerDevice m_Pdo; // The Physical Device Object
KInterrupt m_Interrupt; // The device's interrupt
KDeferredCall m_Dpc; // DPC for interrupt
KMemoryRange m_MemRange; // Memory mapped region on device
KPciConfiguration m_Pci; // Config space interface object
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?