FX_SYS.H
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:6k
源码类别:

DVD

开发平台:

Others

  1. /**************************************************************************/ 
  2. /*                                                                        */ 
  3. /*            Copyright (c) 1996-2002 by Express Logic Inc.               */ 
  4. /*                                                                        */ 
  5. /*  This software is copyrighted by and is the sole property of Express   */ 
  6. /*  Logic, Inc.  All rights, title, ownership, or other interests         */ 
  7. /*  in the software remain the property of Express Logic, Inc.  This      */ 
  8. /*  software may only be used in accordance with the corresponding        */ 
  9. /*  license agreement.  Any unauthorized use, duplication, transmission,  */ 
  10. /*  distribution, or disclosure of this software is expressly forbidden.  */ 
  11. /*                                                                        */
  12. /*  This Copyright notice may not be removed or modified without prior    */ 
  13. /*  written consent of Express Logic, Inc.                                */ 
  14. /*                                                                        */ 
  15. /*  Express Logic, Inc. reserves the right to modify this software        */ 
  16. /*  without notice.                                                       */ 
  17. /*                                                                        */ 
  18. /*  Express Logic, Inc.                     info@expresslogic.com         */
  19. /*  11423 West Bernardo Court               http://www.expresslogic.com   */
  20. /*  San Diego, CA  92127                                                  */
  21. /*                                                                        */
  22. /**************************************************************************/
  23. /**************************************************************************/
  24. /**************************************************************************/
  25. /**                                                                       */ 
  26. /** FileX Component                                                       */
  27. /**                                                                       */
  28. /**   System (SYS)                                                        */
  29. /**                                                                       */
  30. /**************************************************************************/
  31. /**************************************************************************/
  32. /**************************************************************************/ 
  33. /*                                                                        */ 
  34. /*  COMPONENT DEFINITION                                   RELEASE        */ 
  35. /*                                                                        */ 
  36. /*    fx_sys.h                                            PORTABLE C      */ 
  37. /*                                                           3.0          */ 
  38. /*  AUTHOR                                                                */ 
  39. /*                                                                        */ 
  40. /*    William E. Lamie, Express Logic, Inc.                               */ 
  41. /*                                                                        */ 
  42. /*  DESCRIPTION                                                           */ 
  43. /*                                                                        */ 
  44. /*    This file defines the FileX system constants and global data        */ 
  45. /*    definitions, including external references.  It is assumed that     */ 
  46. /*    fx_api.h (and fx_port.h) have already been included.                */
  47. /*                                                                        */ 
  48. /*  RELEASE HISTORY                                                       */ 
  49. /*                                                                        */ 
  50. /*    DATE              NAME                      DESCRIPTION             */ 
  51. /*                                                                        */ 
  52. /*  01-01-1999     William E. Lamie         Initial Version 1.0           */ 
  53. /*  03-01-2000     William E. Lamie         Modified comment(s) and added */ 
  54. /*                                            prototype for time get,     */ 
  55. /*                                            resulting in version 1.0b.  */ 
  56. /*  01-28-2001     William E. Lamie         Modified comment(s) and added */ 
  57. /*                                            error checking function     */ 
  58. /*                                            prototypes, resulting in    */ 
  59. /*                                            version 2.0                 */ 
  60. /*  03-01-2002     William E. Lamie         Modified comment(s),          */ 
  61. /*                                            resulting in version 3.0.   */ 
  62. /*                                                                        */ 
  63. /**************************************************************************/ 
  64. #ifndef  FX_SYS
  65. #define  FX_SYS
  66. /* Define the external System component function prototypes.  */
  67. VOID        _fx_system_initialize(VOID);
  68. VOID        _fx_system_timer_entry(ULONG id);
  69. /* System Component data declarations follow.  */
  70. /* Determine if the initialization function of this component is including
  71.    this file.  If so, make the data definitions really happen.  Otherwise,
  72.    make them extern so other functions in the component can access them.  */
  73. #ifdef  FX_SYSTEM_INIT
  74. #define SYSTEM_DECLARE 
  75. #else
  76. #define SYSTEM_DECLARE extern
  77. #endif
  78. /* Define the head pointer of the opened media list.  */
  79. SYSTEM_DECLARE  FX_MEDIA *  _fx_system_media_opened_ptr;
  80. /* Define the variable that holds the number of open media. */
  81. SYSTEM_DECLARE  ULONG       _fx_system_media_opened_count;
  82. /* Define the system date variable.  */
  83. SYSTEM_DECLARE  UINT        _fx_system_date;
  84. /* Define the system time variable.  */
  85. SYSTEM_DECLARE  UINT        _fx_system_time;
  86. /* Define system timer control block.  If accurate date/time stamps on
  87.    files is not needed, the define FX_NO_TIMER should be used when
  88.    compiling fx_si.c to eliminate the FileX timer.  */
  89. #ifndef FX_NO_TIMER
  90. SYSTEM_DECLARE  TX_TIMER    _fx_system_timer;
  91. #endif
  92. #endif