#ifndef INLINE_KERNEL_H
#define INLINE_KERNEL_H

/*
    *** Automatically generated from '/home/aros/ABIv0/Build/20110803/AROS/rom/kernel/kernel.conf'. Edits will be lost. ***
    Copyright © 1995-2011, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Inline function for kernel
*/

#include <aros/libcall.h>
#include <exec/types.h>
#include <aros/preprocessor/variadic/cast2iptr.hpp>


static inline KRN_SchedType __inline_Kernel_KrnGetScheduler(APTR __KernelBase)
{
    return AROS_LC0(KRN_SchedType, KrnGetScheduler,
        APTR , (__KernelBase), 1, Kernel    );
}

#define KrnGetScheduler() \
    __inline_Kernel_KrnGetScheduler((APTR)KernelBase)

static inline void __inline_Kernel_KrnSetScheduler(KRN_SchedType __arg1, APTR __KernelBase)
{
    AROS_LC1NR(void, KrnSetScheduler,
        AROS_LCA(KRN_SchedType,(__arg1),D0),
        APTR , (__KernelBase), 2, Kernel    );
}

#define KrnSetScheduler(arg1) \
    __inline_Kernel_KrnSetScheduler((arg1), (APTR)KernelBase)

static inline void __inline_Kernel_KrnCause(APTR __KernelBase)
{
    AROS_LC0NR(void, KrnCause,
        APTR , (__KernelBase), 3, Kernel    );
}

#define KrnCause() \
    __inline_Kernel_KrnCause((APTR)KernelBase)

static inline void __inline_Kernel_KrnDispatch(APTR __KernelBase)
{
    AROS_LC0NR(void, KrnDispatch,
        APTR , (__KernelBase), 4, Kernel    );
}

#define KrnDispatch() \
    __inline_Kernel_KrnDispatch((APTR)KernelBase)

static inline void __inline_Kernel_KrnSwitch(APTR __KernelBase)
{
    AROS_LC0NR(void, KrnSwitch,
        APTR , (__KernelBase), 5, Kernel    );
}

#define KrnSwitch() \
    __inline_Kernel_KrnSwitch((APTR)KernelBase)

static inline void __inline_Kernel_KrnSchedule(APTR __KernelBase)
{
    AROS_LC0NR(void, KrnSchedule,
        APTR , (__KernelBase), 6, Kernel    );
}

#define KrnSchedule() \
    __inline_Kernel_KrnSchedule((APTR)KernelBase)

static inline void * __inline_Kernel_KrnAddIRQHandler(uint8_t __arg1, void * __arg2, void * __arg3, void * __arg4, APTR __KernelBase)
{
    return AROS_LC4(void *, KrnAddIRQHandler,
        AROS_LCA(uint8_t,(__arg1),D0),
        AROS_LCA(void *,(__arg2),A0),
        AROS_LCA(void *,(__arg3),A1),
        AROS_LCA(void *,(__arg4),A2),
        APTR , (__KernelBase), 7, Kernel    );
}

#define KrnAddIRQHandler(arg1, arg2, arg3, arg4) \
    __inline_Kernel_KrnAddIRQHandler((arg1), (arg2), (arg3), (arg4), (APTR)KernelBase)

static inline void __inline_Kernel_KrnRemIRQHandler(void * __arg1, APTR __KernelBase)
{
    AROS_LC1NR(void, KrnRemIRQHandler,
        AROS_LCA(void *,(__arg1),A0),
        APTR , (__KernelBase), 8, Kernel    );
}

#define KrnRemIRQHandler(arg1) \
    __inline_Kernel_KrnRemIRQHandler((arg1), (APTR)KernelBase)

static inline void __inline_Kernel_KrnCli(APTR __KernelBase)
{
    AROS_LC0NR(void, KrnCli,
        APTR , (__KernelBase), 9, Kernel    );
}

#define KrnCli() \
    __inline_Kernel_KrnCli((APTR)KernelBase)

