windows-nt/Source/XPSP1/NT/base/busdrv/pccard/memcard/extern.h
2020-09-26 16:20:57 +08:00

96 lines
1.4 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
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
);