source: GPL/include/irqos2.h@ 18

Last change on this file since 18 was 18, checked in by vladest, 20 years ago

initial import

File size: 1.4 KB
Line 
1/* $Id: irqos2.h,v 1.1.1.1 2003/07/02 13:56:58 eleph Exp $ */
2/*
3 * Header for IRQ definitions & structures
4 *
5 * (C) 2000-2002 InnoTek Systemberatung GmbH
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public
18 * License along with this program; if not, write to the Free
19 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
20 * USA.
21 *
22 */
23
24#ifndef __IRQOS2_H__
25#define __IRQOS2_H__
26
27#define MAX_SHAREDIRQS 16
28#define MAX_IRQS 16
29
30typedef void (NEAR * IRQHANDLER)(int, void *, void *);
31
32typedef struct {
33 IRQHANDLER handler;
34 ULONG x0;
35 char *x1;
36 void *x2;
37} IRQHANDLER_INFO;
38
39typedef BOOL (*PFNIRQ)(int irq);
40
41#ifdef __cplusplus
42extern "C" {
43#endif
44
45BOOL RMSetIrq(ULONG ulIrq, BOOL fShared, PFNIRQ pfnIrqHandler);
46BOOL RMFreeIrq(ULONG ulIrq);
47
48BOOL oss_process_interrupt(int irq);
49
50ULONG os2gettimemsec();
51ULONG os2gettimesec();
52
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif //__IRQOS2_H__
59
Note: See TracBrowser for help on using the repository browser.