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 | #define MAX_SHAREDIRQS 256 // ACPI
|
---|
30 | #define MAX_IRQS 256 // ACPI
|
---|
31 |
|
---|
32 | //typedef void (NEAR * IRQHANDLER)(int, void *, void *);
|
---|
33 | typedef int (NEAR * IRQHANDLER)(int, void *, void *);
|
---|
34 |
|
---|
35 | typedef struct {
|
---|
36 | IRQHANDLER handler;
|
---|
37 | ULONG x0;
|
---|
38 | char *x1;
|
---|
39 | void *x2;
|
---|
40 | } IRQHANDLER_INFO;
|
---|
41 |
|
---|
42 | typedef BOOL (*PFNIRQ)(int irq);
|
---|
43 |
|
---|
44 | #ifdef __cplusplus
|
---|
45 | extern "C" {
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | BOOL RMSetIrq(ULONG ulIrq, BOOL fShared, PFNIRQ pfnIrqHandler);
|
---|
49 | BOOL RMFreeIrq(ULONG ulIrq);
|
---|
50 |
|
---|
51 | BOOL oss_process_interrupt(int irq);
|
---|
52 |
|
---|
53 | ULONG os2gettimemsec();
|
---|
54 | ULONG os2gettimesec();
|
---|
55 |
|
---|
56 |
|
---|
57 | #ifdef __cplusplus
|
---|
58 | }
|
---|
59 | #endif
|
---|
60 |
|
---|
61 | #endif //__IRQOS2_H__
|
---|
62 |
|
---|