| 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 |  | 
|---|
| 31 | typedef int (NEAR * IRQHANDLER)(int, void *, struct pt_regs *); | 
|---|
| 32 |  | 
|---|
| 33 | typedef struct { | 
|---|
| 34 | IRQHANDLER handler; | 
|---|
| 35 | ULONG x0; | 
|---|
| 36 | char *x1; | 
|---|
| 37 | void *x2; | 
|---|
| 38 | } IRQHANDLER_INFO; | 
|---|
| 39 |  | 
|---|
| 40 | typedef 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 | 
|---|
| 50 | extern "C" { | 
|---|
| 51 | #endif | 
|---|
| 52 |  | 
|---|
| 53 | BOOL ALSA_SetIrq(ULONG ulIrq, ULONG ulSlotNo, BOOL fShared); | 
|---|
| 54 | BOOL ALSA_FreeIrq(ULONG ulIrq); | 
|---|
| 55 |  | 
|---|
| 56 | BOOL process_interrupt(ULONG ulSlotNo, ULONG *pulIrq); | 
|---|
| 57 |  | 
|---|
| 58 | ULONG os2gettimemsec(); | 
|---|
| 59 | ULONG os2gettimesec(); | 
|---|
| 60 |  | 
|---|
| 61 | #ifdef __cplusplus | 
|---|
| 62 | } | 
|---|
| 63 | #endif | 
|---|
| 64 |  | 
|---|
| 65 | #endif //__IRQOS2_H__ | 
|---|
| 66 |  | 
|---|