/*
*********************************************************************************************************
*                                             uC/FS V4
*                                     The Embedded File System
*
*                         (c) Copyright 2008-2010; Micrium, Inc.; Weston, FL
*
*               All rights reserved. Protected by international copyright laws.
*
*               uC/FS is provided in source form to registered licensees ONLY.  It is
*               illegal to distribute this source code to any third party unless you receive
*               written permission by an authorized Micrium representative.  Knowledge of
*               the source code may NOT be used to develop a similar product.
*
*               Please help us continue to provide the Embedded community with the finest
*               software available.  Your honesty is greatly appreciated.
*
*               You can contact us at www.micrium.com.
*
* Author      : Lance Simms (12/16/10)
*               Adapted for the Compact Flash controller on board the Logic PXA270 Zoom SDK kit
*
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*
*                                      FILE SYSTEM DEVICE DRIVER
*
*                                              TEMPLATE
*
* Filename      : fs_dev_CF_Card.h
* Version       : V4.04
* Programmer(s) : BAN
*********************************************************************************************************
* Note(s)       : (a) Replace CF_Card with the driver identifier (in the correct case).
*                 (b) Replace $$$$ with code/definitions/etc.
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                               MODULE
*********************************************************************************************************
*/

#ifndef  FS_DEV_CF_Card_PRESENT
#define  FS_DEV_CF_Card_PRESENT

/*
*********************************************************************************************************
*                                               EXTERNS
*********************************************************************************************************
*/

#ifdef   FS_DEV_CF_Card_MODULE
#define  FS_DEV_CF_Card_EXT
#else
#define  FS_DEV_CF_Card_EXT  extern
#endif

/*
*********************************************************************************************************
*                                            INCLUDE FILES
*********************************************************************************************************
*/

#include  <fs_dev.h>

/*
*********************************************************************************************************
*                                               DEFINES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                             DATA TYPES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                  COMPACT FLASH UNIT CONFIGURATION DATA TYPE
*********************************************************************************************************
*/

typedef  struct  fs_dev_CF_Card_cfg {
    FS_SEC_SIZE   SecSize;
    FS_SEC_QTY    SecCount;
    void         *DiskPtr;
} FS_DEV_CF_CARD_CFG;

/*
*********************************************************************************************************
*                                          GLOBAL VARIABLES
*********************************************************************************************************
*/

extern           const  FS_DEV_API  FSDev_CF_Card;
FS_DEV_CF_Card_EXT         FS_QTY      FSDev_CF_Card_UnitCtr;

/*
*********************************************************************************************************
*                                               MACRO'S
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                         FUNCTION PROTOTYPES
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                         FUNCTION PROTOTYPES
*                                 DEFINED IN BSP'S 'fs_dev_CF_Card_bsp.c'
*********************************************************************************************************
*/

void  FSDev_CF_Card_BSP_Open (FS_QTY  unit_nbr);                   /* Open (initialize).                                   */

void  FSDev_CF_Card_BSP_Close(FS_QTY  unit_nbr);                   /* Close (uninitialize).                                */

    /* $$$$ OTHER BSP FUNCTIONS */

/*
*********************************************************************************************************
*                                        CONFIGURATION ERRORS
*********************************************************************************************************
*/

/*
*********************************************************************************************************
*                                             MODULE END
*********************************************************************************************************
*/

#endif                                                          /* End of CF_Card module include.                          */
  		  	 	    		 			 			  	  			 	 	  		  			 		 		   		 	 	  		 
