2 Copyright © 2017, The AROS Development Team. All rights reserved.
8 #include <aros/kernel.h>
10 #include <kernel_base.h>
11 #include <kernel_debug.h>
13 /*****************************************************************************
16 #include <proto/kernel.h>
18 AROS_LH2(ULONG
, KrnAllocIRQ
,
21 AROS_LHA(ULONG
, irq_type
, D0
),
22 AROS_LHA(ULONG
, count
, D1
),
25 struct KernelBase
*, KernelBase
, 38, Kernel
)
28 Allocate an arch specific IRQ type.
31 irq_tpe - The Arch specific Type of IRQ to allocate.
32 count - The number of sequential IRQ's to allocate.
35 -1 on failure, or the first 32bit IRQ ID.
40 ULONG msiIRQBase = KrnAllocIRQ(IRQTYPE_MSI, 7);
49 ******************************************************************************/
53 /* The implementation of this function is architecture-specific */