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

📄 sicommon_amcc_types.h

📁 The PCI Local bus concept was developed to break the PC data I/O bottleneck and clearly opens the d
💻 H
字号:
///////////////////////////////////////////////////////////////////////////////
//	sicommon_amcc_types.h
//
//	Description:
//		Types used by SI AMCC DDK.
//
//	Revision History:
//		2002-08-08: mik
//			Created for windows.
//		2002-09-25: mik
//			Added Linux definitions.

#ifndef _SICOMMON_AMCC_TYPES_H
#define _SICOMMON_AMCC_TYPES_H

///////////////////////////////////////////////////////////////////////////////
// Windows defines. These are only valid for WIN32 Windows
#ifdef WIN32

#include <windows.h>

// types used by SI must come after OS specific defines.
#include "../../common_ddk/sitypes.h"		// types used by SI

// These are global variable organized into structure. These are needed to
//	interact with the driver.
typedef struct
{
	HANDLE		hDevice, 
				// hDriverCallbackEvent == hCallbackEvent, except for W95
				hCallbackEvent, hCallbackEventDriver,
				hCallbackThread, 
				hEventBMRead,	hEventBMWrite, 
				hEventMisc;

	OVERLAPPED	overlappedBMRead,	*pOverlappedBMRead, 
				overlappedBMWrite,	*pOverlappedBMWrite,	
				overlappedMisc,		*pOverlappedMisc;
				
} AMCCDevice, *PAMCCDevice;

#endif

///////////////////////////////////////////////////////////////////////////////
// Linux defines.
#ifdef LINUX

#include <signal.h>

// types used by SI must come after OS specific defines.
#include "../../common_ddk/sitypes.h"		// types used by SI

#ifndef NULL
#define NULL	0
#endif

typedef struct
{
	int		hDevice;
	struct 	sigaction callback;
	int		wait_event;
} AMCCDevice, *PAMCCDevice;

#endif

///////////////////////////////////////////////////////////////////////////////

#endif //_SICOMMON_AMCC_TYPES_H

⌨️ 快捷键说明

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