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.

134 lines
4.1 KiB

  1. /***********************************************************************************/
  2. /* M-Systems Confidential */
  3. /* Copyright (C) M-Systems Flash Disk Pioneers Ltd. 1995-2001 */
  4. /* All Rights Reserved */
  5. /***********************************************************************************/
  6. /* NOTICE OF M-SYSTEMS OEM */
  7. /* SOFTWARE LICENSE AGREEMENT */
  8. /* */
  9. /* THE USE OF THIS SOFTWARE IS GOVERNED BY A SEPARATE LICENSE */
  10. /* AGREEMENT BETWEEN THE OEM AND M-SYSTEMS. REFER TO THAT AGREEMENT */
  11. /* FOR THE SPECIFIC TERMS AND CONDITIONS OF USE, */
  12. /* OR CONTACT M-SYSTEMS FOR LICENSE ASSISTANCE: */
  13. /* E-MAIL = [email protected] */
  14. /***********************************************************************************/
  15. #ifndef FLFUNCNO_H
  16. #define FLFUNCNO_H
  17. /*************************************************************************************/
  18. /* SPECIAL NOTE */
  19. /* ------------ */
  20. /* The order of the enum bellow should be strictly kept since the bdcall function */
  21. /* utilizes the index values to simplify the function search */
  22. /*************************************************************************************/
  23. typedef enum {
  24. /* The following routines are files related routines */
  25. /*********/
  26. /* FILES */
  27. /*********/
  28. FL_READ_FILE = 0,
  29. FL_WRITE_FILE,
  30. FL_SPLIT_FILE,
  31. FL_JOIN_FILE,
  32. FL_SEEK_FILE,
  33. FL_FIND_NEXT_FILE,
  34. FL_FIND_FILE,
  35. INDEX_WRITE_FILE_START = 100,
  36. FL_CLOSE_FILE,
  37. INDEX_OPENFILES_END = 200,
  38. FL_OPEN_FILE,
  39. FL_DELETE_FILE,
  40. FL_FIND_FIRST_FILE,
  41. FL_GET_DISK_INFO,
  42. FL_RENAME_FILE,
  43. FL_MAKE_DIR,
  44. FL_REMOVE_DIR,
  45. FL_FLUSH_BUFFER,
  46. FL_LAST_FAT_FUNCTION = 300,
  47. /* The following routines will not perform valid partition check */
  48. /**********/
  49. /* BINARY */
  50. /**********/
  51. INDEX_BINARY_START = 400,
  52. FL_BINARY_WRITE_INIT,
  53. FL_BINARY_WRITE_BLOCK,
  54. FL_BINARY_CREATE,
  55. FL_BINARY_ERASE,
  56. FL_BINARY_PROTECTION_CHANGE_KEY,
  57. FL_BINARY_PROTECTION_CHANGE_LOCK,
  58. FL_BINARY_PROTECTION_SET_TYPE,
  59. INDEX_BINARY_WRITE_END = 500,
  60. FL_BINARY_READ_INIT,
  61. FL_BINARY_READ_BLOCK,
  62. FL_BINARY_PARTITION_INFO,
  63. FL_BINARY_PROTECTION_GET_TYPE,
  64. FL_BINARY_PROTECTION_INSERT_KEY,
  65. FL_BINARY_PROTECTION_REMOVE_KEY,
  66. INDEX_BINARY_END = 600,
  67. /* The following routines must be called with partition number 0 */
  68. INDEX_NEED_PARTITION_0_START = 700,
  69. /* OTP */
  70. FL_OTP_SIZE,
  71. FL_OTP_READ,
  72. FL_OTP_WRITE,
  73. FL_WRITE_IPL,
  74. FL_READ_IPL,
  75. /* PHYSICAL */
  76. FL_DEEP_POWER_DOWN_MODE,
  77. FL_GET_PHYSICAL_INFO,
  78. FL_PHYSICAL_READ,
  79. FL_PHYSICAL_WRITE,
  80. FL_PHYSICAL_ERASE,
  81. FL_UPDATE_SOCKET_PARAMS,
  82. FL_UNIQUE_ID,
  83. FL_CUSTOMER_ID,
  84. BD_FORMAT_VOLUME,
  85. BD_FORMAT_PHYSICAL_DRIVE,
  86. FL_PLACE_EXB,
  87. FL_READ_BBT,
  88. FL_WRITE_BBT,
  89. INDEX_NEED_PARTITION_0_END = 800,
  90. /* The following routines will go through the volume validity check */
  91. /* PROTECTION */
  92. FL_PROTECTION_GET_TYPE,
  93. FL_PROTECTION_REMOVE_KEY,
  94. FL_PROTECTION_INSERT_KEY,
  95. FL_PROTECTION_SET_LOCK,
  96. FL_PROTECTION_CHANGE_KEY,
  97. FL_PROTECTION_CHANGE_TYPE,
  98. FL_COUNT_VOLUMES,
  99. FL_INQUIRE_CAPABILITIES,
  100. /* BDTL */
  101. FL_MOUNT_VOLUME,
  102. FL_ABS_MOUNT,
  103. BD_FORMAT_LOGICAL_DRIVE,
  104. FL_WRITE_PROTECTION,
  105. FL_DISMOUNT_VOLUME,
  106. FL_CHECK_VOLUME,
  107. FL_DEFRAGMENT_VOLUME,
  108. FL_ABS_WRITE,
  109. FL_ABS_DELETE,
  110. FL_ABS_READ,
  111. FL_ABS_ADDRESS,
  112. FL_GET_BPB,
  113. FL_SECTORS_IN_VOLUME,
  114. FL_VOLUME_INFO,
  115. FL_VERIFY_VOLUME,
  116. FL_CLEAR_QUICK_MOUNT_INFO
  117. } FLFunctionNo;
  118. #endif /* FLFUNCNO_H */