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.

86 lines
2.9 KiB

  1. /*
  2. * $Log: V:/Flite/archives/TrueFFS5/Custom/FLCUSTOM.C_V $
  3. *
  4. * Rev 1.2 Feb 18 2001 23:42:04 oris
  5. * Moved flPolicy, flUseMultiDoc and flMaxUnitChain to blockdev.c.
  6. *
  7. * Rev 1.1 Feb 14 2001 02:19:28 oris
  8. * Added flMaxUnitChain environment variable.
  9. * Changed flUseMultiDoc and flPolicy variables type and names.
  10. *
  11. * Rev 1.0 Feb 04 2001 13:31:02 oris
  12. * Initial revision.
  13. *
  14. */
  15. /************************************************************************/
  16. /* */
  17. /* FAT-FTL Lite Software Development Kit */
  18. /* Copyright (C) M-Systems Ltd. 1995-1998 */
  19. /* */
  20. /************************************************************************/
  21. #include "flsystem.h"
  22. #include "stdcomp.h"
  23. /* environment variables */
  24. #ifdef ENVIRONMENT_VARS
  25. unsigned char flUse8Bit;
  26. unsigned char flUseNFTLCache;
  27. unsigned char flUseisRAM;
  28. /*-----------------------------------------------------------------------*/
  29. /* f l s e t E n v V a r */
  30. /* Sets the value of all env variables */
  31. /* Parameters : None */
  32. /*-----------------------------------------------------------------------*/
  33. void flSetEnvVar(void)
  34. {
  35. flUse8Bit = 0;
  36. flUseNFTLCache = 1;
  37. flUseisRAM = 0;
  38. }
  39. #endif /* ENVIRONMENT_VARS */
  40. /*----------------------------------------------------------------------*/
  41. /* f l R e g i s t e r C o m p o n e n t s */
  42. /* */
  43. /* Register socket, MTD and translation layer components for use */
  44. /* */
  45. /* This function is called by FLite once only, at initialization of the */
  46. /* FLite system. */
  47. /* */
  48. /* Parameters: */
  49. /* None */
  50. /* */
  51. /*----------------------------------------------------------------------*/
  52. unsigned long window = 0L;
  53. FLStatus
  54. flRegisterComponents(void)
  55. {
  56. flRegisterDOCSOC(window, window);
  57. #ifdef NT5PORT
  58. checkStatus(flRegisterNT5PCIC());
  59. #endif /*NT5PORT */
  60. flRegisterDOC2000();
  61. flRegisterDOCPLUS();
  62. checkStatus(flRegisterI28F008()); /* Register NOR-flash MTDs */
  63. checkStatus(flRegisterI28F016());
  64. checkStatus(flRegisterAMDMTD());
  65. checkStatus(flRegisterCFISCS());
  66. checkStatus(flRegisterINFTL());
  67. checkStatus(flRegisterNFTL());
  68. checkStatus(flRegisterFTL());
  69. return flOK;
  70. }