blob: b8d890934484f24e163ebca1ff641ee4180bd74c [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/*******************************************************************************
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****************************************************************************/
24typedef 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}
32T_Drv_Hisr;
33
34typedef VOID(*FUNC_HISRENTRY)(SINT32 arg);
35
36/****************************************************************************
37* Constants
38****************************************************************************/
39
40/****************************************************************************
41* Global Variables
42****************************************************************************/
43
44/****************************************************************************
45* Function Prototypes
46****************************************************************************/
47SINT32 zDrv_HisrCreate(T_Drv_Hisr * hisr, CHAR *name, SINT32 size, SINT32 priority, FUNC_HISRENTRY hisr_entry, VOID *hisr_device);
48VOID zDrv_HisrFree(T_Drv_Hisr * hisr);
49VOID zDrv_HisrStart(T_Drv_Hisr * hisr, UINT32 event);
50VOID zDrv_HisrActivate(T_Drv_Hisr * hisr);
51VOID zDrv_HisrWaitSem(T_Drv_Hisr * hisr);
52VOID zDrv_HisrResetEvent (T_Drv_Hisr *hisr, UINT32 event);
53SINT32 zDrv_HisrInitSem(T_Drv_Hisr * hisr);
54
55
56#endif
57