/*---------------------------------------------------------------------------
* Copyright (C) 2004-2007, Freescale Semiconductor, Inc. All Rights Reserved.
* THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
* AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT 
*--------------------------------------------------------------------------*/

//------------------------------------------------------------------------------
//
//  File:  bspsdhc.h
// Header file for platform specific SDHC functions
//------------------------------------------------------------------------------

#ifndef _BSP_SDHC_H
#define _BSP_SDHC_H

/*******************************************************************************
 MACRO DEFINITIONS 
*******************************************************************************/
#define CARD_DETECT_IRQ_TEXT            _T("CardDetectIRQ")
#define WRITE_PROTECT_IRQ_TEXT          _T("WriteProtectIRQ")
#define WRITE_PROTECT_GPIO_TEXT         _T("WriteProtectGPIO")

/*******************************************************************************
 ENUMERATIONS AND STRUCTURES 
*******************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif

typedef struct _BSP_SDHC_CONTEXT {
   DWORD dwControllerIndex;                  //Index of Controller being notified by card interrupt
   BOOL bWriteProtected;                     //Whether card is write protected 
   DWORD dwCardIrq;                          //Card detect IRQ line 
   DWORD dwSysIntrCardDetect;                //Card interrupt SYSINTR value
   HANDLE hCardInsertInterruptEvent;         // card insert/remove interrupt event
   DWORD dwCardDetectIRQ, dwWriteProtectIRQ;
   DWORD dwWriteProtectGPIO;
   DWORD dwCardDetectGPIOPort, dwCardDetectGPIOPin, dwCardDetectIoMuxPin, dwCardDetectIoMuxPad;
   DWORD dwWriteProtectGPIOPort, dwWriteProtectGPIOPin, dwWriteProtectIoMuxPin, dwWriteProtectIoMuxPad;
} BSP_SDHC_CONTEXT, *PBSP_SDHC_CONTEXT;


/*******************************************************************************
 EXTERN DECLARATIONS
*******************************************************************************/

#ifdef __cplusplus
}
#endif



#endif   
/*******************************************************************************
 END OF FILE
*******************************************************************************/









