fix __AROS_SETVECADDR invocations.
[AROS.git] / rom / kernel / allocirq.c
blob1715d595ba1dde9302bc64fef9bc2a93dc6166b5
1 /*
2 Copyright © 2017, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 */
8 #include <aros/kernel.h>
10 #include <kernel_base.h>
11 #include <kernel_debug.h>
13 /*****************************************************************************
15 NAME */
16 #include <proto/kernel.h>
18 AROS_LH2(ULONG, KrnAllocIRQ,
20 /* SYNOPSIS */
21 AROS_LHA(ULONG, irq_type, D0),
22 AROS_LHA(ULONG, count, D1),
24 /* LOCATION */
25 struct KernelBase *, KernelBase, 38, Kernel)
27 /* FUNCTION
28 Allocate an arch specific IRQ type.
30 INPUTS
31 irq_tpe - The Arch specific Type of IRQ to allocate.
32 count - The number of sequential IRQ's to allocate.
34 RESULT
35 -1 on failure, or the first 32bit IRQ ID.
37 NOTES
39 EXAMPLE
40 ULONG msiIRQBase = KrnAllocIRQ(IRQTYPE_MSI, 7);
42 BUGS
44 SEE ALSO
45 KrnAddIRQHandler();
47 INTERNALS
49 ******************************************************************************/
51 AROS_LIBFUNC_INIT
53 /* The implementation of this function is architecture-specific */
54 return (ULONG)-1;
56 AROS_LIBFUNC_EXIT