96 lines
1.4 KiB
C
96 lines
1.4 KiB
C
/*++
|
||
|
||
Copyright (c) 1991 - 1993 Microsoft Corporation
|
||
|
||
Module Name:
|
||
|
||
extern.h
|
||
|
||
Abstract:
|
||
|
||
|
||
Author:
|
||
|
||
Neil Sandlin (neilsa) 26-Apr-99
|
||
|
||
Environment:
|
||
|
||
Kernel mode only.
|
||
|
||
Notes:
|
||
|
||
|
||
--*/
|
||
|
||
|
||
|
||
//
|
||
// Prototypes of driver routines.
|
||
//
|
||
|
||
NTSTATUS
|
||
MemCardDeviceControl(
|
||
IN PDEVICE_OBJECT DeviceObject,
|
||
IN PIRP Irp
|
||
);
|
||
|
||
NTSTATUS
|
||
MemCardIrpReadWrite(
|
||
IN PDEVICE_OBJECT DeviceObject,
|
||
IN PIRP Irp
|
||
);
|
||
|
||
NTSTATUS
|
||
MemCardAddDevice(
|
||
IN PDRIVER_OBJECT DriverObject,
|
||
IN OUT PDEVICE_OBJECT PhysicalDeviceObject
|
||
);
|
||
|
||
NTSTATUS
|
||
MemCardPnp(
|
||
IN PDEVICE_OBJECT DeviceObject,
|
||
IN PIRP Irp
|
||
);
|
||
|
||
NTSTATUS
|
||
MemCardPower(
|
||
IN PDEVICE_OBJECT DeviceObject,
|
||
IN PIRP Irp
|
||
);
|
||
|
||
NTSTATUS
|
||
MemCardReadWrite(
|
||
IN PMEMCARD_EXTENSION memcardExtension,
|
||
IN ULONG startOffset,
|
||
IN PVOID userBuffer,
|
||
IN ULONG lengthToCopy,
|
||
IN BOOLEAN writeOperation
|
||
);
|
||
|
||
ULONG
|
||
MemCardGetCapacity(
|
||
IN PMEMCARD_EXTENSION memcardExtension
|
||
);
|
||
|
||
NTSTATUS
|
||
MemCardInitializeMtd(
|
||
IN PMEMCARD_EXTENSION memcardExtension,
|
||
IN PUNICODE_STRING TechnologyName
|
||
);
|
||
|
||
VOID
|
||
MemCardMtdRead(
|
||
IN PMEMCARD_EXTENSION memcardExtension,
|
||
IN PVOID TargetBuffer,
|
||
IN CONST PVOID DeviceBuffer,
|
||
IN ULONG Length
|
||
);
|
||
|
||
VOID
|
||
MemCardMtdWrite(
|
||
IN PMEMCARD_EXTENSION memcardExtension,
|
||
IN CONST PVOID SourceBuffer,
|
||
IN PVOID DeviceBuffer,
|
||
IN ULONG Length
|
||
);
|