From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/ntos/ndis/pc586e/pc586e.c | 119 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 private/ntos/ndis/pc586e/pc586e.c (limited to 'private/ntos/ndis/pc586e/pc586e.c') diff --git a/private/ntos/ndis/pc586e/pc586e.c b/private/ntos/ndis/pc586e/pc586e.c new file mode 100644 index 000000000..31a1276fd --- /dev/null +++ b/private/ntos/ndis/pc586e/pc586e.c @@ -0,0 +1,119 @@ +/*++ + +Copyright (c) 1990 Microsoft Corporation + +Module Name: + + pc586e.c + +Abstract: + + THIS MODULE IS TEMPORARY. It is here simply to test the build + procedures for the NDIS driver directories. + +Author: + + Chuck Lenzmeier (chuckl) 10-Jul-1990 + +Environment: + + Kernel mode, FSD + +Revision History: + + +--*/ + +#include + +#include + +static +NTSTATUS +Pc586eDispatch( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp + ); + + +VOID +Pc586eInitialize( + IN PDRIVER_OBJECT DriverObject + ) + +/*++ + +Routine Description: + + This is the initialization routine for the driver. It is invoked once + when the driver is loaded into the system. Its job is to initialize all + the structures which will be used by the FSD. + +Arguments: + + DriverObject - Pointer to driver object created by the system. + +Return Value: + + None. + +--*/ + +{ + CLONG i; + + // + // Initialize the driver object with this driver's entry points. + // + + for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++) { + DriverObject->MajorFunction[i] = Pc586eDispatch; + } + + // + // Initialize the wrapper. (This is here to verify that we can pull + // in the wrapper library.) + // + + NdisInitializeWrapper( ); + +} + + +static +NTSTATUS +Pc586eDispatch( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp + ) + +/*++ + +Routine Description: + + This routine is the main dispatch routine for the FSD. This routine + accepts an I/O Request Packet (IRP) and either performs the request + itself, or it passes it to the FSP for processing. + +Arguments: + + DeviceObject - Pointer to the device object for this driver. + + Irp - Pointer to the request packet representing the I/O request. + +Return Value: + + The function value is the status of the operation. + + +--*/ + +{ + KIRQL oldIrql; + + KeRaiseIrql( DISPATCH_LEVEL, &oldIrql ); + IoCompleteRequest( Irp, 0 ); + KeLowerIrql( oldIrql ); + + return STATUS_NOT_IMPLEMENTED; +} -- cgit v1.2.3