lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | /***********************************************************************
|
| 2 | * Copyright (C) 2001, ZTE Corporation.
|
| 3 | *
|
| 4 | * File Name: hal_kpd.h
|
| 5 | * File Mark:
|
| 6 | * Description: tu hal interface declaration.
|
| 7 | * Others:
|
| 8 | * Version: v1.0
|
| 9 | * Author: yan junhua
|
| 10 | * Date: 2007-10-19
|
| 11 | *
|
| 12 | * History 1:
|
| 13 | * Date:
|
| 14 | * Version:
|
| 15 | * Author:
|
| 16 | * Modification:
|
| 17 |
|
| 18 | * History 2:
|
| 19 | **********************************************************************/
|
| 20 |
|
| 21 | #ifndef _DRVS_TU_H
|
| 22 | #define _DRVS_TU_H
|
| 23 |
|
| 24 |
|
| 25 | /*************************************************************************
|
| 26 | * Include files *
|
| 27 | *************************************************************************/
|
| 28 |
|
| 29 |
|
| 30 | /*************************************************************************
|
| 31 | * Macro *
|
| 32 | *************************************************************************/
|
| 33 |
|
| 34 |
|
| 35 | /**************************************************************************
|
| 36 | * Types *
|
| 37 | **************************************************************************/
|
| 38 | typedef enum
|
| 39 | {
|
| 40 | TU_GP0_INT,
|
| 41 | TU_GP1_INT,
|
| 42 | TU_GP2_INT,
|
| 43 | TU_GP3_INT,
|
| 44 | TU_GP4_INT,
|
| 45 | TU_T_INT1,
|
| 46 | TU_T_INT2,
|
| 47 |
|
| 48 | MAX_TU_INT
|
| 49 | } T_ZDrvTu_IntId;
|
| 50 |
|
| 51 | typedef VOID (*T_ZDRVTU_CALLBACK)(VOID);
|
| 52 |
|
| 53 |
|
| 54 | /**************************************************************************
|
| 55 | * Global Variable *
|
| 56 | **************************************************************************/
|
| 57 |
|
| 58 |
|
| 59 | /**************************************************************************
|
| 60 | * Function Prototypes *
|
| 61 | **************************************************************************/
|
| 62 | /**************************************************************************
|
| 63 | * Functin: zDrvTu_IntRegister
|
| 64 | * Description: This function is used to regist isr callback for l1g.
|
| 65 | * Parameters:
|
| 66 | * (IN)
|
| 67 | * tId: T_ZDrvTu_IntId.
|
| 68 | * fCallback: isr callback.
|
| 69 | * (OUT)
|
| 70 | * None.
|
| 71 | * Returns:
|
| 72 | * DRV_SUCCESS: successed.
|
| 73 | * DRV_ERR_NOT_SUPPORTED: this device don't support ioctrl operation.
|
| 74 | * DRV_ERR_INVALID_PARAM: the input parameters are invalid
|
| 75 | * DRV_ERROR: error
|
| 76 | * others: others programmer defined error code. for detailed information, please contact with the programmer
|
| 77 | * Others:
|
| 78 | * 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.
|
| 79 | **************************************************************************/
|
| 80 | SINT32
|
| 81 | zDrvTu_IntRegister( T_ZDrvTu_IntId tId, T_ZDRVTU_CALLBACK fCallback,UINT32 intPrio);
|
| 82 |
|
| 83 | #endif /* _DRVS_TU_H */
|