static inline void __inline_Kernel_KrnSti(APTR __KernelBase)
{
    AROS_LC0NR(void, KrnSti,
        APTR , (__KernelBase), 10, Kernel    );
}

#define KrnSti() \
    __inline_Kernel_KrnSti((APTR)KernelBase)

static inline struct TagItem * __inline_Kernel_KrnGetBootInfo(APTR __KernelBase)
{
    return AROS_LC0(struct TagItem *, KrnGetBootInfo,
        APTR , (__KernelBase), 11, Kernel    );
}

#define KrnGetBootInfo() \
    __inline_Kernel_KrnGetBootInfo((APTR)KernelBase)

static inline int __inline_Kernel_KrnBug(const char * __arg1, va_list __arg2, APTR __KernelBase)
{
    return AROS_LC2(int, KrnBug,
        AROS_LCA(const char *,(__arg1),A0),
        AROS_LCA(va_list,(__arg2),A1),
        APTR , (__KernelBase), 12, Kernel    );
}

#define KrnBug(arg1, arg2) \
    __inline_Kernel_KrnBug((arg1), (arg2), (APTR)KernelBase)

static inline int __inline_Kernel_KrnIsSuper(APTR __KernelBase)
{
    return AROS_LC0(int, KrnIsSuper,
        APTR , (__KernelBase), 13, Kernel    );
}

#define KrnIsSuper() \
    __inline_Kernel_KrnIsSuper((APTR)KernelBase)

static inline void * __inline_Kernel_KrnAddExceptionHandler(uint8_t __arg1, void * __arg2, void * __arg3, void * __arg4, APTR __KernelBase)
{
    return AROS_LC4(void *, KrnAddExceptionHandler,
        AROS_LCA(uint8_t,(__arg1),D0),
        AROS_LCA(void *,(__arg2),A0),
        AROS_LCA(void *,(__arg3),A1),
        AROS_LCA(void *,(__arg4),A2),
        APTR , (__KernelBase), 14, Kernel    );
}

#define KrnAddExceptionHandler(arg1, arg2, arg3, arg4) \
    __inline_Kernel_KrnAddExceptionHandler((arg1), (arg2), (arg3), (arg4), (APTR)KernelBase)

static inline void __inline_Kernel_KrnRemExceptionHandler(void * __arg1, APTR __KernelBase)
{
    AROS_LC1NR(void, KrnRemExceptionHandler,
        AROS_LCA(void *,(__arg1),A0),
        APTR , (__KernelBase), 15, Kernel    );
}

#define KrnRemExceptionHandler(arg1) \
    __inline_Kernel_KrnRemExceptionHandler((arg1), (APTR)KernelBase)

static inline int __inline_Kernel_KrnMapGlobal(void * __arg1, void * __arg2, uint32_t __arg3, KRN_MapAttr __arg4, APTR __KernelBase)
{
    return AROS_LC4(int, KrnMapGlobal,
        AROS_LCA(void *,(__arg1),A0),
        AROS_LCA(void *,(__arg2),A1),
        AROS_LCA(uint32_t,(__arg3),D0),
        AROS_LCA(KRN_MapAttr,(__arg4),D1),
        APTR , (__KernelBase), 16, Kernel    );
}

#define KrnMapGlobal(arg1, arg2, arg3, arg4) \
    __inline_Kernel_KrnMapGlobal((arg1), (arg2), (arg3), (arg4), (APTR)KernelBase)

static inline int __inline_Kernel_KrnUnmapGlobal(void * __arg1, uint32_t __arg2, APTR __KernelBase)
{
    return AROS_LC2(int, KrnUnmapGlobal,
        AROS_LCA(void *,(__arg1),A0),
        AROS_LCA(uint32_t,(__arg2),D0),
        APTR , (__KernelBase), 17, Kernel    );
}

#define KrnUnmapGlobal(arg1, arg2) \
    __inline_Kernel_KrnUnmapGlobal((arg1), (arg2), (APTR)KernelBase)

static inline void * __inline_Kernel_KrnCreateContext(APTR __KernelBase)
{
    return AROS_LC0(void *, KrnCreateContext,
        APTR , (__KernelBase), 18, Kernel    );
}

