Fx_med.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. /**   Media (MED)                                                         */
  29. /**                                                                       */
  30. /**************************************************************************/
  31. /**************************************************************************/
  32. /**************************************************************************/ 
  33. /*                                                                        */ 
  34. /*  COMPONENT DEFINITION                                   RELEASE        */ 
  35. /*                                                                        */ 
  36. /*    fx_med.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 Media component constants, data         */ 
  45. /*    definitions, and external references.  It is assumed that fx_api.h  */ 
  46. /*    (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. /*                                            media close prototype,      */ 
  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_MED
  65. #define  FX_MED
  66. /* Define the external Media component function prototypes.  */
  67. UINT        _fx_media_open(FX_MEDIA *media_ptr, CHAR *media_name,
  68.                  VOID (*media_driver)(FX_MEDIA *), VOID *driver_info_ptr, 
  69.                  VOID *memory_ptr, ULONG memory_size, UINT partition);
  70. UINT        _fx_media_invalidate(FX_MEDIA *media_ptr);
  71. UINT        _fx_media_close(FX_MEDIA  *media_ptr);
  72. UINT        _fx_media_flush(FX_MEDIA  *media_ptr);
  73. UINT        _fx_media_space_available(FX_MEDIA *media_ptr, ULONG *available_bytes_ptr);
  74. UINT        _fx_media_read(FX_MEDIA *media_ptr,
  75.                            ULONG    logical_sector,
  76.                            ULONG    sectors,
  77.                            VOID     *buffer_ptr);
  78. UINT        _fx_media_write( FX_MEDIA *media_ptr,
  79.                              ULONG    logical_sector,
  80.                              ULONG    sectors,
  81.                              VOID     *buffer_ptr );
  82. UINT        _fx_media_erase(FX_MEDIA *media_ptr, ULONG logical_sector, ULONG sectors);
  83. UINT        _fx_media_abort(FX_MEDIA  *media_ptr);
  84. UINT        _fx_utility_get_geometry( FX_MEDIA *media_ptr,
  85.                                       BOOL      bPartition,
  86.                                       ULONG     ulStart,
  87.                                       ULONG     ulSize );
  88. /* Define the internal Media component function prototypes.  */
  89. UINT        _fx_media_boot_info_extract(FX_MEDIA *media_ptr, UCHAR_PTR boot_sector);
  90. #endif