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.

126 lines
4.4 KiB

  1. #ifndef _NTIOCTL_H_
  2. #define _NTIOCTL_H_
  3. #include <ntddk.h>
  4. #include "flioctl.h"
  5. #define FILE_DEVICE_TFFS_IOCTL 0x8000
  6. #define ACCESS_DEVICE_TFFS_IOCTL 0x800
  7. #define IOCTL_TFFS_GET_INFO \
  8. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  9. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_GET_INFO), \
  10. METHOD_BUFFERED, FILE_ANY_ACCESS )
  11. #define IOCTL_TFFS_DEFRAGMENT \
  12. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  13. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_DEFRAGMENT), \
  14. METHOD_BUFFERED, FILE_ANY_ACCESS )
  15. #define IOCTL_TFFS_WRITE_PROTECT \
  16. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  17. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_WRITE_PROTECT), \
  18. METHOD_BUFFERED, FILE_ANY_ACCESS )
  19. #define IOCTL_TFFS_MOUNT_VOLUME \
  20. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  21. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_MOUNT_VOLUME), \
  22. METHOD_BUFFERED, FILE_ANY_ACCESS )
  23. #define IOCTL_TFFS_FORMAT_VOLUME \
  24. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  25. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_FORMAT_VOLUME), \
  26. METHOD_BUFFERED, FILE_ANY_ACCESS )
  27. #define IOCTL_TFFS_BDK_OPERATION \
  28. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  29. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_BDK_OPERATION), \
  30. METHOD_BUFFERED, FILE_ANY_ACCESS )
  31. #define IOCTL_TFFS_DELETE_SECTORS \
  32. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  33. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_DELETE_SECTORS), \
  34. METHOD_BUFFERED, FILE_ANY_ACCESS )
  35. #define IOCTL_TFFS_READ_SECTORS \
  36. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  37. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_READ_SECTORS), \
  38. METHOD_BUFFERED, FILE_ANY_ACCESS )
  39. #define IOCTL_TFFS_WRITE_SECTORS \
  40. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  41. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_WRITE_SECTORS), \
  42. METHOD_BUFFERED, FILE_ANY_ACCESS )
  43. #define IOCTL_TFFS_NUMBER_OF_PARTITIONS \
  44. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  45. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_NUMBER_OF_PARTITIONS), \
  46. METHOD_BUFFERED, FILE_ANY_ACCESS )
  47. #define IOCTL_TFFS_CUSTOMER_ID \
  48. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  49. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_CUSTOMER_ID), \
  50. METHOD_BUFFERED, FILE_ANY_ACCESS )
  51. #define IOCTL_TFFS_EXTENDED_WRITE_IPL \
  52. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  53. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_EXTENDED_WRITE_IPL), \
  54. METHOD_BUFFERED, FILE_ANY_ACCESS )
  55. #define IOCTL_TFFS_EXTENDED_ENVIRONMENT_VARIABLES \
  56. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  57. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_EXTENDED_ENVIRONMENT_VARIABLES), \
  58. METHOD_BUFFERED, FILE_ANY_ACCESS )
  59. #define IOCTL_TFFSFL_UNIQUE_ID \
  60. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  61. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_UNIQUE_ID), \
  62. METHOD_BUFFERED, FILE_ANY_ACCESS )
  63. #define IOCTL_TFFSFL_INQUIRE_CAPABILITIES \
  64. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  65. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_INQUIRE_CAPABILITIES), \
  66. METHOD_BUFFERED, FILE_ANY_ACCESS )
  67. #define IOCTL_TFFS_DEEP_POWER_DOWN_MODE \
  68. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  69. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_DEEP_POWER_DOWN_MODE), \
  70. METHOD_BUFFERED, FILE_ANY_ACCESS )
  71. #define IOCTL_TFFS_FORMAT_PHYSICAL_DRIVE \
  72. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  73. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_FORMAT_PHYSICAL_DRIVE), \
  74. METHOD_BUFFERED, FILE_ANY_ACCESS )
  75. #define IOCTL_TFFS_BDTL_HW_PROTECTION \
  76. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  77. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_BDTL_HW_PROTECTION), \
  78. METHOD_BUFFERED, FILE_ANY_ACCESS )
  79. #define IOCTL_TFFS_BINARY_HW_PROTECTION \
  80. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  81. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_BINARY_HW_PROTECTION), \
  82. METHOD_BUFFERED, FILE_ANY_ACCESS )
  83. #define IOCTL_TFFS_OTP \
  84. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  85. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_OTP), \
  86. METHOD_BUFFERED, FILE_ANY_ACCESS )
  87. #define IOCTL_TFFS_PLACE_EXB_BY_BUFFER \
  88. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  89. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_PLACE_EXB_BY_BUFFER), \
  90. METHOD_BUFFERED, FILE_ANY_ACCESS )
  91. #define IOCTL_TFFS_EXTENDED_ENVIRONMENT_VARIABLES \
  92. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  93. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_EXTENDED_ENVIRONMENT_VARIABLES), \
  94. METHOD_BUFFERED, FILE_ANY_ACCESS )
  95. #define IOCTL_TFFS_VERIFY_VOLUME \
  96. CTL_CODE( FILE_DEVICE_TFFS_IOCTL, \
  97. (ACCESS_DEVICE_TFFS_IOCTL + FL_IOCTL_VERIFY_VOLUME), \
  98. METHOD_BUFFERED, FILE_ANY_ACCESS )
  99. #endif /* _NTIOCTL_H_ */