sicommon_amcc.h

来自「The PCI Local bus concept was developed 」· C头文件 代码 · 共 56 行

H
56
字号
///////////////////////////////////////////////////////////////////////////////
//	sicommon_amcc.h
//
//	Description:
//		Common hardware access routines for AMCC. These calls are AMCC specific.
//
//	Revision History:
//		2002-03-04: AV & LEY
//			Created.
//		2002-07-04: mik
//			Renamed SI_OpenDriver to SI_AMCC_OpenDriver. (conflicts w/ PLX)
//		2002-10-07: mik
//			Passthrough read/write parameter order is now 
//				region, count, offset, data.

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

#include "sicommon_amcc_types.h"

#include "amccdef.h"						// AMCC register definitions
#include "../../common_ddk/sierrors.h"		// error codes


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

// Begin: Common to all AMCC devices

INT32 SI_AMCC_OpenDriver( UINT32 board, PAMCCDevice pAMCCDev );

INT32 SI_AMCC_CloseDriver( PAMCCDevice pAMCCDev );

INT32 SI_AMCC_ReleaseDirectAccessAddr
(
	PAMCCDevice pAMCCDev
);

INT32 SI_AMCC_ReadPCI_ConfSpace
(
	PAMCCDevice pAMCCDev,
	UINT32 count, UINT32 offset, UINT32 *data	
);

INT32 SI_AMCC_ReadPCI_NVWord
(
	PAMCCDevice pAMCCDev,
	UINT32 count, UINT32 addrNVRam, UINT32 *data
);

INT32 SI_AMCC_WritePCI_NVWord
(
	PAMCCDevice pAMCCDev,
	UINT32 count, UINT32 addrNVRam, UINT32 *data	
);


⌨️ 快捷键说明

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