Main Page   Modules   Data Structures   File List   Data Fields   Globals  

Openclos.c File Reference

#include "ntddk.h"
#include "ntiologc.h"
#include "ndis.h"
#include "debug.h"
#include "packet.h"

Go to the source code of this file.

Defines

#define NUM_NDIS_MEDIA   (sizeof MediumArray / sizeof MediumArray[0])

Functions

void PacketItoa (UINT n, PUCHAR buf)
NTSTATUS NPF_Open (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 Opens a new instance of the driver. More...

VOID NPF_OpenAdapterComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status, IN NDIS_STATUS OpenErrorStatus)
 Ends the opening of an adapter. More...

NTSTATUS NPF_Close (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp)
 Closes an instance of the driver. More...

VOID NPF_CloseAdapterComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status)
 Ends the closing of an adapter. More...

VOID NPF_BindAdapter (OUT PNDIS_STATUS Status, IN NDIS_HANDLE BindContext, IN PNDIS_STRING DeviceName, IN PVOID SystemSpecific1, IN PVOID SystemSpecific2)
 Callback for NDIS BindAdapterHandler. Not used by NPF. More...

VOID NPF_UnbindAdapter (OUT PNDIS_STATUS Status, IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_HANDLE UnbindContext)
 Callback for NDIS UnbindAdapterHandler. More...

VOID NPF_ResetComplete (IN NDIS_HANDLE ProtocolBindingContext, IN NDIS_STATUS Status)
 Ends a reset of the adapter. More...


Variables

NDIS_MEDIUM MediumArray []
ULONG NamedEventsCounter = 0
time_conv G_Start_Time
 Global start time. Used as an absolute reference for timestamp conversion. More...

UINT n_Opened_Instances = 0
NDIS_SPIN_LOCK Opened_Instances_Lock


Define Documentation

#define NUM_NDIS_MEDIA   (sizeof MediumArray / sizeof MediumArray[0])
 

Definition at line 38 of file Openclos.c.

Referenced by NPF_Open.


Function Documentation

void PacketItoa UINT    n,
PUCHAR    buf
 

Definition at line 43 of file Openclos.c.

Referenced by NPF_Open.


Variable Documentation

struct time_conv G_Start_Time
 

Initial value:

 {
    0,  
    {0, 0}, 
}
Global start time. Used as an absolute reference for timestamp conversion.

Definition at line 55 of file Openclos.c.

Referenced by NPF_CloseAdapterComplete, and NPF_OpenAdapterComplete.

NDIS_MEDIUM MediumArray[] [static]
 

Initial value:

 {
    NdisMedium802_3,
    NdisMediumWan,
    NdisMediumFddi,
    NdisMediumArcnet878_2,
    NdisMediumAtm,
    NdisMedium802_5
}

Definition at line 29 of file Openclos.c.

Referenced by NPF_Open.

UINT n_Opened_Instances = 0
 

Definition at line 60 of file Openclos.c.

Referenced by NPF_CloseAdapterComplete, and NPF_OpenAdapterComplete.

ULONG NamedEventsCounter = 0
 

Definition at line 40 of file Openclos.c.

Referenced by NPF_Open.

NDIS_SPIN_LOCK Opened_Instances_Lock
 

Definition at line 62 of file Openclos.c.

Referenced by NPF_CloseAdapterComplete, and NPF_OpenAdapterComplete.


documentation. Copyright (c) 2002 Politecnico di Torino. All rights reserved.