source: GPL/branches/1.1.x/include/irqos2.h@ 423

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

(Patches by Ruediger Ihle)
Support for IRQs > 15
Fixed resource manager registration
Fixed crash on APM suspend/resume and system shutdown

File size: 1.6 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 8
28#define MAX_IRQ_SLOTS 8
29
30
31typedef int (NEAR * IRQHANDLER)(int, void *, struct pt_regs *);
32
33typedef struct {
34 IRQHANDLER handler;
35 ULONG x0;
36 char *x1;
37 void *x2;
38} IRQHANDLER_INFO;
39
40typedef struct
41{
42 unsigned irqNo;
43 unsigned fEOI;
44 unsigned flHandlers;
45 IRQHANDLER_INFO irqHandlers[MAX_SHAREDIRQS];
46} IRQ_SLOT;
47
48
49#ifdef __cplusplus
50extern "C" {
51#endif
52
53BOOL ALSA_SetIrq(ULONG ulIrq, ULONG ulSlotNo, BOOL fShared);
54BOOL ALSA_FreeIrq(ULONG ulIrq);
55
56BOOL process_interrupt(ULONG ulSlotNo, ULONG *pulIrq);
57
58ULONG os2gettimemsec();
59ULONG os2gettimesec();
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif //__IRQOS2_H__
66
Note: See TracBrowser for help on using the repository browser.