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.

61 lines
1.2 KiB

  1. /*++
  2. Copyright (C) 1997-99 Microsoft Corporation
  3. Module Name:
  4. detect.h
  5. Abstract:
  6. --*/
  7. #if !defined (___detect_h___)
  8. #define ___detect_h___
  9. typedef struct _DETECTION_PORT {
  10. ULONG CommandRegisterBase;
  11. ULONG ControlRegisterBase;
  12. ULONG IrqLevel;
  13. } DETECTION_PORT, *PDETECTION_PORT;
  14. NTSTATUS
  15. IdePortDetectLegacyController (
  16. IN PDRIVER_OBJECT DriverObject,
  17. IN PUNICODE_STRING RegistryPath
  18. );
  19. NTSTATUS
  20. IdePortCreateDetectionList (
  21. IN PDRIVER_OBJECT DriverObject,
  22. OUT PDETECTION_PORT *DetectionPort,
  23. OUT PULONG NumPort
  24. );
  25. NTSTATUS
  26. IdePortTranslateAddress (
  27. IN INTERFACE_TYPE InterfaceType,
  28. IN ULONG BusNumber,
  29. IN PHYSICAL_ADDRESS StartAddress,
  30. IN LONG Length,
  31. IN OUT PULONG AddressSpace,
  32. OUT PVOID *TranslatedAddress,
  33. OUT PPHYSICAL_ADDRESS TranslatedMemoryAddress
  34. );
  35. VOID
  36. IdePortFreeTranslatedAddress (
  37. IN PVOID TranslatedAddress,
  38. IN LONG Length,
  39. IN ULONG AddressSpace
  40. );
  41. BOOLEAN
  42. IdePortDetectAlias (
  43. PIDE_REGISTERS_1 CmdRegBase
  44. );
  45. #endif // ___detect_h___