OpenCores
URL https://opencores.org/ocsvn/pcie_ds_dma/pcie_ds_dma/trunk

Subversion Repositories pcie_ds_dma

[/] [pcie_ds_dma/] [trunk/] [soft/] [linux/] [driver/] [pexdrv/] [event.h] - Blame information for rev 15

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dsmv
/***************************************************************************
2
 *            Event.h
3
 *
4
 *  Mon Apr 24 11:38:25 2006
5
 *  Copyright  2006  User
6
 *  Email karakozov@gmail.com
7
 ****************************************************************************/
8
 
9
#ifndef _EVENT_H_
10
#define _EVENT_H_
11
 
12
 
13
#define EVENT_MAGIC 0x89ABCDEF
14
 
15
//Need init wq, event and flag befor used
16
 
17
typedef struct _KEVENT {
18
        wait_queue_head_t       m_wq;
19
        struct fasync_struct    *m_async;       //for user space
20
        atomic_t                m_flag;         //for kernel space
21
} KEVENT, *PKEVENT;
22
 
23
////////////////////////////////////////////////////////////////////////////////
24
 
25
int InitKevent( KEVENT *event );
26
int ResetEvent( KEVENT *event );
27
int SetEvent( KEVENT *event );
28
int CheckEventFlag( KEVENT *event );
29
int WaitEvent( KEVENT *event, u32 timeout );
30
int GrabEvent ( KEVENT * event, u32 timeout );
31
 
32
////////////////////////////////////////////////////////////////////////////////
33
 
34
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.