summaryrefslogtreecommitdiff
path: root/tools/src/gxf.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src/gxf.h')
-rw-r--r--tools/src/gxf.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/src/gxf.h b/tools/src/gxf.h
new file mode 100644
index 0000000..9d1f22b
--- /dev/null
+++ b/tools/src/gxf.h
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: MIT */
+
+#ifndef __GXF_H__
+#define __GXF_H__
+
+#include "types.h"
+
+#define GL_STACK_SIZE 0x10000
+
+#ifndef __ASSEMBLER__
+
+bool gxf_enabled(void);
+bool in_gl12(void);
+
+void gxf_init(void);
+
+uint64_t gl1_call(void *func, uint64_t a, uint64_t b, uint64_t c, uint64_t d);
+uint64_t gl2_call(void *func, uint64_t a, uint64_t b, uint64_t c, uint64_t d);
+
+#endif
+
+#endif