#ifndef INLINE_VMM_H
#define INLINE_VMM_H

/*
    *** Automatically generated from '/home/aros/ABIv11/AROS/AROS/workbench/system/VMM/vmm.lib/vmm.conf'. Edits will be lost. ***
    Copyright (C) 1995-2026, The AROS Development Team. All rights reserved.
*/

/*
    Desc: Inline function(s) for vmm
*/

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

#if !defined(__VMM_LIBBASE)
#define __VMM_LIBBASE __aros_getbase_VMMBase()
#endif
#ifndef __aros_getbase_VMMBase
extern struct Library *__aros_getbase_VMMBase(void);
#endif


#if !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__)

static inline APTR __inline_VMM_AllocVMem(ULONG __arg1, ULONG __arg2, APTR __VMMBase)
{
    AROS_LIBREQ(VMMBase, 40)
    return AROS_LC2(APTR, AllocVMem,\
         AROS_LCA(ULONG, (__arg1), D0), \
         AROS_LCA(ULONG, (__arg2), D1), \
        struct Library *, (__VMMBase), 5, VMM    );
}

#define AllocVMem(arg1, arg2) \
    __inline_VMM_AllocVMem((arg1), (arg2), __VMM_LIBBASE)

#endif /* !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__) */

#if !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__)

static inline void __inline_VMM_FreeVMem(APTR __arg1, ULONG __arg2, APTR __VMMBase)
{
    AROS_LIBREQ(VMMBase, 40)
    AROS_LC2NR(void, FreeVMem,\
         AROS_LCA(APTR, (__arg1), A1), \
         AROS_LCA(ULONG, (__arg2), D0), \
        struct Library *, (__VMMBase), 6, VMM    );
}

#define FreeVMem(arg1, arg2) \
    __inline_VMM_FreeVMem((arg1), (arg2), __VMM_LIBBASE)

#endif /* !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__) */

#if !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__)

static inline ULONG __inline_VMM_AvailVMem(ULONG __arg1, APTR __VMMBase)
{
    AROS_LIBREQ(VMMBase, 40)
    return AROS_LC1(ULONG, AvailVMem,\
         AROS_LCA(ULONG, (__arg1), D1), \
        struct Library *, (__VMMBase), 7, VMM    );
}

#define AvailVMem(arg1) \
    __inline_VMM_AvailVMem((arg1), __VMM_LIBBASE)

#endif /* !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__) */

#if !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__)

static inline APTR __inline_VMM_AllocVVec(ULONG __arg1, ULONG __arg2, APTR __VMMBase)
{
    AROS_LIBREQ(VMMBase, 40)
    return AROS_LC2(APTR, AllocVVec,\
         AROS_LCA(ULONG, (__arg1), D0), \
         AROS_LCA(ULONG, (__arg2), D1), \
        struct Library *, (__VMMBase), 8, VMM    );
}

#define AllocVVec(arg1, arg2) \
    __inline_VMM_AllocVVec((arg1), (arg2), __VMM_LIBBASE)

#endif /* !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__) */

#if !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__)

static inline void __inline_VMM_FreeVVec(APTR __arg1, APTR __VMMBase)
{
    AROS_LIBREQ(VMMBase, 40)
    AROS_LC1NR(void, FreeVVec,\
         AROS_LCA(APTR, (__arg1), A1), \
        struct Library *, (__VMMBase), 9, VMM    );
}

#define FreeVVec(arg1) \
    __inline_VMM_FreeVVec((arg1), __VMM_LIBBASE)

#endif /* !defined(__VMM_LIBAPI__) || (40 <= __VMM_LIBAPI__) */

#endif /* INLINE_VMM_H*/
