ITek_util.h
资源名称:mac.zip [点击查看]
上传用户:cnfair
上传日期:2007-01-07
资源大小:32k
文件大小:1k
源码类别:
驱动编程
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////
- // any utility routines header file
- #ifndef _ITEK_UTIL_H_
- #define _ITEK_UTIL_H_
- #ifdef _cplusplus
- extern "C" {
- #endif
- //NdisAllocateSharedMemory() doesn't work well in Windows95
- //alignmask values
- #define PHYSICAL_ALIGN_4 (0x00000000)
- #define PHYSICAL_ALIGN_8 (0x00000001)
- #define PHYSICAL_ALIGN_16 (0x00000003)
- #define PHYSICAL_ALIGN_32 (0x00000007)
- #define PHYSICAL_ALIGN_64 (0x0000000F)
- #define PHYSICAL_ALIGN_128 (0x0000001F)
- VOID NDIS_API
- ITekAllocateSharedMemory(
- IN NDIS_HANDLE NdisAdapterHandle,
- IN ULONG Length,
- IN ULONG AlignMask,
- OUT PVOID *VirtualAddress,
- OUT PNDIS_PHYSICAL_ADDRESS PhysicalAddress
- );
- VOID NDIS_API
- ITekFreeSharedMemory(
- IN NDIS_HANDLE NdisAdapterHandle,
- IN PVOID VirtualAddress
- );
- VOID NDIS_API
- ITekAllocateMemory(
- OUT PVOID *VirtualMemory,
- IN ULONG nBytes
- );
- VOID NDIS_API
- ITekFreeMemory(
- IN PVOID VirtualMemory
- );
- #ifdef ITEK_TIMER
- VOID NDIS_API
- ITekTimerFunction(
- IN PVOID SystemSpecific1,
- IN PVOID FunctionContext,
- IN PVOID SystemSpecific2,
- IN PVOID SystemSpecific3
- );
- #endif //ITEK_TIMER
- #ifdef _cplusplus
- }
- #endif
- #endif