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.

75 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1991 - 2001 Microsoft Corporation
  3. Module Name:
  4. ### ## # ## ## # ## ##### ## ##
  5. ## # ## ### ## ## ### ## ## ## ## ##
  6. ### ## ### ## ## ### ## ## ## ## ##
  7. ### ## # # ## ## # # ## ## ## #######
  8. ### ### ### ### ### ## ## ## ##
  9. # ## ### ### ### ### ## ## ## ## ##
  10. ### ## ## ## ## ##### ## ## ##
  11. Abstract:
  12. This header file contains the definitions for the
  13. ServerWorks watchdog miniport driver.
  14. Author:
  15. Wesley Witt (wesw) 1-Oct-2001
  16. Environment:
  17. Kernel mode only.
  18. Notes:
  19. --*/
  20. extern "C" {
  21. #include <ntddk.h>
  22. #include <stdio.h>
  23. }
  24. #define MINIPORT_DEVICE_TYPE SA_DEVICE_WATCHDOG
  25. #include "saport.h"
  26. #define CLEARBITS(_val,_mask) ((_val) &= ~(_mask))
  27. #define SETBITS(_val,_mask) ((_val) |= (_mask))
  28. //
  29. // Control Register Bits
  30. //
  31. #define WATCHDOG_CONTROL_TRIGGER 0x80
  32. #define WATCHDOG_CONTROL_BIOS_JUMPER 0x08
  33. #define WATCHDOG_CONTROL_TIMER_MODE 0x04
  34. #define WATCHDOG_CONTROL_FIRED 0x02
  35. #define WATCHDOG_CONTROL_ENABLE 0x01
  36. typedef struct _DEVICE_EXTENSION {
  37. PUCHAR WdMemBase; // Memory mapped register base address
  38. FAST_MUTEX WdIoLock;
  39. } DEVICE_EXTENSION, *PDEVICE_EXTENSION;
  40. //
  41. // prototypes
  42. //
  43. extern "C" {
  44. NTSTATUS
  45. DriverEntry(
  46. IN PDRIVER_OBJECT DriverObject,
  47. IN PUNICODE_STRING RegistryPath
  48. );
  49. } // extern "C"