// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__A8C192D0_F2C7_4C75_93BA_E170CF1AC2F9__INCLUDED_)
#define AFX_STDAFX_H__A8C192D0_F2C7_4C75_93BA_E170CF1AC2F9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


// Insert your headers here
#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

#include <windows.h>
#include <windef.h>
#include <ndis.h>

// TODO: reference additional headers your program requires here

//;Specifies the number of microseconds to delay. BY VOID NdisMSleep(ULONG MicrosecondsToSleep);
#define uSec		1

#define uSec300		(300*uSec)			//= .3ms
#define uSec500		(500*uSec)			//= .5ms

#define mSec    	(1000*uSec)
#define mSec1   	(1*mSec)			//= 1ms
#define mSec2   	(2*mSec)			//= 2ms
#define mSec5   	(5*mSec)			//= 5ms
#define mSec10   	(10*mSec)			//= 10ms
#define mSec20   	(20*mSec)			//= 20ms
#define mSec25   	(25*mSec)			//= 25ms

#define uSec100		(100*uSec)
#define mSec100		(100*mSec)			//= 100ms

#define mSec500		(500*mSec)			//= 500ms

#define uSec1000	(1000*uSec)			//= 1ms
#define mSec1000	(1000*mSec)			//= 1sec

#define mSec2000	(2000*mSec)			//= 2sec
#define Sec2		(2000*mSec)			//= 2sec

typedef TCHAR TRegName_ISA[15];
extern TRegName_ISA REGNameTab[];
#define RN_0X1F		0
#define RN_NCR		1
#define RN_GPCR		2
#define RN_GPR		3
#define RN_NSR		4
#define RN_IMR		5
#define RN_ISR		6
#define RN_RXCR		7
#define RN_CHIPREV	8
#define RN_0X43		9

#define RN_RSV1		10
#define RN_RSV2		11
#define RN_RSV3		12
#define RN_RSV4		13
#define RN_RSV5		14


#include "DmTypes.h"
#include "Davicom.h"

//==============================================================================
//#define DAVICOM_NIC_PACKAGE_VERSION		_T("1.0.0.3")		// Major.Minor.Release.Built
//#define DAVICOM_NIC_PACKAGE_RELEASE		_T("2008/01/17")	// YYYY/MM/DD
//==============================================================================

#define	IMPL_DEVICE_ISR			//for ISR DM9ISA's Service

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__A8C192D0_F2C7_4C75_93BA_E170CF1AC2F9__INCLUDED_)
