samplib.h
来自「The PCI Local bus concept was developed 」· C头文件 代码 · 共 55 行
H
55 行
///////////////////////////////////////////////////////////////////////////////
// sisamplib.h
//
// Description:
// Common files for sample DLL program for PLX C6711
//
// Revision History:
// 2002-03-07: mik
// Created.
// 2004-03-15: RES (Stermon)
// Modified for NVRAM Only
///////////////////////////////////////////////////////////////////////////////
#include "../../../common/sicommon_amcc.h"
///////////////////////////////////////////////////////////////////////////////
#ifdef WIN32
#define DLLReturnType __declspec(dllexport) INT32 WINAPI
#endif
#ifdef LINUX
#define DLLReturnType INT32
#endif
///////////////////////////////////////////////////////////////////////////////
// All these are SO exported functions. This means these function names will
// be used by external program. If these functions are C++, then their names
// will be mangled by the compiler. C++ mangles the name by appending type
// and other info in the function names during compile/link. Since we have
// no complete control over C++ function name mangling, we cast these
// exported functions to be C functions to preserve their names.
extern "C"
{
bool SI_DLL_Entry();
int SI_DLL_Exit();
DLLReturnType
Sample_ReadConfigurationSpace
(
INT32 board, UINT32 count, UINT32 offset, UINT32 *data
);
DLLReturnType
Sample_WriteNVRAM( INT32 board, UINT32 addrNVRam, UINT32 *data );
DLLReturnType
Sample_ReadNVRAM( INT32 board, UINT32 addrNVRam, UINT32 *data );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?