Source code of Windows XP (NT5)
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.

82 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1997-99 Microsoft Corporation
  3. Module Name:
  4. crashdmp.h
  5. Abstract:
  6. --*/
  7. #if !defined (___crashdmp_h___)
  8. #define ___crashdmp_h___
  9. typedef
  10. VOID
  11. (*PSTALL_ROUTINE) (
  12. IN ULONG Delay
  13. );
  14. typedef struct _CRASHDUMP_INIT_DATA {
  15. ULONG CheckSum;
  16. UCHAR PathId;
  17. UCHAR TargetId;
  18. UCHAR Lun;
  19. PHW_DEVICE_EXTENSION LiveHwDeviceExtension;
  20. } CRASHDUMP_INIT_DATA, *PCRASHDUMP_INIT_DATA;
  21. typedef struct _CRASHDUMP_DATA {
  22. PCRASHDUMP_INIT_DATA CrashInitData;
  23. ULONG BytesPerSector;
  24. LARGE_INTEGER PartitionOffset;
  25. PSTALL_ROUTINE StallRoutine;
  26. SCSI_REQUEST_BLOCK Srb;
  27. HW_DEVICE_EXTENSION HwDeviceExtension;
  28. ULONG MaxBlockSize;
  29. } CRASHDUMP_DATA, *PCRASHDUMP_DATA;
  30. ULONG
  31. AtapiCrashDumpDriverEntry (
  32. PVOID Context
  33. );
  34. //
  35. // crash dump privates
  36. //
  37. BOOLEAN
  38. AtapiCrashDumpOpen (
  39. IN LARGE_INTEGER PartitionOffset
  40. );
  41. NTSTATUS
  42. AtapiCrashDumpIdeWrite (
  43. IN PLARGE_INTEGER DiskByteOffset,
  44. IN PMDL Mdl
  45. );
  46. VOID
  47. AtapiCrashDumpFinish (
  48. VOID
  49. );
  50. NTSTATUS
  51. AtapiCrashDumpIdeWritePio (
  52. IN PSCSI_REQUEST_BLOCK Srb
  53. );
  54. #endif // ___crashdmp_h___