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.

81 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1991 - 2002 Microsoft Corporation
  3. Module Name:
  4. ## ## ### ## # ## ## ##### ### ## ## ## ##
  5. ### ### ## # ### # ## ## ## ## ### ### ### ## ##
  6. ######## ### #### # ## ## ## ## ## ## ######## ## ##
  7. # ### ## ### # #### #### ##### ## ## # ### ## #######
  8. # # ## ### # ### #### #### ####### # # ## ## ##
  9. # ## # ## # ## ## ## ## ## ## # ## ## ## ##
  10. # ## ### # # ## ## ## ## ## # ## ## ## ##
  11. Abstract:
  12. This header file contains the definitions for the
  13. virtual NVRAM miniport driver.
  14. @@BEGIN_DDKSPLIT
  15. Author:
  16. Wesley Witt (wesw) 1-Oct-2001
  17. @@END_DDKSPLIT
  18. Environment:
  19. Kernel mode only.
  20. Notes:
  21. --*/
  22. extern "C" {
  23. #include <ntddk.h>
  24. #include <stdio.h>
  25. }
  26. #define MINIPORT_DEVICE_TYPE SA_DEVICE_NVRAM
  27. #include "saport.h"
  28. #define MAX_NVRAM_SIZE 32
  29. #define MAX_NVRAM_SIZE_BYTES (MAX_NVRAM_SIZE*sizeof(ULONG))
  30. typedef struct _DEVICE_EXTENSION {
  31. PDEVICE_OBJECT DeviceObject;
  32. } DEVICE_EXTENSION, *PDEVICE_EXTENSION;
  33. typedef struct _MSNVRAM_WORK_ITEM {
  34. PDEVICE_EXTENSION DeviceExtension;
  35. PIO_WORKITEM WorkItem;
  36. ULONG IoFunction;
  37. PVOID DataBuffer;
  38. ULONG DataBufferLength;
  39. LONGLONG StartingOffset;
  40. } MSNVRAM_WORK_ITEM, *PMSNVRAM_WORK_ITEM;
  41. //
  42. // prototypes
  43. //
  44. extern "C" {
  45. NTSTATUS
  46. DriverEntry(
  47. IN PDRIVER_OBJECT DriverObject,
  48. IN PUNICODE_STRING RegistryPath
  49. );
  50. } // extern "C"