10dosfs2.cdf
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:6k
源码类别:

VxWorks

开发平台:

C/C++

  1. /*
  2. Copyright 1998-2002 Wind River Systems, Inc.
  3. modification history
  4. --------------------
  5. 01g,27mar02,jkf  SPR#74716, moved INCLUDE_DISK_UTIL to 00vxWorks.cdf
  6. 01f,07mar02,jkf  fixed SPR#73968, removed INCLUDE_FTPD_ANONYMOUS_ACCESS
  7. 01e,03oct01,jkf  removed ramDiskDevCreate declaration.
  8. 01d,27sep01,jkf  veloce changes, added new headers
  9. 01c,10oct99,jkf  changed for cbioLib public API.
  10. 01b,15oct98,lrn  added RAWFS section override
  11. 01a,07oct98,lrn  written
  12. DESCRIPTION
  13.   This file contains descriptions for DosFs 2.0 component release
  14. */
  15. // DosFs 2.0 module description
  16. Folder FOLDER_DOSFS2
  17. {
  18. NAME dosFs File System Components (dosFs2)
  19. SYNOPSIS DOS File System, and related components
  20. _CHILDREN FOLDER_IO_SYSTEM
  21. CHILDREN INCLUDE_DOSFS_MAIN 
  22. INCLUDE_DOSFS_FAT 
  23. SELECT_DOSFS_DIR 
  24. INCLUDE_DOSFS_FMT 
  25. INCLUDE_DOSFS_CHKDSK 
  26. INCLUDE_CBIO 
  27. INCLUDE_DISK_CACHE 
  28. INCLUDE_DISK_PART 
  29. INCLUDE_TAR
  30. // Defaults are minimal at this stage
  31. DEFAULTS
  32. INCLUDE_DOSFS_MAIN 
  33. INCLUDE_DOSFS_FAT 
  34. INCLUDE_DOSFS_DIR_VFAT 
  35. INCLUDE_CBIO
  36. }
  37. Selection SELECT_DOSFS_DIR
  38. {
  39. NAME DOS File System Directory Handlers
  40. COUNT 1-
  41. CHILDREN INCLUDE_DOSFS_DIR_VFAT INCLUDE_DOSFS_DIR_FIXED
  42. DEFAULTS INCLUDE_DOSFS_DIR_VFAT
  43. }
  44. Component INCLUDE_DOSFS_MAIN
  45. {
  46. NAME dosfs File System Main Module (dosFs2)
  47. MODULES dosFsLib.o
  48. INIT_RTN dosFsLibInit(0);
  49. HDR_FILES dosFsLib.h
  50. REQUIRES INCLUDE_CBIO INCLUDE_DOSFS_FAT SELECT_DOSFS_DIR
  51. }
  52. Component INCLUDE_DOSFS_FAT
  53. {
  54. NAME DOS File System FAT12/16/32 Handler
  55. MODULES dosFsFat.o
  56. INIT_RTN dosFsFatInit();
  57. HDR_FILES dosFsLib.h
  58. REQUIRES INCLUDE_DOSFS_MAIN
  59. }
  60. Component INCLUDE_DOSFS_DIR_VFAT
  61. {
  62. NAME DOS File System VFAT Directory Handler 
  63. SYNOPSIS VFAT Variable-length file names support, Win95/NT compatible
  64. MODULES dosVDirLib.o
  65. INIT_RTN dosVDirLibInit();
  66. HDR_FILES dosFsLib.h
  67. REQUIRES INCLUDE_DOSFS_MAIN
  68. }
  69. Component INCLUDE_DOSFS_DIR_FIXED
  70. {
  71. NAME DOS File System Old Directory Format Handler 
  72. SYNOPSIS Strict 8.3 and VxLongs propriatery long names
  73. MODULES dosDirOldLib.o
  74. INIT_RTN dosDirOldLibInit();
  75. HDR_FILES dosFsLib.h
  76. REQUIRES INCLUDE_DOSFS_MAIN
  77. }
  78. Component INCLUDE_DOSFS_FMT
  79. {
  80. NAME DOS File System Volume Formatter Module
  81. SYNOPSIS High level formatting of DOS volumes
  82. MODULES dosFsFmtLib.o
  83. INIT_RTN dosFsFmtLibInit();
  84. HDR_FILES dosFsLib.h
  85. REQUIRES INCLUDE_DOSFS_MAIN
  86. }
  87. Component INCLUDE_DOSFS_CHKDSK
  88. {
  89. NAME DOS File System Consistency Checker
  90. SYNOPSIS Consistency checking set on per-device basis
  91. MODULES dosChkLib.o
  92. INIT_RTN dosChkLibInit();
  93. HDR_FILES dosFsLib.h
  94. REQUIRES INCLUDE_DOSFS_MAIN
  95. }
  96. Component INCLUDE_CBIO
  97. {
  98. NAME CBIO (Cached Block I/O) Support, cbioLib
  99. MODULES cbioLib.o
  100. INIT_RTN cbioLibInit();
  101. HDR_FILES cbioLib.h
  102. }
  103. Component INCLUDE_DISK_CACHE
  104. {
  105. NAME CBIO Disk Cache Handler
  106. SYNOPSIS CBIO Disk Cache size is set on per-device basis
  107. MODULES dcacheCbio.o
  108. HDR_FILES dcacheCbio.h
  109. LINK_SYMS dcacheDevCreate
  110. REQUIRES INCLUDE_CBIO
  111. }
  112. Component INCLUDE_DISK_PART
  113. {
  114. NAME CBIO Disk Partition Handler
  115. SYNOPSIS Supports disk paritition tables
  116. MODULES dpartCbio.o usrFdiskPartLib.o
  117. HDR_FILES dpartCbio.h usrFdiskPartLib.h
  118. LINK_SYMS dpartDevCreate usrFdiskPartRead
  119. REQUIRES INCLUDE_CBIO
  120. }
  121. Component INCLUDE_TAR
  122. {
  123. NAME File System Backup and Archival
  124. SYNOPSIS UNIX-compatible TAR facility
  125. MODULES tarLib.o
  126. LINK_SYMS tarHelp
  127. HDR_FILES tarLib.h
  128. }
  129. InitGroup usrDosFsInit
  130. {
  131. INIT_RTN usrDosFsInit ();
  132. SYNOPSIS DOS File System components
  133. _INIT_ORDER usrIosExtraInit
  134. INIT_BEFORE  INCLUDE_SCSI 
  135. INCLUDE_FD 
  136. INCLUDE_IDE 
  137. INCLUDE_ATA 
  138. INCLUDE_PCMCIA 
  139. INCLUDE_TFFS
  140. INIT_ORDER
  141. INCLUDE_CBIO 
  142. INCLUDE_DOSFS_MAIN 
  143. INCLUDE_DOSFS_FAT 
  144. INCLUDE_DOSFS_DIR_VFAT 
  145. INCLUDE_DOSFS_DIR_FIXED 
  146. INCLUDE_DOSFS_CHKDSK 
  147. INCLUDE_DOSFS_FMT 
  148. INCLUDE_RAM_DISK
  149. }
  150. // Backward compatible configuration
  151. Component INCLUDE_DOSFS {
  152. NAME DOS filesystem backward-compatibility
  153. SYNOPSIS Old dosFs API module, depreciated
  154. MODULES usrDosFsOld.o
  155. LINK_SYMS dosFsInit
  156. HDR_FILES dosFsLib.h
  157. INIT_BEFORE  INCLUDE_SCSI 
  158. INCLUDE_FD 
  159. INCLUDE_IDE 
  160. INCLUDE_ATA 
  161. INCLUDE_PCMCIA 
  162. INCLUDE_TFFS 
  163.        }
  164. // Ram disk
  165. Component INCLUDE_RAM_DISK
  166.         {
  167.         NAME            CBIO RAM Disk with DOS File System
  168.         MODULES         ramDiskCbio.o
  169.         CFG_PARAMS      RAM_DISK_SIZE RAM_DISK_DEV_NAME RAM_DISK_MAX_FILES RAM_DISK_MEM_ADRS
  170.         INIT_RTN        { CBIO_DEV_ID cbio ; 
  171.             cbio=ramDiskDevCreate(RAM_DISK_MEM_ADRS,512,17,RAM_DISK_SIZE/512,0);
  172.             if(cbio!=NULL){ 
  173.                 dosFsDevCreate(RAM_DISK_DEV_NAME,cbio,RAM_DISK_MAX_FILES,NONE);
  174.                 dosFsVolFormat(cbio,DOS_OPT_BLANK | DOS_OPT_QUIET, NULL);
  175.             }}
  176.         INIT_AFTER      FOLDER_DOSFS2
  177.         _CHILDREN       FOLDER_PERIPHERALS
  178.         REQUIRES        INCLUDE_DOSFS_MAIN
  179.         HDR_FILES       dosFsLib.h ramDiskCbio.h
  180.         }
  181. Parameter RAM_DISK_DEV_NAME
  182.         {
  183.         NAME            RAM Disk logical device name
  184.         TYPE            string
  185.         DEFAULT         "/ram0"
  186.         }
  187. Parameter RAM_DISK_SIZE
  188.         {
  189.         NAME            Size of RAM allocated for RAM Disk
  190.         TYPE            int
  191.         DEFAULT         0x10000
  192.         }
  193. Parameter RAM_DISK_MAX_FILES
  194.         {
  195.         NAME            Maximum open files on RAM disk
  196.         TYPE            int
  197.         DEFAULT         20
  198.         }
  199. Parameter RAM_DISK_MEM_ADRS
  200.         {
  201.         NAME            Default pool address, 0 = malloc
  202.         TYPE            int  
  203.         DEFAULT         0
  204.         }
  205. //
  206. // CBIO Compliant RAW File system
  207. //
  208. Component INCLUDE_RAWFS {
  209. NAME CBIO API RAW Filesystem
  210. SYNOPSIS Raw file system with 64-bit arithmetic, use CBIO API at lower layer
  211. MODULES rawFsLib.o
  212. INIT_RTN rawFsInit (NUM_RAWFS_FILES);
  213. CFG_PARAMS NUM_RAWFS_FILES
  214.         REQUIRES        INCLUDE_CBIO
  215. HDR_FILES rawFsLib.h cbioLib.h 
  216. }