blob: 7c0e782f68559dea8907a82361cdf076fea7d435 [file] [log] [blame]
/***********************************************************************
* Copyright (C) 2001, ZTE Corporation.
*
* File Name: hal_kpd.h
* File Mark:
* Description: tu hal interface declaration.
* Others:
* Version: v1.0
* Author: yan junhua
* Date: 2007-10-19
*
* History 1:
* Date:
* Version:
* Author:
* Modification:
* History 2:
**********************************************************************/
#ifndef _DRVS_TU_H
#define _DRVS_TU_H
/*************************************************************************
* Include files *
*************************************************************************/
/*************************************************************************
* Macro *
*************************************************************************/
/**************************************************************************
* Types *
**************************************************************************/
typedef enum
{
TU_GP0_INT,
TU_GP1_INT,
TU_GP2_INT,
TU_GP3_INT,
TU_GP4_INT,
TU_T_INT1,
TU_T_INT2,
MAX_TU_INT
} T_ZDrvTu_IntId;
typedef VOID (*T_ZDRVTU_CALLBACK)(VOID);
/**************************************************************************
* Global Variable *
**************************************************************************/
/**************************************************************************
* Function Prototypes *
**************************************************************************/
/**************************************************************************
* Functin: zDrvTu_IntRegister
* Description: This function is used to regist isr callback for l1g.
* Parameters:
* (IN)
* tId: T_ZDrvTu_IntId.
* fCallback: isr callback.
* (OUT)
* None.
* Returns:
* DRV_SUCCESS: successed.
* DRV_ERR_NOT_SUPPORTED: this device don't support ioctrl operation.
* DRV_ERR_INVALID_PARAM: the input parameters are invalid
* DRV_ERROR: error
* others: others programmer defined error code. for detailed information, please contact with the programmer
* Others:
* others error code should be a negative number, and not equal to the value that already be defined in T_ZDrv_ErrCode in drv_pub.h.
**************************************************************************/
SINT32
zDrvTu_IntRegister( T_ZDrvTu_IntId tId, T_ZDRVTU_CALLBACK fCallback,UINT32 intPrio);
#endif /* _DRVS_TU_H */