lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | /*******************************************************************************
|
| 2 | * Copyright (C) 2007, ZTE Corporation.
|
| 3 | *
|
| 4 | * File Name: drvs_hisr.h
|
| 5 | * File Mark:
|
| 6 | * Description: Provide the declaration of return types for HAL
|
| 7 | * Others:
|
| 8 | * Version: V0.5
|
| 9 | * Author: xiongquan
|
| 10 | * Date: 2008-12-01
|
| 11 | * History 1:
|
| 12 | * Date:
|
| 13 | * Version:
|
| 14 | * Author:
|
| 15 | * Modification:
|
| 16 | * History 2:
|
| 17 | ********************************************************************************/
|
| 18 | #ifndef _DRVS_HISR_H
|
| 19 | #define _DRVS_HISR_H
|
| 20 |
|
| 21 | /****************************************************************************
|
| 22 | * Types
|
| 23 | ****************************************************************************/
|
| 24 | typedef struct _T_Drv_Hisr
|
| 25 | {
|
| 26 | UINT8 active;
|
| 27 | UINT32 event;
|
| 28 | ZOSS_THREAD_ID pid;
|
| 29 | ZOSS_SEMAPHORE_ID semid;
|
| 30 | VOID * devPtr;
|
| 31 | }
|
| 32 | T_Drv_Hisr;
|
| 33 |
|
| 34 | typedef VOID(*FUNC_HISRENTRY)(SINT32 arg);
|
| 35 |
|
| 36 | /****************************************************************************
|
| 37 | * Constants
|
| 38 | ****************************************************************************/
|
| 39 |
|
| 40 | /****************************************************************************
|
| 41 | * Global Variables
|
| 42 | ****************************************************************************/
|
| 43 |
|
| 44 | /****************************************************************************
|
| 45 | * Function Prototypes
|
| 46 | ****************************************************************************/
|
| 47 | SINT32 zDrv_HisrCreate(T_Drv_Hisr * hisr, CHAR *name, SINT32 size, SINT32 priority, FUNC_HISRENTRY hisr_entry, VOID *hisr_device);
|
| 48 | VOID zDrv_HisrFree(T_Drv_Hisr * hisr);
|
| 49 | VOID zDrv_HisrStart(T_Drv_Hisr * hisr, UINT32 event);
|
| 50 | VOID zDrv_HisrActivate(T_Drv_Hisr * hisr);
|
| 51 | VOID zDrv_HisrWaitSem(T_Drv_Hisr * hisr);
|
| 52 | VOID zDrv_HisrResetEvent (T_Drv_Hisr *hisr, UINT32 event);
|
| 53 | SINT32 zDrv_HisrInitSem(T_Drv_Hisr * hisr);
|
| 54 |
|
| 55 |
|
| 56 | #endif
|
| 57 |
|