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.

94 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. detect.h
  5. Abstract:
  6. This is the header for the detection part of the ACPI driver
  7. Author:
  8. Stephane Plante (splante)
  9. Environment:
  10. NT Kernel Model Driver only
  11. --*/
  12. #ifndef _DETECT_H_
  13. #define _DETECT_H_
  14. #define ACPI_MAX_REMOVED_EXTENSIONS 0x20
  15. //
  16. // Exports from detect.c
  17. //
  18. extern PDEVICE_EXTENSION RootDeviceExtension;
  19. extern NPAGED_LOOKASIDE_LIST DeviceExtensionLookAsideList;
  20. extern PDEVICE_EXTENSION AcpiSurpriseRemovedDeviceExtensions[];
  21. extern ULONG AcpiSurpriseRemovedIndex;
  22. extern KSPIN_LOCK AcpiDeviceTreeLock;
  23. extern ULONG AcpiSupportedSystemStates;
  24. extern ULONG AcpiOverrideAttributes;
  25. extern UNICODE_STRING AcpiRegistryPath;
  26. extern ANSI_STRING AcpiProcessorString;
  27. NTSTATUS
  28. ACPIDetectCouldExtensionBeInRelation(
  29. IN PDEVICE_EXTENSION DeviceExtension,
  30. IN PDEVICE_RELATIONS DeviceRelations,
  31. IN BOOLEAN RequireADR,
  32. IN BOOLEAN RequireHID,
  33. OUT PDEVICE_OBJECT *PdoObject
  34. );
  35. NTSTATUS
  36. ACPIDetectDockDevices(
  37. IN PDEVICE_EXTENSION DeviceExtension,
  38. IN OUT PDEVICE_RELATIONS *DeviceRelations
  39. );
  40. VOID
  41. ACPIDetectDuplicateHID(
  42. IN PDEVICE_EXTENSION DeviceExtension
  43. );
  44. NTSTATUS
  45. ACPIDetectEjectDevices(
  46. IN PDEVICE_EXTENSION deviceExtension,
  47. IN OUT PDEVICE_RELATIONS *DeviceRelations,
  48. IN PDEVICE_EXTENSION AdditionalExtension OPTIONAL
  49. );
  50. NTSTATUS
  51. ACPIDetectFilterDevices(
  52. IN PDEVICE_OBJECT DeviceObject,
  53. IN PDEVICE_RELATIONS DeviceRelations
  54. );
  55. NTSTATUS
  56. ACPIDetectFilterMatch(
  57. IN PDEVICE_EXTENSION DeviceExtension,
  58. IN PDEVICE_RELATIONS DeviceRelations,
  59. OUT PDEVICE_OBJECT *PdoObject
  60. );
  61. NTSTATUS
  62. ACPIDetectPdoDevices(
  63. IN PDEVICE_OBJECT DeviceObject,
  64. IN PDEVICE_RELATIONS *DeviceRelations
  65. );
  66. BOOLEAN
  67. ACPIDetectPdoMatch(
  68. IN PDEVICE_EXTENSION DeviceExtension,
  69. IN PDEVICE_RELATIONS DeviceRelations
  70. );
  71. #endif