mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
1.4 KiB
95 lines
1.4 KiB
/*++
|
|
|
|
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
|
|
);
|