⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ncufnpdd.h

📁 CE下 NET2778 NDIS Drivers, 在每个平台上都可以使用
💻 H
字号:
/******************************************************************************

Copyright (C) 2003, 2004, NetChip Technology, Inc. (http://www.netchip.com)

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

NcUfnPdd.h

Defines the driver context for the PDD and the System level (System.c).

******************************************************************************/

///////////////////////////////////////////////////////////////////////////////
#ifndef NCUFNPDD_H
#define NCUFNPDD_H

///////////////////////////////////////////////////////////////////////////////
typedef struct NCUFN_EP_
{
    CRITICAL_SECTION        cs;				// Critical section to lock down endpoint
} NCUFN_EP, *PNCUFN_EP;

///////////////////////////////////////////////////////////////////////////////
typedef struct _CEUFNPDD_CONTEXT
{
	HKEY				hKey;				// Key Handle to our registry settings
    HANDLE              hInterruptThread;   // Handle to the internal Interrupt Thread
    HANDLE              hInterruptEvent;    // Handle to the Interrupt Event
	HANDLE				hKillEvent;			// Handle used to stop the InterruptThread
    PUCHAR              NcAddress;          // Pointer to the memory mapped NetChip Base Address
    PUCHAR              PlxAddress;         // Pointer to the memory mapped PLX Base Address
    DWORD               SysIntr;            // CE Interrupt Number
    PVOID               pvMddContext;       // Pointer to MDD Context
	PFN_UFN_MDD_NOTIFY  pfnNotify;			// Pointer to MDD Notify function
    BOOL                SpeedReported;      // Keeps track of whether we've sent the UFN_MSG_DEVICE_SPEED message
	BOOL				ConnectionReported; // Keeps track of whether we've told the MDD that the device is connected
	CRITICAL_SECTION	csInterrupt;		// Prevents client from interfering with the Interrupt thread
    PNC_DEVICE_OBJECT   pNcDeviceObject;    // Pointer to the NetChip Device Object, allocated in UfnPdd_Init()
    PNC_ENDPOINT_OBJECT pEndpointObjects[NCAPI_MAX_ENDPOINT_COUNT]; // Array of pointers to Endpoint Objects
    PSTransfer          pUfnPSTransfers[NCAPI_MAX_ENDPOINT_COUNT]; // Array of Pointers to UFN PSTransfer 
	NCUFN_EP			NcUfnEp[NCAPI_MAX_ENDPOINT_COUNT]; // Array of NetChip specific Endpoint info
} CEUFNPDD_CONTEXT, *PCEUFNPDD_CONTEXT;

///////////////////////////////////////////////////////////////////////////////
//  End of file
///////////////////////////////////////////////////////////////////////////////
#endif // #ifndef NCUFNPDD_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -