Leaked source code of windows server 2003
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.5 KiB

  1. /*++
  2. Copyright (c) 1991 - 1993 Microsoft Corporation
  3. Module Name:
  4. extern.h
  5. Abstract:
  6. Author:
  7. Neil Sandlin (neilsa) 26-Apr-99
  8. Environment:
  9. Kernel mode only.
  10. Notes:
  11. --*/
  12. //
  13. // Prototypes of driver routines.
  14. //
  15. NTSTATUS
  16. MemCardDeviceControl(
  17. IN PDEVICE_OBJECT DeviceObject,
  18. IN PIRP Irp
  19. );
  20. NTSTATUS
  21. MemCardIrpReadWrite(
  22. IN PDEVICE_OBJECT DeviceObject,
  23. IN PIRP Irp
  24. );
  25. NTSTATUS
  26. MemCardAddDevice(
  27. IN PDRIVER_OBJECT DriverObject,
  28. IN OUT PDEVICE_OBJECT PhysicalDeviceObject
  29. );
  30. NTSTATUS
  31. MemCardPnp(
  32. IN PDEVICE_OBJECT DeviceObject,
  33. IN PIRP Irp
  34. );
  35. NTSTATUS
  36. MemCardPower(
  37. IN PDEVICE_OBJECT DeviceObject,
  38. IN PIRP Irp
  39. );
  40. NTSTATUS
  41. MemCardReadWrite(
  42. IN PMEMCARD_EXTENSION memcardExtension,
  43. IN ULONG startOffset,
  44. IN PVOID userBuffer,
  45. IN ULONG lengthToCopy,
  46. IN BOOLEAN writeOperation
  47. );
  48. ULONG
  49. MemCardGetCapacity(
  50. IN PMEMCARD_EXTENSION memcardExtension
  51. );
  52. NTSTATUS
  53. MemCardInitializeMtd(
  54. IN PMEMCARD_EXTENSION memcardExtension,
  55. IN PUNICODE_STRING TechnologyName
  56. );
  57. VOID
  58. MemCardMtdRead(
  59. IN PMEMCARD_EXTENSION memcardExtension,
  60. IN PVOID TargetBuffer,
  61. IN CONST PVOID DeviceBuffer,
  62. IN ULONG Length
  63. );
  64. VOID
  65. MemCardMtdWrite(
  66. IN PMEMCARD_EXTENSION memcardExtension,
  67. IN CONST PVOID SourceBuffer,
  68. IN PVOID DeviceBuffer,
  69. IN ULONG Length
  70. );