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

📄 procdef.h

📁 Windows CE 6.0 BSP for VOIP sample phone. Intel PXA270 platform.
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES OR INDEMNITIES.
//
 /** @file procdef.h
 *   @This file contains the function prototypes for NDIS miniport event handlers
 *   Notes:
 *		    (1) The following NDIS_MINIPORT_CHARACTERISTICS event handlers are 
 *			    declared as inline functions.
 *				1. MrvDrvDisableInterrupt() is declared for DisableInterruptHandler
 *				2. MrvDrvEnableInterrupt() is decalred for EnableInterruptHandler
 *
 *		    (2) The following NDIS_MINIPORT_CHARACTERISTICS event handlers are not
 *			    implemented.
 *				1. ReconfigureHandler
 *				2. SendHandler
 *				3. TransferDataHandler
 *  Copyright (c) Marvell Semiconductor, Inc. 
 */

#ifndef _PROCDEF_H_
#define _PROCDEF_H_


//===============================================================================
//          PUBLIC PROCEDURES
//===============================================================================

NTSTATUS
DriverEntry(
	IN PDRIVER_OBJECT DriverObject,
	IN PUNICODE_STRING RegistryPath
	);

BOOLEAN
MrvDrvCheckForHang(
	IN NDIS_HANDLE MiniportAdapterContext
	);

VOID
MrvDrvHalt(
	IN  NDIS_HANDLE MiniportAdapterContext
	);

NDIS_STATUS
MrvDrvInitialize(
	OUT PNDIS_STATUS OpenErrorStatus,
	OUT PUINT SelectedMediumIndex,
	IN PNDIS_MEDIUM MediumArray,
	IN UINT MediumArraySize,
	IN NDIS_HANDLE MiniportAdapterHandle,
	IN NDIS_HANDLE WrapperConfigurationContext
	);

VOID
MrvDrvReturnPacket(
    IN NDIS_HANDLE  MiniportAdapterContext,
    IN PNDIS_PACKET Packet);

NDIS_STATUS
MrvDrvReset(
	OUT PBOOLEAN AddressingReset,
	IN  NDIS_HANDLE MiniportAdapterContext
	);

VOID
MrvDrvAllocateComplete(NDIS_HANDLE MiniportAdapterContext,
	IN PVOID VirtualAddress,
	IN PNDIS_PHYSICAL_ADDRESS PhysicalAddress,
	IN ULONG Length,
	IN PVOID Context
	);

VOID
MrvDrvIsr(
	OUT PBOOLEAN InterruptRecognized,
	OUT PBOOLEAN QueueMiniportHandleInterrupt,
	IN NDIS_HANDLE MiniportAdapterContext
	);

VOID
MrvDrvHandleInterrupt(
	IN NDIS_HANDLE MiniportAdapterContext
	);

VOID
MrvDrvDisableInterrupt(
	IN NDIS_HANDLE MiniportAdapterContext
	);

VOID
MrvDrvEnableInterrupt(
	IN NDIS_HANDLE MiniportAdapterContext
	);

NDIS_STATUS
MrvDrvSetInformation(
	IN NDIS_HANDLE MiniportAdapterContext,
	IN NDIS_OID Oid,
	IN PVOID InformationBuffer,
	IN ULONG InformationBufferLength,
	OUT PULONG BytesRead,
	OUT PULONG BytesNeeded
	);

NDIS_STATUS
MrvDrvQueryInformation(
	IN NDIS_HANDLE MiniportAdapterContext,
	IN NDIS_OID Oid,
	IN PVOID InformationBuffer,
	IN ULONG InformationBufferLength,
	OUT PULONG BytesWritten,
	OUT PULONG BytesNeeded
	);

NDIS_STATUS
MrvDrvTransferData(
    	OUT PNDIS_PACKET pPacket,
    	OUT PUINT pBytesTransferred,
    	IN NDIS_HANDLE hMiniportAdapterContext,
    	IN NDIS_HANDLE hMiniportReceiveContext,
    	IN UINT ulByteOffset,
    	IN UINT ulBytesToTransfer);

NDIS_STATUS
MrvDrvSend(
    	IN NDIS_HANDLE MiniportAdapterContext,
    	IN PNDIS_PACKET Packet,
    	IN UINT Flags); 
    
VOID    
MrvDrvTxPktTimerFunction(
	IN PVOID SystemSpecific1,
	IN NDIS_HANDLE MiniportAdapterContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	); 

VOID MrvDrvCheckTxQueueTimerFunction(
	IN PVOID SystemSpecific1,
	IN PVOID FunctionContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);


VOID MrvDrvCheckTxReadyTimerFunction(
	IN PVOID SystemSpecific1,
	IN PVOID FunctionContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);

VOID MrvDrvReConnectTimerFunction(
	IN PVOID SystemSpecific1,
	IN PVOID FunctionContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);

VOID
MrvDrvAvoidScanAfterConnectedTimer(
	IN PVOID SystemSpecific1,
	IN NDIS_HANDLE MiniportAdapterContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);

#ifdef ACTIVE_ROAMING
VOID 
MrvDrvActiveRoamingTimerFunction(
	IN PVOID SystemSpecific1,
	IN PVOID FunctionContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);

VOID 
MrvDrvBGActiveRoamingTimerFunction(
	IN PVOID SystemSpecific1,
	IN PVOID FunctionContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);
#endif //ACTIVE_ROAMING

#ifdef MRVL_MIC_ERROR // tt ++ mic 2
VOID MrvMicDisconnectTimerFunction(
	IN PVOID SystemSpecific1,
	IN PVOID FunctionContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);
#endif // tt -- mic 2

VOID
MrvDrvSendPackets(
	IN  NDIS_HANDLE MiniportAdapterContext,
	IN  PPNDIS_PACKET PacketArray,
	IN  UINT NumberOfPackets
	);

VOID
MrvDrvShutdownHandler(
	IN  NDIS_HANDLE MiniportAdapterContext
	);

VOID	
MrvDrvIndicateConnectStatusTimer(
	IN PVOID SystemSpecific1,
	IN NDIS_HANDLE MiniportAdapterContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);

VOID
MrvDrvCommandTimerFunction(
	IN PVOID SystemSpecific1,
	IN NDIS_HANDLE MiniportAdapterContext,
	IN PVOID SystemSpecific2,
	IN PVOID SystemSpecific3
	);

#ifdef MRVL_WINXP_NDIS51
VOID
MrvDrvPnPEventNotify(
    IN NDIS_HANDLE  MiniportAdapterContext,
    IN NDIS_DEVICE_PNP_EVENT  PnPEvent,
    IN PVOID  InformationBuffer,
    IN ULONG  InformationBufferLength
    );

VOID
MrvDrvCancelSendPackets(
	IN  NDIS_HANDLE MiniportAdapterContext,
    IN  PVOID       GroupCancelId
	);

NDIS_STATUS SetUpStationHW(
	IN	PMRVDRV_ADAPTER Adapter,
	IN  NDIS_HANDLE  WrapperConfigurationContext);

#endif

#endif


⌨️ 快捷键说明

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