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

📄 comemldv.h

📁 The Lite Evaluation/Demonstration Kit is intended to illustrate use of the AN3042. The AN3042 is c
💻 H
字号:
//////////////////////////////////////////////////////////////////////
//
// File: comemLDv.h 
//
// $Archive: /ComemL/Host/ComemLif/comemLDv.h $
// Copyright (c) 1997 Anchor Chips, Inc.  May not be reproduced without
// permission.  See the license agreement for more details.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_COMEMDEVICE_H__19BEB661_4C3D_11D1_B9FB_00A024BBE6B5__INCLUDED_)
#define AFX_COMEMDEVICE_H__19BEB661_4C3D_11D1_B9FB_00A024BBE6B5__INCLUDED_
// Error code return value.  Positive values and 0 are reserved for "good"
// return codes.
enum errcodeE {NO_MAPPER_ERROR=0, 
   GENERIC_ERROR = -1000, 
   ERROR_FIXED,               // Error in value detected and fixed
   ERROR_NO_CHANGE,           // Error in value detected and not fixed
   ERROR_EEPROM_TIMEOUT,      // Timeout on EEPROM operation
   ERROR_EEPROM_MISSED_ACK,   // No ACK received from EEPROM
   ERROR_INV_FILE,			   // invalid file type
   ERROR_BUFF_OVERRUN,		   // no longer used, just return the number read
   ERROR_MISSING_END_RECORD,  // Missing end record
   ERROR_BAD_CHECKSUM,        // Bad checksum in HEX record
   ERROR_CANT_OPEN_FILE,      // Unable to open file
//   ERROR_NO_DRIVER,			  // Driver not installed
   };
#include "comemLif.h" // TPM Modified for CoMem Lite

errcodeE readEepromL(DWORD addr, unsigned char *blockptr, DWORD size, DWORD comemID); 
errcodeE writeEepromL(DWORD addr, unsigned char *blockptr, DWORD size, DWORD comemID); 

//////////////////////////////////////////////////////////////////////
// class CComemDevice  
//
// Function:
//		Represents the co-memory device to the program
//		Performs checking on i/o to the device.
// 
//////////////////////////////////////////////////////////////////////
class CComemDevice  
{
public:
	CComemDevice(DWORD comemID);
	virtual ~CComemDevice();

   PCI_CONFIG_HEADER_0 pciRegs;
   DWORD linBAR[COMEM_MAX_BARS];
//   DWORD nfcmd;
   DWORD lctl;
   DWORD lint;
   DWORD lhdata;
   DWORD hctl;
   DWORD hint;
   DWORD hldata;
//   DWORD hmbase;
//   DWORD hmsize;
//   DWORD pfaddr;

   // Internal properties
//    blockT mapdata[MAX_MAP_ENTRIES]; //TPM Modified for CoMem Lite
//	DWORD	nailBootPage;				// Page to nail on startup.  -1 = no nail
//	DWORD	endianFlag;
	DWORD	venID, devID;
	DWORD	physPage;
	DWORD	linPage;
	DWORD	comemID;

};

extern CComemDevice *comemDevL[COMEM_MAX_DEVICES];

#endif // !defined(AFX_COMEMDEVICE_H__19BEB661_4C3D_11D1_B9FB_00A024BBE6B5__INCLUDED_)

⌨️ 快捷键说明

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