#define KrnCreateContext() \
    __inline_Kernel_KrnCreateContext((APTR)KernelBase)

static inline void __inline_Kernel_KrnDeleteContext(void * __arg1, APTR __KernelBase)
{
    AROS_LC1NR(void, KrnDeleteContext,
        AROS_LCA(void *,(__arg1),A0),
        APTR , (__KernelBase), 19, Kernel    );
}

#define KrnDeleteContext(arg1) \
    __inline_Kernel_KrnDeleteContext((arg1), (APTR)KernelBase)

static inline void * __inline_Kernel_KrnVirtualToPhysical(void * __arg1, APTR __KernelBase)
{
    return AROS_LC1(void *, KrnVirtualToPhysical,
        AROS_LCA(void *,(__arg1),A0),
        APTR , (__KernelBase), 20, Kernel    );
}

#define KrnVirtualToPhysical(arg1) \
    __inline_Kernel_KrnVirtualToPhysical((arg1), (APTR)KernelBase)

static inline void __inline_Kernel_KrnSetProtection(void * __arg1, uint32_t __arg2, KRN_MapAttr __arg3, APTR __KernelBase)
{
    AROS_LC3NR(void, KrnSetProtection,
        AROS_LCA(void *,(__arg1),A0),
        AROS_LCA(uint32_t,(__arg2),D0),
        AROS_LCA(KRN_MapAttr,(__arg3),D1),
        APTR , (__KernelBase), 21, Kernel    );
}

#define KrnSetProtection(arg1, arg2, arg3) \
    __inline_Kernel_KrnSetProtection((arg1), (arg2), (arg3), (APTR)KernelBase)

static inline void __inline_Kernel_KrnRegisterModule(const char * __arg1, BPTR __arg2, ULONG __arg3, APTR __arg4, APTR __KernelBase)
{
    AROS_LC4NR(void, KrnRegisterModule,
        AROS_LCA(const char *,(__arg1),A0),
        AROS_LCA(BPTR,(__arg2),A1),
        AROS_LCA(ULONG,(__arg3),D0),
        AROS_LCA(APTR,(__arg4),A2),
        APTR , (__KernelBase), 22, Kernel    );
}

#define KrnRegisterModule(arg1, arg2, arg3, arg4) \
    __inline_Kernel_KrnRegisterModule((arg1), (arg2), (arg3), (arg4), (APTR)KernelBase)

static inline void __inline_Kernel_KrnUnregisterModule(BPTR __arg1, APTR __KernelBase)
{
    AROS_LC1NR(void, KrnUnregisterModule,
        AROS_LCA(BPTR,(__arg1),A0),
        APTR , (__KernelBase), 23, Kernel    );
}

#define KrnUnregisterModule(arg1) \
    __inline_Kernel_KrnUnregisterModule((arg1), (APTR)KernelBase)

static inline int __inline_Kernel_KrnDecodeLocationA(void * __arg1, struct TagItem * __arg2, APTR __KernelBase)
{
    return AROS_LC2(int, KrnDecodeLocationA,
        AROS_LCA(void *,(__arg1),A0),
        AROS_LCA(struct TagItem *,(__arg2),A1),
        APTR , (__KernelBase), 24, Kernel    );
}

#define KrnDecodeLocationA(arg1, arg2) \
    __inline_Kernel_KrnDecodeLocationA((arg1), (arg2), (APTR)KernelBase)

#if !defined(NO_INLINE_STDARG) && !defined(KERNEL_NO_INLINE_STDARG)
#define KrnDecodeLocation(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    KrnDecodeLocationA((arg1), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

static inline void __inline_Kernel_KrnPutChar(char __arg1, APTR __KernelBase)
{
    AROS_LC1NR(void, KrnPutChar,
        AROS_LCA(char,(__arg1),D0),
        APTR , (__KernelBase), 25, Kernel    );
}

#define KrnPutChar(arg1) \
    __inline_Kernel_KrnPutChar((arg1), (APTR)KernelBase)

