/* Automatically generated header! Do not edit! */

#ifndef _PPCINLINE_REXXSYSLIB_H
#define _PPCINLINE_REXXSYSLIB_H

#ifndef __PPCINLINE_MACROS_H
#include <powerup/ppcinline/macros.h>
#endif /* !__PPCINLINE_MACROS_H */

#ifndef REXXSYSLIB_BASE_NAME
#define REXXSYSLIB_BASE_NAME RexxSysBase
#endif /* !REXXSYSLIB_BASE_NAME */

#define ClearRexxMsg(msgptr, count) \
	LP2NR(0x9c, ClearRexxMsg, struct RexxMsg *, msgptr, a0, unsigned long, count, d0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define CreateArgstring(string, length) \
	LP2(0x7e, UBYTE *, CreateArgstring, UBYTE *, string, a0, unsigned long, length, d0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define CreateRexxMsg(port, extension, host) \
	LP3(0x90, struct RexxMsg *, CreateRexxMsg, struct MsgPort *, port, a0, UBYTE *, extension, a1, UBYTE *, host, d0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define DeleteArgstring(argstring) \
	LP1NR(0x84, DeleteArgstring, UBYTE *, argstring, a0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define DeleteRexxMsg(packet) \
	LP1NR(0x96, DeleteRexxMsg, struct RexxMsg *, packet, a0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define FillRexxMsg(msgptr, count, mask) \
	LP3(0xa2, BOOL, FillRexxMsg, struct RexxMsg *, msgptr, a0, unsigned long, count, d0, unsigned long, mask, d1, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define IsRexxMsg(msgptr) \
	LP1(0xa8, BOOL, IsRexxMsg, struct RexxMsg *, msgptr, a0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define LengthArgstring(argstring) \
	LP1(0x8a, ULONG, LengthArgstring, UBYTE *, argstring, a0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define LockRexxBase(resource) \
	LP1NR(0x1c2, LockRexxBase, unsigned long, resource, d0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#define UnlockRexxBase(resource) \
	LP1NR(0x1c8, UnlockRexxBase, unsigned long, resource, d0, \
	, REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)

#endif /* !_PPCINLINE_REXXSYSLIB_H */
