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

📄 pcibridge.h

📁 用C语言设计的EPSON LCD控制器S1D13700驱动。
💻 H
字号:
//===========================================================================
//	PCIBRIDGE.H
// (Tabs set to every 4)
//---------------------------------------------------------------------------
//  Copyright (c) 2002, 2003 Epson Research and Development, Inc.
//  All Rights Reserved.
//===========================================================================


#ifndef _PCIBRIDGE_H_
#define _PCIBRIDGE_H_

#define PCIB_ERR_NONE					0		// No error
#define PCIE_ERR_ADAPTER_NOT_FOUND		1		// PCI adapter not found
#define PCIB_ERR_DRIVER_NOT_FOUND		2		// PCI driver not found
#define PCIB_ERR_IRQ_FAILURE			3		// PCI IRQ failure
#define PCIB_ERR_ADAPTER_NOT_MAPPED		4		// PCI adapter not mapped
#define PCIB_ERR_UNKNOWN_ERROR			5		// Unknown error - MUST BE LAST!!!


// Custom Datatypes used.
typedef unsigned char  UInt8;
typedef unsigned short UInt16;
typedef unsigned long  UInt32;
typedef void (*PISR_CALLBACK)(void);

typedef int		Boolean;
#ifndef TRUE
#define TRUE	1
#endif
#ifndef FALSE
#define FALSE	0
#endif


// Allow both standard C and C++ linkages.
#ifdef __cplusplus
   extern "C" {
#endif


//---------------------------------------------------------------------------
//  FUNCTION: pcib()
//
//  DESCRIPTION:
//		n/a
//
//  PARAMETERS:
//		n/a
//
//  RETURNS:
//		n/a
//---------------------------------------------------------------------------
Boolean pcibMapAddress( UInt32 PhysicalAddr, UInt32 *pVirtualAddr, UInt32 *pBlockSize );



//---------------------------------------------------------------------------
//  FUNCTION: pcib()
//
//  DESCRIPTION:
//		n/a
//
//  PARAMETERS:
//		n/a
//
//  RETURNS:
//		n/a
//---------------------------------------------------------------------------
void pcibUnmapAddress( void );



//---------------------------------------------------------------------------
//  FUNCTION: pcib()
//
//  DESCRIPTION:
//		n/a
//
//  PARAMETERS:
//		n/a
//
//  RETURNS:
//		n/a
//---------------------------------------------------------------------------
Boolean pcibAddInterruptRegister( UInt32 EnableRegOffset, UInt32 StatusRegOffset, UInt32 BitMask, UInt32 AccessSize, Boolean fRawStatus );



//---------------------------------------------------------------------------
//  FUNCTION: pcib()
//
//  DESCRIPTION:
//		n/a
//
//  PARAMETERS:
//		n/a
//
//  RETURNS:
//		n/a
//---------------------------------------------------------------------------
Boolean pcibHookInterrupt( PISR_CALLBACK pISRCallback );



//---------------------------------------------------------------------------
//  FUNCTION: pcib()
//
//  DESCRIPTION:
//		n/a
//
//  PARAMETERS:
//		n/a
//
//  RETURNS:
//		n/a
//---------------------------------------------------------------------------
int pcibGetLastError( void );



//---------------------------------------------------------------------------
//  FUNCTION: pcib()
//
//  DESCRIPTION:
//		n/a
//
//  PARAMETERS:
//		n/a
//
//  RETURNS:
//		n/a
//---------------------------------------------------------------------------
const char * pcibGetLastErrorText( void );


#ifdef __cplusplus
   }
#endif


#endif	// _PCIBRIDGE_H_

⌨️ 快捷键说明

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