Initial import of Scalos. To decrease size I have
[AROS-Contrib.git] / scalos / common / Plugin / scalosplugin-aos4-68kstubs.c
blobb5e005851049d7a2bd5b741c950248da4bab8d98
1 /*
2 ** This file was automatically generated by fdtrans 52.1.
3 ** Do not edit it by hand. Instead, edit the sfd file
4 ** that was used to generate this file
5 */
7 #ifdef __USE_INLINE__
8 #undef __USE_INLINE__
9 #endif
10 #ifndef __NOGLOBALIFACE__
11 #define __NOGLOBALIFACE__
12 #endif
14 #include <exec/interfaces.h>
15 #include <exec/libraries.h>
16 #include <exec/emulation.h>
17 #include <interfaces/exec.h>
18 #include <interfaces/scalosplugin.h>
19 #include <proto/scalosplugin.h>
22 static inline int8 convert_int8 (uint32 x) { return x; }
23 static inline int16 convert_int16(uint32 x) { return x; }
26 STATIC struct Library * stub_OpenPPC(ULONG *regarray)
28 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
29 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((ULONG)Base + Base->lib_PosSize);
30 struct LibraryManagerInterface *Self = (struct LibraryManagerInterface *) ExtLib->ILibrary;
32 return Self->Open(0);
34 STATIC CONST struct EmuTrap stub_Open = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_OpenPPC };
36 STATIC APTR stub_ClosePPC(ULONG *regarray)
38 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
39 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((ULONG)Base + Base->lib_PosSize);
40 struct LibraryManagerInterface *Self = (struct LibraryManagerInterface *) ExtLib->ILibrary;
42 return Self->Close();
44 STATIC CONST struct EmuTrap stub_Close = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_ClosePPC };
46 STATIC APTR stub_ExpungePPC(ULONG *regarray __attribute__((unused)))
48 return NULL;
50 STATIC CONST struct EmuTrap stub_Expunge = { TRAPINST, TRAPTYPE, (ULONG (*)(ULONG *))stub_ExpungePPC };
52 STATIC ULONG stub_ReservedPPC(ULONG *regarray __attribute__((unused)))
54 return 0UL;
56 STATIC CONST struct EmuTrap stub_Reserved = { TRAPINST, TRAPTYPE, stub_ReservedPPC };
58 static const struct ScaClassInfo * stub_SCAGetClassInfoPPC(uint32 *regarray)
60 struct Library *Base = (struct Library *) regarray[REG68K_A6/4];
61 struct ExtendedLibrary *ExtLib = (struct ExtendedLibrary *) ((uint32)Base + Base->lib_PosSize);
62 struct ScalosPluginIFace *Self = (struct ScalosPluginIFace *) ExtLib->MainIFace;
64 return Self->SCAGetClassInfo(
67 STATIC CONST struct EmuTrap stub_SCAGetClassInfo = { TRAPINST, TRAPTYPE, (uint32 (*)(uint32 *))stub_SCAGetClassInfoPPC };
69 CONST CONST_APTR VecTable68K[] =
71 &stub_Open,
72 &stub_Close,
73 &stub_Expunge,
74 &stub_Reserved,
75 &stub_SCAGetClassInfo,
76 (CONST_APTR)-1