static inline int __inline_Kernel_KrnMayGetChar(APTR __KernelBase)
{
    return AROS_LC0(int, KrnMayGetChar,
        APTR , (__KernelBase), 26, Kernel    );
}

#define KrnMayGetChar() \
    __inline_Kernel_KrnMayGetChar((APTR)KernelBase)

static inline void * __inline_Kernel_KrnAllocPages(void * __arg1, uintptr_t __arg2, uint32_t __arg3, APTR __KernelBase)
{
    return AROS_LC3(void *, KrnAllocPages,
        AROS_LCA(void *,(__arg1),A0),
        AROS_LCA(uintptr_t,(__arg2),D0),
        AROS_LCA(uint32_t,(__arg3),D1),
        APTR , (__KernelBase), 27, Kernel    );
}

#define KrnAllocPages(arg1, arg2, arg3) \
    __inline_Kernel_KrnAllocPages((arg1), (arg2), (arg3), (APTR)KernelBase)

static inline void __inline_Kernel_KrnFreePages(void * __arg1, uintptr_t __arg2, APTR __KernelBase)
{
    AROS_LC2NR(void, KrnFreePages,
        AROS_LCA(void *,(__arg1),A0),
        AROS_LCA(uintptr_t,(__arg2),D0),
        APTR , (__KernelBase), 28, Kernel    );
}

#define KrnFreePages(arg1, arg2) \
    __inline_Kernel_KrnFreePages((arg1), (arg2), (APTR)KernelBase)

static inline intptr_t __inline_Kernel_KrnGetSystemAttr(uint32_t __arg1, APTR __KernelBase)
{
    return AROS_LC1(intptr_t, KrnGetSystemAttr,
        AROS_LCA(uint32_t,(__arg1),D0),
        APTR , (__KernelBase), 29, Kernel    );
}

#define KrnGetSystemAttr(arg1) \
    __inline_Kernel_KrnGetSystemAttr((arg1), (APTR)KernelBase)

static inline int __inline_Kernel_KrnSetSystemAttr(uint32_t __arg1, intptr_t __arg2, APTR __KernelBase)
{
    return AROS_LC2(int, KrnSetSystemAttr,
        AROS_LCA(uint32_t,(__arg1),D0),
        AROS_LCA(intptr_t,(__arg2),D1),
        APTR , (__KernelBase), 30, Kernel    );
}

#define KrnSetSystemAttr(arg1, arg2) \
    __inline_Kernel_KrnSetSystemAttr((arg1), (arg2), (APTR)KernelBase)

static inline void __inline_Kernel_KrnInitMemory(struct MemHeader * __arg1, APTR __KernelBase)
{
    AROS_LC1NR(void, KrnInitMemory,
        AROS_LCA(struct MemHeader *,(__arg1),A0),
        APTR , (__KernelBase), 31, Kernel    );
}

#define KrnInitMemory(arg1) \
    __inline_Kernel_KrnInitMemory((arg1), (APTR)KernelBase)

static inline ULONG __inline_Kernel_KrnStatMemoryA(uint32_t __arg1, struct TagItem * __arg2, APTR __KernelBase)
{
    return AROS_LC2(ULONG, KrnStatMemoryA,
        AROS_LCA(uint32_t,(__arg1),D0),
        AROS_LCA(struct TagItem *,(__arg2),A0),
        APTR , (__KernelBase), 32, Kernel    );
}

#define KrnStatMemoryA(arg1, arg2) \
    __inline_Kernel_KrnStatMemoryA((arg1), (arg2), (APTR)KernelBase)

#if !defined(NO_INLINE_STDARG) && !defined(KERNEL_NO_INLINE_STDARG)
#define KrnStatMemory(arg1, ...) \
({ \
    IPTR __args[] = { AROS_PP_VARIADIC_CAST2IPTR(__VA_ARGS__) }; \
    KrnStatMemoryA((arg1), (struct TagItem *)__args); \
})
#endif /* !NO_INLINE_STDARG */

#endif /* INLINE_KERNEL_H*/
