home *** CD-ROM | disk | FTP | other *** search
Wrap
Text File | 2001-02-14 | 1.8 MB | 51,038 lines
Text Truncated. Only the first 1MB is shown below. Download the file for the complete contents.
Only in include_h/clib: alib_protos.h Only in include_h/clib: alib_stdio_protos.h Only in include_h/clib: all_protos.h Only in include_h/clib: amigaguide_protos.h diff -c2 -d -P -r include_h/clib/amigaguide_varprotos.h includenew/clib/amigaguide_varprotos.h *** include_h/clib/amigaguide_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/amigaguide_varprotos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,13 ---- + #ifndef CLIB_AMIGAGUIDE_VARPROTOS_H + #define CLIB_AMIGAGUIDE_VARPROTOS_H + + APTR OpenAmigaGuide( struct NewAmigaGuide *nag, Tag tag1, ... ); + APTR OpenAmigaGuideAsync( struct NewAmigaGuide *nag, Tag tag1, ... ); + LONG SetAmigaGuideContext( APTR cl, unsigned long id, Tag tag1, ... ); + LONG SendAmigaGuideContext( APTR cl, Tag tag1, ... ); + LONG SendAmigaGuideCmd( APTR cl, STRPTR cmd, Tag tag1, ... ); + LONG SetAmigaGuideAttrs( APTR cl, Tag tag1, ... ); + APTR AddAmigaGuideHost( struct Hook *h, STRPTR name, Tag tag1, ... ); + LONG RemoveAmigaGuideHost( APTR hh, Tag tag1, ... ); + + #endif Only in include_h/clib: asl_protos.h diff -c2 -d -P -r include_h/clib/asl_varprotos.h includenew/clib/asl_varprotos.h *** include_h/clib/asl_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/asl_varprotos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,7 ---- + #ifndef CLIB_ASL_VARPROTOS_H + #define CLIB_ASL_VARPROTOS_H + + APTR AllocAslRequestTags( unsigned long reqType, Tag Tag1, ... ); + BOOL AslRequestTags( APTR requester, Tag Tag1, ... ); + + #endif Only in include_h/clib: battclock_protos.h Only in include_h/clib: battmem_protos.h Only in include_h/clib: bullet_protos.h diff -c2 -d -P -r include_h/clib/bullet_varprotos.h includenew/clib/bullet_varprotos.h *** include_h/clib/bullet_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/bullet_varprotos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,15 ---- + #ifndef CLIB_BULLET_PROTOS_H + #define CLIB_BULLET_PROTOS_H + + #ifndef UTILITY_TAGITEM_H + #include <utility/tagitem.h> + #endif + #ifndef DISKFONT_GLYPH_H + #include <diskfont/glyph.h> + #endif + + ULONG SetInfo( struct GlyphEngine *glyphEngine, Tag tag1, ... ); + ULONG ObtainInfo( struct GlyphEngine *glyphEngine, Tag tag1, ... ); + ULONG ReleaseInfo( struct GlyphEngine *glyphEngine, Tag tag1, ... ); + + #endif Only in include_h/clib: cardres_protos.h diff -c2 -d -P -r include_h/clib/cgxdither_protos.h includenew/clib/cgxdither_protos.h *** include_h/clib/cgxdither_protos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/cgxdither_protos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,43 ---- + #include <exec/types.h> + + typedef APTR DITHERINFO; + + DITHERINFO CreateDitherInfo(struct ViewPort *vp, + struct RastPort *rp, + ULONG *RGBCM, + LONG Size, + BOOL SharePens, + BOOL UseColour); + + VOID DeleteDitherInfo(DITHERINFO di); + + BOOL SetDitherMode(DITHERINFO di, + ULONG mode); + + BOOL ConvertMap(struct BitMap *SourceBitMap, + struct BitMap *DestBitMap, + long left, + long top, + long width, + long height, + unsigned long flags); + + BOOL DitherMap(struct BitMap *SourceBitMap, + struct BitMap *DestBitMap, + DITHERINFO di); + + void MapHistogram(struct BitMap *BitMap, + ULONG *HistogramArray); + + ULONG RemapMapColours(struct BitMap *sBitMap, + struct BitMap *dBitMap, + UBYTE *RemapPenArray1, + UBYTE *RemapPenArray2, + struct ColorMap *RemapColorMap, + ULONG Flags); + + struct BitMap *CreateMapMask(struct BitMap *sBitMap, + ULONG transColour, + ULONG Flags); + + void FreeMapMask(struct BitMap *maskBitMap); diff -c2 -d -P -r include_h/clib/cgxsystem_protos.h includenew/clib/cgxsystem_protos.h *** include_h/clib/cgxsystem_protos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/cgxsystem_protos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,12 ---- + + typedef APTR SLayer; + + struct Region *InstallTransparentRegion(SLayer, + struct Region *); + + struct Hook *InstallTransparentRegionHook(SLayer, + struct Hook *); + + ULONG ShowWindow(struct Window *); + + ULONG HideWindow(struct Window *); diff -c2 -d -P -r include_h/clib/cgxvideo_protos.h includenew/clib/cgxvideo_protos.h *** include_h/clib/cgxvideo_protos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/cgxvideo_protos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,31 ---- + #ifndef CLIB_CGXVIDEO_H + #define CLIB_CGXVIDEO_H + + #ifndef UTILITY_TAGITEM_H + #include <utility/tagitem.h> + #endif + + struct VLayerHandle *CreateVLayerHandleTagList(struct Screen *,struct TagItem *); + + ULONG DeleteVLayerHandle(struct VLayerHandle *); + + ULONG AttachVLayerTagList(struct VLayerHandle *,struct Window *,struct TagItem *); + + ULONG DetachVLayer(struct VLayerHandle *); + + ULONG GetVLayerAttr(struct VLayerHandle *,ULONG AttrID); + + ULONG UnlockVLayer(struct VLayerHandle *); + + ULONG LockVLayer(struct VLayerHandle *); + + void SetVLayerAttrTagList(struct VLayerHandle *,struct TagItem *); + + + ULONG AttachVLayerTags(struct VLayerHandle *,struct Window *,Tag, ...); + + struct VLayerHandle *CreateVLayerHandleTags(struct Screen *,Tag, ...); + + void SetVLayerAttrTags(struct VLayerHandle *,Tag, ...); + + #endif Only in include_h/clib: cia_protos.h Only in include_h/clib: colorwheel_protos.h Only in include_h/clib: commodities_protos.h Only in include_h/clib: console_protos.h diff -c2 -d -P -r include_h/clib/cybergraphics_protos.h includenew/clib/cybergraphics_protos.h *** include_h/clib/cybergraphics_protos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/cybergraphics_protos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,55 ---- + /* + ** $VER: cybergraphics_protos.h 41.18 (21.02.1998) + ** + ** C prototypes for cybergraphics.library + ** + ** Copyright © 1996-1998 by phase5 digital products + ** All Rights reserved. + ** + */ + + #ifndef CLIB_CYBERGRAPHICS_H + #define CLIB_CYBERGRAPHICS_H 1 + + #ifndef UTILITY_TAGITEM_H + #include <utility/tagitem.h> + #endif + + struct List *AllocCModeListTagList(struct TagItem *); + struct List *AllocCModeListTags(Tag, ...); + ULONG BestCModeIDTagList(struct TagItem *); + ULONG BestCModeIDTags(Tag, ...); + ULONG CModeRequestTagList(APTR, struct TagItem *); + ULONG CModeRequestTags(APTR, Tag, ...); + void CVideoCtrlTagList(struct ViewPort *, struct TagItem *); + void CVideoCtrlTags(struct ViewPort *, Tag tag1, ...); + void DoCDrawMethodTagList(struct Hook *, struct RastPort *, struct TagItem *); + void DoCDrawMethodTags(struct Hook *, struct RastPort *, Tag, ...); + ULONG ExtractColor(struct RastPort *,struct BitMap *,ULONG,ULONG,ULONG,ULONG,ULONG); + ULONG FillPixelArray(struct RastPort *, UWORD, UWORD, UWORD, UWORD, ULONG); + void FreeCModeList(struct List *); + ULONG GetCyberIDAttr(ULONG, ULONG); + ULONG GetCyberMapAttr(struct BitMap *, ULONG); + ULONG InvertPixelArray(struct RastPort *, UWORD, UWORD, UWORD, UWORD); + BOOL IsCyberModeID(ULONG); + APTR LockBitMapTagList(APTR,struct TagItem *); + APTR LockBitMapTags(APTR, Tag, ...); + ULONG MovePixelArray(UWORD, UWORD, struct RastPort *, UWORD, UWORD, UWORD, + UWORD); + ULONG ReadPixelArray(APTR, UWORD, UWORD, UWORD, struct RastPort *, UWORD, + UWORD, UWORD, UWORD, UBYTE); + ULONG ReadRGBPixel(struct RastPort *, UWORD, UWORD); + LONG ScalePixelArray(APTR,UWORD,UWORD,UWORD,struct RastPort *,UWORD, + UWORD,UWORD,UWORD,UBYTE); + void UnLockBitMap(APTR); + ULONG WritePixelArray(APTR, UWORD, UWORD, UWORD, struct RastPort *, UWORD, + UWORD, UWORD, UWORD, UBYTE); + ULONG WriteLUTPixelArray(APTR, UWORD, UWORD, UWORD, struct RastPort *, APTR, + UWORD, UWORD, UWORD, UWORD, UBYTE); + LONG WriteRGBPixel(struct RastPort *, UWORD, UWORD, ULONG); + void UnLockBitMapTagList(APTR, struct TagItem *); + void UnLockBitMapTags(APTR, Tag, ...); + void NewOwnCyberMap(APTR); + void NewDisOwnCyberMap(APTR); + + #endif /* !CLIB_CYBERGRAPHICS_H */ Only in include_h/clib: datatypes_protos.h diff -c2 -d -P -r include_h/clib/datatypes_varprotos.h includenew/clib/datatypes_varprotos.h *** include_h/clib/datatypes_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/datatypes_varprotos.h Wed Feb 14 02:41:08 2001 *************** *** 0 **** --- 1,18 ---- + #ifndef CLIB_DATATYPES_VARPROTOS_H + #define CLIB_DATATYPES_VARPROTOS_H + + struct DataType *ObtainDataType( unsigned long type, APTR handle, Tag Tag1, + ... ); + Object *NewDTObject( APTR name, Tag Tag1, ... ); + ULONG SetDTAttrs( Object *o, struct Window *win, struct Requester *req, + Tag Tag1, ... ); + ULONG GetDTAttrs( Object *o, Tag Tag1, ... ); + #if 0 + void RefreshDTObjects( Object *o, struct Window *win, struct Requester *req, + Tag Tag1, ... ); + ULONG DoDTMethod( Object *o, struct Window *win, struct Requester *req, + unsigned long data, ... ); + ULONG PrintDTObject( Object *o, struct Window *w, struct Requester *r, + unsigned long data, ... ); + #endif + #endif Only in include_h/clib: disk_protos.h Only in include_h/clib: diskfont_protos.h Only in include_h/clib: dos_protos.h diff -c2 -d -P -r include_h/clib/dos_varprotos.h includenew/clib/dos_varprotos.h *** include_h/clib/dos_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/dos_varprotos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,9 ---- + #ifndef CLIB_DOS_VARPROTOS_H + #define CLIB_DOS_VARPROTOS_H + + APTR AllocDosObjectTags( unsigned long type, unsigned long tag1type, ... ); + struct Process *CreateNewProcTags( unsigned long tag1type, ... ); + LONG SystemTags( STRPTR command, unsigned long tag1type, ... ); + BPTR NewLoadSegTags( STRPTR file, unsigned long tag1type, ... ); + + #endif Only in include_h/clib: dtclass_protos.h diff -c2 -d -P -r include_h/clib/exec_protos.h includenew/clib/exec_protos.h *** include_h/clib/exec_protos.h Wed Feb 14 02:41:38 2001 --- includenew/clib/exec_protos.h Wed Feb 14 02:41:07 2001 *************** *** 3,8 **** /* ! ** $VER: exec_protos.h 39.15 (1.10.93) ! ** Includes Release 40.15 ** ** C prototypes. For use with 32 bit integers only. --- 3,8 ---- /* ! ** $VER: exec_protos.h 39.14 (15.2.93) ! ** Includes Release 40.13 ** ** C prototypes. For use with 32 bit integers only. *************** *** 18,23 **** #include <exec/tasks.h> #endif /*------ misc ---------------------------------------------------------*/ ! ULONG Supervisor( unsigned long (*userFunction)() ); /*------ special patchable hooks to internal exec activity ------------*/ /*------ module creation ----------------------------------------------*/ --- 18,24 ---- #include <exec/tasks.h> #endif + #include <stdarg.h> /*------ misc ---------------------------------------------------------*/ ! ULONG Supervisor( unsigned long (*userFunction)(void) ); /*------ special patchable hooks to internal exec activity ------------*/ /*------ module creation ----------------------------------------------*/ *************** *** 25,29 **** void InitStruct( APTR initTable, APTR memory, unsigned long size ); struct Library *MakeLibrary( APTR funcInit, APTR structInit, ! unsigned long (*libInit)(), unsigned long dataSize, unsigned long segList ); void MakeFunctions( APTR target, APTR functionArray, --- 26,30 ---- void InitStruct( APTR initTable, APTR memory, unsigned long size ); struct Library *MakeLibrary( APTR funcInit, APTR structInit, ! unsigned long (*libInit)(void), unsigned long dataSize, unsigned long segList ); void MakeFunctions( APTR target, APTR functionArray, *************** *** 92,96 **** void CloseLibrary( struct Library *library ); APTR SetFunction( struct Library *library, long funcOffset, ! unsigned long (*newFunction)() ); void SumLibrary( struct Library *library ); /*------ devices ------------------------------------------------------*/ --- 93,97 ---- void CloseLibrary( struct Library *library ); APTR SetFunction( struct Library *library, long funcOffset, ! unsigned long (*newFunction)(void) ); void SumLibrary( struct Library *library ); /*------ devices ------------------------------------------------------*/ *************** *** 111,116 **** /*------ private diagnostic support -----------------------------------*/ /*------ misc ---------------------------------------------------------*/ ! APTR RawDoFmt( UBYTE *formatString, APTR dataStream, void (*putChProc)(), ! APTR putChData ); ULONG GetCC( void ); ULONG TypeOfMem( APTR address ); --- 112,120 ---- /*------ private diagnostic support -----------------------------------*/ /*------ misc ---------------------------------------------------------*/ ! void RawIOInit(void); ! UBYTE RawMayGetChar(void); ! APTR RawDoFmt( UBYTE *formatString, APTR dataStream, void (*putChProc)(void),APTR putChData ); ! void RawPutChar(UBYTE MyChar); ! ULONG GetCC( void ); ULONG TypeOfMem( APTR address ); *************** *** 162,168 **** void ColdReboot( void ); void StackSwap( struct StackSwapStruct *newStack ); /*------ task trees ---------------------------------------------------*/ - void ChildFree( APTR tid ); - void ChildOrphan( APTR tid ); void ChildStatus( APTR tid ); void ChildWait( APTR tid ); --- 166,175 ---- void ColdReboot( void ); void StackSwap( struct StackSwapStruct *newStack ); + /*------ New, for PPC --------*/ + ULONG NewGetTaskAttrsA(struct Task*,void*,ULONG,ULONG,struct TagItem*); + ULONG NewGetTaskAttrs(struct Task*,void*,ULONG,ULONG,...); + ULONG NewSetTaskAttrsA(struct Task*,void*,ULONG,ULONG,struct TagItem*); + ULONG NewSetTaskAttrs(struct Task*,void*,ULONG,ULONG,...); /*------ task trees ---------------------------------------------------*/ void ChildStatus( APTR tid ); void ChildWait( APTR tid ); *************** *** 177,179 **** --- 184,207 ---- /*------ Function to attempt to obtain a Quick Interrupt Vector...*/ ULONG ObtainQuickVector( APTR interruptCode ); + /*------ New, for PPC --------*/ + struct Library* NewCreateLibrary(struct TagItem* Tags); + APTR NewSetFunction(struct Library* MyLibrary,void* MyFunction,LONG Offset,struct TagItem* Tags); + ULONG NewPPCStackSwap(struct StackSwapStruct *newStack,void* MyFunction,struct PPCStackSwapArgs *Args); + void *TaggedOpenLibrary(LONG Tag); + /* PPC only */ + void* NewRawDoFmt(char *FmtString,void* PutChProc,char *PutChData,va_list args); + + void CacheFlushDataArea(void *Address,ULONG Size); + void CacheInvalidInstArea(void *Address,ULONG Size); + void CacheInvalidDataArea(void *Address,ULONG Size); + void CacheFlushDataInstArea(void *Address,ULONG Size); + void CacheTrashCacheArea(void *Address,ULONG Size); + void *AllocTaskPooled(ULONG Size); + void FreeTaskPooled(void *Address,ULONG Size); + void *AllocVecTaskPooled(ULONG Size); + void FreeVecTaskPooled(void *Address); + void FlushPool(APTR poolHeader); + void FlushTaskPool(void); + ULONG ReadGayle(void); + #endif /* CLIB_EXEC_PROTOS_H */ Only in include_h/clib: expansion_protos.h Only in include_h/clib: gadtools_protos.h diff -c2 -d -P -r include_h/clib/gadtools_varprotos.h includenew/clib/gadtools_varprotos.h *** include_h/clib/gadtools_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/gadtools_varprotos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,30 ---- + #ifndef CLIB_GADTOOLS_VARPROTOS_H + #define CLIB_GADTOOLS_VARPROTOS_H + + #ifndef EXEC_TYPES_H + #include <exec/types.h> + #endif + #ifndef INTUITION_INTUITION_H + #include <intuition/intuition.h> + #endif + #ifndef UTILITY_TAGITEM_H + #include <utility/tagitem.h> + #endif + #ifndef LIBRARIES_GADTOOLS_H + #include <libraries/gadtools.h> + #endif + + struct Gadget *CreateGadget( unsigned long kind, struct Gadget *gad, + struct NewGadget *ng, Tag tag1, ... ); + void GT_SetGadgetAttrs( struct Gadget *gad, struct Window *win, + struct Requester *req, Tag tag1, ... ); + struct Menu *CreateMenus( struct NewMenu *newmenu, Tag tag1, ... ); + BOOL LayoutMenuItems( struct MenuItem *firstitem, APTR vi, Tag tag1, ... ); + BOOL LayoutMenus( struct Menu *firstmenu, APTR vi, Tag tag1, ... ); + void DrawBevelBox( struct RastPort *rport, long left, long top, long width, + long height, Tag tag1, ... ); + APTR GetVisualInfo( struct Screen *screen, Tag tag1, ... ); + LONG GT_GetGadgetAttrs( struct Gadget *gad, struct Window *win, + struct Requester *req, Tag tag1, ... ); + + #endif Only in include_h/clib: graphics_protos.h diff -c2 -d -P -r include_h/clib/graphics_varprotos.h includenew/clib/graphics_varprotos.h *** include_h/clib/graphics_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/graphics_varprotos.h Wed Feb 14 02:41:07 2001 *************** *** 0 **** --- 1,25 ---- + #ifndef CLIB_GRAPHICS_VARPROTOS_H + #define CLIB_GRAPHICS_VARPROTOS_H + + #define AllocSpriteData(a0, tags...) \ + ({ULONG _tags[] = { tags }; AllocSpriteDataA((a0), (struct TagItem *)_tags);}) + #define BestModeID(tags...) \ + ({ULONG _tags[] = { tags }; BestModeIDA((struct TagItem *)_tags);}) + #define ChangeExtSprite(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; ChangeExtSpriteA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #define ExtendFontTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; ExtendFont((a0), (struct TagItem *)_tags);}) + #define GetExtSprite(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetExtSpriteA((a0), (struct TagItem *)_tags);}) + #define GetRPAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetRPAttrsA((a0), (struct TagItem *)_tags);}) + #define ObtainBestPen(a0, a1, a2, a3, tags...) \ + ({ULONG _tags[] = { tags }; ObtainBestPenA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);}) + #define SetRPAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetRPAttrsA((a0), (struct TagItem *)_tags);}) + #define VideoControlTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; VideoControl((a0), (struct TagItem *)_tags);}) + #define WeighTAMatchTags(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; WeighTAMatch((a0), (a1), (struct TagItem *)_tags);}) + + #endif Only in include_h/clib: icon_protos.h Only in include_h/clib: iffparse_protos.h Only in include_h/clib: input_protos.h Only in include_h/clib: intuition_protos.h diff -c2 -d -P -r include_h/clib/intuition_varprotos.h includenew/clib/intuition_varprotos.h *** include_h/clib/intuition_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/intuition_varprotos.h Wed Feb 14 02:41:08 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef CLIB_INTUITION_VARPROTOS_H + #define CLIB_INTUITION_VARPROTOS_H + + #if 0 + LONG EasyRequest( struct Window *window, struct EasyStruct *easyStruct, + ULONG *idcmpPtr, ... ); + struct Window *BuildEasyRequest( struct Window *window, + struct EasyStruct *easyStruct, unsigned long idcmp, ... ); + #endif + + struct Window *OpenWindowTags( struct NewWindow *newWindow, + unsigned long tag1Type, ... ); + struct Screen *OpenScreenTags( struct NewScreen *newScreen, + unsigned long tag1Type, ... ); + APTR NewObject( struct IClass *classPtr, UBYTE *classID, unsigned long tag1, + ... ); + #ifndef SetAttrs + ULONG SetAttrs( APTR object, unsigned long tag1, ... ); + #endif + ULONG SetGadgetAttrs( struct Gadget *gadget, struct Window *window, + struct Requester *requester, unsigned long tag1, ... ); + #if 0 + ULONG DoGadgetMethod( struct Gadget *gad, struct Window *win, + struct Requester *req, unsigned long MethodID, ... ); + #endif + void SetWindowPointer( struct Window *win, unsigned long tag1, ... ); + + #endif Only in include_h/clib: keymap_protos.h Only in include_h/clib: layers_protos.h Only in include_h/clib: locale_protos.h diff -c2 -d -P -r include_h/clib/locale_varprotos.h includenew/clib/locale_varprotos.h *** include_h/clib/locale_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/locale_varprotos.h Wed Feb 14 02:41:08 2001 *************** *** 0 **** --- 1,7 ---- + #ifndef CLIB_LOCALE_VARPROTOS_H + #define CLIB_LOCALE_VARPROTOS_H + + struct Catalog *OpenCatalog( struct Locale *locale, STRPTR name, Tag tag1, + ... ); + + #endif Only in include_h/clib: lowlevel_protos.h Only in include_h/clib: macros.h Only in include_h/clib: mathffp_protos.h Only in include_h/clib: mathieeedoubbas_protos.h Only in include_h/clib: mathieeedoubtrans_protos.h Only in include_h/clib: mathieeesingbas_protos.h Only in include_h/clib: mathieeesingtrans_protos.h Only in include_h/clib: mathtrans_protos.h Only in include_h/clib: misc_protos.h diff -c2 -d -P -r include_h/clib/muimaster_varprotos.h includenew/clib/muimaster_varprotos.h *** include_h/clib/muimaster_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/muimaster_varprotos.h Wed Feb 14 02:41:08 2001 *************** *** 0 **** --- 1,14 ---- + #ifndef CLIB_MUIMASTER_VARPROTOS_H + #define CLIB_MUIMASTER_VARPROTOS_H + + Object *MUI_NewObject (char *classname,Tag tag1,...); + Object *MUI_MakeObject (LONG type,...); + #if 0 + LONG MUI_Request (APTR app,APTR win,ULONG flags,char *title,char *gadgets,char *format,...); + #endif + APTR MUI_AllocAslRequestTags(unsigned long reqType, Tag Tag1, ...); + BOOL MUI_AslRequestTags (APTR requester, Tag Tag1, ...); + APTR MUIP_listCreate(LONG tag, ...); + LONG MUIP_listSetup(struct MagicList *ml, LONG tag, ...); + + #endif Only in include_h/clib: nonvolatile_protos.h Only in include_h/clib: potgo_protos.h diff -c2 -d -P -r include_h/clib/ppc_protos.h includenew/clib/ppc_protos.h *** include_h/clib/ppc_protos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/ppc_protos.h Wed Feb 14 02:41:08 2001 *************** *** 0 **** --- 1,138 ---- + #ifndef POWERUP_PPCLIB_PROTOS_H + #define POWERUP_PPCLIB_PROTOS_H + + void* PPCLoadObject(char*); + void PPCUnLoadObject(void*); + ULONG PPCRunObject(void*,void*); + void* PPCAllocMem(ULONG,ULONG); + void PPCFreeMem(void*,ULONG); + void* PPCAllocVec(ULONG,ULONG); + void* PPCFreeVec(void*); + + void *PPCCreateTask(void*, + struct TagItem*); + void *PPCCreateTaskTags(void*, + unsigned long tag1Type, ... ); + BOOL PPCDeleteTask(void*); + + void PPCSignalTask(void*,ULONG); + void *PPCFindTask(char *); + ULONG PPCRunKernelObject(void*, + struct ModuleArgs*); + DOUBLE PPCRunKernelObjectFPU(void*, + struct ModuleArgs*); + ULONG PPCGetTaskAttrs(void*, + struct TagItem*); + ULONG PPCGetTaskAttrsTags(void*, + unsigned long tag1Type, + ...); + ULONG PPCGetAttrs(struct TagItem*); + ULONG PPCGetAttrsTags(unsigned long tag1Type, + ...); + + void *PPCFindTaskObject(void*); + ULONG PPCReadLong(ULONG*); + void PPCWriteLong(ULONG*,ULONG); + BOOL PPCStartTask(void*, + struct TagItem*); + BOOL PPCStartTaskTags(void*, + unsigned long tag1Type, ... ); + BOOL PPCStopTask(void*, + struct TagItem*); + BOOL PPCStopTaskTags(void*, + unsigned long tag1Type, ... ); + ULONG PPCSetTaskAttrs(void*, + struct TagItem*); + ULONG PPCSetTaskAttrsTags(void*, + unsigned long tag1Type, + ...); + ULONG PPCGetObjectAttrs(void*, + struct PPCObjectInfo*, + struct TagItem*); + ULONG PPCGetObjectAttrsTags(void*, + struct PPCObjectInfo*, + unsigned long tag1Type, + ... ); + + void PPCWriteLongFlush(ULONG*,ULONG); + UWORD PPCReadWord(UWORD*); + void PPCWriteWord(UWORD*,UWORD); + UBYTE PPCReadByte(UBYTE*); + void PPCWriteByte(UBYTE*,UBYTE); + void* PPCCreatePool(ULONG MemFlags, + ULONG PuddleSize, + ULONG ThreshSize); + BOOL PPCDeletePool(void*); + void* PPCAllocPooled(void*, + ULONG); + void PPCFreePooled(void*, + void*, + ULONG); + void PPCFreeVecPooled(void*, + void*); + void* PPCAllocVecPooled(void*, + ULONG); + + + + void* PPCCreatePort(struct TagItem*); + void* PPCCreatePortTags(unsigned long tag1Type, ... ); + BOOL PPCDeletePort(void*); + void* PPCObtainPort(struct TagItem*); + void* PPCObtainPortTags(unsigned long tag1Type, ... ); + BOOL PPCReleasePort(void*); + void* PPCCreateMessage(void*, + ULONG); + void PPCDeleteMessage(void*); + ULONG PPCGetMessageAttr(void*, + ULONG); + void* PPCGetMessage(void*); + BOOL PPCReplyMessage(void*); + BOOL PPCSendMessage(void*, + void*, + void*, + ULONG, + ULONG); + void* PPCWaitPort(void*); + void PPCCacheClearE(void*, + ULONG, + ULONG); + + void PPCCacheInvalidE(void*, + ULONG, + ULONG); + + + void* PPCCreatePortList(void**,ULONG); + void PPCDeletePortList(void*); + BOOL PPCAddPortList(void*, + void*); + void PPCRemPortList(void*, + void*); + void* PPCWaitPortList(void*); + ULONG PPCGetPortListAttr(void*, + ULONG); + void PPCSetPortListAttr(void*, + ULONG, + ULONG); + + void* PPCLoadObjectTags(unsigned long tag1Type, ... ); + void* PPCLoadObjectTagList(struct TagItem*); + + + BOOL PPCSetAttrs(struct TagItem*); + BOOL PPCSetAttrsTags(unsigned long tag1Type, ... ); + + void PPCCacheTrashE(void*, + ULONG, + ULONG); + + void *PPCOpenLibrary(char*, + struct TagItem*); + + void PPCCloseLibrary(void*); + + void *PPCGetLibSymbol(void*, + char*); + + #endif diff -c2 -d -P -r include_h/clib/ppcdiss_protos.h includenew/clib/ppcdiss_protos.h *** include_h/clib/ppcdiss_protos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/ppcdiss_protos.h Wed Feb 14 02:41:08 2001 *************** *** 0 **** --- 1,15 ---- + #ifndef POWERUP_PPCLIB_PPCDISS_PROTOS_H + #define POWERUP_PPCLIB_PPCDISS_PROTOS_H + + APTR CreateDisAssHandleTagList(struct TagItem *); + void DeleteDisAssHandle(APTR); + ULONG DisAssTagList(APTR, + struct TagItem *); + + #ifdef __SASC_60 + APTR CreateDisAssHandleTags(Tag, ...); + ULONG DisAssTags(APTR, + Tag, ...); + #endif + + #endif Only in include_h/clib: ramdrive_protos.h Only in include_h/clib: realtime_protos.h Only in include_h/clib: rexxsyslib_protos.h Only in include_h/clib: timer_protos.h Only in include_h/clib: translator_protos.h Only in include_h/clib: utility_protos.h Only in include_h/clib: wb_protos.h diff -c2 -d -P -r include_h/clib/wb_varprotos.h includenew/clib/wb_varprotos.h *** include_h/clib/wb_varprotos.h Thu Jan 1 00:00:00 1970 --- includenew/clib/wb_varprotos.h Wed Feb 14 02:41:08 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef CLIB_WB_VARPROTOS_H + #define CLIB_WB_VARPROTOS_H + + #ifndef EXEC_TYPES_H + #include <exec/types.h> + #endif + #ifndef DOS_DOS_H + #include <dos/dos.h> + #endif + #ifndef WORKBENCH_WORKBENCH_H + #include <workbench/workbench.h> + #endif + #ifndef INTUITION_INTUITION_H + #include <intuition/intuition.h> + #endif + #ifndef UTILITY_TAGITEM_H + #include <utility/tagitem.h> + #endif + + struct AppWindow *AddAppWindow( unsigned long id, unsigned long userdata, + struct Window *window, struct MsgPort *msgport, Tag tag1, ... ); + struct AppIcon *AddAppIcon( unsigned long id, unsigned long userdata, + UBYTE *text, struct MsgPort *msgport, struct FileLock *lock, + struct DiskObject *diskobj, Tag tag1, ... ); + struct AppMenuItem *AddAppMenuItem( unsigned long id, unsigned long userdata, + UBYTE *text, struct MsgPort *msgport, Tag tag1, ... ); + + #endif diff -c2 -d -P -r include_h/cybergraphics/cybergraphics.h includenew/cybergraphics/cybergraphics.h *** include_h/cybergraphics/cybergraphics.h Thu Jan 1 00:00:00 1970 --- includenew/cybergraphics/cybergraphics.h Wed Feb 14 02:41:08 2001 *************** *** 0 **** --- 1,202 ---- + /* + ** $VER: cybergraphics.h 41.18 (21.02.1998) + ** + ** include file for cybergraphics.library + ** + ** Copyright © 1996-1998 by phase5 digital products + ** All Rights reserved. + ** + */ + + #ifndef CYBERGRAPHX_CYBERGRAPHICS_H + #define CYBERGRAPHX_CYBERGRAPHICS_H 1 + + #ifndef UTILITY_TAGITEM_H + #include <utility/tagitem.h> + #endif + + #ifndef GRAPHICS_DISPLAYINFO_H + #include <graphics/displayinfo.h> + #endif + + + #define CYBERGFXNAME "cybergraphics.library" + #define CYBERGFX_INCLUDE_VERSION (41UL) + + /* * + * Definition of CyberModeNode (Returned in AllocModeList) * + * */ + + struct CyberModeNode + { + struct Node Node; + char ModeText[DISPLAYNAMELEN]; /* name for this mode */ + ULONG DisplayID; /* display id associated with the node */ + UWORD Width; /* visible width */ + UWORD Height; /* visible height */ + UWORD Depth; /* display depth */ + struct TagItem *DisplayTagList; /* taglist with extended ModeID information */ + }; + + + /* * + * Parameters for GetCyberMapAttr() * + * */ + + #define CYBRMATTR_XMOD (0x80000001) /* function returns BytesPerRow if its called with this parameter */ + #define CYBRMATTR_BPPIX (0x80000002) /* BytesPerPixel shall be returned */ + #define CYBRMATTR_DISPADR (0x80000003) /* do not use this ! private tag */ + #define CYBRMATTR_PIXFMT (0x80000004) /* the pixel format is returned */ + #define CYBRMATTR_WIDTH (0x80000005) /* returns width in pixels */ + #define CYBRMATTR_HEIGHT (0x80000006) /* returns height in lines */ + #define CYBRMATTR_DEPTH (0x80000007) /* returns bits per pixel */ + #define CYBRMATTR_ISCYBERGFX (0x80000008) /* returns -1 if supplied bitmap is a cybergfx one */ + #define CYBRMATTR_ISLINEARMEM (0x80000009) /* returns -1 if supplied bitmap is linear accessable */ + + /* * + * Parameters for GetCyberIDAttr() * + * */ + + #define CYBRIDATTR_PIXFMT (0x80000001) /* the pixel format is returned */ + #define CYBRIDATTR_WIDTH (0x80000002) /* returns visible width in pixels */ + #define CYBRIDATTR_HEIGHT (0x80000003) /* returns visible height in lines */ + #define CYBRIDATTR_DEPTH (0x80000004) /* returns bits per pixel */ + #define CYBRIDATTR_BPPIX (0x80000005) /* BytesPerPixel shall be returned */ + + /* * + * Tags for CyberModeRequest() * + * */ + + #define CYBRMREQ_TB (TAG_USER+0x40000) + + /* * + * FilterTags * + * */ + + #define CYBRMREQ_MinDepth (CYBRMREQ_TB+0) /* Minimum depth for displayed screenmode */ + #define CYBRMREQ_MaxDepth (CYBRMREQ_TB+1) /* Maximum depth " " " */ + #define CYBRMREQ_MinWidth (CYBRMREQ_TB+2) /* Minumum width " " " */ + #define CYBRMREQ_MaxWidth (CYBRMREQ_TB+3) /* Maximum width " " " */ + #define CYBRMREQ_MinHeight (CYBRMREQ_TB+4) /* Minumum height " " " */ + #define CYBRMREQ_MaxHeight (CYBRMREQ_TB+5) /* Minumum height " " " */ + #define CYBRMREQ_CModelArray (CYBRMREQ_TB+6) + + #define CYBRMREQ_WinTitle (CYBRMREQ_TB+20) + #define CYBRMREQ_OKText (CYBRMREQ_TB+21) + #define CYBRMREQ_CancelText (CYBRMREQ_TB+22) + + #define CYBRMREQ_Screen (CYBRMREQ_TB+30) /* Screen you wish the Requester to open on */ + + /* * + * Tags for BestCyberModeID() * + * */ + + #define CYBRBIDTG_TB (TAG_USER+0x50000) + + /* FilterTags */ + + #define CYBRBIDTG_Depth (CYBRBIDTG_TB+0) + #define CYBRBIDTG_NominalWidth (CYBRBIDTG_TB+1) + #define CYBRBIDTG_NominalHeight (CYBRBIDTG_TB+2) + #define CYBRBIDTG_MonitorID (CYBRBIDTG_TB+3) + #define CYBRBIDTG_BoardName (CYBRBIDTG_TB+5) + + /* * + * definition of divers pixel formats * + * */ + + #define PIXFMT_LUT8 (0UL) + #define PIXFMT_RGB15 (1UL) + #define PIXFMT_BGR15 (2UL) + #define PIXFMT_RGB15PC (3UL) + #define PIXFMT_BGR15PC (4UL) + #define PIXFMT_RGB16 (5UL) + #define PIXFMT_BGR16 (6UL) + #define PIXFMT_RGB16PC (7UL) + #define PIXFMT_BGR16PC (8UL) + #define PIXFMT_RGB24 (9UL) + #define PIXFMT_BGR24 (10UL) + #define PIXFMT_ARGB32 (11UL) + #define PIXFMT_BGRA32 (12UL) + #define PIXFMT_RGBA32 (13UL) + + /* * + * SrcRectangle formats defines for xxxPixelArray calls() * + * */ + + #define RECTFMT_RGB (0UL) + #define RECTFMT_RGBA (1UL) + #define RECTFMT_ARGB (2UL) + #define RECTFMT_LUT8 (3UL) + #define RECTFMT_GREY8 (4UL) + + /* * + * Parameters for CVideoCtrlTagList() * + * */ + + #define SETVC_DPMSLevel (0x88002001) + + #define DPMS_ON (0UL) /* Full operation */ + #define DPMS_STANDBY (1UL) /* Optional state of minimal power reduction */ + #define DPMS_SUSPEND (2UL) /* Significant reduction of power consumption */ + #define DPMS_OFF (3UL) /* Lowest level of power consumption */ + + /* * + * Tags for LockBitMapTagList() * + * */ + + #define LBMI_WIDTH (0x84001001) + #define LBMI_HEIGHT (0x84001002) + #define LBMI_DEPTH (0x84001003) + #define LBMI_PIXFMT (0x84001004) + #define LBMI_BYTESPERPIX (0x84001005) + #define LBMI_BYTESPERROW (0x84001006) + #define LBMI_BASEADDRESS (0x84001007) + + /* * + * Tags for UnLockBitMapTagList() * + * */ + + #define UBMI_UPDATERECTS (0x85001001) + #define UBMI_REALLYUNLOCK (0x85001002) + + + + /* * + * Message passed to the DoCDrawMethodTagList() hook function * + * */ + + + struct CDrawMsg + { + APTR cdm_MemPtr; + ULONG cdm_offx; + ULONG cdm_offy; + ULONG cdm_xsize; + ULONG cdm_ysize; + UWORD cdm_BytesPerRow; + UWORD cdm_BytesPerPix; + UWORD cdm_ColorModel; + }; + + /* * + * Colour Table source formats for WriteLUTPixelArray() * + * */ + + #define CTABFMT_XRGB8 (0UL) /* ULONG [] table */ + + + /* * + * graphics.library/AllocBitMap() extended flags * + * */ + + #ifndef BMB_SPECIALFMT + #define BMB_SPECIALFMT (7UL) + #define BMF_SPECIALFMT (1UL << BMB_SPECIALFMT) + #endif /* BMB_SPECIALFMT */ + + #define SHIFT_PIXFMT( fmt ) (((ULONG)(fmt)) << 24UL) + + + + #endif /* !CYBERGRAPHX_CYBERGRAPHICS_H */ diff -c2 -d -P -r include_h/cybergraphics/cybergraphics.i includenew/cybergraphics/cybergraphics.i *** include_h/cybergraphics/cybergraphics.i Thu Jan 1 00:00:00 1970 --- includenew/cybergraphics/cybergraphics.i Wed Feb 14 02:41:09 2001 *************** *** 0 **** --- 1,189 ---- + ;* + ;* $VER: cybergraphics.i 41.18 (21.02.1998) + ;* + ;* include file for cybergraphics.library + ;* + ;* Copyright © 1996-1998 by phase5 digital products + ;* All Rights reserved. + ;* + ;* + + IFND CYBERGRAPHX_CYBERGRAPHICS_I + CYBERGRAPHX_CYBERGRAPHICS_I SET 1 + + + INCLUDE "exec/nodes.i" + INCLUDE "utility/tagitem.i" + INCLUDE "graphics/displayinfo.i" + + ; + ; Definition of CyberModeNode (Returned in AllocModeList) + ; + STRUCTURE CyberModeNode,0 + STRUCT cmn_Node,LN_SIZE + STRUCT cmn_ModeText,DISPLAYNAMELEN ; name for this mode + ULONG cmn_DisplayID ; display id associated with the node + UWORD cmn_Width ; visible width + UWORD cmn_Height ; visible height + UWORD cmn_Depth ; display depth + APTR cmn_DisplayTagList ; taglist with extended ModeID information + LABEL cmn_SIZEOF + + + ; + ; Parameters for GetCyberMapAttr() + ; + + CYBRMATTR_XMOD EQU ($80000001) ; function returns BytesPerRow if its called with this parameter + CYBRMATTR_BPPIX EQU ($80000002) ; BytesPerPixel shall be returned + CYBRMATTR_DISPADR EQU ($80000003) ; do not use this ! private tag + CYBRMATTR_PIXFMT EQU ($80000004) ; the pixel format is returned + CYBRMATTR_WIDTH EQU ($80000005) ; returns width in pixels + CYBRMATTR_HEIGHT EQU ($80000006) ; returns height in lines + CYBRMATTR_DEPTH EQU ($80000007) ; returns bits per pixel + CYBRMATTR_ISCYBERGFX EQU ($80000008) ; returns if supplied bitmap is a cybergfx one + CYBRMATTR_ISLINEARMEM EQU ($80000009) ; returns -1 if supplied bitmap is linear accessable + + ; + ; Parameters for GetCyberIDAttr() + ; + + CYBRIDATTR_PIXFMT EQU ($80000001) ; the pixel format is returned + CYBRIDATTR_WIDTH EQU ($80000002) ; returns visible width in pixels + CYBRIDATTR_HEIGHT EQU ($80000003) ; returns visible height in lines + CYBRIDATTR_DEPTH EQU ($80000004) ; returns bits per pixel + CYBRIDATTR_BPPIX EQU ($80000005) ; BytesPerPixel shall be returned + + ; + ; Tags for CModeRequestTagList() + ; + + CYBRMREQ_TB EQU (TAG_USER+$40000) + ; + ; FilterTags + ; + CYBRMREQ_MinDepth EQU (CYBRMREQ_TB+0) ; Minimum depth for displayed screenmode + CYBRMREQ_MaxDepth EQU (CYBRMREQ_TB+1) ; Maximum depth " " " + CYBRMREQ_MinWidth EQU (CYBRMREQ_TB+2) ; Minumum width " " " + CYBRMREQ_MaxWidth EQU (CYBRMREQ_TB+3) ; Maximum width " " " + CYBRMREQ_MinHeight EQU (CYBRMREQ_TB+4) ; Minumum height " " " + CYBRMREQ_MaxHeight EQU (CYBRMREQ_TB+5) ; Minumum height " " " + CYBRMREQ_CModelArray EQU (CYBRMREQ_TB+6) ; Filters certain color models + + CYBRMREQ_WinTitle EQU (CYBRMREQ_TB+20 + CYBRMREQ_OKText EQU (CYBRMREQ_TB+21 + CYBRMREQ_CancelText EQU (CYBRMREQ_TB+22 + + CYBRMREQ_Screen EQU (CYBRMREQ_TB+30 ; Screen you wish the Requester to opened on + + ; + ; Tags for BestCyberModeID() + ; + + CYBRBIDTG_TB EQU (TAG_USER+$50000) + ; + ; FilterTags + ; + CYBRBIDTG_Depth EQU (CYBRBIDTG_TB+0) + CYBRBIDTG_NominalWidth EQU (CYBRBIDTG_TB+1) + CYBRBIDTG_NominalHeight EQU (CYBRBIDTG_TB+2) + CYBRBIDTG_MonitorID EQU (CYBRBIDTG_TB+3) + CYBRBIDTG_BoardName EQU (CYBRBIDTG_TB+5) + + + PIXFMT_LUT8 EQU (0) + PIXFMT_RGB15 EQU (1) + PIXFMT_BGR15 EQU (2) + PIXFMT_RGB15PC EQU (3) + PIXFMT_BGR15PC EQU (4) + PIXFMT_RGB16 EQU (5) + PIXFMT_BGR16 EQU (6) + PIXFMT_RGB16PC EQU (7) + PIXFMT_BGR16PC EQU (8) + PIXFMT_RGB24 EQU (9) + PIXFMT_BGR24 EQU (10) + PIXFMT_ARGB32 EQU (11) + PIXFMT_BGRA32 EQU (12) + PIXFMT_RGBA32 EQU (13) + + PIXFMT_CNT EQU (14) + + ; + ; SrcRectangle formats defines for xxxPixelArray() calls + ; + + RECTFMT_RGB EQU (0) + RECTFMT_RGBA EQU (1) + RECTFMT_ARGB EQU (2) + RECTFMT_LUT8 EQU (3) + RECTFMT_GREY8 EQU (4) + + + ; + ; Parameters for CVideoCtrlTagList() + ; + + SETVC_DPMSLevel EQU ($88002001) + + DPMS_ON EQU (0) ; Full operation + DPMS_STANDBY EQU (1) ; Optional state of minimal power reduction + DPMS_SUSPEND EQU (2) ; Significant reduction of power consumption + DPMS_OFF EQU (3) ; Lowest level of power consumption + + + ; + ; Parameters for LockBitMapTagList() + ; + + LBMI_WIDTH EQU ($84001001) + LBMI_HEIGHT EQU ($84001002) + LBMI_DEPTH EQU ($84001003) + LBMI_PIXFMT EQU ($84001004) + LBMI_BYTESPERPIX EQU ($84001005) + LBMI_BYTESPERROW EQU ($84001006) + LBMI_BASEADDRESS EQU ($84001007) + + + ; + ; Parameters for UnLockBitMapTagList() + ; + + UBMI_UPDATERECTS EQU ($85001001) + UBMI_REALLYUNLOCK EQU ($85001002) + + + ; + ; Message passed to the DoCDrawMethodTagList() + ; hook function + ; + + STRUCTURE CDrawMsg,0 + APTR cdm_MemPtr + ULONG cdm_offx + ULONG cdm_offy + ULONG cdm_xsize + ULONG cdm_ysize + UWORD cdm_BytesPerRow + UWORD cdm_BytesPerPix + UWORD cdm_ColorModel + LABEL cdm_SIZEOF + + ; + ; Colour Table source formats for WriteLUTPixelArray() + ; + + CTABFMT_XRGB8 EQU (0) ; ULONG [] table + ; X,R,G,B order, 8-bits-per-gun + + + + ; + ; graphics.library/AllocBitmap() extended flags + ; + + + BMB_SPECIALFMT EQU (7) + BMF_SPECIALFMT EQU (0x80) + + ENDC + diff -c2 -d -P -r include_h/cybergraphx/cgxvideo.h includenew/cybergraphx/cgxvideo.h *** include_h/cybergraphx/cgxvideo.h Thu Jan 1 00:00:00 1970 --- includenew/cybergraphx/cgxvideo.h Wed Feb 14 02:41:09 2001 *************** *** 0 **** --- 1,55 ---- + /* + ** $VER: cgxvideo.h 41.10 (06.10.1997) + ** + ** include file for cgxvideo.library + ** + ** Copyright © 1996-1998 by phase5 digital products + ** All Rights reserved. + ** + */ + + #ifndef LIBRARIES_CGXVIDEO_H + #define LIBRARIES_CGXVIDEO_H + + #include <exec/types.h> + + typedef APTR VLayerHandle; + + + #define VOA_LeftIndent 0x88000001 + #define VOA_RightIndent 0x88000002 + #define VOA_TopIndent 0x88000003 + #define VOA_BottomIndent 0x88000004 + + #define VOA_SrcType 0x88000005 + #define VOA_SrcWidth 0x88000006 + #define VOA_SrcHeight 0x88000007 + + #define VOA_Error 0x88000008 + + #define VOA_UseColorKey 0x88000009 + + #define VOA_UseBackfill 0x8800000a + + #define VOA_BaseAddress 0x88000030 + #define VOA_ColorKeyPen 0x88000031 + #define VOA_ColorKey 0x88000032 + + + /* possible errors returned with VOA_Error tag */ + + #define VOERR_OK 0 /* No error */ + #define VOERR_INVSCRMODE 1 /* video overlay not possible for that mode */ + #define VOERR_NOOVLMEMORY 2 /* No memory for video overlay */ + #define VOERR_INVSRCFMT 3 /* Source format not supported */ + #define VOERR_NOMEMORY 4 /* Not enough memory */ + + /* Source data types */ + /* see cgxvideo.doc for more info */ + + #define SRCFMT_YUV16 0 + #define SRCFMT_YCbCr16 1 + #define SRCFMT_RGB15 2 + #define SRCFMT_RGB16 3 + + #endif Only in include_h/datatypes: animationclass.h Only in include_h/datatypes: datatypes.h diff -c2 -d -P -r include_h/datatypes/datatypesclass.h includenew/datatypes/datatypesclass.h *** include_h/datatypes/datatypesclass.h Wed Feb 14 02:41:40 2001 --- includenew/datatypes/datatypesclass.h Wed Feb 14 02:41:09 2001 *************** *** 1,202 **** ! #ifndef DATATYPES_DATATYPESCLASS_H ! #define DATATYPES_DATATYPESCLASS_H /* ! ** $VER: datatypesclass.h 39.8 (17.3.93) ! ** Includes Release 40.15 ** ** Interface definitions for DataType objects. ** ! ** (C) Copyright 1992-1993 Commodore-Amiga, Inc. ! ** All Rights Reserved */ ! #ifndef UTILITY_TAGITEM_H #include <utility/tagitem.h> ! #endif ! #ifndef DATATYPES_DATATYPES_H #include <datatypes/datatypes.h> ! #endif ! #ifndef INTUITION_INTUITION_H #include <intuition/intuition.h> ! #endif ! #ifndef DEVICES_PRINTER_H #include <devices/printer.h> ! #endif ! #ifndef DEVICES_PRTBASE_H #include <devices/prtbase.h> ! #endif /*****************************************************************************/ ! #define DATATYPESCLASS "datatypesclass" /*****************************************************************************/ ! #define DTA_Dummy (TAG_USER+0x1000) /* Generic attributes */ ! #define DTA_TextAttr (DTA_Dummy+10) ! /* (struct TextAttr *) Pointer to the default TextAttr to use for ! * the text within the object. */ ! #define DTA_TopVert (DTA_Dummy+11) ! /* (LONG) Current top vertical unit */ ! #define DTA_VisibleVert (DTA_Dummy+12) ! /* (LONG) Number of visible vertical units */ ! #define DTA_TotalVert (DTA_Dummy+13) ! /* (LONG) Total number of vertical units */ ! #define DTA_VertUnit (DTA_Dummy+14) ! /* (LONG) Number of pixels per vertical unit */ ! #define DTA_TopHoriz (DTA_Dummy+15) ! /* (LONG) Current top horizontal unit */ ! #define DTA_VisibleHoriz (DTA_Dummy+16) ! /* (LONG) Number of visible horizontal units */ ! #define DTA_TotalHoriz (DTA_Dummy+17) ! /* (LONG) Total number of horizontal units */ ! #define DTA_HorizUnit (DTA_Dummy+18) ! /* (LONG) Number of pixels per horizontal unit */ ! #define DTA_NodeName (DTA_Dummy+19) ! /* (UBYTE *) Name of the current element within the object. */ ! #define DTA_Title (DTA_Dummy+20) ! /* (UBYTE *) Title of the object. */ ! #define DTA_TriggerMethods (DTA_Dummy+21) ! /* (struct DTMethod *) Pointer to a NULL terminated array of ! * supported trigger methods. */ ! #define DTA_Data (DTA_Dummy+22) ! /* (APTR) Object specific data. */ ! #define DTA_TextFont (DTA_Dummy+23) ! /* (struct TextFont *) Default font to use for text within the ! * object. */ ! #define DTA_Methods (DTA_Dummy+24) ! /* (ULONG *) Pointer to a ~0 terminated array of supported ! * methods. */ ! #define DTA_PrinterStatus (DTA_Dummy+25) ! /* (LONG) Printer error message. Error numbers are defined in ! * <devices/printer.h> */ ! #define DTA_PrinterProc (DTA_Dummy+26) ! /* PRIVATE (struct Process *) Pointer to the print process. */ ! #define DTA_LayoutProc (DTA_Dummy+27) ! /* PRIVATE (struct Process *) Pointer to the layout process. */ ! #define DTA_Busy (DTA_Dummy+28) ! /* Used to turn the applications' busy pointer off and on */ ! #define DTA_Sync (DTA_Dummy+29) ! /* Used to indicate that new information has been loaded into ! * an object. This is for models that cache the DTA_TopVert- ! * like tags */ ! #define DTA_BaseName (DTA_Dummy+30) ! /* The base name of the class */ ! #define DTA_GroupID (DTA_Dummy+31) ! /* Group that the object must belong in */ ! #define DTA_ErrorLevel (DTA_Dummy+32) ! /* Error level */ ! #define DTA_ErrorNumber (DTA_Dummy+33) ! /* datatypes.library error number */ ! #define DTA_ErrorString (DTA_Dummy+34) ! /* Argument for datatypes.library error */ ! #define DTA_Conductor (DTA_Dummy+35) ! /* New for V40. (UBYTE *) specifies the name of the ! * realtime.library conductor. Defaults to "Main". */ ! #define DTA_ControlPanel (DTA_Dummy+36) ! /* New for V40. (BOOL) Indicate whether a control panel should be ! * embedded within the object (in the animation datatype, for ! * example). Defaults to TRUE. */ ! #define DTA_Immediate (DTA_Dummy+37) ! /* New for V40. (BOOL) Indicate whether the object should ! * immediately begin playing. Defaults to FALSE. */ ! #define DTA_Repeat (DTA_Dummy+38) ! /* New for V40. (BOOL) Indicate that the object should repeat ! * playing. Defaults to FALSE. */ /* DTObject attributes */ ! #define DTA_Name (DTA_Dummy+100) ! #define DTA_SourceType (DTA_Dummy+101) ! #define DTA_Handle (DTA_Dummy+102) ! #define DTA_DataType (DTA_Dummy+103) ! #define DTA_Domain (DTA_Dummy+104) /* DON'T USE THE FOLLOWING FOUR TAGS. USE THE CORRESPONDING TAGS IN ! * <intuition/gadgetclass.h> */ ! #define DTA_Left (DTA_Dummy+105) ! #define DTA_Top (DTA_Dummy+106) ! #define DTA_Width (DTA_Dummy+107) ! #define DTA_Height (DTA_Dummy+108) ! #define DTA_ObjName (DTA_Dummy+109) ! #define DTA_ObjAuthor (DTA_Dummy+110) ! #define DTA_ObjAnnotation (DTA_Dummy+111) ! #define DTA_ObjCopyright (DTA_Dummy+112) ! #define DTA_ObjVersion (DTA_Dummy+113) ! #define DTA_ObjectID (DTA_Dummy+114) ! #define DTA_UserData (DTA_Dummy+115) ! #define DTA_FrameInfo (DTA_Dummy+116) /* DON'T USE THE FOLLOWING FOUR TAGS. USE THE CORRESPONDING TAGS IN * <intuition/gadgetclass.h> */ ! #define DTA_RelRight (DTA_Dummy+117) ! #define DTA_RelBottom (DTA_Dummy+118) ! #define DTA_RelWidth (DTA_Dummy+119) ! #define DTA_RelHeight (DTA_Dummy+120) ! #define DTA_SelectDomain (DTA_Dummy+121) ! #define DTA_TotalPVert (DTA_Dummy+122) ! #define DTA_TotalPHoriz (DTA_Dummy+123) ! #define DTA_NominalVert (DTA_Dummy+124) ! #define DTA_NominalHoriz (DTA_Dummy+125) /* Printing attributes */ ! #define DTA_DestCols (DTA_Dummy+400) ! /* (LONG) Destination X width */ ! #define DTA_DestRows (DTA_Dummy+401) ! /* (LONG) Destination Y height */ ! #define DTA_Special (DTA_Dummy+402) ! /* (UWORD) Option flags */ ! #define DTA_RastPort (DTA_Dummy+403) ! /* (struct RastPort *) RastPort to use when printing. (V40) */ ! #define DTA_ARexxPortName (DTA_Dummy+404) ! /* (STRPTR) Pointer to base name for ARexx port (V40) */ /*****************************************************************************/ ! #define DTST_RAM 1 ! #define DTST_FILE 2 ! #define DTST_CLIPBOARD 3 ! #define DTST_HOTLINK 4 /*****************************************************************************/ --- 1,259 ---- ! ! #ifndef DATATYPES_DATATYPESCLASS_H ! #define DATATYPES_DATATYPESCLASS_H /* ! ** $VER: datatypesclass.h 45.3 (22.5.97) ! ** datatypes V45 ** ** Interface definitions for DataType objects. ** ! ** Written by Roland Mainz, based on ! ** material from Commodore-Amiga, Inc. ! ** */ ! #ifndef UTILITY_TAGITEM_H #include <utility/tagitem.h> ! #endif /* !UTILITY_TAGITEM_H */ ! #ifndef DATATYPES_DATATYPES_H #include <datatypes/datatypes.h> ! #endif /* !DATATYPES_DATATYPES_H */ ! #ifndef INTUITION_INTUITION_H #include <intuition/intuition.h> ! #endif /* !INTUITION_INTUITION_H */ ! #ifndef DEVICES_PRINTER_H #include <devices/printer.h> ! #endif /* !DEVICES_PRINTER_H */ ! #ifndef DEVICES_PRTBASE_H #include <devices/prtbase.h> ! #endif /* !DEVICES_PRTBASE_H */ /*****************************************************************************/ ! /* base-class for all datatypes */ ! #define DATATYPESCLASS "datatypesclass" /*****************************************************************************/ ! /* datatypesclass tag space */ ! #define DTA_Dummy (TAG_USER + 0x1000) /* Generic attributes */ ! #define DTA_TextAttr (DTA_Dummy + 10) ! /* (struct TextAttr *) Pointer to the default TextAttr to use for ! * the text within the object. ! */ ! #define DTA_TopVert (DTA_Dummy + 11) ! /* (LONG) Current top vertical unit */ ! #define DTA_VisibleVert (DTA_Dummy + 12) ! /* (LONG) Number of visible vertical units */ ! #define DTA_TotalVert (DTA_Dummy + 13) ! /* (LONG) Total number of vertical units */ ! #define DTA_VertUnit (DTA_Dummy + 14) ! /* (LONG) Number of pixels per vertical unit */ ! #define DTA_TopHoriz (DTA_Dummy + 15) ! /* (LONG) Current top horizontal unit */ ! #define DTA_VisibleHoriz (DTA_Dummy + 16) ! /* (LONG) Number of visible horizontal units */ ! #define DTA_TotalHoriz (DTA_Dummy + 17) ! /* (LONG) Total number of horizontal units */ ! #define DTA_HorizUnit (DTA_Dummy + 18) ! /* (LONG) Number of pixels per horizontal unit */ ! #define DTA_NodeName (DTA_Dummy + 19) ! /* (STRPTR) Name of the current element within the object. */ ! #define DTA_Title (DTA_Dummy + 20) ! /* (STRPTR) Title of the object. */ ! #define DTA_TriggerMethods (DTA_Dummy + 21) ! /* (struct DTMethod *) Pointer to a NULL terminated array of ! * supported trigger methods. ! */ ! #define DTA_Data (DTA_Dummy + 22) ! /* (Object *) Object itself. ! * Starting with V45, a DTA_Data == NULL indicates that ! * an object hasn't loaded all data yet (progressive loading, ! * see DTA_Progressive). ! */ ! #define DTA_TextFont (DTA_Dummy + 23) ! /* (struct TextFont *) Default font to use for text within the ! * object. ! */ ! #define DTA_Methods (DTA_Dummy + 24) ! /* (ULONG *) Pointer to a ~0 terminated array of supported ! * methods. ! */ ! #define DTA_PrinterStatus (DTA_Dummy + 25) ! /* (LONG) Printer error message. Error numbers are defined in ! * <devices/printer.h> ! */ ! #define DTA_PrinterProc (DTA_Dummy + 26) ! /* PRIVATE (struct Process *) Pointer to the print process. */ ! #define DTA_LayoutProc (DTA_Dummy + 27) ! /* PRIVATE (struct Process *) Pointer to the layout process. */ ! #define DTA_Busy (DTA_Dummy + 28) ! /* Used to turn the applications' busy pointer off and on */ ! #define DTA_Sync (DTA_Dummy + 29) ! /* Used to indicate that new information has been loaded into ! * an object. This is for models that cache the DTA_TopVert- ! * like tags ! */ ! #define DTA_BaseName (DTA_Dummy + 30) ! /* The base name of the class */ ! #define DTA_GroupID (DTA_Dummy + 31) ! /* Group that the object must belong in */ ! #define DTA_ErrorLevel (DTA_Dummy + 32) ! /* Error level */ ! #define DTA_ErrorNumber (DTA_Dummy + 33) ! /* datatypes.library error number */ ! #define DTA_ErrorString (DTA_Dummy + 34) ! /* Argument for datatypes.library error */ ! #define DTA_Conductor (DTA_Dummy + 35) ! /* New for V40. (STRPTR) specifies the name of the ! * realtime.library conductor. ! * Defaults to "Main". ! */ ! #define DTA_ControlPanel (DTA_Dummy + 36) ! /* New for V40. (BOOL) Indicate whether a control panel should be ! * embedded within the object (in the animation datatype, for ! * example). ! * Defaults to TRUE. ! */ ! #define DTA_Immediate (DTA_Dummy + 37) ! /* New for V40. (BOOL) Indicate whether the object should ! * immediately begin playing. ! Defaults to FALSE. */ ! #define DTA_Repeat (DTA_Dummy + 38) ! /* New for V40. (BOOL) Indicate that the object should repeat ! * playing. ! * Defaults to FALSE. */ ! ! #define DTA_Reserved0 (DTA_Dummy + 49) ! #define DTA_Reserved1 (DTA_Dummy + 50) ! #define DTA_Reserved2 (DTA_Dummy + 51) ! #define DTA_Reserved3 (DTA_Dummy + 52) ! #define DTA_Reserved4 (DTA_Dummy + 53) ! #define DTA_Reserved5 (DTA_Dummy + 54) ! #define DTA_Reserved6 (DTA_Dummy + 55) ! #define DTA_Reserved7 (DTA_Dummy + 56) ! #define DTA_Reserved8 (DTA_Dummy + 57) ! #define DTA_Reserved9 (DTA_Dummy + 58) ! #define DTA_Reserved10 (DTA_Dummy + 59) + #define DTA_Progressive (DTA_Dummy + 60) + /* New for V45. (BOOL) Indicate that the object should use + * progressive loading. The datatype will send { DTA_Sync, 0UL } + * notify msgs while loading is in progress; a final + * { DTA_Sync, 1UL } indicates that loading has been finished. + * Applications have to OM_GET DTA_Data to check if loading + * has __REALLY__ been finished. If "Object" is returned + * loading is done, a NULL return value indicates that the object + * is still loading. + * Defaults to FALSE. */ + + #define DTA_CurrentLevel (DTA_Dummy + 61) + /* New for V45. (ULONG) Notifies the filling level of the object + * when doing (progressive) loading. 0UL means 0%, + * 0xFFFFFFFFUL means 100% + */ + + #define DTA_Class (DTA_Dummy + 62) + /* New for V45.3. (struct IClass *) Use this class when creating + * new objects using NewDTObjectA. Usefull when creating private + * subclasses inside applications (e.g. when a subclass is needed + * to superset some methods (see "DTConvert" example)). + */ /* DTObject attributes */ ! #define DTA_Name (DTA_Dummy + 100) ! #define DTA_SourceType (DTA_Dummy + 101) ! #define DTA_Handle (DTA_Dummy + 102) ! #define DTA_DataType (DTA_Dummy + 103) ! #define DTA_Domain (DTA_Dummy + 104) /* DON'T USE THE FOLLOWING FOUR TAGS. USE THE CORRESPONDING TAGS IN ! * <intuition/gadgetclass.h> ! */ ! #define DTA_Left (DTA_Dummy + 105) ! #define DTA_Top (DTA_Dummy + 106) ! #define DTA_Width (DTA_Dummy + 107) ! #define DTA_Height (DTA_Dummy + 108) ! #define DTA_ObjName (DTA_Dummy + 109) ! #define DTA_ObjAuthor (DTA_Dummy + 110) ! #define DTA_ObjAnnotation (DTA_Dummy + 111) ! #define DTA_ObjCopyright (DTA_Dummy + 112) ! #define DTA_ObjVersion (DTA_Dummy + 113) ! #define DTA_ObjectID (DTA_Dummy + 114) ! #define DTA_UserData (DTA_Dummy + 115) ! #define DTA_FrameInfo (DTA_Dummy + 116) /* DON'T USE THE FOLLOWING FOUR TAGS. USE THE CORRESPONDING TAGS IN * <intuition/gadgetclass.h> */ ! #define DTA_RelRight (DTA_Dummy + 117) ! #define DTA_RelBottom (DTA_Dummy + 118) ! #define DTA_RelWidth (DTA_Dummy + 119) ! #define DTA_RelHeight (DTA_Dummy + 120) ! #define DTA_SelectDomain (DTA_Dummy + 121) ! #define DTA_TotalPVert (DTA_Dummy + 122) ! #define DTA_TotalPHoriz (DTA_Dummy + 123) ! #define DTA_NominalVert (DTA_Dummy + 124) ! #define DTA_NominalHoriz (DTA_Dummy + 125) /* Printing attributes */ ! #define DTA_DestCols (DTA_Dummy + 400) ! /* (LONG) Destination X width */ ! #define DTA_DestRows (DTA_Dummy + 401) ! /* (LONG) Destination Y height */ ! #define DTA_Special (DTA_Dummy + 402) ! /* (UWORD) Option flags */ ! #define DTA_RastPort (DTA_Dummy + 403) ! /* (struct RastPort *) RastPort to use when printing. (V40) */ ! #define DTA_ARexxPortName (DTA_Dummy + 404) ! /* (STRPTR) Pointer to base name for ARexx port (V40) */ /*****************************************************************************/ ! /* DTA_SourceType values */ ! #define DTST_RAM (1UL) /* DTA_Handle expects a NULL arg */ ! #define DTST_FILE (2UL) /* DTA_Handle expects a (BPTR) lock */ ! #define DTST_CLIPBOARD (3UL) /* DTA_Handle expects a (struct IFFHandle *) */ ! #define DTST_HOTLINK (4UL) /* not implemented yet */ /*****************************************************************************/ *************** *** 207,321 **** struct DTSpecialInfo { ! struct SignalSemaphore si_Lock; /* Locked while in DoAsyncLayout() */ ! ULONG si_Flags; ! LONG si_TopVert; /* Top row (in units) */ ! LONG si_VisVert; /* Number of visible rows (in units) */ ! LONG si_TotVert; /* Total number of rows (in units) */ ! LONG si_OTopVert; /* Previous top (in units) */ ! LONG si_VertUnit; /* Number of pixels in vertical unit */ ! LONG si_TopHoriz; /* Top column (in units) */ ! LONG si_VisHoriz; /* Number of visible columns (in units) */ ! LONG si_TotHoriz; /* Total number of columns (in units) */ ! LONG si_OTopHoriz; /* Previous top (in units) */ ! LONG si_HorizUnit; /* Number of pixels in horizontal unit */ }; /* Object is in layout processing */ ! #define DTSIF_LAYOUT (1L<<0) /* Object needs to be layed out */ ! #define DTSIF_NEWSIZE (1L<<1) ! #define DTSIF_DRAGGING (1L<<2) ! #define DTSIF_DRAGSELECT (1L<<3) ! #define DTSIF_HIGHLIGHT (1L<<4) /* Object is being printed */ ! #define DTSIF_PRINTING (1L<<5) /* Object is in layout process */ ! #define DTSIF_LAYOUTPROC (1L<<6) /*****************************************************************************/ struct DTMethod { ! STRPTR dtm_Label; ! STRPTR dtm_Command; ! ULONG dtm_Method; }; /*****************************************************************************/ ! #define DTM_Dummy (0x600) ! /* Inquire what environment an object requires */ ! #define DTM_FRAMEBOX (0x601) ! /* Same as GM_LAYOUT except guaranteed to be on a process already */ ! #define DTM_PROCLAYOUT (0x602) ! /* Layout that is occurring on a process */ ! #define DTM_ASYNCLAYOUT (0x603) ! /* When a RemoveDTObject() is called */ ! #define DTM_REMOVEDTOBJECT (0x604) ! #define DTM_SELECT (0x605) ! #define DTM_CLEARSELECTED (0x606) ! #define DTM_COPY (0x607) ! #define DTM_PRINT (0x608) ! #define DTM_ABORTPRINT (0x609) ! #define DTM_NEWMEMBER (0x610) ! #define DTM_DISPOSEMEMBER (0x611) ! #define DTM_GOTO (0x630) ! #define DTM_TRIGGER (0x631) ! #define DTM_OBTAINDRAWINFO (0x640) ! #define DTM_DRAW (0x641) ! #define DTM_RELEASEDRAWINFO (0x642) ! #define DTM_WRITE (0x650) /* Used to ask the object about itself */ struct FrameInfo { ! ULONG fri_PropertyFlags; /* DisplayInfo (graphics/displayinfo.h) */ ! Point fri_Resolution; /* DisplayInfo */ ! UBYTE fri_RedBits; ! UBYTE fri_GreenBits; ! UBYTE fri_BlueBits; struct { ! ULONG Width; ! ULONG Height; ! ULONG Depth; ! } fri_Dimensions; ! struct Screen *fri_Screen; ! struct ColorMap *fri_ColorMap; ! ULONG fri_Flags; }; ! #define FIF_SCALABLE 0x1 ! #define FIF_SCROLLABLE 0x2 ! #define FIF_REMAPPABLE 0x4 /* DTM_REMOVEDTOBJECT, DTM_CLEARSELECTED, DTM_COPY, DTM_ABORTPRINT */ struct dtGeneral { ! ULONG MethodID; ! struct GadgetInfo *dtg_GInfo; }; --- 264,396 ---- struct DTSpecialInfo { ! struct SignalSemaphore si_Lock; /* Locked while in DoAsyncLayout */ ! ULONG si_Flags; /* Flags, see DTSIF_#? defines below */ ! LONG si_TopVert; /* Top row (in units) */ ! LONG si_VisVert; /* Number of visible rows (in units) */ ! LONG si_TotVert; /* Total number of rows (in units) */ ! LONG si_OTopVert; /* Previous top (in units) */ ! LONG si_VertUnit; /* Number of pixels in vertical unit */ ! LONG si_TopHoriz; /* Top column (in units) */ ! LONG si_VisHoriz; /* Number of visible columns (in units) */ ! LONG si_TotHoriz; /* Total number of columns (in units) */ ! LONG si_OTopHoriz; /* Previous top (in units) */ ! LONG si_HorizUnit; /* Number of pixels in horizontal unit */ }; /* Object is in layout processing */ ! #define DTSIF_LAYOUT (1UL << 0) /* Object needs to be layed out */ ! #define DTSIF_NEWSIZE (1UL << 1) ! #define DTSIF_DRAGGING (1UL << 2) ! #define DTSIF_DRAGSELECT (1UL << 3) ! #define DTSIF_HIGHLIGHT (1UL << 4) /* Object is being printed */ ! #define DTSIF_PRINTING (1UL << 5) /* Object is in layout process */ ! #define DTSIF_LAYOUTPROC (1UL << 6) /*****************************************************************************/ + /* DTA_TriggerMethods array of supported method */ struct DTMethod { ! STRPTR dtm_Label; ! STRPTR dtm_Command; ! ULONG dtm_Method; }; /*****************************************************************************/ ! /* datatypesclass method space */ ! #define DTM_Dummy (0x600) ! /* Inquire what environment an object requires (struct dtFrameBox *) */ ! #define DTM_FRAMEBOX (DTM_Dummy + 0x1) ! /* Same as GM_LAYOUT except guaranteed to be on a process already (struct gpLayout *) */ ! #define DTM_PROCLAYOUT (DTM_Dummy + 0x2) ! /* Layout that is occurring on a process (struct gpLayout *) */ ! #define DTM_ASYNCLAYOUT (DTM_Dummy + 0x3) ! /* When a RemoveDTObject is called (struct dtGeneral *) */ ! #define DTM_REMOVEDTOBJECT (DTM_Dummy + 0x4) ! /* Select area after drag-select (struct dtSelect *) */ ! #define DTM_SELECT (DTM_Dummy + 0x5) ! /* Clear selected area (struct dtGeneral *) */ ! #define DTM_CLEARSELECTED (DTM_Dummy + 0x6) ! /* Copy contents to primary clipboard (struct dtGeneral *) */ ! #define DTM_COPY (DTM_Dummy + 0x7) ! /* Print contents (struct dtPrint *)*/ ! #define DTM_PRINT (DTM_Dummy + 0x8) ! /* Abort print process (struct dtGeneral *) */ ! #define DTM_ABORTPRINT (DTM_Dummy + 0x9) ! #define DTM_NEWMEMBER (DTM_Dummy + 0x10) ! #define DTM_DISPOSEMEMBER (DTM_Dummy + 0x11) ! ! /* Go to node (struct dtGoto *) */ ! #define DTM_GOTO (DTM_Dummy + 0x30) ! ! /* Trigger an action (struct dtTrigger *) */ ! #define DTM_TRIGGER (DTM_Dummy + 0x31) ! ! /* Obtain rendering hande required to use DTM_DRAW (struct opSet *) */ ! #define DTM_OBTAINDRAWINFO (DTM_Dummy + 0x40) ! ! /* Draw object (struct dtDraw *) */ ! #define DTM_DRAW (DTM_Dummy + 0x41) ! ! /* Release drawing handle obtained by DTM_OBTAINDRAWINFO (struct dtReleaseDrawInfo *) */ ! #define DTM_RELEASEDRAWINFO (DTM_Dummy + 0x42) ! ! /* Write contents to file (struct dtWrite *) */ ! #define DTM_WRITE (DTM_Dummy + 0x50) /* Used to ask the object about itself */ struct FrameInfo { ! ULONG fri_PropertyFlags; /* DisplayInfo (graphics/displayinfo.h) */ ! Point fri_Resolution; /* DisplayInfo */ ! UBYTE fri_RedBits; ! UBYTE fri_GreenBits; ! UBYTE fri_BlueBits; struct { ! ULONG Width; ! ULONG Height; ! ULONG Depth; } fri_Dimensions; ! struct Screen *fri_Screen; ! struct ColorMap *fri_ColorMap; ! ULONG fri_Flags; /* See FIF_#? defines below */ }; ! #define FIF_SCALABLE (0x1UL) ! #define FIF_SCROLLABLE (0x2UL) ! #define FIF_REMAPPABLE (0x4UL) /* DTM_REMOVEDTOBJECT, DTM_CLEARSELECTED, DTM_COPY, DTM_ABORTPRINT */ struct dtGeneral { ! ULONG MethodID; ! struct GadgetInfo *dtg_GInfo; }; *************** *** 323,329 **** struct dtSelect { ! ULONG MethodID; ! struct GadgetInfo *dts_GInfo; ! struct Rectangle dts_Select; }; --- 398,404 ---- struct dtSelect { ! ULONG MethodID; ! struct GadgetInfo *dts_GInfo; ! struct Rectangle dts_Select; }; *************** *** 331,353 **** struct dtFrameBox { ! ULONG MethodID; ! struct GadgetInfo *dtf_GInfo; ! struct FrameInfo *dtf_ContentsInfo; /* Input */ ! struct FrameInfo *dtf_FrameInfo; /* Output */ ! ULONG dtf_SizeFrameInfo; ! ULONG dtf_FrameFlags; }; ! #ifndef FRAMEF_SPECIFY ! #define FRAMEF_SPECIFY (1<<0) /* Make do with the dimensions of FrameBox provided. */ ! #endif /* DTM_GOTO */ struct dtGoto { ! ULONG MethodID; ! struct GadgetInfo *dtg_GInfo; ! STRPTR dtg_NodeName; /* Node to goto */ ! struct TagItem *dtg_AttrList; /* Additional attributes */ }; --- 406,428 ---- struct dtFrameBox { ! ULONG MethodID; ! struct GadgetInfo *dtf_GInfo; ! struct FrameInfo *dtf_ContentsInfo; /* Input */ ! struct FrameInfo *dtf_FrameInfo; /* Output */ ! ULONG dtf_SizeFrameInfo; ! ULONG dtf_FrameFlags; }; ! #ifndef FRAMEF_SPECIFY ! #define FRAMEF_SPECIFY (1UL << 0) /* Make do with the dimensions of FrameBox provided. */ ! #endif /* !FRAMEF_SPECIFY */ /* DTM_GOTO */ struct dtGoto { ! ULONG MethodID; ! struct GadgetInfo *dtg_GInfo; ! STRPTR dtg_NodeName; /* Node to goto */ ! struct TagItem *dtg_AttrList; /* Additional attributes */ }; *************** *** 355,390 **** struct dtTrigger { ! ULONG MethodID; ! struct GadgetInfo *dtt_GInfo; ! ULONG dtt_Function; ! APTR dtt_Data; }; ! #define STM_PAUSE 1 ! #define STM_PLAY 2 ! #define STM_CONTENTS 3 ! #define STM_INDEX 4 ! #define STM_RETRACE 5 ! #define STM_BROWSE_PREV 6 ! #define STM_BROWSE_NEXT 7 ! #define STM_NEXT_FIELD 8 ! #define STM_PREV_FIELD 9 ! #define STM_ACTIVATE_FIELD 10 ! #define STM_COMMAND 11 /* New for V40 */ ! #define STM_REWIND 12 ! #define STM_FASTFORWARD 13 ! #define STM_STOP 14 ! #define STM_RESUME 15 ! #define STM_LOCATE 16 /* Printer IO request */ union printerIO { ! struct IOStdReq ios; ! struct IODRPReq iodrp; struct IOPrtCmdReq iopc; }; --- 430,487 ---- struct dtTrigger { ! ULONG MethodID; ! struct GadgetInfo *dtt_GInfo; ! ULONG dtt_Function; /* See STM_#? defines below */ ! APTR dtt_Data; }; ! /* These masks splits the dtt_Function/dtm_Method field in a "method"-part ! * and part which describes the data type attached to dtt_Data ! */ ! #define STMF_METHOD_MASK (0x0000FFFF) ! #define STMF_DATA_MASK (0x00FF0000) ! #define STMF_RESERVED_MASK (0xFF000000) ! /* data types dtt_Data currently can have ! * (use GetDTTriggerMethodDataFlags to examine these values) ! */ ! #define STMD_VOID (0x00010000) ! #define STMD_ULONG (0x00020000) ! #define STMD_STRPTR (0x00030000) ! #define STMD_TAGLIST (0x00040000) ! #define STM_DONE (0) /* Terminator; end of trigger methods array */ ! #define STM_END (0) /* Terminator; end of trigger methods array */ ! #define STM_PAUSE (1) /* dtt_Data (VOID) */ ! #define STM_PLAY (2) /* dtt_Data (VOID) */ ! #define STM_CONTENTS (3) /* dtt_Data (VOID) */ ! #define STM_INDEX (4) /* dtt_Data (VOID) */ ! #define STM_RETRACE (5) /* dtt_Data (VOID) */ ! #define STM_BROWSE_PREV (6) /* dtt_Data (VOID) */ ! #define STM_BROWSE_NEXT (7) /* dtt_Data (VOID) */ ! ! #define STM_NEXT_FIELD (8) /* dtt_Data (VOID) */ ! #define STM_PREV_FIELD (9) /* dtt_Data (VOID) */ ! #define STM_ACTIVATE_FIELD (10) /* dtt_Data (VOID) */ ! ! #define STM_COMMAND (11) /* dtt_Data (STRPTR) Command to execute */ /* New for V40 */ ! #define STM_REWIND (12) /* dtt_Data (VOID) */ ! #define STM_FASTFORWARD (13) /* dtt_Data (VOID) */ ! #define STM_STOP (14) /* dtt_Data (VOID) */ ! #define STM_RESUME (15) /* dtt_Data (VOID) */ ! #define STM_LOCATE (16) /* dtt_Data (ULONG) (frame number, etc.) */ ! ! /* New for V45: Custom trigger methods starts here; but must be within ! * STMF_METHOD_MASKs value ! */ ! #define STM_USER (100) /* Printer IO request */ union printerIO { ! struct IOStdReq ios; ! struct IODRPReq iodrp; struct IOPrtCmdReq iopc; }; *************** *** 393,400 **** struct dtPrint { ! ULONG MethodID; ! struct GadgetInfo *dtp_GInfo; /* Gadget information */ ! union printerIO *dtp_PIO; /* Printer IO request */ ! struct TagItem *dtp_AttrList; /* Additional attributes */ }; --- 490,497 ---- struct dtPrint { ! ULONG MethodID; ! struct GadgetInfo *dtp_GInfo; /* Gadget information */ ! union printerIO *dtp_PIO; /* Printer IO request */ ! struct TagItem *dtp_AttrList; /* Additional attributes */ }; *************** *** 402,414 **** struct dtDraw { ! ULONG MethodID; ! struct RastPort *dtd_RPort; ! LONG dtd_Left; ! LONG dtd_Top; ! LONG dtd_Width; ! LONG dtd_Height; ! LONG dtd_TopHoriz; ! LONG dtd_TopVert; ! struct TagItem *dtd_AttrList; /* Additional attributes */ }; --- 499,518 ---- struct dtDraw { ! ULONG MethodID; ! struct RastPort *dtd_RPort; ! LONG dtd_Left; ! LONG dtd_Top; ! LONG dtd_Width; ! LONG dtd_Height; ! LONG dtd_TopHoriz; ! LONG dtd_TopVert; ! struct TagItem *dtd_AttrList; /* Additional attributes */ ! }; ! ! /* DTM_RELEASEDRAWINFO */ ! struct dtReleaseDrawInfo ! { ! ULONG MethodID; ! APTR dtr_Handle; /* Handle returned by DTM_OBTAINDRAWINFO */ }; *************** *** 416,431 **** struct dtWrite { ! ULONG MethodID; ! struct GadgetInfo *dtw_GInfo; /* Gadget information */ ! BPTR dtw_FileHandle; /* File handle to write to */ ! ULONG dtw_Mode; ! struct TagItem *dtw_AttrList; /* Additional attributes */ }; /* Save data as IFF data */ ! #define DTWM_IFF 0 /* Save data as local data format */ ! #define DTWM_RAW 1 - #endif /* DATATYPES_DATATYPESCLASS_H */ --- 520,537 ---- struct dtWrite { ! ULONG MethodID; ! struct GadgetInfo *dtw_GInfo; /* Gadget information */ ! BPTR dtw_FileHandle; /* File handle to write to */ ! ULONG dtw_Mode; /* See DTWM_#? defines below */ ! struct TagItem *dtw_AttrList; /* Additional attributes */ }; /* Save data as IFF data */ ! #define DTWM_IFF (0) /* Save data as local data format */ ! #define DTWM_RAW (1) ! ! #endif /* !DATATYPES_DATATYPESCLASS_H */ ! Only in include_h/datatypes: pictureclass.h diff -c2 -d -P -r include_h/datatypes/pictureclassext.h includenew/datatypes/pictureclassext.h *** include_h/datatypes/pictureclassext.h Thu Jan 1 00:00:00 1970 --- includenew/datatypes/pictureclassext.h Wed Feb 14 02:41:09 2001 *************** *** 0 **** --- 1,51 ---- + #ifndef DATATYPES_PICTURECLASSEXT_H + #define DATATYPES_PICTURECLASSEXT_H + + #include <datatypes/datatypesclass.h> + + #define DTM_WRITEPIXELARRAY (DTM_Dummy+0x60) /*Datatypesclass.h*/ + #define DTM_READPIXELARRAY (DTM_Dummy+0x61) /*Datatypesclass.h*/ + #define DTM_CREATEPIXMAPDIR (DTM_Dummy+0x62) /*Datatypesclass.h*/ + #define DTM_FIRSTPIXMAPDIR (DTM_Dummy+0x63) /*Datatypesclass.h*/ + #define DTM_NEXTPIXMAPDIR (DTM_Dummy+0x64) /*Datatypesclass.h*/ + #define DTM_PREVPIXMAPDIR (DTM_Dummy+0x65) /*Datatypesclass.h*/ + #define DTM_BESTPIXMAPDIR (DTM_Dummy+0x66) /*Datatypesclass.h*/ + + /* DTM_BLITPIXELARRAY */ + struct gpBlitPixelArray + { + ULONG MethodID; /* DTM_BLITPIXELARRAY id */ + UBYTE *PixelArray; /* Source PixelArray */ + ULONG PixelArrayMode; /* Format Mode of the Source PixelArray..see cybergraphics.h */ + ULONG PixelArrayMod; /* Bytes to add to the next line in the Source PixelArray */ + ULONG LeftEdge; /* XStart of the Dest */ + ULONG TopEdge; /* YStart of the Dest */ + ULONG Width; /* Width of the Source PixelArray */ + ULONG Height; /* Height of the Source PixelArray */ + }; + + + + + + + #define PDTA_SourceMode (DTA_Dummy + 250) /* Used to set the sub datatype interface */ + #define PDTA_DestMode (DTA_Dummy + 251) /* Used to set the app datatype interface */ + #define PDTA_PixelFormat (DTA_Dummy + 252) /* private..DON'T touch */ + #define PDTA_TransRemapPen (DTA_Dummy + 253) /* Optional transparent remap pen */ + #define PDTA_NumPixMapDir (DTA_Dummy + 254) /* Count of the Object's PixMapDirs..default=1 */ + #define PDTA_UseFriendBitMap (DTA_Dummy + 255) /* Converts the result bitmap into a friendbitmap */ + #define PDTA_AlphaChannel (DTA_Dummy + 256) /* Alphachannel input */ + #define PDTA_MultiRemap (DTA_Dummy + 257) /* Tells the picture.datatype NOT to keep control */ + /* over DestBitmap and Pens...these are now*/ + /* controlled by the appliction. TM mode*/ + #define PDTA_MaskPlane (DTA_Dummy + 258) /* NULL or MaskPlane for BltMaskBitMapRastPort() */ + /* This mask is generated when the transparent flag is set*/ + /* or an Alphachannel exists */ + + /* PDTA_SourceMode,PDTA_DestMode */ + #define MODE_V42 0 + #define MODE_V43 1 + + + #endif Only in include_h/datatypes: soundclass.h Only in include_h/datatypes: textclass.h Only in include_h/devices: audio.h Only in include_h/devices: bootblock.h Only in include_h/devices: cd.h Only in include_h/devices: clipboard.h Only in include_h/devices: console.h Only in include_h/devices: conunit.h Only in include_h/devices: gameport.h Only in include_h/devices: hardblocks.h diff -c2 -d -P -r include_h/devices/input.h includenew/devices/input.h *** include_h/devices/input.h Wed Feb 14 02:41:41 2001 --- includenew/devices/input.h Wed Feb 14 02:41:30 2001 *************** *** 1,15 **** #ifndef DEVICES_INPUT_H #define DEVICES_INPUT_H ! /* ! ** $VER: input.h 36.0 (1.5.90) ! ** Includes Release 40.15 ! ** ! ** input device command definitions ! ** ! ** (C) Copyright 1985-1993 Commodore-Amiga, Inc. ! ** All Rights Reserved ! */ ! ! #ifndef EXEC_IO_H #include "exec/io.h" #endif --- 1,5 ---- #ifndef DEVICES_INPUT_H #define DEVICES_INPUT_H ! #ifndef EXEC_IO_H #include "exec/io.h" #endif *************** *** 23,26 **** --- 13,23 ---- #define IND_SETMTYPE (CMD_NONSTD+6) #define IND_SETMTRIG (CMD_NONSTD+7) + #define IND_SETINTUITICKS (CMD_NONSTD+8) + #define IND_GETTHRESH (CMD_NONSTD+9) + #define IND_GETPERIOD (CMD_NONSTD+10) + #define IND_GETMPORT (CMD_NONSTD+11) + #define IND_GETMTYPE (CMD_NONSTD+12) + #define IND_GETMTRIG (CMD_NONSTD+13) + #define IND_GETINTUITICKS (CMD_NONSTD+14) #endif /* DEVICES_INPUT_H */ Only in include_h/devices: inputevent.h Only in include_h/devices: keyboard.h Only in include_h/devices: keymap.h Only in include_h/devices: narrator.h Only in include_h/devices: parallel.h Only in include_h/devices: printer.h Only in include_h/devices: prtbase.h Only in include_h/devices: prtgfx.h Only in include_h/devices: scsidisk.h Only in include_h/devices: serial.h Only in include_h/devices: timer.h Only in include_h/devices: trackdisk.h Only in include_h: diskfont Only in include_h: dos diff -c2 -d -P -r include_h/emul/emulinterface.h includenew/emul/emulinterface.h *** include_h/emul/emulinterface.h Thu Jan 1 00:00:00 1970 --- includenew/emul/emulinterface.h Wed Feb 14 02:41:10 2001 *************** *** 0 **** --- 1,398 ---- + #ifndef EMUL_EMULINTERFACE_H + #define EMUL_EMULINTERFACE_H + + + #define TRAP_MASK 0x00ff + #define TRAP_AREA_START 0xff00 /* 0xff00 .. 0xffff area */ + + /*********************************************************************************** + * Trap: EmulLibEntry.Trap == TRAP_LIB + * Result: D0 + * Function: Call a PPC Function with std SystemV4 register layout. + * The 68k frame is saved in the EmulHandle which + * is passed in gpr2 and MUST not be changed. + * The Result is passed in gpr3 and then moved to REG_D0. + * Emulation: PC = *REG_A7 + * REG_A7 += 4; + * Note: Should be used with complex PPC functions + */ + + #define TRAP_LIB 0xff00 + + /*********************************************************************************** + * Trap: EmulLibEntry.Trap == TRAP_LIB_QUICK + * Result: D0 + * Function: Call a PPC Function with 68k emulation register layout. + * See emulregs.h. + * You must not kill the REG_SR register. + * Only A7 and SR is saved to the EmulHandle because + * they may be needed for Emulation Calls out of the PPC. + * EmulHandle is passed in gpr2 and MUST not be changed + * The Result is passed in gpr3 and then moved to REG_D0. + * Emulation: PC = *REG_A7 + * REG_A7 += 4; + * Note: Should be used with simple/quick PPC function which don`t + * require many registers. + */ + #define TRAP_LIB_QUICK 0xff01 + + /*********************************************************************************** + * Trap: TRAP_END + * Function: to return from an emulated routine back into the PPC Function + * Note: **PRIVATE** + */ + #define TRAP_END 0xff02 + + /*********************************************************************************** + * Trap: TRAP_FATALEXCEPTION + * Function: Capture a fatal kickstart exception + * Note: **PRIVATE** + */ + #define TRAP_FATALEXCEPTION 0xff03 + + /*********************************************************************************** + * Trap: TRAP_ALERT + * Function: to capture an Alert before the execppc alert replacement is installed + * Note: **PRIVATE** + */ + + #define TRAP_ALERT 0xff04 + + /*********************************************************************************** + * Trap: EmulLibEntry.Trap == TRAP_LIBNR + * Result: None + * Function: Call a PPC Function with std SystemV4 register layout. + * The 68k frame is saved in the EmulHandle which + * is passed in gpr2 and MUST not be changed + * The PPC function doesn`t return any result. + * Emulation: PC = *REG_A7 + * REG_A7 += 4; + * Note: Should be used with complex PPC functions + */ + #define TRAP_LIBNR 0xff05 + + /*********************************************************************************** + * Trap: EmulLibEntry.Trap == TRAP_LIBNR_QUICK + * Result: None + * Function: Call a PPC Function with 68k emulation register layout. + * See emulregs.h. + * You must not change the emul regs. + * Only A7 and SR is saved to the EmulHandle because + * they may be needed for Emulation Calls out of the PPC. + * EmulHandle is passed in gpr2 and MUST not be changed + * The PPC function doesn`t return any result. + * Emulation: PC = *REG_A7 + * REG_A7 += 4; + * Note: Should be used with simple/quick PPC function which don`t + * require many registers. + */ + #define TRAP_LIBNR_QUICK 0xff06 + + /*********************************************************************************** + * Trap: TRAP_EXCEPT + * Function: Exec Task Exception + * Note: **PRIVATE** + */ + + #define TRAP_EXCEPT 0xff07 + + /*********************************************************************************** + * Trap: TRAP_LAUNCH + * Function: Exec Task Launch + * Note: **PRIVATE** + */ + #define TRAP_LAUNCH 0xff08 + + /*********************************************************************************** + * Trap: TRAP_DISPATCH + * Function: Exec Task Dispatch + * Note: **PRIVATE** + */ + #define TRAP_DISPATCH 0xff09 + + /*********************************************************************************** + * Trap: TRAP_SWITCH + * Function: Exec Task Switch + * Note: **PRIVATE** + */ + + #define TRAP_SWITCH 0xff0a + + /*********************************************************************************** + * Trap: TRAP_SCHEDULE + * Function: Exec Task Schedule + * Note: **PRIVATE** + */ + + #define TRAP_SCHEDULE 0xff0b + + #define TRAP_EMULGETATTR 0xff0c /* D0=Tag D0=Result..it only skips the cmd */ + #define TRAP_EMULSETATTR 0xff0d /* D0=Tag D1=Value..it only skips the cmd */ + + /*********************************************************************************** + * + * Trap: TRAP_FUNC + * Function: This function MUST be *called* as a subroutine + * as it takes the PC from the stack. + * Emulation: o Loads a new stack if necessary + * o Put Arg1..Arg8 into the System V4 calling registers(gpr3..gpr11) + * o Call PPC Function at Address + * o PC == REG_A7[0]; + * o REG_A7 += 4; + */ + #define TRAP_FUNC 0xff0e + + + /*********************************************************************************** + * Trap: TRAP_ISYNC + * Function: Synchronize the instruction stream of the CPU. + * PPC`s "isync". + * Emulation: PC+=2 + */ + #define TRAP_ISYNC 0xff0f + + /*********************************************************************************** + * Trap: TRAP_SYNC + * Function: Synchronize the instruction stream of the CPU. + * PPC`s "sync". + * Emulation: PC+=2 + */ + #define TRAP_SYNC 0xff10 + + + /*********************************************************************************** + * Trap: TRAP_EIEIO + * Function: Orders the instruction stream of the CPU. + * PPC`s "eieio". + * Emulation: PC+=2 + */ + #define TRAP_EIEIO 0xff11 + + /*********************************************************************************** + * Trap: EmulLibEntry.Trap == TRAP_LIBSR + * Result: D0 , REG_SR <- MyEmulHandle->SR + * Function: Call a PPC Function with std SystemV4 register layout. + * The 68k frame is saved in the EmulHandle which + * is passed in gpr2 and MUST not be changed + * The Result is passed in gpr3 and then moved to REG_D0. + * REG_SR is updated with MyEmulHandle->SR so you`re able + * to change it which may be useful for wrongly used + * exec memory functions where the result SR may be + * important. + * Emulation: PC = *REG_A7 + * REG_A7 += 4; + * Note: Should be used with complex PPC functions + */ + + #define TRAP_LIBSR 0xff12 + + /*********************************************************************************** + * Trap: EmulLibEntry.Trap == TRAP_LIBSRNR + * Result: REG_SR <- MyEmulHandle->SR + * Function: Call a PPC Function with std SystemV4 register layout. + * The 68k frame is saved in the EmulHandle which + * is passed in gpr2 and MUST not be changed + * The PPC function doesn`t return any result. + * REG_SR is updated with MyEmulHandle->SR so you`re able + * to change it which may be useful for wrongly used + * exec memory functions where the result SR may be + * important. + * Emulation: PC = *REG_A7 + * REG_A7 += 4; + * Note: Should be used with complex PPC functions + */ + #define TRAP_LIBSRNR 0xff13 + + + /*********************************************************************************** + * Trap: EmulLibEntry.Trap == TRAP_LIBD0_D1 + * Result: D0 , REG_D1 <- MyEmulHandle->Dn[1] + * Function: Call a PPC Function with std SystemV4 register layout. + * The 68k frame is saved in the EmulHandle which + * is passed in gpr2 and MUST not be changed + * The Result is passed in gpr3 and then moved to REG_D0. + * REG_D1 is updated with MyEmulHandle->Dn[1] so you`re able + * to change it which is needed for braindead LoadSeg + * and software using *Overlays* + * Emulation: PC = *REG_A7 + * REG_A7 += 4; + * Note: Should be used with complex PPC functions + */ + + #define TRAP_LIBD0_D1 0xff14 + + /*********************************************************************************** + * Trap: EmulLibEntry.Trap == TRAP_LIBRESTORE + * Result: None + * Function: Call a PPC Function with std SystemV4 register layout. + * The 68k frame is saved in the EmulHandle which + * is passed in gpr2 and MUST not be changed + * The function copies the emulation context registers + * with the functions inside the EmulHandle. + * Emulation: PC = *REG_A7 + * REG_A7 += 4; + * Note: Should only be used in special code. Setjmp/GetA4 inside PPC code. + */ + + #define TRAP_LIBRESTORE 0xff15 + + /*********************************************************************************** + * Trap: TRAP_SUPERVISOR + * Function: Exec Supervisor Switch + * Note: **PRIVATE** + */ + + #define TRAP_SUPERVISOR 0xff16 + + /*********************************************************************************** + * Trap: TRAP_PPCTASK + * Function: Not a valid call trap. + * Only used to signal exec that the PC + * points to a TaskInitExtension structure. + * Note: **PRIVATE** + */ + + #define TRAP_PPCTASK 0xfff0 + + + + #define EMULTAG_NAME 0x0 /* Gives back a Name Ptr */ + #define EMULTAG_VERSION 0x1 /* Gives back a Version */ + #define EMULTAG_REVISION 0x2 /* Gives back a Revision */ + #define EMULTAG_OPCODETABLE 0x3 /* Gives back the 16 Bit Opcodetable Ptr or NULL */ + #define EMULTAG_TYPE 0x4 /* Gives back the emulation type */ + #define EMULTAG_EMULHANDLE 0x5 /* Gives back the EmulHandle Ptr */ + #define EMULTAG_EMULHANDLESIZE 0x6 /* Gives back the EmulHandle Size */ + #define EMULTAG_SUPERHANDLE 0x7 /* Gives back the SuperHandle Ptr */ + #define EMULTAG_SUPERHANDLESIZE 0x8 /* Gives back the SuperHandle Size */ + + + struct EmulCaos + { + union + { + int Offset; + APTR Function; + } caos_Un; + ULONG reg_d0; + ULONG reg_d1; + ULONG reg_d2; + ULONG reg_d3; + ULONG reg_d4; + ULONG reg_d5; + ULONG reg_d6; + ULONG reg_d7; + ULONG reg_a0; + ULONG reg_a1; + ULONG reg_a2; + ULONG reg_a3; + ULONG reg_a4; + ULONG reg_a5; + /* + * here you have to put the LibBasePtr if you want + * to call a Library. + */ + ULONG reg_a6; + }; + + struct EmulLibEntry + { + UWORD Trap; + UWORD Extension; /* MUST be set to 0 if you create it by hand */ + void (*Func)(void); + }; + + struct EmulFunc + { + UWORD Trap; /* TRAP_FUNC */ + UWORD Extension; + ULONG Address; + /* Size 0 for no new Stack + */ + ULONG StackSize; + ULONG Arg1; + ULONG Arg2; + ULONG Arg3; + ULONG Arg4; + ULONG Arg5; + ULONG Arg6; + ULONG Arg7; + ULONG Arg8; + }; + + + + #define GETEMULHANDLE register struct EmulHandle *MyEmulHandle __asm("r2"); + + #ifndef ROMEMUL + + struct SuperHandle + { + ULONG USP; /* Userstack */ + ULONG SSP; /* Supervisor Stack */ + ULONG VBR; /* Exception Base Register */ + ULONG SFC; /* SFC Register ...not really used */ + ULONG DFC; /* DFC Register ...not really used */ + ULONG CACR; /* Cache Control Register ...not really used */ + ULONG TC; + ULONG ITT0; + ULONG ITT1; + ULONG DTT0; + ULONG DTT1; + ULONG URP; + ULONG SRP; + ULONG BUSCR; + ULONG PCR; + ULONG Type; /* SuperHandle Type..not used yet */ + /******************************************************************************************** + * Private + * Don`t touch + */ + }; + + struct Float96 + { + ULONG Data[3]; + }; + + struct EmulHandle + { + ULONG Dn[8]; /* 0x00 */ + ULONG An[8]; /* 0x20 */ + ULONG *PC; /* 0x40 Current PC */ + ULONG SR; /* 0x44 Statusregister */ + struct SuperHandle *SuperHandle; /* 0x48 Ptr to SuperHandle */ + ULONG Type; /* 0x4c EmulHandle Type */ + ULONG Flags; /* 0x50 Flags */ + + void (*EmulFunc)(void); /* 0x54 Here is the direct Emulation Jump..you have to setup the regframes*/ + ULONG (*EmulCallOS)(struct EmulCaos*); /* 0x58 Here is the Emulation Jump for an 68k OSLib Function*/ + ULONG (*EmulCall68k)(struct EmulCaos*); /* 0x5c Here is the Emulation Jump for an 68k Function*/ + ULONG (*EmulCallQuick68k)(struct EmulCaos*); /* 0x60 Here is the Emulation Quick Jump for an 68k Function..r13..r31 are not saved!*/ + ULONG (*EmulCallDirectOS)(LONG lvo); /* 0x64 Here is the Emulation Direct Jump for a 68k OSLib Function*/ + ULONG (*EmulCallDirect68k)(APTR Function); /* 0x68 Here is the Emulation Direct Jump for a 68k Function*/ + ULONG Pad1; /* 0x6c */ + struct Float96 FPU[8]; /* 0x70 Not yet used...*/ + ULONG FPCR; /* 0xd0 Not yet used...*/ + ULONG FPSR; /* 0xd4 Not yet used...*/ + ULONG FPIAR; /* 0xd8 Not yet used...*/ + ULONG Pad3; /* 0xdc */ + /******************************************************************************************** + * Private + * Don`t touch + * 0xe0 + */ + + }; + + #define EMULFLAGSF_PPC 0x1 /* Set when the emulation runs in full native code */ + #define EMULFLAGSF_QUICK 0x2 /* Set when the emulation runs quick native code.. + * which is basicly still the emul reg layout + */ + #define EMULFLAGSF_INTERRUPT 0x4 /* Set when the emulation runs in interrupt mode + */ + + #endif + + + #endif diff -c2 -d -P -r include_h/emul/emulregs.h includenew/emul/emulregs.h *** include_h/emul/emulregs.h Thu Jan 1 00:00:00 1970 --- includenew/emul/emulregs.h Wed Feb 14 02:41:10 2001 *************** *** 0 **** --- 1,55 ---- + #ifndef EMUL_EMULREGS_H + #define EMUL_EMULREGS_H + + #ifndef EMUL_EMULINTERFACE_H + #include <emul/emulinterface.h> + #endif + + register struct EmulHandle *MyEmulHandle __asm("r2"); + + #ifdef EMUL_QUICKMODE + register ULONG* REG_PC __asm("r13"); + register UWORD REG_SR __asm("r14"); + register void (**OPCODETABLE)(void) __asm("r15"); + + register ULONG REG_D0 __asm("r16"); + register ULONG REG_D1 __asm("r17"); + register ULONG REG_D2 __asm("r18"); + register ULONG REG_D3 __asm("r19"); + register ULONG REG_D4 __asm("r20"); + register ULONG REG_D5 __asm("r21"); + register ULONG REG_D6 __asm("r22"); + register ULONG REG_D7 __asm("r23"); + register ULONG REG_A0 __asm("r24"); + register ULONG REG_A1 __asm("r25"); + register ULONG REG_A2 __asm("r26"); + register ULONG REG_A3 __asm("r27"); + register ULONG REG_A4 __asm("r28"); + register ULONG REG_A5 __asm("r29"); + register ULONG REG_A6 __asm("r30"); + register ULONG REG_A7 __asm("r31"); + #else + + #define REG_PC (MyEmulHandle->PC) + #define REG_SR (MyEmulHandle->SR) + + #define REG_D0 (MyEmulHandle->Dn[0]) + #define REG_D1 (MyEmulHandle->Dn[1]) + #define REG_D2 (MyEmulHandle->Dn[2]) + #define REG_D3 (MyEmulHandle->Dn[3]) + #define REG_D4 (MyEmulHandle->Dn[4]) + #define REG_D5 (MyEmulHandle->Dn[5]) + #define REG_D6 (MyEmulHandle->Dn[6]) + #define REG_D7 (MyEmulHandle->Dn[7]) + #define REG_A0 (MyEmulHandle->An[0]) + #define REG_A1 (MyEmulHandle->An[1]) + #define REG_A2 (MyEmulHandle->An[2]) + #define REG_A3 (MyEmulHandle->An[3]) + #define REG_A4 (MyEmulHandle->An[4]) + #define REG_A5 (MyEmulHandle->An[5]) + #define REG_A6 (MyEmulHandle->An[6]) + #define REG_A7 (MyEmulHandle->An[7]) + + #endif + + #endif Only in include_h/exec: alerts.h Only in include_h/exec: devices.h Only in include_h/exec: errors.h Only in include_h/exec: exec.h diff -c2 -d -P -r include_h/exec/execbase.h includenew/exec/execbase.h *** include_h/exec/execbase.h Wed Feb 14 02:41:44 2001 --- includenew/exec/execbase.h Wed Feb 14 02:41:10 2001 *************** *** 3,7 **** /* ** $VER: execbase.h 39.6 (18.1.93) ! ** Includes Release 40.15 ** ** Definition of the exec.library base structure. --- 3,7 ---- /* ** $VER: execbase.h 39.6 (18.1.93) ! ** Includes Release 40.13 ** ** Definition of the exec.library base structure. *************** *** 61,75 **** struct Task *ThisTask; /* pointer to current task (readable) */ ! ULONG IdleCount; /* idle counter */ ULONG DispCount; /* dispatch counter */ UWORD Quantum; /* time slice quantum */ UWORD Elapsed; /* current quantum ticks */ ! UWORD SysFlags; /* misc internal system flags */ ! BYTE IDNestCnt; /* interrupt disable nesting count */ ! BYTE TDNestCnt; /* task disable nesting count */ UWORD AttnFlags; /* special attention flags (readable) */ ! UWORD AttnResched; /* rescheduling attention */ APTR ResModules; /* resident module array pointer */ APTR TaskTrapCode; --- 61,75 ---- struct Task *ThisTask; /* pointer to current task (readable) */ ! volatile ULONG IdleCount; /* idle counter */ ULONG DispCount; /* dispatch counter */ UWORD Quantum; /* time slice quantum */ UWORD Elapsed; /* current quantum ticks */ ! volatile UWORD SysFlags; /* misc internal system flags */ ! volatile BYTE IDNestCnt; /* interrupt disable nesting count */ ! volatile BYTE TDNestCnt; /* task disable nesting count */ UWORD AttnFlags; /* special attention flags (readable) */ ! volatile UWORD AttnResched; /* rescheduling attention */ APTR ResModules; /* resident module array pointer */ APTR TaskTrapCode; *************** *** 124,129 **** /****** V36 Exec additions start here **************************************/ ! UWORD ex_Pad0; /* Private internal use */ ! ULONG ex_LaunchPoint; /* Private to Launch/Switch */ APTR ex_RamLibPrivate; /* The next ULONG contains the system "E" clock frequency, --- 124,129 ---- /****** V36 Exec additions start here **************************************/ ! UWORD ex_Pad0; /* Private internal use */ ! ULONG ex_LaunchPoint; /* Private to Launch/Switch */ APTR ex_RamLibPrivate; /* The next ULONG contains the system "E" clock frequency, *************** *** 132,144 **** ** Typical values are 715909 for NTSC, or 709379 for PAL. */ ! ULONG ex_EClockFrequency; /* (readable) */ ! ULONG ex_CacheControl; /* Private to CacheControl calls */ ! ULONG ex_TaskID; /* Next available task ID */ ! ULONG ex_Reserved1[5]; ! APTR ex_MMULock; /* private */ ! ULONG ex_Reserved2[3]; /****** V39 Exec additions start here **************************************/ --- 132,149 ---- ** Typical values are 715909 for NTSC, or 709379 for PAL. */ ! ULONG ex_EClockFrequency; /* (readable) */ ! ULONG ex_CacheControl; /* Private to CacheControl calls */ ! ULONG ex_TaskID; /* Next available task ID */ ! ULONG ex_EmulHandleSize; /* PPC EmulHandleSize..*private* */ ! struct MsgPort *ex_PPCTrapMsgPort; /* PPC AmigaOS Exception MsgPort..*private* */ ! ULONG ex_Reserved1[3]; ! APTR ex_MMULock; /* private */ ! /* New AmigaBox Emulation Entries */ ! APTR ex_PatchPool; /* PatchPool Ptr needed by SetFunction..*private* */ ! APTR ex_PPCTaskExitCode; /* PPC Task exit function */ ! ULONG ex_DebugFlags; /* Exec Debug Flags..*private* */ /****** V39 Exec additions start here **************************************/ *************** *** 147,152 **** * for V39 exec's low memory handler... */ ! struct MinList ex_MemHandlers; /* The handler list */ ! APTR ex_MemHandler; /* Private! handler pointer */ }; --- 152,157 ---- * for V39 exec's low memory handler... */ ! struct MinList ex_MemHandlers; /* The handler list */ ! APTR ex_MemHandler; /* Private! handler pointer */ }; *************** *** 162,165 **** --- 167,171 ---- #define AFB_68882 5 #define AFB_FPU40 6 /* Set if 68040 FPU */ + #define AFB_68060 7 /* * The AFB_FPU40 bit is set when a working 68040 FPU *************** *** 180,183 **** --- 186,190 ---- #define AFF_68882 (1L<<5) #define AFF_FPU40 (1L<<6) + #define AFF_68060 (1L<<7) #define AFF_PRIVATE (1L<<15) *************** *** 211,214 **** --- 218,280 ---- #define DMA_ReadFromRAM (1L<<3) /* Set if DMA goes *FROM* RAM to device */ + + #define SB_SAR 15 /* scheduling attention required (TOP BIT) */ + #define SB_TQE 14 /* time quantum expended -- time to resche */ + #define SB_SINT 13 + + #define SF_SAR (1<<SB_SAR) + #define SF_TQE (1<<SB_TQE) + #define SF_SINT (1<<SB_SINT) + + /****** Debug Flags...(don`t depend on them) **********/ + + #define EXECDEBUGF_INITRESIDENT 0x1UL + #define EXECDEBUGF_INITCODE 0x2UL + #define EXECDEBUGF_FINDRESIDENT 0x4UL + + #define EXECDEBUGF_CREATELIBRARY 0x10UL + #define EXECDEBUGF_SETFUNCTION 0x20UL + #define EXECDEBUGF_NEWSETFUNCTION 0x40UL + + #define EXECDEBUGF_ADDTASK 0x100UL + #define EXECDEBUGF_REMTASK 0x200UL + #define EXECDEBUGF_GETTASKATTR 0x400UL + #define EXECDEBUGF_SETTASKATTR 0x800UL + + #define EXECDEBUGF_EXCEPTHANDLER 0x1000UL + #define EXECDEBUGF_ADDDOSNODE 0x2000UL + + + #define EXECDEBUGF_NOLOGSERVER 0x10000UL + #define EXECDEBUGF_NOLOGWINDOW 0x20000UL + + /* + * "env:MorphOS/LogPath" contains the logfile path, + * If not specified it`s using "ram:.morphoslog" + */ + #define EXECDEBUGF_LOGFILE 0x40000UL + #define EXECDEBUGF_LOGKPRINTF 0x80000UL + + + /* PPCLib Flags + */ + + #define EXECDEBUGF_LOADSEG 0x01000000UL + #define EXECDEBUGF_UNLOADSEG 0x02000000UL + #define EXECDEBUGF_PPCSTART 0x04000000UL + + + /* UserFlags + */ + + /* + * Should be used to control user LibInit/DevInit Debug output + */ + #define EXECDEBUGF_INIT 0x40000000UL + + /* + * Should be used to control logging + */ + #define EXECDEBUGF_LOG 0x80000000UL #endif /* EXEC_EXECBASE_H */ Only in include_h/exec: initializers.h diff -c2 -d -P -r include_h/exec/interrupts.h includenew/exec/interrupts.h *** include_h/exec/interrupts.h Wed Feb 14 02:41:45 2001 --- includenew/exec/interrupts.h Wed Feb 14 02:41:10 2001 *************** *** 3,7 **** /* ** $VER: interrupts.h 39.1 (18.9.92) ! ** Includes Release 40.15 ** ** Callback structures used by hardware & software interrupts --- 3,7 ---- /* ** $VER: interrupts.h 39.1 (18.9.92) ! ** Includes Release 40.13 ** ** Callback structures used by hardware & software interrupts *************** *** 23,27 **** struct Node is_Node; APTR is_Data; /* server data segment */ ! VOID (*is_Code)(); /* server code entry */ }; --- 23,27 ---- struct Node is_Node; APTR is_Data; /* server data segment */ ! VOID (*is_Code)(void); /* server code entry */ }; *************** *** 29,33 **** struct IntVector { /* For EXEC use ONLY! */ APTR iv_Data; ! VOID (*iv_Code)(); struct Node *iv_Node; }; --- 29,33 ---- struct IntVector { /* For EXEC use ONLY! */ APTR iv_Data; ! VOID (*iv_Code)(void); struct Node *iv_Node; }; Only in include_h/exec: io.h diff -c2 -d -P -r include_h/exec/libraries.h includenew/exec/libraries.h *** include_h/exec/libraries.h Wed Feb 14 02:41:45 2001 --- includenew/exec/libraries.h Wed Feb 14 02:41:10 2001 *************** *** 3,7 **** /* ** $VER: libraries.h 39.2 (10.4.92) ! ** Includes Release 40.15 ** ** Definitions for use when creating or using Exec libraries --- 3,7 ---- /* ** $VER: libraries.h 39.2 (10.4.92) ! ** Includes Release 40.13 ** ** Definitions for use when creating or using Exec libraries *************** *** 15,18 **** --- 15,30 ---- #endif /* EXEC_NODES_H */ + #ifndef EXEC_MACHINE_H + #include "exec/machine.h" + #endif /* EXEC_MACHINE_H */ + + #ifndef UTILITY_TAGITEM_H + #include "utility/tagitem.h" + #endif /* UTILITY_TAGITEM_H */ + + #ifndef EMUL_EMULINTERFACE_H + #include "emul/emulinterface.h" + #endif /* EMUL_EMULINTERFACE_H */ + /*------ Special Constants ---------------------------------------*/ *************** *** 63,66 **** --- 75,337 ---- #define lh_Sum lib_Sum #define lh_OpenCnt lib_OpenCnt + + + /* NewSetFunction extensions + */ + + #define SETFUNCTAG_Dummy (TAG_USER +0x01000000) + + /* Set the machine type of the function + * Default is 68k + */ + #define SETFUNCTAG_MACHINE (SETFUNCTAG_Dummy + 0x1) + + /* Function type specifier + */ + + #define SETFUNCTAG_TYPE (SETFUNCTAG_Dummy + 0x2) + + /* ID String + */ + + #define SETFUNCTAG_IDNAME (SETFUNCTAG_Dummy + 0x3) + + + /* + * Set to TRUE if the replaced function will never be used + * again. + */ + #define SETFUNCTAG_DELETE (SETFUNCTAG_Dummy + 0x4) + + /* See emul/emulinterface.h for more informations + */ + + /* Save Emulation PPC Registers + * Call Function + * Restore Emulation PPC Registers + * REG_D0 = Result + */ + #define SETFUNCTYPE_NORMAL 0 + + /* Call Function + * Must use the global register settings of the emulation + * REG_D0 = Result + */ + #define SETFUNCTYPE_QUICK 1 + + /* Save Emulation PPC Registers + * Call Function + * Restore Emulation PPC Registers + * No Result + * Needed to replace functions like + * forbid,obtainsemaphores which are + * defined as trashing no registers + */ + #define SETFUNCTYPE_NORMALNR 2 + + /* Call Function + * Must use the global register settings of the emulation + * No Result + * Needed to replace functions like + * forbid,obtainsemaphores which are + * defined as trashing no registers + */ + #define SETFUNCTYPE_QUICKNR 3 + + #define SETFUNCTYPE_NORMALSR 4 + + #define SETFUNCTYPE_NORMALSRNR 5 + + #define SETFUNCTYPE_NORMALD0_D1 6 + + #define SETFUNCTYPE_NORMALRESTORE 7 + + + + /* CreateLibrary extensions + */ + + #define LIBTAG_BASE (TAG_USER + 0x01000100) + + /* + * Function/Vector Array + */ + #define LIBTAG_FUNCTIONINIT (LIBTAG_BASE+0x0) + /* + * Struct Init + */ + #define LIBTAG_STRUCTINIT (LIBTAG_BASE+0x1) + /* + * Library Init + */ + #define LIBTAG_LIBRARYINIT (LIBTAG_BASE+0x2) + /* + * Init Code Type + */ + #define LIBTAG_MACHINE (LIBTAG_BASE+0x3) + /* + * Library Base Size + */ + #define LIBTAG_BASESIZE (LIBTAG_BASE+0x4) + /* + * SegList Ptr + */ + #define LIBTAG_SEGLIST (LIBTAG_BASE+0x5) + /* + * Library Priority + */ + #define LIBTAG_PRI (LIBTAG_BASE+0x6) + /* + * Library Type..Library,Device,Resource,whatever + */ + #define LIBTAG_TYPE (LIBTAG_BASE+0x7) + /* + * Library Version + */ + #define LIBTAG_VERSION (LIBTAG_BASE+0x8) + /* + * Library Flags + */ + #define LIBTAG_FLAGS (LIBTAG_BASE+0x9) + /* + * Library Name + */ + #define LIBTAG_NAME (LIBTAG_BASE+0xa) + /* + * Library IDString + */ + #define LIBTAG_IDSTRING (LIBTAG_BASE+0xb) + /* + * AddDevice(),AddLibrary(),AddResource().. + * depends on LibNode.ln_Type field which + * can be set by some Init function, Struct Scripts + * or LIBTAG_TYPE. + * If you set LIBTAG_PUBLIC the library + * is added to the right system list. + */ + #define LIBTAG_PUBLIC (LIBTAG_BASE+0xc) + + + + + + + + + + + + + + + + + + /* Private + * don`t touch...floating design + */ + struct FuncEntry + { + struct EmulLibEntry EmulLibEntry; + void *OldFunction; /* Needed for bookkeeping */ + }; + + struct FuncOldEntry + { + UWORD Command; + struct FuncEntry *FuncEntry; + }; + + + /* + * EmulLibEntry.Extension + */ + #define FUNCENTRYEXTF_LIBRARY 0x1 /* Entry created by the OS */ + + /* + * Functionarray first ULONG ID defines the format + * of the functionarray for MakeFunctions()/MakeLibrary(). + * + * If there`s not such id the functionarray is a + * 32Bit 68k function ptr array. + * (ULONG) 0xffffffff stops it + */ + + /* 68k 16bit relative functionarray ptrs + * (UWORD) 0xffff stops it + */ + + #define FUNCARRAY_16BIT_OLD 0xffffffff + + /* PPC 32bit functionarray ptrs + * (ULONG) 0xffffffff stops it + */ + #define FUNCARRAY_32BIT_NATIVE 0xfffefffe + + /* Starts a functionarray block. + * This way it`s possible to mix 68k and PPC + * function definitions. + * BASE: + * FUNCTIONARRAY_BEGIN + * FUNCARRAY_32BIT_NATIVE + * FUNC0 + * FUNC1 + * . + * FUNCn + * 0xffffffff + * FUNCn+1 (No ID->32Bit 68k) + * FUNCn+2 + * . + * FUNCm + * 0xffffffff + * FUNCARRAY_16BIT_OLD + * FUNCm+1-BASE + * FUNCm+2-BASE + * . + * FUNCo-BASE + * 0xffff + * FUNCTIONARRAY_END + */ + + #define FUNCARRAY_BEGIN 0xfffdfffd + + /* Ends a functionarray block. + */ + #define FUNCARRAY_END 0xfffcfffc + + /* PPC 32bit Quick functionarray ptrs + * (ULONG) 0xffffffff stops it + */ + #define FUNCARRAY_32BIT_QUICK_NATIVE 0xfffbfffb + + /* PPC 32bit QuickNR(No Result) functionarray ptrs + * (ULONG) 0xffffffff stops it + */ + #define FUNCARRAY_32BIT_QUICKNR_NATIVE 0xfffafffa + + /* PPC 32bit no result functionarray ptrs + * (ULONG) 0xffffffff stops it + */ + #define FUNCARRAY_32BIT_NR_NATIVE 0xfff9fff9 + + /* PPC 32bit SR functionarray ptrs + * (ULONG) 0xffffffff stops it + */ + #define FUNCARRAY_32BIT_SR_NATIVE 0xfff8fff8 + + /* PPC 32bit SR(no result) functionarray ptrs + * (ULONG) 0xffffffff stops it + */ + #define FUNCARRAY_32BIT_SRNR_NATIVE 0xfff7fff7 + + /* PPC 32bit D0_D1 functionarray ptrs + * (ULONG) 0xffffffff stops it + */ + #define FUNCARRAY_32BIT_D0D1_NATIVE 0xfff6fff6 + + /* PPC 32bit Restore1 functionarray ptrs + * (ULONG) 0xffffffff stops it + */ + #define FUNCARRAY_32BIT_RESTORE_NATIVE 0xfff5fff5 #endif /* EXEC_LIBRARIES_H */ Only in include_h/exec: lists.h diff -c2 -d -P -r include_h/exec/machine.h includenew/exec/machine.h *** include_h/exec/machine.h Thu Jan 1 00:00:00 1970 --- includenew/exec/machine.h Wed Feb 14 02:41:10 2001 *************** *** 0 **** --- 1,11 ---- + #ifndef EXEC_MACHINE_H + #define EXEC_MACHINE_H + /* $Id: */ + /* $Log: */ + + #define MACHINE_M68k 0x0 + #define MACHINE_PPC 0x1 + #define MACHINE_NO 0xffffffff + + + #endif /* EXEC_MACHINE_H */ Only in include_h/exec: memory.h Only in include_h/exec: nodes.h diff -c2 -d -P -r include_h/exec/ports.h includenew/exec/ports.h *** include_h/exec/ports.h Wed Feb 14 02:41:45 2001 --- includenew/exec/ports.h Wed Feb 14 02:41:10 2001 *************** *** 3,7 **** /* ** $VER: ports.h 39.0 (15.10.91) ! ** Includes Release 40.15 ** ** Message ports and Messages. --- 3,7 ---- /* ** $VER: ports.h 39.0 (15.10.91) ! ** Includes Release 40.13 ** ** Message ports and Messages. *************** *** 19,27 **** #endif /* EXEC_LISTS_H */ - #ifndef EXEC_TASKS_H - #include "exec/tasks.h" - #endif /* EXEC_TASKS_H */ - - /****** MsgPort *****************************************************/ --- 19,22 ---- *************** *** 52,55 **** --- 47,54 ---- /* structure in the length) */ }; + + #ifndef EXEC_TASKS_H + #include "exec/tasks.h" + #endif /* EXEC_TASKS_H */ #endif /* EXEC_PORTS_H */ diff -c2 -d -P -r include_h/exec/resident.h includenew/exec/resident.h *** include_h/exec/resident.h Wed Feb 14 02:41:45 2001 --- includenew/exec/resident.h Wed Feb 14 02:41:10 2001 *************** *** 3,7 **** /* ** $VER: resident.h 39.0 (15.10.91) ! ** Includes Release 40.15 ** ** Resident/ROMTag stuff. Used to identify and initialize code modules. --- 3,7 ---- /* ** $VER: resident.h 39.0 (15.10.91) ! ** Includes Release 40.13 ** ** Resident/ROMTag stuff. Used to identify and initialize code modules. *************** *** 17,38 **** struct Resident { ! UWORD rt_MatchWord; /* word to match on (ILLEGAL) */ ! struct Resident *rt_MatchTag; /* pointer to the above */ ! APTR rt_EndSkip; /* address to continue scan */ ! UBYTE rt_Flags; /* various tag flags */ ! UBYTE rt_Version; /* release version number */ ! UBYTE rt_Type; /* type of module (NT_XXXXXX) */ ! BYTE rt_Pri; /* initialization priority */ ! char *rt_Name; /* pointer to node name */ ! char *rt_IdString; /* pointer to identification string */ ! APTR rt_Init; /* pointer to init code */ }; #define RTC_MATCHWORD 0x4AFC /* The 68000 "ILLEGAL" instruction */ ! #define RTF_AUTOINIT (1<<7) /* rt_Init points to data structure */ ! #define RTF_AFTERDOS (1<<2) ! #define RTF_SINGLETASK (1<<1) ! #define RTF_COLDSTART (1<<0) /* Compatibility: (obsolete) */ --- 17,45 ---- struct Resident { ! UWORD rt_MatchWord; /* word to match on (ILLEGAL) */ ! struct Resident *rt_MatchTag; /* pointer to the above */ ! APTR rt_EndSkip; /* address to continue scan */ ! UBYTE rt_Flags; /* various tag flags */ ! UBYTE rt_Version; /* release version number */ ! UBYTE rt_Type; /* type of module (NT_XXXXXX) */ ! BYTE rt_Pri; /* initialization priority */ ! char *rt_Name; /* pointer to node name */ ! char *rt_IdString; /* pointer to identification string */ ! APTR rt_Init; /* pointer to init code */ }; #define RTC_MATCHWORD 0x4AFC /* The 68000 "ILLEGAL" instruction */ ! #define RTF_AUTOINIT (1<<7) /* rt_Init points to data structure */ ! #define RTF_EXTENSION (1<<6) /* rt_Init points to an extension structure */ ! #define RTF_PPC (1<<3) /* rt_Init points to a PPC function which must be defined as ! * ! * struct Library* LIB_Init(struct Library *MyLibBase, ! * BPTR SegList, ! * struct ExecBase *SysBase) ! */ ! #define RTF_AFTERDOS (1<<2) ! #define RTF_SINGLETASK (1<<1) ! #define RTF_COLDSTART (1<<0) /* Compatibility: (obsolete) */ *************** *** 40,43 **** --- 47,82 ---- #define RTW_NEVER 0 #define RTW_COLDSTART 1 + + + /* Patch Unit Modules come after the ResidentExtension + */ + + #define RTETYPE_PATCH 0 + + struct PatchEntry + { + LONG Offset; + void *Function; + struct TagItem *Tags; + }; + + struct PatchUnit + { + char *Name; + ULONG Type; + ULONG Version; + ULONG Flags; + void *Extension; + struct PatchEntry *Table; + }; + + #define RTPUFLAGF_NOCLOSE 0x1 /* For an OpenLibrary TYPE..don't close the library afterwards so it can`t be kicked off anymore */ + + struct ResidentExtension + { + ULONG Type; + ULONG Flags; + struct PatchUnit *Unit; + }; #endif /* EXEC_RESIDENT_H */ diff -c2 -d -P -r include_h/exec/semaphores.h includenew/exec/semaphores.h *** include_h/exec/semaphores.h Wed Feb 14 02:41:45 2001 --- includenew/exec/semaphores.h Wed Feb 14 02:41:10 2001 *************** *** 3,7 **** /* ** $VER: semaphores.h 39.1 (7.2.92) ! ** Includes Release 40.15 ** ** Definitions for locking functions. --- 3,7 ---- /* ** $VER: semaphores.h 39.1 (7.2.92) ! ** Includes Release 40.13 ** ** Definitions for locking functions. *************** *** 19,29 **** #endif /* EXEC_LISTS_H */ #ifndef EXEC_PORTS_H #include "exec/ports.h" #endif /* EXEC_PORTS_H */ - #ifndef EXEC_TASKS_H - #include "exec/tasks.h" - #endif /* EXEC_TASKS_H */ --- 19,30 ---- #endif /* EXEC_LISTS_H */ + #ifndef EXEC_TASKS_H + #include "exec/tasks.h" + #endif /* EXEC_TASKS_H */ + #ifndef EXEC_PORTS_H #include "exec/ports.h" #endif /* EXEC_PORTS_H */ diff -c2 -d -P -r include_h/exec/tasks.h includenew/exec/tasks.h *** include_h/exec/tasks.h Wed Feb 14 02:41:45 2001 --- includenew/exec/tasks.h Wed Feb 14 02:41:10 2001 *************** *** 3,7 **** /* ** $VER: tasks.h 39.3 (18.9.92) ! ** Includes Release 40.15 ** ** Task Control Block, Singals, and Task flags. --- 3,7 ---- /* ** $VER: tasks.h 39.3 (18.9.92) ! ** Includes Release 40.13 ** ** Task Control Block, Singals, and Task flags. *************** *** 19,22 **** --- 19,26 ---- #endif /* EXEC_LISTS_H */ + #ifndef EXEC_PORTS_H + #include "exec/ports.h" + #endif /* EXEC_PORTS_H */ + /* Please use Exec functions to modify task structure fields, where available. *************** *** 32,37 **** --- 36,45 ---- ULONG tc_SigRecvd; /* sigs we have received */ ULONG tc_SigExcept; /* sigs we will take excepts for */ + #if 0 UWORD tc_TrapAlloc; /* traps allocated */ UWORD tc_TrapAble; /* traps enabled */ + #else + struct ETask *tc_ETask; + #endif APTR tc_ExceptData; /* points to except data */ APTR tc_ExceptCode; /* points to except code */ *************** *** 39,52 **** APTR tc_TrapCode; /* points to trap code */ APTR tc_SPReg; /* stack pointer */ ! APTR tc_SPLower; /* stack lower bound */ ! APTR tc_SPUpper; /* stack upper bound + 2*/ ! VOID (*tc_Switch)(); /* task losing CPU */ ! VOID (*tc_Launch)(); /* task getting CPU */ struct List tc_MemEntry; /* Allocated memory. Freed by RemTask() */ APTR tc_UserData; /* For use by the task; no restrictions! */ }; /* ! * Stack swap structure as passed to StackSwap() */ struct StackSwapStruct { --- 47,218 ---- APTR tc_TrapCode; /* points to trap code */ APTR tc_SPReg; /* stack pointer */ ! APTR tc_SPLower; /* stack lower bound */ ! APTR tc_SPUpper; /* stack upper bound + 2*/ ! VOID (*tc_Switch)(void); /* task losing CPU */ ! VOID (*tc_Launch)(void); /* task getting CPU */ struct List tc_MemEntry; /* Allocated memory. Freed by RemTask() */ APTR tc_UserData; /* For use by the task; no restrictions! */ }; + struct TaskTrapMessage + { + struct Message Message; /* Message Header */ + struct Task *Task; /* connected Task */ + ULONG Version; /* version of the structure */ + ULONG Type; /* Exception Type */ + ULONG DAR; /* Exception Address Register */ + ULONG DSISR; /* Exception DSISR Reg */ + /* This is undiscovered land... + * never assume a size of this structure + */ + }; + + #define VERSION_TASKTRAPMESSAGE 0x0 + + struct ETask + { + struct Message Message; + struct Task *Parent; + ULONG UniqueID; + struct MinList Children; + UWORD TrapAlloc; + UWORD TrapAble; + ULONG Result1; + void *Result2; + struct MsgPort MsgPort; + + /* Don't touch!!!!!!!!!..there`ll be an interface + * sooner than later. + * New Entries...most of the above entries + * are only their for structure compatability. + * They have no meaning as the OS never supported + * them. + */ + /* A Task Pool for the task. + */ + void *MemPool; + /* PPC`s Stack Lower Ptr + * The initial stack is allocated through + * AllocVec, so a FreeVec(ETask->PPCSPLower); + * would work. + * If you use PPCStackSwap you must allocate + * your stack block with AllocVec(); + */ + void *PPCSPLower; + /* PPC`s Stack Upper Ptr + */ + void *PPCSPUpper; + void *PPCRegFrame; + void *PPCLibData; + + /* On a PPC exception this msgport + * is sent an exception msg.... + * the task is stopped until somebody + * wakes it up again. + * (asynchron exception interface) + * If this Port is NULL the message is + * sent to SysBase->ex_PPCTrapMsgPort. + */ + struct MsgPort *PPCTrapMsgPort; + struct TaskTrapMessage *PPCTrapMessage; + /* private...don`t touch + */ + ULONG Private[4]; + /* private...don`t touch + */ + struct EmulHandle *EmulHandle; + /* This is undiscovered land... + * never assume a size of this structure + */ + }; + + + + + struct TaskInitExtension + { + /* Must be filled with TRAP_PPCTASK + */ + UWORD Trap; + UWORD Extension; /* Must be set to 0 */ + struct TagItem *Tags; + }; + + #define TASKTAG_DUMMY (TAG_USER + 0x100000) + + /* Ptr to an ULONG Errorfield where a better error description + * can be stored. + */ + #define TASKTAG_ERROR (TASKTAG_DUMMY + 0x0) + + /* Code type + * can be stored. + */ + #define TASKTAG_CODETYPE (TASKTAG_DUMMY + 0x1) + + /* Start PC + * code must be of TASKTAG_CODETYPE + */ + #define TASKTAG_PC (TASKTAG_DUMMY + 0x2) + + /* Final PC + * code must be of TASKTAG_CODETYPE + */ + #define TASKTAG_FINALPC (TASKTAG_DUMMY + 0x3) + + /* Stacksize...Default 8192 + */ + #define TASKTAG_STACKSIZE (TASKTAG_DUMMY + 0x4) + + /* Std Stacksize... + * Default(use the stack defined by tc_SPLower..tc_SPUpper) + */ + #define TASKTAG_STDSTACKSIZE (TASKTAG_DUMMY + 0x5) + + /* PPC First Argument..gpr3 + */ + #define TASKTAG_PPC_ARG1 (TASKTAG_DUMMY + 0x10) + + /* PPC First Argument..gpr4 + */ + #define TASKTAG_PPC_ARG2 (TASKTAG_DUMMY + 0x11) + + /* PPC First Argument..gpr5 + */ + #define TASKTAG_PPC_ARG3 (TASKTAG_DUMMY + 0x12) + + /* PPC First Argument..gpr6 + */ + #define TASKTAG_PPC_ARG4 (TASKTAG_DUMMY + 0x13) + + /* PPC First Argument..gpr7 + */ + #define TASKTAG_PPC_ARG5 (TASKTAG_DUMMY + 0x14) + + /* PPC First Argument..gpr8 + */ + #define TASKTAG_PPC_ARG6 (TASKTAG_DUMMY + 0x15) + + /* PPC First Argument..gpr9 + */ + #define TASKTAG_PPC_ARG7 (TASKTAG_DUMMY + 0x16) + + /* PPC First Argument..gpr10 + */ + #define TASKTAG_PPC_ARG8 (TASKTAG_DUMMY + 0x17) + + + + + #define CODETYPE_M68K 0x0 /* ! * System V4 ABI ! */ ! #define CODETYPE_PPC 0x1 ! ! ! ! /* ! * Stack swap structure as passed to StackSwap() and PPCStackSwap() */ struct StackSwapStruct { *************** *** 56,59 **** --- 222,305 ---- }; + struct PPCStackSwapArgs + { + ULONG Args[8]; /* The C register arguments from gpr3..gpr11 */ + }; + + + + /* + * NewGetTaskAttrsA(), NewSetTaskAttrsA() tags + */ + + #define TASKINFOTYPE_ALLTASK (0x0) + #define TASKINFOTYPE_NAME (0x1) + #define TASKINFOTYPE_PRI (0x2) + #define TASKINFOTYPE_TYPE (0x3) + #define TASKINFOTYPE_STATE (0x4) + #define TASKINFOTYPE_FLAGS (0x5) + #define TASKINFOTYPE_SIGALLOC (0x6) + #define TASKINFOTYPE_SIGWAIT (0x7) + #define TASKINFOTYPE_SIGRECVD (0x8) + #define TASKINFOTYPE_SIGEXCEPT (0x9) + #define TASKINFOTYPE_EXCEPTDATA (0xa) + #define TASKINFOTYPE_EXCEPTCODE (0xb) + #define TASKINFOTYPE_TRAPDATA (0xc) + #define TASKINFOTYPE_TRAPCODE (0xd) + #define TASKINFOTYPE_STACKSIZE_M68K (0xe) + #define TASKINFOTYPE_STACKSIZE (0xf) + #define TASKINFOTYPE_USEDSTACKSIZE_M68K (0x10) + #define TASKINFOTYPE_USEDSTACKSIZE (0x11) + #define TASKINFOTYPE_TRAPMSGPORT (0x12) + + #define TASKINFOTYPE_68K_NEWFRAME (0x50) + + #define TASKINFOTYPE_PPC_SRR0 (0x100) + #define TASKINFOTYPE_PPC_SRR1 (0x101) + #define TASKINFOTYPE_PPC_LR (0x102) + #define TASKINFOTYPE_PPC_CTR (0x103) + #define TASKINFOTYPE_PPC_CR (0x104) + #define TASKINFOTYPE_PPC_XER (0x105) + #define TASKINFOTYPE_PPC_GPR (0x106) + #define TASKINFOTYPE_PPC_FPR (0x107) + #define TASKINFOTYPE_PPC_FPSCR (0x108) + #define TASKINFOTYPE_PPC_VSCR (0x109) + #define TASKINFOTYPE_PPC_VMX (0x10a) + #define TASKINFOTYPE_PPC_VSAVE (0x10b) + #define TASKINFOTYPE_PPC_FRAME (0x10c) + #define TASKINFOTYPE_PPC_FRAMESIZE (0x10d) + #define TASKINFOTYPE_PPC_NEWFRAME (0x10e) + + #define TASKINFOTAG_DUMMY (TAG_USER + 0x110000) + /* Used with TASKINFOTYPE_ALLTASK + */ + #define TASKINFOTAG_HOOK (TASKINFOTAG_DUMMY + 0x0) + /* Used with TASKINFOTYPE_PPC_GPR,TASKINFOTYPE_PPC_FPR,TASKINFOTYPE_PPC_VMX + * to define the copy area + */ + #define TASKINFOTAG_REGSTART (TASKINFOTAG_DUMMY + 0x1) + /* Used with TASKINFOTYPE_PPC_GPR,TASKINFOTYPE_PPC_FPR,TASKINFOTYPE_PPC_VMX + * to define the copy area + */ + #define TASKINFOTAG_REGCOUNT (TASKINFOTAG_DUMMY + 0x2) + + /* + * NewSetTaskAttrsA(..,&TaskFrame68k,sizeof(struct TaskFrame68k),TASKINFOTYPE_68K_NEWFRAME,...); + * + */ + struct TaskFrame68k + { + void *PC; + UWORD SR; + ULONG Xn[15]; + }; + + + + + + + + /*----- Flag Bits ------------------------------------------*/ #define TB_PROCTIME 0 *************** *** 96,99 **** --- 342,348 ---- #define SIGF_NET (1L<<7) #define SIGF_DOS (1L<<8) + + + #define DEFAULT_PPCSTACKSIZE 16384 #endif /* EXEC_TASKS_H */ Only in include_h/exec: types.h Only in include_h/fd: amigaguide_lib.fd Only in include_h/fd: asl_lib.fd Only in include_h/fd: battclock_lib.fd Only in include_h/fd: battmem_lib.fd Only in include_h/fd: bullet_lib.fd Only in include_h/fd: cardres_lib.fd diff -c2 -d -P -r include_h/fd/cgxdither_lib.fd includenew/fd/cgxdither_lib.fd *** include_h/fd/cgxdither_lib.fd Thu Jan 1 00:00:00 1970 --- includenew/fd/cgxdither_lib.fd Wed Feb 14 02:41:11 2001 *************** *** 0 **** --- 1,13 ---- + ##base _CGXDitherBase + ##bias 30 + ##public + CreateDitherInfo(vp,rp,rgbcm,size,sharepens,usecolour)(a0,a1,a2,d0,d1,d2) + DeleteDitherInfo(ditherinfo)(a0) + SetDitherMode(ditherinfo,mode)(a0,d0) + DitherMap(sbm,dbm,ditherinfo)(a0,a1,a2) + ConvertMap(sbm,dbm,left,top,width,height,flags)(a0,a1,d0,d1,d2,d3,d4) + MapHistogram(bm,histogram)(a0,a1) + RemapMapColours(sbm,dbm,remaparr1,remaparr2,remapcm,flags)(a0,a1,a2,a3,a4,d0) + CreateMapMask(sbm,transcol,flags)(a0,d0,d1) + FreeMapMask(maskbm)(a0) + diff -c2 -d -P -r include_h/fd/cgxsystem_lib.fd includenew/fd/cgxsystem_lib.fd *** include_h/fd/cgxsystem_lib.fd Thu Jan 1 00:00:00 1970 --- includenew/fd/cgxsystem_lib.fd Wed Feb 14 02:41:11 2001 *************** *** 0 **** --- 1,17 ---- + ##bias 30 + ##private + private()() + private()() + private()() + private()() + private()() + private()() + private()() + private()() + private()() + ##public + InstallTransparentRegion(SLayer,Region)(a0,a1) + InstallTransparentRegionHook(SLayer,Hook)(a0,a1) + HideWindow(Window)(a0) + ShowWindow(Window)(a0) + ##end diff -c2 -d -P -r include_h/fd/cgxvideo_lib.fd includenew/fd/cgxvideo_lib.fd *** include_h/fd/cgxvideo_lib.fd Thu Jan 1 00:00:00 1970 --- includenew/fd/cgxvideo_lib.fd Wed Feb 14 02:41:11 2001 *************** *** 0 **** --- 1,12 ---- + ##base _CGXVideoBase + ##bias 30 + ##public + CreateVLayerHandleTagList(Screen,Tags)(A0,A1) + DeleteVLayerHandle(VLayerHandle)(A0) + AttachVLayerTagList(VLayerHandle,Window,Tags)(A0,A1,A2) + DetachVLayer(VLayerHandle)(A0) + GetVLayerAttr(VLayerHandle,AttrID)(A0,D0) + LockVLayer(VLayerHandle)(A0) + UnlockVLayer(VLayerHandle)(A0) + SetVLayerAttrTagList(VLayerHandle,Tags)(A0,A1) + ##end Only in include_h/fd: cia_lib.fd Only in include_h/fd: colorwheel_lib.fd Only in include_h/fd: commodities_lib.fd Only in include_h/fd: console_lib.fd diff -c2 -d -P -r include_h/fd/cybergraphics_lib.fd includenew/fd/cybergraphics_lib.fd *** include_h/fd/cybergraphics_lib.fd Thu Jan 1 00:00:00 1970 --- includenew/fd/cybergraphics_lib.fd Wed Feb 14 02:41:11 2001 *************** *** 0 **** --- 1,72 ---- + ##base _CyberGfxBase + ##bias 30 + *--- functions in V40 or higher (Release 40.40) --- + ##private + cgfxPrivate1()() + cgfxPrivate2()() + cgfxPrivate3()() + cgfxPrivate4()() + ##public + * + IsCyberModeID(displayID)(d0) + * + BestCModeIDTagList(BestModeIDTags)(a0) + * + CModeRequestTagList(ModeRequest,ModeRequestTags)(a0,a1) + * + AllocCModeListTagList(ModeListTags)(a1) + * + FreeCModeList(ModeList)(a0) + * + ##private + cgfxPrivate5()() + ##public + * + ScalePixelArray(srcRect,SrcW,SrcH,SrcMod,RastPort,DestX,DestY,DestW,DestH,SrcFormat)(a0,d0,d1,d2,a1,d3,d4,d5,d6,d7) + * + GetCyberMapAttr(CyberGfxBitmap,CyberAttrTag)(a0,d0) + * + GetCyberIDAttr(CyberIDAttr,CyberDisplayModeID)(d0,d1) + * + ReadRGBPixel(RastPort,x,y)(a1,d0,d1) + * + WriteRGBPixel(RastPort,x,y,argb)(a1,d0,d1,d2) + * + ReadPixelArray(destRect,destX,destY,destMod,RastPort,SrcX,SrcY,SizeX,SizeY,DestFormat)(a0,d0,d1,d2,a1,d3,d4,d5,d6,d7) + * + WritePixelArray(srcRect,SrcX,SrcY,SrcMod,RastPort,DestX,DestY,SizeX,SizeY,SrcFormat)(a0,d0,d1,d2,a1,d3,d4,d5,d6,d7) + * + MovePixelArray(SrcX,SrcY,RastPort,DestX,DestY,SizeX,SizeY)(d0,d1,a1,d2,d3,d4,d5) + * + ##private + cgfxPrivate6()() + ##public + * + InvertPixelArray(RastPort,DestX,DestY,SizeX,SizeY)(a1,d0,d1,d2,d3) + * + FillPixelArray(RastPort,DestX,DestY,SizeX,SizeY,ARGB)(a1,d0,d1,d2,d3,d4) + * + DoCDrawMethodTagList(Hook,RastPort,TagList)(a0,a1,a2) + * + CVideoCtrlTagList(ViewPort,TagList)(a0,a1) + * + *--- functions in V40 or higher (Release 40.60) --- + * + LockBitMapTagList(BitMap,TagList)(a0,a1) + * + UnLockBitMap(Handle)(a0) + * + UnLockBitMapTagList(Handle,TagList)(a0,a1) + * + *--- functions in V41 or higher --- + * + ExtractColor(RastPort,BitMap,Colour,SrcX,SrcY,Width,Height)(A0,A1,D0,D1,D2,D3,D4) + * + ##private + cgfxPrivate7()() + ##public + * + WriteLUTPixelArray(srcRect,SrcX,SrcY,SrcMod,RastPort,ColorTab,DestX,DestY,SizeX,SizeY,CTFormat)(a0,d0,d1,d2,a1,a2,d3,d4,d5,d6,d7) + NewOwnCyberMap(BitmapInfo)(a0) + NewDisOwnCyberMap(BitmapInfo)(a0) + ##end Only in include_h/fd: datatypes_lib.fd Only in include_h/fd: disk_lib.fd Only in include_h/fd: diskfont_lib.fd Only in include_h/fd: dos_lib.fd Only in include_h/fd: dtclass_lib.fd diff -c2 -d -P -r include_h/fd/exec_lib.fd includenew/fd/exec_lib.fd *** include_h/fd/exec_lib.fd Wed Feb 14 02:41:46 2001 --- includenew/fd/exec_lib.fd Wed Feb 14 02:41:11 2001 *************** *** 1,2 **** --- 1,3 ---- + * "exec.library" ##base _SysBase ##bias 30 *************** *** 6,15 **** *------ special patchable hooks to internal exec activity ------------ ##private ! execPrivate1()() ! execPrivate2()() ! execPrivate3()() ! execPrivate4()() ! execPrivate5()() ! execPrivate6()() ##public *------ module creation ---------------------------------------------- --- 7,16 ---- *------ special patchable hooks to internal exec activity ------------ ##private ! ExitIntr()() ! Schedule()() ! Reschedule()() ! Switch000()() ! Dispatch()() ! Exception()() ##public *------ module creation ---------------------------------------------- *************** *** 96,104 **** OpenResource(resName)(a1) *------ private diagnostic support ----------------------------------- ! ##private ! execPrivate7()() ! execPrivate8()() ! execPrivate9()() ! ##public *------ misc --------------------------------------------------------- RawDoFmt(formatString,dataStream,putChProc,putChData)(a0/a1/a2/a3) --- 97,105 ---- OpenResource(resName)(a1) *------ private diagnostic support ----------------------------------- ! * ##private ! RawIOInit()() ! RawMayGetChar()() ! RawPutChar(Char)(d0) ! * ##public *------ misc --------------------------------------------------------- RawDoFmt(formatString,dataStream,putChProc,putChData)(a0/a1/a2/a3) *************** *** 148,154 **** ColdReboot()() StackSwap(newStack)(a0) *------ task trees --------------------------------------------------- - ChildFree(tid)(d0) - ChildOrphan(tid)(d0) ChildStatus(tid)(d0) ChildWait(tid)(d0) --- 149,156 ---- ColdReboot()() StackSwap(newStack)(a0) + *------ New PPC extension functions ---------------------------------- + NewGetTaskAttrsA(Task,Data,DataSize,Type,Tags)(a0,a1,d0,d1,a2) + NewSetTaskAttrsA(Task,Data,DataSize,Type,Tags)(a0,a1,d0,d1,a2) *------ task trees --------------------------------------------------- ChildStatus(tid)(d0) ChildWait(tid)(d0) *************** *** 163,173 **** *------ Function to attempt to obtain a Quick Interrupt Vector... ObtainQuickVector(interruptCode)(a0) ! ##private ! execPrivate10()() ! execPrivate11()() ! execPrivate12()() ! execPrivate13()() ! execPrivate14()() ! execPrivate15()() ! ##public ##end --- 165,188 ---- *------ Function to attempt to obtain a Quick Interrupt Vector... ObtainQuickVector(interruptCode)(a0) ! *------ New PPC extension functions ---------------------------------- ! NewSetFunction(library,function,offset,tags)(a0,a1,d0,a2) ! NewCreateLibrary(tags)(a0) ! NewPPCStackSwap(newStack,function,args)(a0,a1,a2) ! TaggedOpenLibrary(Tag)(d0) ! * ##private ! ReadGayle()() ! * ##public ! * Native specific function..as args is always a va_list. ! NewRawDoFmt(FmtString,PutChProc,PutChData,args)(a0,a1,a2,a3) ! CacheFlushDataArea(Address,Size)(a0,d0) ! CacheInvalidInstArea(Address,Size)(a0,d0) ! CacheInvalidDataArea(Address,Size)(a0,d0) ! CacheFlushDataInstArea(Address,Size)(a0,d0) ! CacheTrashCacheArea(Address,Size)(a0,d0) ! AllocTaskPooled(Size)(d0) ! FreeTaskPooled(Address,Size)(a1,d0) ! AllocVecTaskPooled(Size)(d0) ! FreeVecTaskPooled(Address)(a1) ! FlushPool(poolHeader)(a0) ! FlushTaskPool()() ##end Only in include_h/fd: expansion_lib.fd Only in include_h/fd: gadtools_lib.fd Only in include_h/fd: graphics_lib.fd Only in include_h/fd: icon_lib.fd Only in include_h/fd: iffparse_lib.fd Only in include_h/fd: input_lib.fd Only in include_h/fd: intuition_lib.fd Only in include_h/fd: keymap_lib.fd Only in include_h/fd: layers_lib.fd Only in include_h/fd: locale_lib.fd Only in include_h/fd: lowlevel_lib.fd Only in include_h/fd: mathffp_lib.fd Only in include_h/fd: mathieeedoubbas_lib.fd Only in include_h/fd: mathieeedoubtrans_lib.fd Only in include_h/fd: mathieeesingbas_lib.fd Only in include_h/fd: mathieeesingtrans_lib.fd Only in include_h/fd: mathtrans_lib.fd Only in include_h/fd: misc_lib.fd Only in include_h/fd: nonvolatile_lib.fd Only in include_h/fd: potgo_lib.fd diff -c2 -d -P -r include_h/fd/ppc_lib.fd includenew/fd/ppc_lib.fd *** include_h/fd/ppc_lib.fd Thu Jan 1 00:00:00 1970 --- includenew/fd/ppc_lib.fd Wed Feb 14 02:41:11 2001 *************** *** 0 **** --- 1,92 ---- + * "ppc.library" + ##base _PPCLibBase + ##bias 30 + ##public + PPCLoadObject(Name)(a0) + PPCUnLoadObject(Object)(a0) + PPCRunObject(ElfObject,Argument)(a0/a1) + PPCAllocMem(size,attributes)(d0/d1) + PPCFreeMem(Memory,size)(a1,d0) + PPCAllocVec(byteSize,attributes)(d0/d1) + PPCFreeVec(memoryBlock)(a1) + ##private + PPCPrivate0()() + PPCPrivate0a()() + ##public + PPCCreateTask(ElfObject,Tags)(a0/a1) + PPCDeleteTask(TaskObject)(a0) + PPCSignalTask(TaskObject,SignalMask)(a0,d0) + PPCFindTask(Name)(a0) + ##private + PPCPrivate1()() + ##public + PPCRunKernelObject(a,b)(a0/a1) + ##private + PPCPrivate2()() + PPCPrivate3()() + ##public + PPCGetTaskAttrs(TaskObject,Tags)(a0/a1) + PPCGetAttrs(Tags)(a0) + PPCFindTaskObject(TaskObject)(a0) + PPCRunKernelObjectFPU()() + PPCReadLong(Address)(a0) + PPCWriteLong(Address,Value)(a0,d0) + ##private + PPCPrivate4()() + PPCPrivate5()() + ##public + PPCStartTask(TaskObject,Tags)(a0/a1) + PPCStopTask(TaskObject,Tags)(a0/a1) + PPCSetTaskAttrs(TaskObject,Tags)(a0/a1) + PPCGetObjectAttrs(ElfObject,PPCObjectInfo,Tags)(a0/a1/a2) + PPCWriteLongFlush(Address,Value)(a0,d0) + PPCReadWord(Address)(a0) + PPCWriteWord(Address,Value)(a0,d0) + PPCReadByte(Address)(a0) + PPCWriteByte(Address,Value)(a0,d0) + PPCCreatePool(memFlags,puddleSize,threshSize)(d0/d1/d2) + PPCDeletePool(poolHeader)(a0) + PPCAllocPooled(poolHeader,memSize)(a0,d0) + PPCFreePooled(poolHeader,memory,memSize)(a0/a1,d0) + PPCAllocVecPooled(Pool,byteSize)(a0,d0) + PPCFreeVecPooled(Pool,memoryBlock)(a0/a1) + PPCCreatePort(Tags)(a0) + PPCDeletePort(PPCPort)(a0) + PPCObtainPort(Tags)(a0) + PPCReleasePort(PPCPort)(a0) + PPCCreateMessage(PPCPort,Length)(a0,d0) + PPCDeleteMessage(PPCMessage)(a0) + PPCGetMessageAttr(PPCMessage,Attr)(a0,d0) + PPCGetMessage(PPCPort)(a0) + ##private + PPCPrivate6()() + ##public + PPCReplyMessage(PPCMessage)(a0) + PPCSendMessage(PPCPort,PPCMessage,Data,Length,MsgID)(a0/a1/a2,d0/d1) + PPCWaitPort(PPCPort)(a0) + PPCCacheClearE(address,length,caches)(a0,d0/d1) + PPCCacheInvalidE(address,length,caches)(a0,d0/d1) + ##private + PPCPrivate7()() + PPCPrivate8()() + ##public + PPCCreatePortList(PPCPortArray,ExtSignals)(a0,d0) + PPCDeletePortList(PPCPortList)(a0) + PPCAddPortList(PPCPortList,PPCPort)(a0/a1) + PPCRemPortList(PPCPortList,PPCPort)(a0/a1) + PPCWaitPortList(PPCPortList)(a0) + PPCGetPortListAttr(PPCPortList,Attr)(a0,d0) + PPCSetPortListAttr(PPCPortList,Attr,a)(a0,d0) + PPCLoadObjectTagList(Tags)(a0) + PPCSetAttrs(Tags)(a0) + ##private + PPCPrivate9()() + PPCPrivate10()() + ##public + PPCCacheTrashE(address,length,caches)(a0,d0/d1) + PPCOpenLibrary(Name,Tags)(a0,a1) + PPCCloseLibrary(Library)(a0) + PPCGetLibSymbol(Library,Name)(a0,a1) + ##private + PPCPrivate14()() + ##end diff -c2 -d -P -r include_h/fd/ppcdiss_lib.fd includenew/fd/ppcdiss_lib.fd *** include_h/fd/ppcdiss_lib.fd Thu Jan 1 00:00:00 1970 --- includenew/fd/ppcdiss_lib.fd Wed Feb 14 02:41:11 2001 *************** *** 0 **** --- 1,9 ---- + * "ppcdiss.library" + ##base _PPCDissBase + ##bias 30 + ##public + + CreateDisAssHandleTagList(TagList)(a0) + DeleteDisAssHandle(DissHandle)(a0) + DisAssTagList(DissHandle,TagList)(a0,a1) + ##end Only in include_h/fd: ramdrive_lib.fd Only in include_h/fd: realtime_lib.fd Only in include_h/fd: rexxsyslib_lib.fd Only in include_h/fd: timer_lib.fd Only in include_h/fd: translator_lib.fd Only in include_h/fd: utility_lib.fd Only in include_h/fd: wb_lib.fd Only in include_h: gadgets Only in include_h: graphics Only in include_h: hardware Only in include_h: intuition Only in include_h: libraries diff -c2 -d -P -r include_h/lvo/dos_lvo.h includenew/lvo/dos_lvo.h *** include_h/lvo/dos_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/dos_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,170 ---- + #ifndef _LVO_DOS_LIB_H + #define _LVO_DOS_LIB_H + + /* + * $VER: dos_lvolib.h (08/03/97) + * + */ + + + #define LVO_Open (-0x1E) + #define LVO_Close (-0x24) + #define LVO_Read (-0x2A) + #define LVO_Write (-0x30) + #define LVO_Input (-0x36) + #define LVO_Output (-0x3C) + #define LVO_Seek (-0x42) + #define LVO_DeleteFile (-0x48) + #define LVO_Rename (-0x4E) + #define LVO_Lock (-0x54) + #define LVO_UnLock (-0x5A) + #define LVO_DupLock (-0x60) + #define LVO_Examine (-0x66) + #define LVO_ExNext (-0x6C) + #define LVO_Info (-0x72) + #define LVO_CreateDir (-0x78) + #define LVO_CurrentDir (-0x7E) + #define LVO_IoErr (-0x84) + #define LVO_CreateProc (-0x8A) + #define LVO_Exit (-0x90) + #define LVO_LoadSeg (-0x96) + #define LVO_UnLoadSeg (-0x9C) + #define LVO_dosPrivate1 (-0xA2) + #define LVO_dosPrivate2 (-0xA8) + #define LVO_DeviceProc (-0xAE) + #define LVO_SetComment (-0xB4) + #define LVO_SetProtection (-0xBA) + #define LVO_DateStamp (-0xC0) + #define LVO_Delay (-0xC6) + #define LVO_WaitForChar (-0xCC) + #define LVO_ParentDir (-0xD2) + #define LVO_IsInteractive (-0xD8) + #define LVO_Execute (-0xDE) + #define LVO_AllocDosObject (-0xE4) + #define LVO_FreeDosObject (-0xEA) + #define LVO_DoPkt (-0xF0) + #define LVO_SendPkt (-0xF6) + #define LVO_WaitPkt (-0xFC) + #define LVO_ReplyPkt (-0x102) + #define LVO_AbortPkt (-0x108) + #define LVO_LockRecord (-0x10E) + #define LVO_LockRecords (-0x114) + #define LVO_UnLockRecord (-0x11A) + #define LVO_UnLockRecords (-0x120) + #define LVO_SelectInput (-0x126) + #define LVO_SelectOutput (-0x12C) + #define LVO_FGetC (-0x132) + #define LVO_FPutC (-0x138) + #define LVO_UnGetC (-0x13E) + #define LVO_FRead (-0x144) + #define LVO_FWrite (-0x14A) + #define LVO_FGets (-0x150) + #define LVO_FPuts (-0x156) + #define LVO_VFWritef (-0x15C) + #define LVO_VFPrintf (-0x162) + #define LVO_Flush (-0x168) + #define LVO_SetVBuf (-0x16E) + #define LVO_DupLockFromFH (-0x174) + #define LVO_OpenFromLock (-0x17A) + #define LVO_ParentOfFH (-0x180) + #define LVO_ExamineFH (-0x186) + #define LVO_SetFileDate (-0x18C) + #define LVO_NameFromLock (-0x192) + #define LVO_NameFromFH (-0x198) + #define LVO_SplitName (-0x19E) + #define LVO_SameLock (-0x1A4) + #define LVO_SetMode (-0x1AA) + #define LVO_ExAll (-0x1B0) + #define LVO_ReadLink (-0x1B6) + #define LVO_MakeLink (-0x1BC) + #define LVO_ChangeMode (-0x1C2) + #define LVO_SetFileSize (-0x1C8) + #define LVO_SetIoErr (-0x1CE) + #define LVO_Fault (-0x1D4) + #define LVO_PrintFault (-0x1DA) + #define LVO_ErrorReport (-0x1E0) + #define LVO_Cli (-0x1EC) + #define LVO_CreateNewProc (-0x1F2) + #define LVO_RunCommand (-0x1F8) + #define LVO_GetConsoleTask (-0x1FE) + #define LVO_SetConsoleTask (-0x204) + #define LVO_GetFileSysTask (-0x20A) + #define LVO_SetFileSysTask (-0x210) + #define LVO_GetArgStr (-0x216) + #define LVO_SetArgStr (-0x21C) + #define LVO_FindCliProc (-0x222) + #define LVO_MaxCli (-0x228) + #define LVO_SetCurrentDirName (-0x22E) + #define LVO_GetCurrentDirName (-0x234) + #define LVO_SetProgramName (-0x23A) + #define LVO_GetProgramName (-0x240) + #define LVO_SetPrompt (-0x246) + #define LVO_GetPrompt (-0x24C) + #define LVO_SetProgramDir (-0x252) + #define LVO_GetProgramDir (-0x258) + #define LVO_SystemTagList (-0x25E) + #define LVO_AssignLock (-0x264) + #define LVO_AssignLate (-0x26A) + #define LVO_AssignPath (-0x270) + #define LVO_AssignAdd (-0x276) + #define LVO_RemAssignList (-0x27C) + #define LVO_GetDeviceProc (-0x282) + #define LVO_FreeDeviceProc (-0x288) + #define LVO_LockDosList (-0x28E) + #define LVO_UnLockDosList (-0x294) + #define LVO_AttemptLockDosList (-0x29A) + #define LVO_RemDosEntry (-0x2A0) + #define LVO_AddDosEntry (-0x2A6) + #define LVO_FindDosEntry (-0x2AC) + #define LVO_NextDosEntry (-0x2B2) + #define LVO_MakeDosEntry (-0x2B8) + #define LVO_FreeDosEntry (-0x2BE) + #define LVO_IsFileSystem (-0x2C4) + #define LVO_Format (-0x2CA) + #define LVO_Relabel (-0x2D0) + #define LVO_Inhibit (-0x2D6) + #define LVO_AddBuffers (-0x2DC) + #define LVO_CompareDates (-0x2E2) + #define LVO_DateToStr (-0x2E8) + #define LVO_StrToDate (-0x2EE) + #define LVO_InternalLoadSeg (-0x2F4) + #define LVO_InternalUnLoadSeg (-0x2FA) + #define LVO_NewLoadSeg (-0x300) + #define LVO_AddSegment (-0x306) + #define LVO_FindSegment (-0x30C) + #define LVO_RemSegment (-0x312) + #define LVO_CheckSignal (-0x318) + #define LVO_ReadArgs (-0x31E) + #define LVO_FindArg (-0x324) + #define LVO_ReadItem (-0x32A) + #define LVO_StrToLong (-0x330) + #define LVO_MatchFirst (-0x336) + #define LVO_MatchNext (-0x33C) + #define LVO_MatchEnd (-0x342) + #define LVO_ParsePattern (-0x348) + #define LVO_MatchPattern (-0x34E) + #define LVO_dosPrivate3 (-0x354) + #define LVO_FreeArgs (-0x35A) + #define LVO_FilePart (-0x366) + #define LVO_PathPart (-0x36C) + #define LVO_AddPart (-0x372) + #define LVO_StartNotify (-0x378) + #define LVO_EndNotify (-0x37E) + #define LVO_SetVar (-0x384) + #define LVO_GetVar (-0x38A) + #define LVO_DeleteVar (-0x390) + #define LVO_FindVar (-0x396) + #define LVO_dosPrivate4 (-0x39C) + #define LVO_CliInitNewcli (-0x3A2) + #define LVO_CliInitRun (-0x3A8) + #define LVO_WriteChars (-0x3AE) + #define LVO_PutStr (-0x3B4) + #define LVO_VPrintf (-0x3BA) + #define LVO_ParsePatternNoCase (-0x3C6) + #define LVO_MatchPatternNoCase (-0x3CC) + #define LVO_dosPrivate5 (-0x3D2) + #define LVO_SameDevice (-0x3D8) + #define LVO_ExAllEnd (-0x3DE) + #define LVO_SetOwner (-0x3E4) + + #endif diff -c2 -d -P -r include_h/lvo/exec_lvo.h includenew/lvo/exec_lvo.h *** include_h/lvo/exec_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/exec_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,162 ---- + #ifndef _LVO_EXEC_LIB_H + #define _LVO_EXEC_LIB_H + + /* + * $VER: exec_lvolib.h (08/03/97) + * + */ + + + #define LVO_OPEN (-6) + #define LVO_CLOSE (-12) + #define LVO_EXPUNGE (-18) + #define LVO_EXTFUNC (-24) + #define LVO_BEGINIO (-30) + #define LVO_ABORTIO (-36) + + #define LVO_Supervisor (-0x1E) + #define LVO_ExitIntr (-0x24) + #define LVO_Schedule (-0x2A) + #define LVO_Reschedule (-0x30) + #define LVO_Switch (-0x36) + #define LVO_Dispatch (-0x3C) + #define LVO_Exception (-0x42) + #define LVO_InitCode (-0x48) + #define LVO_InitStruct (-0x4E) + #define LVO_MakeLibrary (-0x54) + #define LVO_MakeFunctions (-0x5A) + #define LVO_FindResident (-0x60) + #define LVO_InitResident (-0x66) + #define LVO_Alert (-0x6C) + #define LVO_Debug (-0x72) + #define LVO_Disable (-0x78) + #define LVO_Enable (-0x7E) + #define LVO_Forbid (-0x84) + #define LVO_Permit (-0x8A) + #define LVO_SetSR (-0x90) + #define LVO_SuperState (-0x96) + #define LVO_UserState (-0x9C) + #define LVO_SetIntVector (-0xA2) + #define LVO_AddIntServer (-0xA8) + #define LVO_RemIntServer (-0xAE) + #define LVO_Cause (-0xB4) + #define LVO_Allocate (-0xBA) + #define LVO_Deallocate (-0xC0) + #define LVO_AllocMem (-0xC6) + #define LVO_AllocAbs (-0xCC) + #define LVO_FreeMem (-0xD2) + #define LVO_AvailMem (-0xD8) + #define LVO_AllocEntry (-0xDE) + #define LVO_FreeEntry (-0xE4) + #define LVO_Insert (-0xEA) + #define LVO_AddHead (-0xF0) + #define LVO_AddTail (-0xF6) + #define LVO_Remove (-0xFC) + #define LVO_RemHead (-0x102) + #define LVO_RemTail (-0x108) + #define LVO_Enqueue (-0x10E) + #define LVO_FindName (-0x114) + #define LVO_AddTask (-0x11A) + #define LVO_RemTask (-0x120) + #define LVO_FindTask (-0x126) + #define LVO_SetTaskPri (-0x12C) + #define LVO_SetSignal (-0x132) + #define LVO_SetExcept (-0x138) + #define LVO_Wait (-0x13E) + #define LVO_Signal (-0x144) + #define LVO_AllocSignal (-0x14A) + #define LVO_FreeSignal (-0x150) + #define LVO_AllocTrap (-0x156) + #define LVO_FreeTrap (-0x15C) + #define LVO_AddPort (-0x162) + #define LVO_RemPort (-0x168) + #define LVO_PutMsg (-0x16E) + #define LVO_GetMsg (-0x174) + #define LVO_ReplyMsg (-0x17A) + #define LVO_WaitPort (-0x180) + #define LVO_FindPort (-0x186) + #define LVO_AddLibrary (-0x18C) + #define LVO_RemLibrary (-0x192) + #define LVO_OldOpenLibrary (-0x198) + #define LVO_CloseLibrary (-0x19E) + #define LVO_SetFunction (-0x1A4) + #define LVO_SumLibrary (-0x1AA) + #define LVO_AddDevice (-0x1B0) + #define LVO_RemDevice (-0x1B6) + #define LVO_OpenDevice (-0x1BC) + #define LVO_CloseDevice (-0x1C2) + #define LVO_DoIO (-0x1C8) + #define LVO_SendIO (-0x1CE) + #define LVO_CheckIO (-0x1D4) + #define LVO_WaitIO (-0x1DA) + #define LVO_AbortIO (-0x1E0) + #define LVO_AddResource (-0x1E6) + #define LVO_RemResource (-0x1EC) + #define LVO_OpenResource (-0x1F2) + #define LVO_RawIOInit (-0x1F8) + #define LVO_RawMayGetChar (-0x1FE) + #define LVO_RawPutChar (-0x204) + #define LVO_RawDoFmt (-0x20A) + #define LVO_GetCC (-0x210) + #define LVO_TypeOfMem (-0x216) + #define LVO_Procure (-0x21C) + #define LVO_Vacate (-0x222) + #define LVO_OpenLibrary (-0x228) + #define LVO_InitSemaphore (-0x22E) + #define LVO_ObtainSemaphore (-0x234) + #define LVO_ReleaseSemaphore (-0x23A) + #define LVO_AttemptSemaphore (-0x240) + #define LVO_ObtainSemaphoreList (-0x246) + #define LVO_ReleaseSemaphoreList (-0x24C) + #define LVO_FindSemaphore (-0x252) + #define LVO_AddSemaphore (-0x258) + #define LVO_RemSemaphore (-0x25E) + #define LVO_SumKickData (-0x264) + #define LVO_AddMemList (-0x26A) + #define LVO_CopyMem (-0x270) + #define LVO_CopyMemQuick (-0x276) + #define LVO_CacheClearU (-0x27C) + #define LVO_CacheClearE (-0x282) + #define LVO_CacheControl (-0x288) + #define LVO_CreateIORequest (-0x28E) + #define LVO_DeleteIORequest (-0x294) + #define LVO_CreateMsgPort (-0x29A) + #define LVO_DeleteMsgPort (-0x2A0) + #define LVO_ObtainSemaphoreShared (-0x2A6) + #define LVO_AllocVec (-0x2AC) + #define LVO_FreeVec (-0x2B2) + #define LVO_CreatePool (-0x2B8) + #define LVO_DeletePool (-0x2BE) + #define LVO_AllocPooled (-0x2C4) + #define LVO_FreePooled (-0x2CA) + #define LVO_AttemptSemaphoreShared (-0x2D0) + #define LVO_ColdReboot (-0x2D6) + #define LVO_StackSwap (-0x2DC) + #define LVO_NewGetTaskAttrsA (-0x2E2) + #define LVO_NewSetTaskAttrsA (-0x2E8) + #define LVO_ChildStatus (-0x2EE) + #define LVO_ChildWait (-0x2F4) + #define LVO_CachePreDMA (-0x2FA) + #define LVO_CachePostDMA (-0x300) + #define LVO_AddMemHandler (-0x306) + #define LVO_RemMemHandler (-0x30C) + #define LVO_ObtainQuickVector (-0x312) + #define LVO_NewSetFunction (-0x318) + #define LVO_NewCreateLibrary (-0x31E) + #define LVO_NewPPCStackSwap (-0x324) + #define LVO_TaggedOpenLibrary (-0x32A) + #define LVO_ReadGayle (-0x330) + #define LVO_NewRawDoFmt (-0x336) + #define LVO_CacheFlushDataArea (-0x33c) + #define LVO_CacheInvalidInstArea (-0x342) + #define LVO_CacheInvalidDataArea (-0x348) + #define LVO_CacheFlushDataInstArea (-0x34e) + #define LVO_CacheTrashCacheArea (-0x354) + #define LVO_AllocTaskPooled (-0x35a) + #define LVO_FreeTaskPooled (-0x360) + #define LVO_AllocVecTaskPooled (-0x366) + #define LVO_FreeVecTaskPooled (-0x36c) + #define LVO_FlushPool (-0x372) + #define LVO_FlushTaskPool (-0x378) + + #endif diff -c2 -d -P -r include_h/lvo/graphics_lvo.h includenew/lvo/graphics_lvo.h *** include_h/lvo/graphics_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/graphics_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,183 ---- + #ifndef _LVO_GRAPHICS_LIB_H + #define _LVO_GRAPHICS_LIB_H + + /* + * $VER: graphics_lvolib.h (08/03/97) + * + */ + + + #define LVO_BltBitMap (-0x1E) + #define LVO_BltTemplate (-0x24) + #define LVO_ClearEOL (-0x2A) + #define LVO_ClearScreen (-0x30) + #define LVO_TextLength (-0x36) + #define LVO_Text (-0x3C) + #define LVO_SetFont (-0x42) + #define LVO_OpenFont (-0x48) + #define LVO_CloseFont (-0x4E) + #define LVO_AskSoftStyle (-0x54) + #define LVO_SetSoftStyle (-0x5A) + #define LVO_AddBob (-0x60) + #define LVO_AddVSprite (-0x66) + #define LVO_DoCollision (-0x6C) + #define LVO_DrawGList (-0x72) + #define LVO_InitGels (-0x78) + #define LVO_InitMasks (-0x7E) + #define LVO_RemIBob (-0x84) + #define LVO_RemVSprite (-0x8A) + #define LVO_SetCollision (-0x90) + #define LVO_SortGList (-0x96) + #define LVO_AddAnimOb (-0x9C) + #define LVO_Animate (-0xA2) + #define LVO_GetGBuffers (-0xA8) + #define LVO_InitGMasks (-0xAE) + #define LVO_DrawEllipse (-0xB4) + #define LVO_AreaEllipse (-0xBA) + #define LVO_LoadRGB4 (-0xC0) + #define LVO_InitRastPort (-0xC6) + #define LVO_InitVPort (-0xCC) + #define LVO_MrgCop (-0xD2) + #define LVO_MakeVPort (-0xD8) + #define LVO_LoadView (-0xDE) + #define LVO_WaitBlit (-0xE4) + #define LVO_SetRast (-0xEA) + #define LVO_Move (-0xF0) + #define LVO_Draw (-0xF6) + #define LVO_AreaMove (-0xFC) + #define LVO_AreaDraw (-0x102) + #define LVO_AreaEnd (-0x108) + #define LVO_WaitTOF (-0x10E) + #define LVO_QBlit (-0x114) + #define LVO_InitArea (-0x11A) + #define LVO_SetRGB4 (-0x120) + #define LVO_QBSBlit (-0x126) + #define LVO_BltClear (-0x12C) + #define LVO_RectFill (-0x132) + #define LVO_BltPattern (-0x138) + #define LVO_ReadPixel (-0x13E) + #define LVO_WritePixel (-0x144) + #define LVO_Flood (-0x14A) + #define LVO_PolyDraw (-0x150) + #define LVO_SetAPen (-0x156) + #define LVO_SetBPen (-0x15C) + #define LVO_SetDrMd (-0x162) + #define LVO_InitView (-0x168) + #define LVO_CBump (-0x16E) + #define LVO_CMove (-0x174) + #define LVO_CWait (-0x17A) + #define LVO_VBeamPos (-0x180) + #define LVO_InitBitMap (-0x186) + #define LVO_ScrollRaster (-0x18C) + #define LVO_WaitBOVP (-0x192) + #define LVO_GetSprite (-0x198) + #define LVO_FreeSprite (-0x19E) + #define LVO_ChangeSprite (-0x1A4) + #define LVO_MoveSprite (-0x1AA) + #define LVO_LockLayerRom (-0x1B0) + #define LVO_UnlockLayerRom (-0x1B6) + #define LVO_SyncSBitMap (-0x1BC) + #define LVO_CopySBitMap (-0x1C2) + #define LVO_OwnBlitter (-0x1C8) + #define LVO_DisownBlitter (-0x1CE) + #define LVO_InitTmpRas (-0x1D4) + #define LVO_AskFont (-0x1DA) + #define LVO_AddFont (-0x1E0) + #define LVO_RemFont (-0x1E6) + #define LVO_AllocRaster (-0x1EC) + #define LVO_FreeRaster (-0x1F2) + #define LVO_AndRectRegion (-0x1F8) + #define LVO_OrRectRegion (-0x1FE) + #define LVO_NewRegion (-0x204) + #define LVO_ClearRectRegion (-0x20A) + #define LVO_ClearRegion (-0x210) + #define LVO_DisposeRegion (-0x216) + #define LVO_FreeVPortCopLists (-0x21C) + #define LVO_FreeCopList (-0x222) + #define LVO_ClipBlit (-0x228) + #define LVO_XorRectRegion (-0x22E) + #define LVO_FreeCprList (-0x234) + #define LVO_GetColorMap (-0x23A) + #define LVO_FreeColorMap (-0x240) + #define LVO_GetRGB4 (-0x246) + #define LVO_ScrollVPort (-0x24C) + #define LVO_UCopperListInit (-0x252) + #define LVO_FreeGBuffers (-0x258) + #define LVO_BltBitMapRastPort (-0x25E) + #define LVO_OrRegionRegion (-0x264) + #define LVO_XorRegionRegion (-0x26A) + #define LVO_AndRegionRegion (-0x270) + #define LVO_SetRGB4CM (-0x276) + #define LVO_BltMaskBitMapRastPort (-0x27C) + #define LVO_graphicsPrivate1 (-0x282) + #define LVO_graphicsPrivate2 (-0x288) + #define LVO_AttemptLockLayerRom (-0x28E) + #define LVO_GfxNew (-0x294) + #define LVO_GfxFree (-0x29A) + #define LVO_GfxAssociate (-0x2A0) + #define LVO_BitMapScale (-0x2A6) + #define LVO_ScalerDiv (-0x2AC) + #define LVO_TextExtent (-0x2B2) + #define LVO_TextFit (-0x2B8) + #define LVO_GfxLookUp (-0x2BE) + #define LVO_VideoControl (-0x2C4) + #define LVO_OpenMonitor (-0x2CA) + #define LVO_CloseMonitor (-0x2D0) + #define LVO_FindDisplayInfo (-0x2D6) + #define LVO_NextDisplayInfo (-0x2DC) + #define LVO_graphicsPrivate3 (-0x2E2) + #define LVO_graphicsPrivate4 (-0x2E8) + #define LVO_graphicsPrivate5 (-0x2EE) + #define LVO_GetDisplayInfoData (-0x2F4) + #define LVO_FontExtent (-0x2FA) + #define LVO_ReadPixelLine8 (-0x300) + #define LVO_WritePixelLine8 (-0x306) + #define LVO_ReadPixelArray8 (-0x30C) + #define LVO_WritePixelArray8 (-0x312) + #define LVO_GetVPModeID (-0x318) + #define LVO_ModeNotAvailable (-0x31E) + #define LVO_WeighTAMatch (-0x324) + #define LVO_EraseRect (-0x32A) + #define LVO_ExtendFont (-0x330) + #define LVO_StripFont (-0x336) + #define LVO_CalcIVG (-0x33C) + #define LVO_AttachPalExtra (-0x342) + #define LVO_ObtainBestPenA (-0x348) + #define LVO_graphicsPrivate6 (-0x34E) + #define LVO_SetRGB32 (-0x354) + #define LVO_GetAPen (-0x35A) + #define LVO_GetBPen (-0x360) + #define LVO_GetDrMd (-0x366) + #define LVO_GetOutlinePen (-0x36C) + #define LVO_LoadRGB32 (-0x372) + #define LVO_SetChipRev (-0x378) + #define LVO_SetABPenDrMd (-0x37E) + #define LVO_GetRGB32 (-0x384) + #define LVO_graphicsPrivate7 (-0x38A) + #define LVO_graphicsPrivate8 (-0x390) + #define LVO_AllocBitMap (-0x396) + #define LVO_FreeBitMap (-0x39C) + #define LVO_GetExtSpriteA (-0x3A2) + #define LVO_CoerceMode (-0x3A8) + #define LVO_ChangeVPBitMap (-0x3AE) + #define LVO_ReleasePen (-0x3B4) + #define LVO_ObtainPen (-0x3BA) + #define LVO_GetBitMapAttr (-0x3C0) + #define LVO_AllocDBufInfo (-0x3C6) + #define LVO_FreeDBufInfo (-0x3CC) + #define LVO_SetOutlinePen (-0x3D2) + #define LVO_SetWriteMask (-0x3D8) + #define LVO_SetMaxPen (-0x3DE) + #define LVO_SetRGB32CM (-0x3E4) + #define LVO_ScrollRasterBF (-0x3EA) + #define LVO_FindColor (-0x3F0) + #define LVO_graphicsPrivate9 (-0x3F6) + #define LVO_AllocSpriteDataA (-0x3FC) + #define LVO_ChangeExtSpriteA (-0x402) + #define LVO_FreeSpriteData (-0x408) + #define LVO_SetRPAttrsA (-0x40E) + #define LVO_GetRPAttrsA (-0x414) + #define LVO_BestModeIDA (-0x41A) + #define LVO_WriteChunkyPixels (-0x420) + + #endif diff -c2 -d -P -r include_h/lvo/mathieeedoubbas_lvo.h includenew/lvo/mathieeedoubbas_lvo.h *** include_h/lvo/mathieeedoubbas_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/mathieeedoubbas_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,23 ---- + #ifndef _LVO_MATHIEEEDOUBBAS_LIB_H + #define _LVO_MATHIEEEDOUBBAS_LIB_H + + /* + * $VER: mathieeedoubbas_lvolib.h (08/03/97) + * + */ + + + #define LVO_IEEEDPFix (-0x1E) + #define LVO_IEEEDPFlt (-0x24) + #define LVO_IEEEDPCmp (-0x2A) + #define LVO_IEEEDPTst (-0x30) + #define LVO_IEEEDPAbs (-0x36) + #define LVO_IEEEDPNeg (-0x3C) + #define LVO_IEEEDPAdd (-0x42) + #define LVO_IEEEDPSub (-0x48) + #define LVO_IEEEDPMul (-0x4E) + #define LVO_IEEEDPDiv (-0x54) + #define LVO_IEEEDPFloor (-0x5A) + #define LVO_IEEEDPCeil (-0x60) + + #endif diff -c2 -d -P -r include_h/lvo/mathieeedoubtrans_lvo.h includenew/lvo/mathieeedoubtrans_lvo.h *** include_h/lvo/mathieeedoubtrans_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/mathieeedoubtrans_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef _LVO_MATHIEEEDOUBTRANS_LIB_H + #define _LVO_MATHIEEEDOUBTRANS_LIB_H + + /* + * $VER: mathieeedoubtrans_lvolib.h (08/03/97) + * + */ + + + #define LVO_IEEEDPAtan (-0x1E) + #define LVO_IEEEDPSin (-0x24) + #define LVO_IEEEDPCos (-0x2A) + #define LVO_IEEEDPTan (-0x30) + #define LVO_IEEEDPSincos (-0x36) + #define LVO_IEEEDPSinh (-0x3C) + #define LVO_IEEEDPCosh (-0x42) + #define LVO_IEEEDPTanh (-0x48) + #define LVO_IEEEDPExp (-0x4E) + #define LVO_IEEEDPLog (-0x54) + #define LVO_IEEEDPPow (-0x5A) + #define LVO_IEEEDPSqrt (-0x60) + #define LVO_IEEEDPTieee (-0x66) + #define LVO_IEEEDPFieee (-0x6C) + #define LVO_IEEEDPAsin (-0x72) + #define LVO_IEEEDPAcos (-0x78) + #define LVO_IEEEDPLog10 (-0x7E) + + #endif diff -c2 -d -P -r include_h/lvo/mathieeesingbas_lvo.h includenew/lvo/mathieeesingbas_lvo.h *** include_h/lvo/mathieeesingbas_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/mathieeesingbas_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,23 ---- + #ifndef _LVO_MATHIEEESINGBAS_LIB_H + #define _LVO_MATHIEEESINGBAS_LIB_H + + /* + * $VER: mathieeesingbas_lvolib.h (08/03/97) + * + */ + + + #define LVO_IEEESPFix (-0x1E) + #define LVO_IEEESPFlt (-0x24) + #define LVO_IEEESPCmp (-0x2A) + #define LVO_IEEESPTst (-0x30) + #define LVO_IEEESPAbs (-0x36) + #define LVO_IEEESPNeg (-0x3C) + #define LVO_IEEESPAdd (-0x42) + #define LVO_IEEESPSub (-0x48) + #define LVO_IEEESPMul (-0x4E) + #define LVO_IEEESPDiv (-0x54) + #define LVO_IEEESPFloor (-0x5A) + #define LVO_IEEESPCeil (-0x60) + + #endif diff -c2 -d -P -r include_h/lvo/mathieeesingtrans_lvo.h includenew/lvo/mathieeesingtrans_lvo.h *** include_h/lvo/mathieeesingtrans_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/mathieeesingtrans_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef _LVO_MATHIEEESINGTRANS_LIB_H + #define _LVO_MATHIEEESINGTRANS_LIB_H + + /* + * $VER: mathieeesingtrans_lvolib.h (08/03/97) + * + */ + + + #define LVO_IEEESPAtan (-0x1E) + #define LVO_IEEESPSin (-0x24) + #define LVO_IEEESPCos (-0x2A) + #define LVO_IEEESPTan (-0x30) + #define LVO_IEEESPSincos (-0x36) + #define LVO_IEEESPSinh (-0x3C) + #define LVO_IEEESPCosh (-0x42) + #define LVO_IEEESPTanh (-0x48) + #define LVO_IEEESPExp (-0x4E) + #define LVO_IEEESPLog (-0x54) + #define LVO_IEEESPPow (-0x5A) + #define LVO_IEEESPSqrt (-0x60) + #define LVO_IEEESPTieee (-0x66) + #define LVO_IEEESPFieee (-0x6C) + #define LVO_IEEESPAsin (-0x72) + #define LVO_IEEESPAcos (-0x78) + #define LVO_IEEESPLog10 (-0x7E) + + #endif diff -c2 -d -P -r include_h/lvo/mathtrans_lvo.h includenew/lvo/mathtrans_lvo.h *** include_h/lvo/mathtrans_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/mathtrans_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef _LVO_MATHTRANS_LIB_H + #define _LVO_MATHTRANS_LIB_H + + /* + * $VER: mathtrans_lvolib.h (08/03/97) + * + */ + + + #define LVO_SPAtan (-0x1E) + #define LVO_SPSin (-0x24) + #define LVO_SPCos (-0x2A) + #define LVO_SPTan (-0x30) + #define LVO_SPSincos (-0x36) + #define LVO_SPSinh (-0x3C) + #define LVO_SPCosh (-0x42) + #define LVO_SPTanh (-0x48) + #define LVO_SPExp (-0x4E) + #define LVO_SPLog (-0x54) + #define LVO_SPPow (-0x5A) + #define LVO_SPSqrt (-0x60) + #define LVO_SPTieee (-0x66) + #define LVO_SPFieee (-0x6C) + #define LVO_SPAsin (-0x72) + #define LVO_SPAcos (-0x78) + #define LVO_SPLog10 (-0x7E) + + #endif diff -c2 -d -P -r include_h/lvo/utility_lvo.h includenew/lvo/utility_lvo.h *** include_h/lvo/utility_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/lvo/utility_lvo.h Wed Feb 14 02:41:12 2001 *************** *** 0 **** --- 1,49 ---- + #ifndef _LVO_UTILITY_LIB_H + #define _LVO_UTILITY_LIB_H + + /* + * $VER: utility_lvolib.h (08/03/97) + * + */ + + + #define LVO_FindTagItem (-0x1E) + #define LVO_GetTagData (-0x24) + #define LVO_PackBoolTags (-0x2A) + #define LVO_NextTagItem (-0x30) + #define LVO_FilterTagChanges (-0x36) + #define LVO_MapTags (-0x3C) + #define LVO_AllocateTagItems (-0x42) + #define LVO_CloneTagItems (-0x48) + #define LVO_FreeTagItems (-0x4E) + #define LVO_RefreshTagItemClones (-0x54) + #define LVO_TagInArray (-0x5A) + #define LVO_FilterTagItems (-0x60) + #define LVO_CallHookPkt (-0x66) + #define LVO_Amiga2Date (-0x78) + #define LVO_Date2Amiga (-0x7E) + #define LVO_CheckDate (-0x84) + #define LVO_SMult32 (-0x8A) + #define LVO_UMult32 (-0x90) + #define LVO_SDivMod32 (-0x96) + #define LVO_UDivMod32 (-0x9C) + #define LVO_Stricmp (-0xA2) + #define LVO_Strnicmp (-0xA8) + #define LVO_ToUpper (-0xAE) + #define LVO_ToLower (-0xB4) + #define LVO_ApplyTagChanges (-0xBA) + #define LVO_SMult64 (-0xC6) + #define LVO_UMult64 (-0xCC) + #define LVO_PackStructureTags (-0xD2) + #define LVO_UnpackStructureTags (-0xD8) + #define LVO_AddNamedObject (-0xDE) + #define LVO_AllocNamedObjectA (-0xE4) + #define LVO_AttemptRemNamedObject (-0xEA) + #define LVO_FindNamedObject (-0xF0) + #define LVO_FreeNamedObject (-0xF6) + #define LVO_NamedObjectName (-0xFC) + #define LVO_ReleaseNamedObject (-0x102) + #define LVO_RemNamedObject (-0x108) + #define LVO_GetUniqueID (-0x10E) + + #endif diff -c2 -d -P -r include_h/powerup/clib/ppc_protos.h includenew/powerup/clib/ppc_protos.h *** include_h/powerup/clib/ppc_protos.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/clib/ppc_protos.h Wed Feb 14 02:41:13 2001 *************** *** 0 **** --- 1,131 ---- + #ifndef POWERUP_PPCLIB_PROTOS_H + #define POWERUP_PPCLIB_PROTOS_H + + void* PPCLoadObject(char*); + void PPCUnLoadObject(void*); + ULONG PPCRunObject(void*,void*); + void* PPCAllocMem(ULONG,ULONG); + void PPCFreeMem(void*,ULONG); + void* PPCAllocVec(ULONG,ULONG); + void* PPCFreeVec(void*); + + void *PPCCreateTask(void*, + struct TagItem*); + void *PPCCreateTaskTags(void*, + unsigned long tag1Type, ... ); + BOOL PPCDeleteTask(void*); + + void PPCSignalTask(void*,ULONG); + void *PPCFindTask(char *); + ULONG PPCRunKernelObject(void*, + struct ModuleArgs*); + DOUBLE PPCRunKernelObjectFPU(void*, + struct ModuleArgs*); + ULONG PPCGetTaskAttrs(void*, + struct TagItem*); + ULONG PPCGetTaskAttrsTags(void*, + unsigned long tag1Type, + ...); + ULONG PPCGetAttrs(struct TagItem*); + ULONG PPCGetAttrsTags(unsigned long tag1Type, + ...); + + void *PPCFindTaskObject(void*); + ULONG PPCReadLong(ULONG*); + void PPCWriteLong(ULONG*,ULONG); + BOOL PPCStartTask(void*, + struct TagItem*); + BOOL PPCStartTaskTags(void*, + unsigned long tag1Type, ... ); + BOOL PPCStopTask(void*, + struct TagItem*); + BOOL PPCStopTaskTags(void*, + unsigned long tag1Type, ... ); + ULONG PPCSetTaskAttrs(void*, + struct TagItem*); + ULONG PPCSetTaskAttrsTags(void*, + unsigned long tag1Type, + ...); + ULONG PPCGetObjectAttrs(void*, + struct PPCObjectInfo*, + struct TagItem*); + ULONG PPCGetObjectAttrsTags(void*, + struct PPCObjectInfo*, + unsigned long tag1Type, + ... ); + + void PPCWriteLongFlush(ULONG*,ULONG); + UWORD PPCReadWord(UWORD*); + void PPCWriteWord(UWORD*,UWORD); + UBYTE PPCReadByte(UBYTE*); + void PPCWriteByte(UBYTE*,UBYTE); + void* PPCCreatePool(ULONG MemFlags, + ULONG PuddleSize, + ULONG ThreshSize); + BOOL PPCDeletePool(void*); + void* PPCAllocPooled(void*, + ULONG); + void PPCFreePooled(void*, + void*, + ULONG); + void PPCFreeVecPooled(void*, + void*); + void* PPCAllocVecPooled(void*, + ULONG); + + + + void* PPCCreatePort(struct TagItem*); + void* PPCCreatePortTags(unsigned long tag1Type, ... ); + BOOL PPCDeletePort(void*); + void* PPCObtainPort(struct TagItem*); + void* PPCObtainPortTags(unsigned long tag1Type, ... ); + BOOL PPCReleasePort(void*); + void* PPCCreateMessage(void*, + ULONG); + void PPCDeleteMessage(void*); + ULONG PPCGetMessageAttr(void*, + ULONG); + void* PPCGetMessage(void*); + BOOL PPCReplyMessage(void*); + BOOL PPCSendMessage(void*, + void*, + void*, + ULONG, + ULONG); + void* PPCWaitPort(void*); + void PPCCacheClearE(void*, + ULONG, + ULONG); + + void PPCCacheInvalidE(void*, + ULONG, + ULONG); + + + void* PPCCreatePortList(void**,ULONG); + void PPCDeletePortList(void*); + BOOL PPCAddPortList(void*, + void*); + void PPCRemPortList(void*, + void*); + void* PPCWaitPortList(void*); + ULONG PPCGetPortListAttr(void*, + ULONG); + void PPCSetPortListAttr(void*, + ULONG, + ULONG); + + void* PPCLoadObjectTags(unsigned long tag1Type, ... ); + void* PPCLoadObjectTagList(struct TagItem*); + + + BOOL PPCSetAttrs(struct TagItem*); + BOOL PPCSetAttrsTags(unsigned long tag1Type, ... ); + + void PPCCacheTrashE(void*, + ULONG, + ULONG); + + + #endif diff -c2 -d -P -r include_h/powerup/clib/ppcdiss_protos.h includenew/powerup/clib/ppcdiss_protos.h *** include_h/powerup/clib/ppcdiss_protos.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/clib/ppcdiss_protos.h Wed Feb 14 02:41:13 2001 *************** *** 0 **** --- 1,15 ---- + #ifndef POWERUP_PPCLIB_PPCDISS_PROTOS_H + #define POWERUP_PPCLIB_PPCDISS_PROTOS_H + + APTR CreateDisAssHandleTagList(struct TagItem *); + void DeleteDisAssHandle(APTR); + ULONG DisAssTagList(APTR, + struct TagItem *); + + #ifdef __SASC_60 + APTR CreateDisAssHandleTags(Tag, ...); + ULONG DisAssTags(APTR, + Tag, ...); + #endif + + #endif diff -c2 -d -P -r include_h/powerup/fd/ppc_lib.fd includenew/powerup/fd/ppc_lib.fd *** include_h/powerup/fd/ppc_lib.fd Thu Jan 1 00:00:00 1970 --- includenew/powerup/fd/ppc_lib.fd Wed Feb 14 02:41:13 2001 *************** *** 0 **** --- 1,92 ---- + * "ppc.library" + ##base _PPCLibBase + ##bias 30 + ##public + PPCLoadObject(Name)(a0) + PPCUnLoadObject(Object)(a0) + PPCRunObject(ElfObject,Argument)(a0/a1) + PPCAllocMem(size,attributes)(d0/d1) + PPCFreeMem(Memory,size)(a1,d0) + PPCAllocVec(byteSize,attributes)(d0/d1) + PPCFreeVec(memoryBlock)(a1) + ##private + PPCPrivate0()() + PPCPrivate0a()() + ##public + PPCCreateTask(ElfObject,Tags)(a0/a1) + PPCDeleteTask(TaskObject)(a0) + PPCSignalTask(TaskObject,SignalMask)(a0,d0) + PPCFindTask(Name)(a0) + ##private + PPCPrivate1()() + ##public + PPCRunKernelObject(a,b)(a0/a1) + ##private + PPCPrivate2()() + PPCPrivate3()() + ##public + PPCGetTaskAttrs(TaskObject,Tags)(a0/a1) + PPCGetAttrs(Tags)(a0) + PPCFindTaskObject(TaskObject)(a0) + PPCRunKernelObjectFPU()() + PPCReadLong(Address)(a0) + PPCWriteLong(Address,Value)(a0,d0) + ##private + PPCPrivate4()() + PPCPrivate5()() + ##public + PPCStartTask(TaskObject,Tags)(a0/a1) + PPCStopTask(TaskObject,Tags)(a0/a1) + PPCSetTaskAttrs(TaskObject,Tags)(a0/a1) + PPCGetObjectAttrs(ElfObject,PPCObjectInfo,Tags)(a0/a1/a2) + PPCWriteLongFlush(Address,Value)(a0,d0) + PPCReadWord(Address)(a0) + PPCWriteWord(Address,Value)(a0,d0) + PPCReadByte(Address)(a0) + PPCWriteByte(Address,Value)(a0,d0) + PPCCreatePool(memFlags,puddleSize,threshSize)(d0/d1/d2) + PPCDeletePool(poolHeader)(a0) + PPCAllocPooled(poolHeader,memSize)(a0,d0) + PPCFreePooled(poolHeader,memory,memSize)(a0/a1,d0) + PPCAllocVecPooled(Pool,byteSize)(a0,d0) + PPCFreeVecPooled(Pool,memoryBlock)(a0/a1) + PPCCreatePort(Tags)(a0) + PPCDeletePort(PPCPort)(a0) + PPCObtainPort(Tags)(a0) + PPCReleasePort(PPCPort)(a0) + PPCCreateMessage(PPCPort,Length)(a0,d0) + PPCDeleteMessage(PPCMessage)(a0) + PPCGetMessageAttr(PPCMessage,Attr)(a0,d0) + PPCGetMessage(PPCPort)(a0) + ##private + PPCPrivate6()() + ##public + PPCReplyMessage(PPCMessage)(a0) + PPCSendMessage(PPCPort,PPCMessage,Data,Length,MsgID)(a0/a1/a2,d0/d1) + PPCWaitPort(PPCPort)(a0) + PPCCacheClearE(address,length,caches)(a0,d0/d1) + PPCCacheInvalidE(address,length,caches)(a0,d0/d1) + ##private + PPCPrivate7()() + PPCPrivate8()() + ##public + PPCCreatePortList(PPCPortArray,ExtSignals)(a0,d0) + PPCDeletePortList(PPCPortList)(a0) + PPCAddPortList(PPCPortList,PPCPort)(a0/a1) + PPCRemPortList(PPCPortList,PPCPort)(a0/a1) + PPCWaitPortList(PPCPortList)(a0) + PPCGetPortListAttr(PPCPortList,Attr)(a0,d0) + PPCSetPortListAttr(PPCPortList,Attr,a)(a0,d0) + PPCLoadObjectTagList(Tags)(a0) + PPCSetAttrs(Tags)(a0) + ##private + PPCPrivate9()() + PPCPrivate10()() + ##public + PPCCacheTrashE(address,length,caches)(a0,d0/d1) + ##private + PPCPrivate11()() + PPCPrivate12()() + PPCPrivate13()() + PPCPrivate14()() + ##end diff -c2 -d -P -r include_h/powerup/fd/ppcdiss_lib.fd includenew/powerup/fd/ppcdiss_lib.fd *** include_h/powerup/fd/ppcdiss_lib.fd Thu Jan 1 00:00:00 1970 --- includenew/powerup/fd/ppcdiss_lib.fd Wed Feb 14 02:41:13 2001 *************** *** 0 **** --- 1,7 ---- + * "ppcdiss.library" + ##base _PPCDissLibBase + ##bias 30 + ##public + CreateDisAssHandleTagList(Tags)(a0) + DeleteDisAssHandle(Handle)(a0) + DisAssTagList(Handle,Tags)(a0,a1) diff -c2 -d -P -r include_h/powerup/gcclib/PPCKernel.ldfilter includenew/powerup/gcclib/PPCKernel.ldfilter *** include_h/powerup/gcclib/PPCKernel.ldfilter Thu Jan 1 00:00:00 1970 --- includenew/powerup/gcclib/PPCKernel.ldfilter Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,180 ---- + PPCAllocMem + PPCFreeMem + PPCCallOS + PPCCallM68k + PPCOpen + PPCClose + PPCRead + PPCWrite + PPCSeek + PPCAllocVec + PPCFreeVec + PPCFinishTask + PPCSignal + PPCSignalTask + PPCWait + PPCFindTask + PPCAllocSignal + PPCFreeSignal + PPCCacheFlush + PPCCacheFlushAll + PPCCacheInvalid + PPCSetSignal + PPCRawDoFmt + PPCCreatePool + PPCDeletePool + PPCAllocPooled + PPCFreePooled + PPCAllocVecPooled + PPCFreeVecPooled + PPCCreatePort + PPCDeletePort + PPCObtainPort + PPCReleasePort + PPCCreateMessage + PPCDeleteMessage + PPCGetMessageAttr + PPCGetMessage + PPCReplyMessage + PPCSendMessage + PPCWaitPort + PPCCreatePortList + PPCDeletePortList + PPCAddPortList + PPCRemPortList + PPCWaitPortList + PPCGetPortListAttr + PPCSetPortListAttr + PPCNewList + PPCAddHead + PPCInsert + PPCAddTail + PPCRemove + PPCRemHead + PPCRemTail + PPCEnqueue + PPCFindName + PPCAddHeadSync + PPCInsertSync + PPCAddTailSync + PPCRemoveSync + PPCRemHeadSync + PPCRemTailSync + PPCEnqueueSync + PPCFindNameSync + PPCNextTagItem + PPCFindTagItem + PPCGetTagData + PPCVersion + PPCRevision + PPCReleaseSemaphore + PPCObtainSemaphore + PPCAttemptSemaphore + PPCAttemptSemaphoreShared + PPCObtainSemaphoreShared + PPCCreateSemaphore + PPCDeleteSemaphore + PPCObtainSemaphoreByName + PPCObtainSemaphoreSharedByName + PPCAttemptSemaphoreByName + PPCAttemptSemaphoreSharedByName + PPCGetTaskAttr + PPCSetTaskAttr + PPCGetAttr + PPCAdd64 + PPCAdd64p + PPCSub64 + PPCSub64p + PPCNeg64 + PPCNeg64p + PPCCmp64 + PPCCmp64p + PPCMulu64 + PPCMulu64p + PPCMuls64 + PPCMuls64p + PPCDivu64 + PPCDivu64p + PPCDivs64 + PPCDivs64p + PPCModu64 + PPCModu64p + PPCMods64 + PPCMods64p + PPCLsl64 + PPCLsl64p + PPCLsr64 + PPCLsr64p + PPCAsl64 + PPCAsl64p + PPCAsr64 + PPCAsr64p + PPCOr64 + PPCOr64p + PPCXor64 + PPCXor64p + PPCAnd64 + PPCAnd64p + PPCDivRem64 + PPCDivRem64p + PPCReadByte + PPCReadWord + PPCReadLong + PPCWriteByte + PPCWriteWord + PPCWriteLong + PPCCoerceMethodA + PPCDoMethodA + PPCDoSuperMethodA + PPCkprintf + PPCsprintf + PPCprintf + PPCfprintf + PPCvkprintf + PPCvsprintf + PPCvprintf + PPCvfprintf + PPCCreateTask + PPCOpenLibrary + PPCCloseLibrary + PPCGetLibSymbol + PPCLoadObjectTagList + PPCLoadObject + PPCUnLoadObject + PPCGetObjectAttrs + PPCCreateTimerObject + PPCDeleteTimerObject + PPCSetTimerObject + PPCGetTimerObject + PPCOutput + PPCInput + strlen + strcpy + strcmp + memcpy + __adddi3 + __subdi3 + __negdi2 + __muldi3 + __lmulq + __umoddi3 + __moddi3 + __udivdi3 + __divdi3 + __qdivrem + __ashrdi3 + __ashldi3 + __lshldi3 + __lshrdi3 + __iordi3 + __anddi3 + __xordi3 + __cmpdi2 + __fixdfdi + __fixsfdi + __fixunsdfdi + __fixunssfdi + __floatdidf + __floatdisf + __floatunsdidf + __ucmpdi2 diff -c2 -d -P -r include_h/powerup/gcclib/PPCKernel.ldfilter.txt includenew/powerup/gcclib/PPCKernel.ldfilter.txt *** include_h/powerup/gcclib/PPCKernel.ldfilter.txt Thu Jan 1 00:00:00 1970 --- includenew/powerup/gcclib/PPCKernel.ldfilter.txt Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,2 ---- + use LD with this option + -retain-symbols-file ../../include/powerup/gcclib/PPCKernel.ldfilter diff -c2 -d -P -r include_h/powerup/gcclib/powerup_protos.h includenew/powerup/gcclib/powerup_protos.h *** include_h/powerup/gcclib/powerup_protos.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/gcclib/powerup_protos.h Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,326 ---- + #ifndef POWERUP_GCCLIB_PROTOS_H + #define POWERUP_GCCLIB_PROTOS_H + + #include <dos/dos.h> + #include <powerup/ppclib/interface.h> + #include <powerup/ppclib/object.h> + #include <utility/tagitem.h> + + #ifndef INTUITION_CLASSES_H + #include <intuition/classes.h> + #endif + #ifndef INTUITION_CLASSUSR_H + #include <intuition/classusr.h> + #endif + + #include <stdarg.h> + + APTR PPCAllocMem( unsigned long byteSize, unsigned long requirements ); + void PPCFreeMem( APTR memoryBlock, unsigned long byteSize ); + APTR PPCAllocVec( unsigned long byteSize, unsigned long requirements ); + void PPCFreeVec( APTR memoryBlock); + BPTR PPCOutput(void); + BPTR PPCInput(void); + BPTR PPCOpen( STRPTR name, long accessMode ); + LONG PPCClose( BPTR file ); + LONG PPCRead( BPTR file, APTR buffer, long length ); + LONG PPCWrite( BPTR file, APTR buffer, long length ); + LONG PPCSeek( BPTR file, long position, long offset ); + APTR PPCCreatePool( unsigned long requirements, unsigned long puddleSize, + unsigned long threshSize ); + BOOL PPCDeletePool( APTR poolHeader ); + APTR PPCAllocPooled( APTR poolHeader, unsigned long memSize ); + void PPCFreePooled( APTR poolHeader, APTR memory, unsigned long memSize ); + APTR PPCAllocVecPooled( APTR poolHeader, unsigned long memSize ); + void PPCFreeVecPooled( APTR poolHeader, APTR memory); + ULONG PPCCallOS(struct Caos*); + ULONG PPCCallM68k(struct Caos*); + ULONG PPCSignal(void*,ULONG); + ULONG PPCWait(ULONG); + void *PPCFindTask(char*); + ULONG PPCAllocSignal(ULONG); + void PPCFreeSignal(ULONG); + void PPCCacheFlush(APTR,ULONG); + void PPCCacheFlushAll(void); + void PPCCacheInvalid(APTR,ULONG); + ULONG PPCSetSignal(ULONG,ULONG); + void *PPCCreatePort(struct TagItem*); + BOOL PPCDeletePort(void*); + void *PPCObtainPort(struct TagItem*); + BOOL PPCReleasePort(void*); + void *PPCCreateMessage(void*, + ULONG); + void PPCDeleteMessage(void*); + void *PPCGetMessage(void*); + ULONG PPCGetMessageAttr(void*, + ULONG); + BOOL PPCReplyMessage(void*); + BOOL PPCSendMessage(void*, + void*, + void*, + ULONG, + ULONG); + void *PPCWaitPort(void*); + + void* PPCCreatePortList(void**,ULONG); + void PPCDeletePortList(void*); + BOOL PPCAddPortList(void*, + void*); + void PPCRemPortList(void*, + void*); + void* PPCWaitPortList(void*); + ULONG PPCGetPortListAttr(void*, + ULONG); + void PPCSetPortListAttr(void*, + ULONG, + ULONG); + + #if !defined(__SASC) + int strcmp(const char *, + const char *); + char *strcpy(char *, + const char *); + int strlen(const char *); + #endif + + + /* + * List functions for not shared and shared lists + * + */ + + void PPCInsert(struct List *, + struct Node *, + struct Node *); + void PPCAddHead(struct List *, + struct Node *); + void PPCAddTail(struct List *, + struct Node *); + void PPCRemove(struct Node *); + struct Node* PPCRemHead(struct List *); + struct Node* PPCRemTail(struct List *); + void PPCEnqueue(struct List*, + struct Node*); + struct Node* PPCFindName(struct List*, + char*); + void PPCNewList(struct List *); + + + void PPCInsertSync(struct List *, + struct Node *, + struct Node *); + void PPCAddHeadSync(struct List *, + struct Node *); + void PPCAddTailSync(struct List *, + struct Node *); + void PPCRemoveSync(struct Node *); + struct Node* PPCRemHeadSync(struct List *); + struct Node* PPCRemTailSync(struct List *); + void PPCEnqueueSync(struct List*, + struct Node*); + struct Node* PPCFindNameSync(struct List*, + char*); + + struct TagItem* PPCNextTagItem(struct TagItem**); + struct TagItem* PPCFindTagItem(Tag, + struct TagItem*); + ULONG PPCGetTagData(Tag, + ULONG, + struct TagItem *); + + ULONG PPCVersion(void); + ULONG PPCRevision(void); + + void PPCReleaseSemaphore(void*); + void PPCObtainSemaphore(void*); + LONG PPCAttemptSemaphore(void*); + BOOL PPCAttemptSemaphoreShared(void*); + void PPCObtainSemaphoreShared(void*); + void* PPCCreateSemaphore(struct TagItem*); + void PPCDeleteSemaphore(void*); + void* PPCObtainSemaphoreByName(char*); + void* PPCAttemptSemaphoreByName(char*, + ULONG*); + + APTR PPCRawDoFmt(UBYTE*, + APTR, + void (*)(), + APTR); + + ULONG PPCGetTaskAttr(ULONG); + void PPCSetTaskAttr(ULONG, + ULONG); + + void PPCFinishTask(void); + + ULONG PPCGetAttr(ULONG); + + UBYTE PPCReadByte(UBYTE*); + UWORD PPCReadWord(UWORD*); + ULONG PPCReadLong(ULONG*); + + void PPCWriteByte(UBYTE*,UBYTE); + void PPCWriteWord(UWORD*,UWORD); + void PPCWriteLong(ULONG*,ULONG); + + ULONG PPCCoerceMethodA(struct IClass*, + Object*, + Msg); + + ULONG PPCDoMethodA(Object*, + Msg); + + ULONG PPCDoSuperMethodA(struct IClass*, + Object*, + void*); + + void PPCkprintf(const char*, + ...); + + int PPCprintf(const char*, + ...); + + int PPCsprintf(char*, + const char*, + ...); + + void PPCvkprintf(const char*, + va_list); + + int PPCvprintf(const char*, + va_list); + + int PPCvsprintf(char*, + const char*, + va_list); + + int PPCfprintf(BPTR, + const char *FmtString, + ...); + + int PPCvfprintf(BPTR, + const char*, + va_list); + + void *PPCCreateTask(void*, + void*, + struct TagItem*); + + void *PPCOpenLibrary(void*, + struct TagItem*); + + void PPCCloseLibrary(void*); + void *PPCGetLibSymbol(void*, + char*); + + + void *PPCLoadObjectTagList(struct TagItem*); + void *PPCLoadObject(char*); + void PPCUnLoadObject(void*); + ULONG PPCGetObjectAttrs(void*, + struct PPCObjectInfo*, + struct TagItem*); + + void* PPCCreateTimerObject(struct TagItem*); + void PPCDeleteTimerObject(void*); + + #if !defined(__SASC) + void PPCSetTimerObject(void*, + ULONG, + unsigned long long*); + + void PPCGetTimerObject(void*, + ULONG, + unsigned long long*); + #else + void PPCSetTimerObject(void*, + ULONG, + ULONG*); + + void PPCGetTimerObject(void*, + ULONG, + ULONG*); + #endif + + + #if !defined(__SASC) + + /* GCC 64bit math support + * which is needed by the compiler + */ + + int __cmpdi2(long long, long long); + long long __adddi3(long long, long long); + long long __anddi3(long long, long long); + long long __ashldi3(long long, unsigned int); + long long __ashrdi3(long long, unsigned int); + long long __lshldi3(long long, unsigned int); + long long __lshrdi3(long long, unsigned int); + int __cmpdi2(long long, long long ); + long long __divdi3(long long, long long); + long long __fixdfdi(double); + long long __fixsfdi(float); + unsigned long long __fixunsdfdi(double); + unsigned long long __fixunssfdi(float); + double __floatdidf(long long); + float __floatdisf(long long); + double __floatunsdidf(unsigned long long); + long long __iordi3(long long, long long); + long long __moddi3(long long, long long); + long long __muldi3(long long, long long); + long long __negdi2(long long); + //long long __one_cmpldi2(long long); + unsigned long long __qdivrem(unsigned long long, unsigned long long, unsigned long long *); + long long __subdi3(long long, long long); + int __ucmpdi2(unsigned long long, unsigned long long); + unsigned long long __udivdi3(unsigned long long, unsigned long long ); + unsigned long long __umoddi3(unsigned long long, unsigned long long ); + long long __xordi3(long long, long long); + + long long PPCAdd64(long long,long long); + long long PPCSub64(long long,long long); + long long PPCNeg64(long long); + BOOL PPCCmp64(long long,long long); + long long PPCMulu64(long long,long long); + long long PPCDivu64(long long,long long); + long long PPCMuls64(long long,long long); + long long PPCDivs64(long long,long long); + long long PPCModu64(long long,long long); + long long PPCMods64(long long,long long); + long long PPCLsr64(unsigned long long,unsigned int); + long long PPCAsl64(long long,unsigned int); + long long PPCAsr64(long long,unsigned int); + long long PPCLsr64(unsigned long long,unsigned int); + long long PPCOr64(unsigned long long,unsigned long long); + long long PPCXor64(unsigned long long,unsigned long long); + long long PPCAnd64(unsigned long long,unsigned long long); + long long PPCDivRem64(long long,long long,long long*); + + #else + + /* SAS 64bit support + * for every long long you get a ptr to a long long + */ + void PPCAdd64p(int*,int*); + void PPCSub64p(int*,int*); + void PPCNeg64p(int*); + BOOL PPCCmp64p(int*,int*); + void PPCMulu64p(int*,int*); + void PPCDivu64p(int*,int*); + void PPCMuls64p(int*,int*); + void PPCDivs64p(int*,int*); + void PPCModu64p(int*,int*); + void PPCMods64p(int*,int*); + void PPCLsr64p(unsigned int*,unsigned int); + void PPCAsl64p(int*,unsigned int); + void PPCAsr64p(int*,unsigned int); + void PPCLsl64p(unsigned int*,unsigned int); + void PPCOr64p(unsigned int*,unsigned int*); + void PPCXor64p(unsigned int*,unsigned int*); + void PPCAnd64p(unsigned int*,unsigned int*); + + void PPCDivRem64p(int*,int*,int*); + + #endif + + #endif diff -c2 -d -P -r include_h/powerup/lvo/amigaguide_lvo.h includenew/powerup/lvo/amigaguide_lvo.h *** include_h/powerup/lvo/amigaguide_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/amigaguide_lvo.h Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,42 ---- + #ifndef _LVO_AMIGAGUIDE_LIB_H + #define _LVO_AMIGAGUIDE_LIB_H + + /* + * $VER: amigaguide_lvolib.h (08/03/97) + * + */ + + + #define LVO_amigaguidePrivate1 (-0x1E) + #define LVO_LockAmigaGuideBase (-0x24) + #define LVO_UnlockAmigaGuideBase (-0x2A) + #define LVO_amigaguidePrivate2 (-0x30) + #define LVO_OpenAmigaGuideA (-0x36) + #define LVO_OpenAmigaGuideAsyncA (-0x3C) + #define LVO_CloseAmigaGuide (-0x42) + #define LVO_AmigaGuideSignal (-0x48) + #define LVO_GetAmigaGuideMsg (-0x4E) + #define LVO_ReplyAmigaGuideMsg (-0x54) + #define LVO_SetAmigaGuideContextA (-0x5A) + #define LVO_SendAmigaGuideContextA (-0x60) + #define LVO_SendAmigaGuideCmdA (-0x66) + #define LVO_SetAmigaGuideAttrsA (-0x6C) + #define LVO_GetAmigaGuideAttr (-0x72) + #define LVO_amigaguidePrivate3 (-0x78) + #define LVO_LoadXRef (-0x7E) + #define LVO_ExpungeXRef (-0x84) + #define LVO_AddAmigaGuideHostA (-0x8A) + #define LVO_RemoveAmigaGuideHostA (-0x90) + #define LVO_amigaguidePrivate4 (-0x96) + #define LVO_amigaguidePrivate5 (-0x9C) + #define LVO_amigaguidePrivate6 (-0xA2) + #define LVO_amigaguidePrivate7 (-0xA8) + #define LVO_amigaguidePrivate8 (-0xAE) + #define LVO_amigaguidePrivate9 (-0xB4) + #define LVO_amigaguidePrivate10 (-0xBA) + #define LVO_amigaguidePrivate11 (-0xC0) + #define LVO_amigaguidePrivate12 (-0xC6) + #define LVO_amigaguidePrivate13 (-0xCC) + #define LVO_GetAmigaGuideString (-0xD2) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/asl_lvo.h includenew/powerup/lvo/asl_lvo.h *** include_h/powerup/lvo/asl_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/asl_lvo.h Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,17 ---- + #ifndef _LVO_ASL_LIB_H + #define _LVO_ASL_LIB_H + + /* + * $VER: asl_lvolib.h (08/03/97) + * + */ + + + #define LVO_AllocFileRequest (-0x1E) + #define LVO_FreeFileRequest (-0x24) + #define LVO_RequestFile (-0x2A) + #define LVO_AllocAslRequest (-0x30) + #define LVO_FreeAslRequest (-0x36) + #define LVO_AslRequest (-0x3C) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/battclock_lvo.h includenew/powerup/lvo/battclock_lvo.h *** include_h/powerup/lvo/battclock_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/battclock_lvo.h Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,16 ---- + #ifndef _LVO_BATTCLOCK_LIB_H + #define _LVO_BATTCLOCK_LIB_H + + /* + * $VER: battclock_lvolib.h (08/03/97) + * + */ + + + #define LVO_ResetBattClock (-0x6) + #define LVO_ReadBattClock (-0xC) + #define LVO_WriteBattClock (-0x12) + #define LVO_battclockPrivate1 (-0x18) + #define LVO_battclockPrivate2 (-0x1E) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/battmem_lvo.h includenew/powerup/lvo/battmem_lvo.h *** include_h/powerup/lvo/battmem_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/battmem_lvo.h Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,15 ---- + #ifndef _LVO_BATTMEM_LIB_H + #define _LVO_BATTMEM_LIB_H + + /* + * $VER: battmem_lvolib.h (08/03/97) + * + */ + + + #define LVO_ObtainBattSemaphore (-0x6) + #define LVO_ReleaseBattSemaphore (-0xC) + #define LVO_ReadBattMem (-0x12) + #define LVO_WriteBattMem (-0x18) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/bullet_lvo.h includenew/powerup/lvo/bullet_lvo.h *** include_h/powerup/lvo/bullet_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/bullet_lvo.h Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,17 ---- + #ifndef _LVO_BULLET_LIB_H + #define _LVO_BULLET_LIB_H + + /* + * $VER: bullet_lvolib.h (08/03/97) + * + */ + + + #define LVO_OpenEngine (-0x1E) + #define LVO_CloseEngine (-0x24) + #define LVO_SetInfoA (-0x2A) + #define LVO_ObtainInfoA (-0x30) + #define LVO_ReleaseInfoA (-0x36) + #define LVO_bulletPrivate1 (-0x3C) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/cardres_lvo.h includenew/powerup/lvo/cardres_lvo.h *** include_h/powerup/lvo/cardres_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/cardres_lvo.h Wed Feb 14 02:41:14 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef _LVO_CARDRES_LIB_H + #define _LVO_CARDRES_LIB_H + + /* + * $VER: cardres_lvolib.h (08/03/97) + * + */ + + + #define LVO_OwnCard (-0x6) + #define LVO_ReleaseCard (-0xC) + #define LVO_GetCardMap (-0x12) + #define LVO_BeginCardAccess (-0x18) + #define LVO_EndCardAccess (-0x1E) + #define LVO_ReadCardStatus (-0x24) + #define LVO_CardResetRemove (-0x2A) + #define LVO_CardMiscControl (-0x30) + #define LVO_CardAccessSpeed (-0x36) + #define LVO_CardProgramVoltage (-0x3C) + #define LVO_CardResetCard (-0x42) + #define LVO_CopyTuple (-0x48) + #define LVO_DeviceTuple (-0x4E) + #define LVO_IfAmigaXIP (-0x54) + #define LVO_CardForceChange (-0x5A) + #define LVO_CardChangeCount (-0x60) + #define LVO_CardInterface (-0x66) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/cia_lvo.h includenew/powerup/lvo/cia_lvo.h *** include_h/powerup/lvo/cia_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/cia_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,15 ---- + #ifndef _LVO_CIA_LIB_H + #define _LVO_CIA_LIB_H + + /* + * $VER: cia_lvolib.h (08/03/97) + * + */ + + + #define LVO_AddICRVector (-0x6) + #define LVO_RemICRVector (-0xC) + #define LVO_AbleICR (-0x12) + #define LVO_SetICR (-0x18) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/colorwheel_lvo.h includenew/powerup/lvo/colorwheel_lvo.h *** include_h/powerup/lvo/colorwheel_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/colorwheel_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,13 ---- + #ifndef _LVO_COLORWHEEL_LIB_H + #define _LVO_COLORWHEEL_LIB_H + + /* + * $VER: colorwheel_lvolib.h (08/03/97) + * + */ + + + #define LVO_ConvertHSBToRGB (-0x1E) + #define LVO_ConvertRGBToHSB (-0x24) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/commodities_lvo.h includenew/powerup/lvo/commodities_lvo.h *** include_h/powerup/lvo/commodities_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/commodities_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,46 ---- + #ifndef _LVO_COMMODITIES_LIB_H + #define _LVO_COMMODITIES_LIB_H + + /* + * $VER: commodities_lvolib.h (08/03/97) + * + */ + + + #define LVO_CreateCxObj (-0x1E) + #define LVO_CxBroker (-0x24) + #define LVO_ActivateCxObj (-0x2A) + #define LVO_DeleteCxObj (-0x30) + #define LVO_DeleteCxObjAll (-0x36) + #define LVO_CxObjType (-0x3C) + #define LVO_CxObjError (-0x42) + #define LVO_ClearCxObjError (-0x48) + #define LVO_SetCxObjPri (-0x4E) + #define LVO_AttachCxObj (-0x54) + #define LVO_EnqueueCxObj (-0x5A) + #define LVO_InsertCxObj (-0x60) + #define LVO_RemoveCxObj (-0x66) + #define LVO_commoditiesPrivate1 (-0x6C) + #define LVO_SetTranslate (-0x72) + #define LVO_SetFilter (-0x78) + #define LVO_SetFilterIX (-0x7E) + #define LVO_ParseIX (-0x84) + #define LVO_CxMsgType (-0x8A) + #define LVO_CxMsgData (-0x90) + #define LVO_CxMsgID (-0x96) + #define LVO_DivertCxMsg (-0x9C) + #define LVO_RouteCxMsg (-0xA2) + #define LVO_DisposeCxMsg (-0xA8) + #define LVO_InvertKeyMap (-0xAE) + #define LVO_AddIEvents (-0xB4) + #define LVO_commoditiesPrivate2 (-0xBA) + #define LVO_commoditiesPrivate3 (-0xC0) + #define LVO_commoditiesPrivate4 (-0xC6) + #define LVO_MatchIX (-0xCC) + #define LVO_commoditiesPrivate5 (-0xD2) + #define LVO_commoditiesPrivate6 (-0xD8) + #define LVO_commoditiesPrivate7 (-0xDE) + #define LVO_commoditiesPrivate8 (-0xE4) + #define LVO_commoditiesPrivate9 (-0xEA) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/console_lvo.h includenew/powerup/lvo/console_lvo.h *** include_h/powerup/lvo/console_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/console_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,17 ---- + #ifndef _LVO_CONSOLE_LIB_H + #define _LVO_CONSOLE_LIB_H + + /* + * $VER: console_lvolib.h (08/03/97) + * + */ + + + #define LVO_CDInputHandler (-0x2A) + #define LVO_RawKeyConvert (-0x30) + #define LVO_consolePrivate1 (-0x36) + #define LVO_consolePrivate2 (-0x3C) + #define LVO_consolePrivate3 (-0x42) + #define LVO_consolePrivate4 (-0x48) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/datatypes_lvo.h includenew/powerup/lvo/datatypes_lvo.h *** include_h/powerup/lvo/datatypes_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/datatypes_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,30 ---- + #ifndef _LVO_DATATYPES_LIB_H + #define _LVO_DATATYPES_LIB_H + + /* + * $VER: datatypes_lvolib.h (08/03/97) + * + */ + + + #define LVO_datatypesPrivate1 (-0x1E) + #define LVO_ObtainDataTypeA (-0x24) + #define LVO_ReleaseDataType (-0x2A) + #define LVO_NewDTObjectA (-0x30) + #define LVO_DisposeDTObject (-0x36) + #define LVO_SetDTAttrsA (-0x3C) + #define LVO_GetDTAttrsA (-0x42) + #define LVO_AddDTObject (-0x48) + #define LVO_RefreshDTObjectA (-0x4E) + #define LVO_DoAsyncLayout (-0x54) + #define LVO_DoDTMethodA (-0x5A) + #define LVO_RemoveDTObject (-0x60) + #define LVO_GetDTMethods (-0x66) + #define LVO_GetDTTriggerMethods (-0x6C) + #define LVO_PrintDTObjectA (-0x72) + #define LVO_datatypesPrivate2 (-0x78) + #define LVO_datatypesPrivate3 (-0x7E) + #define LVO_datatypesPrivate4 (-0x84) + #define LVO_GetDTString (-0x8A) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/disk_lvo.h includenew/powerup/lvo/disk_lvo.h *** include_h/powerup/lvo/disk_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/disk_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,17 ---- + #ifndef _LVO_DISK_LIB_H + #define _LVO_DISK_LIB_H + + /* + * $VER: disk_lvolib.h (08/03/97) + * + */ + + + #define LVO_AllocUnit (-0x6) + #define LVO_FreeUnit (-0xC) + #define LVO_GetUnit (-0x12) + #define LVO_GiveUnit (-0x18) + #define LVO_GetUnitID (-0x1E) + #define LVO_ReadUnitID (-0x24) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/diskfont_lvo.h includenew/powerup/lvo/diskfont_lvo.h *** include_h/powerup/lvo/diskfont_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/diskfont_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,16 ---- + #ifndef _LVO_DISKFONT_LIB_H + #define _LVO_DISKFONT_LIB_H + + /* + * $VER: diskfont_lvolib.h (08/03/97) + * + */ + + + #define LVO_OpenDiskFont (-0x1E) + #define LVO_AvailFonts (-0x24) + #define LVO_NewFontContents (-0x2A) + #define LVO_DisposeFontContents (-0x30) + #define LVO_NewScaledDiskFont (-0x36) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/dos_lvo.h includenew/powerup/lvo/dos_lvo.h *** include_h/powerup/lvo/dos_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/dos_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,170 ---- + #ifndef _LVO_DOS_LIB_H + #define _LVO_DOS_LIB_H + + /* + * $VER: dos_lvolib.h (08/03/97) + * + */ + + + #define LVO_Open (-0x1E) + #define LVO_Close (-0x24) + #define LVO_Read (-0x2A) + #define LVO_Write (-0x30) + #define LVO_Input (-0x36) + #define LVO_Output (-0x3C) + #define LVO_Seek (-0x42) + #define LVO_DeleteFile (-0x48) + #define LVO_Rename (-0x4E) + #define LVO_Lock (-0x54) + #define LVO_UnLock (-0x5A) + #define LVO_DupLock (-0x60) + #define LVO_Examine (-0x66) + #define LVO_ExNext (-0x6C) + #define LVO_Info (-0x72) + #define LVO_CreateDir (-0x78) + #define LVO_CurrentDir (-0x7E) + #define LVO_IoErr (-0x84) + #define LVO_CreateProc (-0x8A) + #define LVO_Exit (-0x90) + #define LVO_LoadSeg (-0x96) + #define LVO_UnLoadSeg (-0x9C) + #define LVO_dosPrivate1 (-0xA2) + #define LVO_dosPrivate2 (-0xA8) + #define LVO_DeviceProc (-0xAE) + #define LVO_SetComment (-0xB4) + #define LVO_SetProtection (-0xBA) + #define LVO_DateStamp (-0xC0) + #define LVO_Delay (-0xC6) + #define LVO_WaitForChar (-0xCC) + #define LVO_ParentDir (-0xD2) + #define LVO_IsInteractive (-0xD8) + #define LVO_Execute (-0xDE) + #define LVO_AllocDosObject (-0xE4) + #define LVO_FreeDosObject (-0xEA) + #define LVO_DoPkt (-0xF0) + #define LVO_SendPkt (-0xF6) + #define LVO_WaitPkt (-0xFC) + #define LVO_ReplyPkt (-0x102) + #define LVO_AbortPkt (-0x108) + #define LVO_LockRecord (-0x10E) + #define LVO_LockRecords (-0x114) + #define LVO_UnLockRecord (-0x11A) + #define LVO_UnLockRecords (-0x120) + #define LVO_SelectInput (-0x126) + #define LVO_SelectOutput (-0x12C) + #define LVO_FGetC (-0x132) + #define LVO_FPutC (-0x138) + #define LVO_UnGetC (-0x13E) + #define LVO_FRead (-0x144) + #define LVO_FWrite (-0x14A) + #define LVO_FGets (-0x150) + #define LVO_FPuts (-0x156) + #define LVO_VFWritef (-0x15C) + #define LVO_VFPrintf (-0x162) + #define LVO_Flush (-0x168) + #define LVO_SetVBuf (-0x16E) + #define LVO_DupLockFromFH (-0x174) + #define LVO_OpenFromLock (-0x17A) + #define LVO_ParentOfFH (-0x180) + #define LVO_ExamineFH (-0x186) + #define LVO_SetFileDate (-0x18C) + #define LVO_NameFromLock (-0x192) + #define LVO_NameFromFH (-0x198) + #define LVO_SplitName (-0x19E) + #define LVO_SameLock (-0x1A4) + #define LVO_SetMode (-0x1AA) + #define LVO_ExAll (-0x1B0) + #define LVO_ReadLink (-0x1B6) + #define LVO_MakeLink (-0x1BC) + #define LVO_ChangeMode (-0x1C2) + #define LVO_SetFileSize (-0x1C8) + #define LVO_SetIoErr (-0x1CE) + #define LVO_Fault (-0x1D4) + #define LVO_PrintFault (-0x1DA) + #define LVO_ErrorReport (-0x1E0) + #define LVO_Cli (-0x1EC) + #define LVO_CreateNewProc (-0x1F2) + #define LVO_RunCommand (-0x1F8) + #define LVO_GetConsoleTask (-0x1FE) + #define LVO_SetConsoleTask (-0x204) + #define LVO_GetFileSysTask (-0x20A) + #define LVO_SetFileSysTask (-0x210) + #define LVO_GetArgStr (-0x216) + #define LVO_SetArgStr (-0x21C) + #define LVO_FindCliProc (-0x222) + #define LVO_MaxCli (-0x228) + #define LVO_SetCurrentDirName (-0x22E) + #define LVO_GetCurrentDirName (-0x234) + #define LVO_SetProgramName (-0x23A) + #define LVO_GetProgramName (-0x240) + #define LVO_SetPrompt (-0x246) + #define LVO_GetPrompt (-0x24C) + #define LVO_SetProgramDir (-0x252) + #define LVO_GetProgramDir (-0x258) + #define LVO_SystemTagList (-0x25E) + #define LVO_AssignLock (-0x264) + #define LVO_AssignLate (-0x26A) + #define LVO_AssignPath (-0x270) + #define LVO_AssignAdd (-0x276) + #define LVO_RemAssignList (-0x27C) + #define LVO_GetDeviceProc (-0x282) + #define LVO_FreeDeviceProc (-0x288) + #define LVO_LockDosList (-0x28E) + #define LVO_UnLockDosList (-0x294) + #define LVO_AttemptLockDosList (-0x29A) + #define LVO_RemDosEntry (-0x2A0) + #define LVO_AddDosEntry (-0x2A6) + #define LVO_FindDosEntry (-0x2AC) + #define LVO_NextDosEntry (-0x2B2) + #define LVO_MakeDosEntry (-0x2B8) + #define LVO_FreeDosEntry (-0x2BE) + #define LVO_IsFileSystem (-0x2C4) + #define LVO_Format (-0x2CA) + #define LVO_Relabel (-0x2D0) + #define LVO_Inhibit (-0x2D6) + #define LVO_AddBuffers (-0x2DC) + #define LVO_CompareDates (-0x2E2) + #define LVO_DateToStr (-0x2E8) + #define LVO_StrToDate (-0x2EE) + #define LVO_InternalLoadSeg (-0x2F4) + #define LVO_InternalUnLoadSeg (-0x2FA) + #define LVO_NewLoadSeg (-0x300) + #define LVO_AddSegment (-0x306) + #define LVO_FindSegment (-0x30C) + #define LVO_RemSegment (-0x312) + #define LVO_CheckSignal (-0x318) + #define LVO_ReadArgs (-0x31E) + #define LVO_FindArg (-0x324) + #define LVO_ReadItem (-0x32A) + #define LVO_StrToLong (-0x330) + #define LVO_MatchFirst (-0x336) + #define LVO_MatchNext (-0x33C) + #define LVO_MatchEnd (-0x342) + #define LVO_ParsePattern (-0x348) + #define LVO_MatchPattern (-0x34E) + #define LVO_dosPrivate3 (-0x354) + #define LVO_FreeArgs (-0x35A) + #define LVO_FilePart (-0x366) + #define LVO_PathPart (-0x36C) + #define LVO_AddPart (-0x372) + #define LVO_StartNotify (-0x378) + #define LVO_EndNotify (-0x37E) + #define LVO_SetVar (-0x384) + #define LVO_GetVar (-0x38A) + #define LVO_DeleteVar (-0x390) + #define LVO_FindVar (-0x396) + #define LVO_dosPrivate4 (-0x39C) + #define LVO_CliInitNewcli (-0x3A2) + #define LVO_CliInitRun (-0x3A8) + #define LVO_WriteChars (-0x3AE) + #define LVO_PutStr (-0x3B4) + #define LVO_VPrintf (-0x3BA) + #define LVO_ParsePatternNoCase (-0x3C6) + #define LVO_MatchPatternNoCase (-0x3CC) + #define LVO_dosPrivate5 (-0x3D2) + #define LVO_SameDevice (-0x3D8) + #define LVO_ExAllEnd (-0x3DE) + #define LVO_SetOwner (-0x3E4) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/dtclass_lvo.h includenew/powerup/lvo/dtclass_lvo.h *** include_h/powerup/lvo/dtclass_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/dtclass_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,12 ---- + #ifndef _LVO_DTCLASS_LIB_H + #define _LVO_DTCLASS_LIB_H + + /* + * $VER: dtclass_lvolib.h (08/03/97) + * + */ + + + #define LVO_ObtainEngine (-0x1E) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/exec_lvo.h includenew/powerup/lvo/exec_lvo.h *** include_h/powerup/lvo/exec_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/exec_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,144 ---- + #ifndef _LVO_EXEC_LIB_H + #define _LVO_EXEC_LIB_H + + /* + * $VER: exec_lvolib.h (08/03/97) + * + */ + + + #define LVO_Supervisor (-0x1E) + #define LVO_execPrivate1 (-0x24) + #define LVO_execPrivate2 (-0x2A) + #define LVO_execPrivate3 (-0x30) + #define LVO_execPrivate4 (-0x36) + #define LVO_execPrivate5 (-0x3C) + #define LVO_execPrivate6 (-0x42) + #define LVO_InitCode (-0x48) + #define LVO_InitStruct (-0x4E) + #define LVO_MakeLibrary (-0x54) + #define LVO_MakeFunctions (-0x5A) + #define LVO_FindResident (-0x60) + #define LVO_InitResident (-0x66) + #define LVO_Alert (-0x6C) + #define LVO_Debug (-0x72) + #define LVO_Disable (-0x78) + #define LVO_Enable (-0x7E) + #define LVO_Forbid (-0x84) + #define LVO_Permit (-0x8A) + #define LVO_SetSR (-0x90) + #define LVO_SuperState (-0x96) + #define LVO_UserState (-0x9C) + #define LVO_SetIntVector (-0xA2) + #define LVO_AddIntServer (-0xA8) + #define LVO_RemIntServer (-0xAE) + #define LVO_Cause (-0xB4) + #define LVO_Allocate (-0xBA) + #define LVO_Deallocate (-0xC0) + #define LVO_AllocMem (-0xC6) + #define LVO_AllocAbs (-0xCC) + #define LVO_FreeMem (-0xD2) + #define LVO_AvailMem (-0xD8) + #define LVO_AllocEntry (-0xDE) + #define LVO_FreeEntry (-0xE4) + #define LVO_Insert (-0xEA) + #define LVO_AddHead (-0xF0) + #define LVO_AddTail (-0xF6) + #define LVO_Remove (-0xFC) + #define LVO_RemHead (-0x102) + #define LVO_RemTail (-0x108) + #define LVO_Enqueue (-0x10E) + #define LVO_FindName (-0x114) + #define LVO_AddTask (-0x11A) + #define LVO_RemTask (-0x120) + #define LVO_FindTask (-0x126) + #define LVO_SetTaskPri (-0x12C) + #define LVO_SetSignal (-0x132) + #define LVO_SetExcept (-0x138) + #define LVO_Wait (-0x13E) + #define LVO_Signal (-0x144) + #define LVO_AllocSignal (-0x14A) + #define LVO_FreeSignal (-0x150) + #define LVO_AllocTrap (-0x156) + #define LVO_FreeTrap (-0x15C) + #define LVO_AddPort (-0x162) + #define LVO_RemPort (-0x168) + #define LVO_PutMsg (-0x16E) + #define LVO_GetMsg (-0x174) + #define LVO_ReplyMsg (-0x17A) + #define LVO_WaitPort (-0x180) + #define LVO_FindPort (-0x186) + #define LVO_AddLibrary (-0x18C) + #define LVO_RemLibrary (-0x192) + #define LVO_OldOpenLibrary (-0x198) + #define LVO_CloseLibrary (-0x19E) + #define LVO_SetFunction (-0x1A4) + #define LVO_SumLibrary (-0x1AA) + #define LVO_AddDevice (-0x1B0) + #define LVO_RemDevice (-0x1B6) + #define LVO_OpenDevice (-0x1BC) + #define LVO_CloseDevice (-0x1C2) + #define LVO_DoIO (-0x1C8) + #define LVO_SendIO (-0x1CE) + #define LVO_CheckIO (-0x1D4) + #define LVO_WaitIO (-0x1DA) + #define LVO_AbortIO (-0x1E0) + #define LVO_AddResource (-0x1E6) + #define LVO_RemResource (-0x1EC) + #define LVO_OpenResource (-0x1F2) + #define LVO_execPrivate7 (-0x1F8) + #define LVO_execPrivate8 (-0x1FE) + #define LVO_execPrivate9 (-0x204) + #define LVO_RawDoFmt (-0x20A) + #define LVO_GetCC (-0x210) + #define LVO_TypeOfMem (-0x216) + #define LVO_Procure (-0x21C) + #define LVO_Vacate (-0x222) + #define LVO_OpenLibrary (-0x228) + #define LVO_InitSemaphore (-0x22E) + #define LVO_ObtainSemaphore (-0x234) + #define LVO_ReleaseSemaphore (-0x23A) + #define LVO_AttemptSemaphore (-0x240) + #define LVO_ObtainSemaphoreList (-0x246) + #define LVO_ReleaseSemaphoreList (-0x24C) + #define LVO_FindSemaphore (-0x252) + #define LVO_AddSemaphore (-0x258) + #define LVO_RemSemaphore (-0x25E) + #define LVO_SumKickData (-0x264) + #define LVO_AddMemList (-0x26A) + #define LVO_CopyMem (-0x270) + #define LVO_CopyMemQuick (-0x276) + #define LVO_CacheClearU (-0x27C) + #define LVO_CacheClearE (-0x282) + #define LVO_CacheControl (-0x288) + #define LVO_CreateIORequest (-0x28E) + #define LVO_DeleteIORequest (-0x294) + #define LVO_CreateMsgPort (-0x29A) + #define LVO_DeleteMsgPort (-0x2A0) + #define LVO_ObtainSemaphoreShared (-0x2A6) + #define LVO_AllocVec (-0x2AC) + #define LVO_FreeVec (-0x2B2) + #define LVO_CreatePool (-0x2B8) + #define LVO_DeletePool (-0x2BE) + #define LVO_AllocPooled (-0x2C4) + #define LVO_FreePooled (-0x2CA) + #define LVO_AttemptSemaphoreShared (-0x2D0) + #define LVO_ColdReboot (-0x2D6) + #define LVO_StackSwap (-0x2DC) + #define LVO_ChildFree (-0x2E2) + #define LVO_ChildOrphan (-0x2E8) + #define LVO_ChildStatus (-0x2EE) + #define LVO_ChildWait (-0x2F4) + #define LVO_CachePreDMA (-0x2FA) + #define LVO_CachePostDMA (-0x300) + #define LVO_AddMemHandler (-0x306) + #define LVO_RemMemHandler (-0x30C) + #define LVO_ObtainQuickVector (-0x312) + #define LVO_execPrivate10 (-0x318) + #define LVO_execPrivate11 (-0x31E) + #define LVO_execPrivate12 (-0x324) + #define LVO_execPrivate13 (-0x32A) + #define LVO_execPrivate14 (-0x330) + #define LVO_execPrivate15 (-0x336) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/expansion_lvo.h includenew/powerup/lvo/expansion_lvo.h *** include_h/powerup/lvo/expansion_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/expansion_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,34 ---- + #ifndef _LVO_EXPANSION_LIB_H + #define _LVO_EXPANSION_LIB_H + + /* + * $VER: expansion_lvolib.h (08/03/97) + * + */ + + + #define LVO_AddConfigDev (-0x1E) + #define LVO_AddBootNode (-0x24) + #define LVO_AllocBoardMem (-0x2A) + #define LVO_AllocConfigDev (-0x30) + #define LVO_AllocExpansionMem (-0x36) + #define LVO_ConfigBoard (-0x3C) + #define LVO_ConfigChain (-0x42) + #define LVO_FindConfigDev (-0x48) + #define LVO_FreeBoardMem (-0x4E) + #define LVO_FreeConfigDev (-0x54) + #define LVO_FreeExpansionMem (-0x5A) + #define LVO_ReadExpansionByte (-0x60) + #define LVO_ReadExpansionRom (-0x66) + #define LVO_RemConfigDev (-0x6C) + #define LVO_WriteExpansionByte (-0x72) + #define LVO_ObtainConfigBinding (-0x78) + #define LVO_ReleaseConfigBinding (-0x7E) + #define LVO_SetCurrentBinding (-0x84) + #define LVO_GetCurrentBinding (-0x8A) + #define LVO_MakeDosNode (-0x90) + #define LVO_AddDosNode (-0x96) + #define LVO_expansionPrivate1 (-0x9C) + #define LVO_expansionPrivate2 (-0xA2) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/gadtools_lvo.h includenew/powerup/lvo/gadtools_lvo.h *** include_h/powerup/lvo/gadtools_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/gadtools_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,36 ---- + #ifndef _LVO_GADTOOLS_LIB_H + #define _LVO_GADTOOLS_LIB_H + + /* + * $VER: gadtools_lvolib.h (08/03/97) + * + */ + + + #define LVO_CreateGadgetA (-0x1E) + #define LVO_FreeGadgets (-0x24) + #define LVO_GT_SetGadgetAttrsA (-0x2A) + #define LVO_CreateMenusA (-0x30) + #define LVO_FreeMenus (-0x36) + #define LVO_LayoutMenuItemsA (-0x3C) + #define LVO_LayoutMenusA (-0x42) + #define LVO_GT_GetIMsg (-0x48) + #define LVO_GT_ReplyIMsg (-0x4E) + #define LVO_GT_RefreshWindow (-0x54) + #define LVO_GT_BeginRefresh (-0x5A) + #define LVO_GT_EndRefresh (-0x60) + #define LVO_GT_FilterIMsg (-0x66) + #define LVO_GT_PostFilterIMsg (-0x6C) + #define LVO_CreateContext (-0x72) + #define LVO_DrawBevelBoxA (-0x78) + #define LVO_GetVisualInfoA (-0x7E) + #define LVO_FreeVisualInfo (-0x84) + #define LVO_gadtoolsPrivate1 (-0x8A) + #define LVO_gadtoolsPrivate2 (-0x90) + #define LVO_gadtoolsPrivate3 (-0x96) + #define LVO_gadtoolsPrivate4 (-0x9C) + #define LVO_gadtoolsPrivate5 (-0xA2) + #define LVO_gadtoolsPrivate6 (-0xA8) + #define LVO_GT_GetGadgetAttrsA (-0xAE) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/graphics_lvo.h includenew/powerup/lvo/graphics_lvo.h *** include_h/powerup/lvo/graphics_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/graphics_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,183 ---- + #ifndef _LVO_GRAPHICS_LIB_H + #define _LVO_GRAPHICS_LIB_H + + /* + * $VER: graphics_lvolib.h (08/03/97) + * + */ + + + #define LVO_BltBitMap (-0x1E) + #define LVO_BltTemplate (-0x24) + #define LVO_ClearEOL (-0x2A) + #define LVO_ClearScreen (-0x30) + #define LVO_TextLength (-0x36) + #define LVO_Text (-0x3C) + #define LVO_SetFont (-0x42) + #define LVO_OpenFont (-0x48) + #define LVO_CloseFont (-0x4E) + #define LVO_AskSoftStyle (-0x54) + #define LVO_SetSoftStyle (-0x5A) + #define LVO_AddBob (-0x60) + #define LVO_AddVSprite (-0x66) + #define LVO_DoCollision (-0x6C) + #define LVO_DrawGList (-0x72) + #define LVO_InitGels (-0x78) + #define LVO_InitMasks (-0x7E) + #define LVO_RemIBob (-0x84) + #define LVO_RemVSprite (-0x8A) + #define LVO_SetCollision (-0x90) + #define LVO_SortGList (-0x96) + #define LVO_AddAnimOb (-0x9C) + #define LVO_Animate (-0xA2) + #define LVO_GetGBuffers (-0xA8) + #define LVO_InitGMasks (-0xAE) + #define LVO_DrawEllipse (-0xB4) + #define LVO_AreaEllipse (-0xBA) + #define LVO_LoadRGB4 (-0xC0) + #define LVO_InitRastPort (-0xC6) + #define LVO_InitVPort (-0xCC) + #define LVO_MrgCop (-0xD2) + #define LVO_MakeVPort (-0xD8) + #define LVO_LoadView (-0xDE) + #define LVO_WaitBlit (-0xE4) + #define LVO_SetRast (-0xEA) + #define LVO_Move (-0xF0) + #define LVO_Draw (-0xF6) + #define LVO_AreaMove (-0xFC) + #define LVO_AreaDraw (-0x102) + #define LVO_AreaEnd (-0x108) + #define LVO_WaitTOF (-0x10E) + #define LVO_QBlit (-0x114) + #define LVO_InitArea (-0x11A) + #define LVO_SetRGB4 (-0x120) + #define LVO_QBSBlit (-0x126) + #define LVO_BltClear (-0x12C) + #define LVO_RectFill (-0x132) + #define LVO_BltPattern (-0x138) + #define LVO_ReadPixel (-0x13E) + #define LVO_WritePixel (-0x144) + #define LVO_Flood (-0x14A) + #define LVO_PolyDraw (-0x150) + #define LVO_SetAPen (-0x156) + #define LVO_SetBPen (-0x15C) + #define LVO_SetDrMd (-0x162) + #define LVO_InitView (-0x168) + #define LVO_CBump (-0x16E) + #define LVO_CMove (-0x174) + #define LVO_CWait (-0x17A) + #define LVO_VBeamPos (-0x180) + #define LVO_InitBitMap (-0x186) + #define LVO_ScrollRaster (-0x18C) + #define LVO_WaitBOVP (-0x192) + #define LVO_GetSprite (-0x198) + #define LVO_FreeSprite (-0x19E) + #define LVO_ChangeSprite (-0x1A4) + #define LVO_MoveSprite (-0x1AA) + #define LVO_LockLayerRom (-0x1B0) + #define LVO_UnlockLayerRom (-0x1B6) + #define LVO_SyncSBitMap (-0x1BC) + #define LVO_CopySBitMap (-0x1C2) + #define LVO_OwnBlitter (-0x1C8) + #define LVO_DisownBlitter (-0x1CE) + #define LVO_InitTmpRas (-0x1D4) + #define LVO_AskFont (-0x1DA) + #define LVO_AddFont (-0x1E0) + #define LVO_RemFont (-0x1E6) + #define LVO_AllocRaster (-0x1EC) + #define LVO_FreeRaster (-0x1F2) + #define LVO_AndRectRegion (-0x1F8) + #define LVO_OrRectRegion (-0x1FE) + #define LVO_NewRegion (-0x204) + #define LVO_ClearRectRegion (-0x20A) + #define LVO_ClearRegion (-0x210) + #define LVO_DisposeRegion (-0x216) + #define LVO_FreeVPortCopLists (-0x21C) + #define LVO_FreeCopList (-0x222) + #define LVO_ClipBlit (-0x228) + #define LVO_XorRectRegion (-0x22E) + #define LVO_FreeCprList (-0x234) + #define LVO_GetColorMap (-0x23A) + #define LVO_FreeColorMap (-0x240) + #define LVO_GetRGB4 (-0x246) + #define LVO_ScrollVPort (-0x24C) + #define LVO_UCopperListInit (-0x252) + #define LVO_FreeGBuffers (-0x258) + #define LVO_BltBitMapRastPort (-0x25E) + #define LVO_OrRegionRegion (-0x264) + #define LVO_XorRegionRegion (-0x26A) + #define LVO_AndRegionRegion (-0x270) + #define LVO_SetRGB4CM (-0x276) + #define LVO_BltMaskBitMapRastPort (-0x27C) + #define LVO_graphicsPrivate1 (-0x282) + #define LVO_graphicsPrivate2 (-0x288) + #define LVO_AttemptLockLayerRom (-0x28E) + #define LVO_GfxNew (-0x294) + #define LVO_GfxFree (-0x29A) + #define LVO_GfxAssociate (-0x2A0) + #define LVO_BitMapScale (-0x2A6) + #define LVO_ScalerDiv (-0x2AC) + #define LVO_TextExtent (-0x2B2) + #define LVO_TextFit (-0x2B8) + #define LVO_GfxLookUp (-0x2BE) + #define LVO_VideoControl (-0x2C4) + #define LVO_OpenMonitor (-0x2CA) + #define LVO_CloseMonitor (-0x2D0) + #define LVO_FindDisplayInfo (-0x2D6) + #define LVO_NextDisplayInfo (-0x2DC) + #define LVO_graphicsPrivate3 (-0x2E2) + #define LVO_graphicsPrivate4 (-0x2E8) + #define LVO_graphicsPrivate5 (-0x2EE) + #define LVO_GetDisplayInfoData (-0x2F4) + #define LVO_FontExtent (-0x2FA) + #define LVO_ReadPixelLine8 (-0x300) + #define LVO_WritePixelLine8 (-0x306) + #define LVO_ReadPixelArray8 (-0x30C) + #define LVO_WritePixelArray8 (-0x312) + #define LVO_GetVPModeID (-0x318) + #define LVO_ModeNotAvailable (-0x31E) + #define LVO_WeighTAMatch (-0x324) + #define LVO_EraseRect (-0x32A) + #define LVO_ExtendFont (-0x330) + #define LVO_StripFont (-0x336) + #define LVO_CalcIVG (-0x33C) + #define LVO_AttachPalExtra (-0x342) + #define LVO_ObtainBestPenA (-0x348) + #define LVO_graphicsPrivate6 (-0x34E) + #define LVO_SetRGB32 (-0x354) + #define LVO_GetAPen (-0x35A) + #define LVO_GetBPen (-0x360) + #define LVO_GetDrMd (-0x366) + #define LVO_GetOutlinePen (-0x36C) + #define LVO_LoadRGB32 (-0x372) + #define LVO_SetChipRev (-0x378) + #define LVO_SetABPenDrMd (-0x37E) + #define LVO_GetRGB32 (-0x384) + #define LVO_graphicsPrivate7 (-0x38A) + #define LVO_graphicsPrivate8 (-0x390) + #define LVO_AllocBitMap (-0x396) + #define LVO_FreeBitMap (-0x39C) + #define LVO_GetExtSpriteA (-0x3A2) + #define LVO_CoerceMode (-0x3A8) + #define LVO_ChangeVPBitMap (-0x3AE) + #define LVO_ReleasePen (-0x3B4) + #define LVO_ObtainPen (-0x3BA) + #define LVO_GetBitMapAttr (-0x3C0) + #define LVO_AllocDBufInfo (-0x3C6) + #define LVO_FreeDBufInfo (-0x3CC) + #define LVO_SetOutlinePen (-0x3D2) + #define LVO_SetWriteMask (-0x3D8) + #define LVO_SetMaxPen (-0x3DE) + #define LVO_SetRGB32CM (-0x3E4) + #define LVO_ScrollRasterBF (-0x3EA) + #define LVO_FindColor (-0x3F0) + #define LVO_graphicsPrivate9 (-0x3F6) + #define LVO_AllocSpriteDataA (-0x3FC) + #define LVO_ChangeExtSpriteA (-0x402) + #define LVO_FreeSpriteData (-0x408) + #define LVO_SetRPAttrsA (-0x40E) + #define LVO_GetRPAttrsA (-0x414) + #define LVO_BestModeIDA (-0x41A) + #define LVO_WriteChunkyPixels (-0x420) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/icon_lvo.h includenew/powerup/lvo/icon_lvo.h *** include_h/powerup/lvo/icon_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/icon_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,30 ---- + #ifndef _LVO_ICON_LIB_H + #define _LVO_ICON_LIB_H + + /* + * $VER: icon_lvolib.h (08/03/97) + * + */ + + + #define LVO_iconPrivate1 (-0x1E) + #define LVO_iconPrivate2 (-0x24) + #define LVO_iconPrivate3 (-0x2A) + #define LVO_iconPrivate4 (-0x30) + #define LVO_FreeFreeList (-0x36) + #define LVO_iconPrivate5 (-0x3C) + #define LVO_iconPrivate6 (-0x42) + #define LVO_AddFreeList (-0x48) + #define LVO_GetDiskObject (-0x4E) + #define LVO_PutDiskObject (-0x54) + #define LVO_FreeDiskObject (-0x5A) + #define LVO_FindToolType (-0x60) + #define LVO_MatchToolValue (-0x66) + #define LVO_BumpRevision (-0x6C) + #define LVO_iconPrivate7 (-0x72) + #define LVO_GetDefDiskObject (-0x78) + #define LVO_PutDefDiskObject (-0x7E) + #define LVO_GetDiskObjectNew (-0x84) + #define LVO_DeleteDiskObject (-0x8A) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/iff_lvo.h includenew/powerup/lvo/iff_lvo.h *** include_h/powerup/lvo/iff_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/iff_lvo.h Wed Feb 14 02:41:15 2001 *************** *** 0 **** --- 1,30 ---- + #ifndef _LVO_IFF_LIB_H + #define _LVO_IFF_LIB_H + + /* + * $VER: iff_lvolib.h (08/03/97) + * + */ + + + #define LVO_IFFL_OldOpenIFF (-0x1E) + #define LVO_IFFL_CloseIFF (-0x24) + #define LVO_IFFL_FindChunk (-0x2A) + #define LVO_IFFL_GetBMHD (-0x30) + #define LVO_IFFL_GetColorTab (-0x36) + #define LVO_IFFL_DecodePic (-0x3C) + #define LVO_IFFL_SaveBitMap (-0x42) + #define LVO_IFFL_SaveClip (-0x48) + #define LVO_IFFL_IFFError (-0x4E) + #define LVO_IFFL_GetViewModes (-0x54) + #define LVO_IFFL_OldNewOpenIFF (-0x5A) + #define LVO_IFFL_ModifyFrame (-0x60) + #define LVO_IFFL_OldPPOpenIFF (-0x66) + #define LVO_IFFL_OpenIFF (-0x78) + #define LVO_IFFL_PushChunk (-0x7E) + #define LVO_IFFL_PopChunk (-0x84) + #define LVO_IFFL_WriteChunkBytes (-0x8A) + #define LVO_IFFL_CompressBlock (-0x90) + #define LVO_IFFL_DecompressBlock (-0x96) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/iffparse_lvo.h includenew/powerup/lvo/iffparse_lvo.h *** include_h/powerup/lvo/iffparse_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/iffparse_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,51 ---- + #ifndef _LVO_IFFPARSE_LIB_H + #define _LVO_IFFPARSE_LIB_H + + /* + * $VER: iffparse_lvolib.h (08/03/97) + * + */ + + + #define LVO_AllocIFF (-0x1E) + #define LVO_OpenIFF (-0x24) + #define LVO_ParseIFF (-0x2A) + #define LVO_CloseIFF (-0x30) + #define LVO_FreeIFF (-0x36) + #define LVO_ReadChunkBytes (-0x3C) + #define LVO_WriteChunkBytes (-0x42) + #define LVO_ReadChunkRecords (-0x48) + #define LVO_WriteChunkRecords (-0x4E) + #define LVO_PushChunk (-0x54) + #define LVO_PopChunk (-0x5A) + #define LVO_EntryHandler (-0x66) + #define LVO_ExitHandler (-0x6C) + #define LVO_PropChunk (-0x72) + #define LVO_PropChunks (-0x78) + #define LVO_StopChunk (-0x7E) + #define LVO_StopChunks (-0x84) + #define LVO_CollectionChunk (-0x8A) + #define LVO_CollectionChunks (-0x90) + #define LVO_StopOnExit (-0x96) + #define LVO_FindProp (-0x9C) + #define LVO_FindCollection (-0xA2) + #define LVO_FindPropContext (-0xA8) + #define LVO_CurrentChunk (-0xAE) + #define LVO_ParentChunk (-0xB4) + #define LVO_AllocLocalItem (-0xBA) + #define LVO_LocalItemData (-0xC0) + #define LVO_SetLocalItemPurge (-0xC6) + #define LVO_FreeLocalItem (-0xCC) + #define LVO_FindLocalItem (-0xD2) + #define LVO_StoreLocalItem (-0xD8) + #define LVO_StoreItemInContext (-0xDE) + #define LVO_InitIFF (-0xE4) + #define LVO_InitIFFasDOS (-0xEA) + #define LVO_InitIFFasClip (-0xF0) + #define LVO_OpenClipboard (-0xF6) + #define LVO_CloseClipboard (-0xFC) + #define LVO_GoodID (-0x102) + #define LVO_GoodType (-0x108) + #define LVO_IDtoStr (-0x10E) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/input_lvo.h includenew/powerup/lvo/input_lvo.h *** include_h/powerup/lvo/input_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/input_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,12 ---- + #ifndef _LVO_INPUT_LIB_H + #define _LVO_INPUT_LIB_H + + /* + * $VER: input_lvolib.h (08/03/97) + * + */ + + + #define LVO_PeekQualifier (-0x2A) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/intuition_lvo.h includenew/powerup/lvo/intuition_lvo.h *** include_h/powerup/lvo/intuition_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/intuition_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,139 ---- + #ifndef _LVO_INTUITION_LIB_H + #define _LVO_INTUITION_LIB_H + + /* + * $VER: intuition_lvolib.h (08/03/97) + * + */ + + + #define LVO_OpenIntuition (-0x1E) + #define LVO_Intuition (-0x24) + #define LVO_AddGadget (-0x2A) + #define LVO_ClearDMRequest (-0x30) + #define LVO_ClearMenuStrip (-0x36) + #define LVO_ClearPointer (-0x3C) + #define LVO_CloseScreen (-0x42) + #define LVO_CloseWindow (-0x48) + #define LVO_CloseWorkBench (-0x4E) + #define LVO_CurrentTime (-0x54) + #define LVO_DisplayAlert (-0x5A) + #define LVO_DisplayBeep (-0x60) + #define LVO_DoubleClick (-0x66) + #define LVO_DrawBorder (-0x6C) + #define LVO_DrawImage (-0x72) + #define LVO_EndRequest (-0x78) + #define LVO_GetDefPrefs (-0x7E) + #define LVO_GetPrefs (-0x84) + #define LVO_InitRequester (-0x8A) + #define LVO_ItemAddress (-0x90) + #define LVO_ModifyIDCMP (-0x96) + #define LVO_ModifyProp (-0x9C) + #define LVO_MoveScreen (-0xA2) + #define LVO_MoveWindow (-0xA8) + #define LVO_OffGadget (-0xAE) + #define LVO_OffMenu (-0xB4) + #define LVO_OnGadget (-0xBA) + #define LVO_OnMenu (-0xC0) + #define LVO_OpenScreen (-0xC6) + #define LVO_OpenWindow (-0xCC) + #define LVO_OpenWorkBench (-0xD2) + #define LVO_PrintIText (-0xD8) + #define LVO_RefreshGadgets (-0xDE) + #define LVO_RemoveGadget (-0xE4) + #define LVO_ReportMouse (-0xEA) + #define LVO_Request (-0xF0) + #define LVO_ScreenToBack (-0xF6) + #define LVO_ScreenToFront (-0xFC) + #define LVO_SetDMRequest (-0x102) + #define LVO_SetMenuStrip (-0x108) + #define LVO_SetPointer (-0x10E) + #define LVO_SetWindowTitles (-0x114) + #define LVO_ShowTitle (-0x11A) + #define LVO_SizeWindow (-0x120) + #define LVO_ViewAddress (-0x126) + #define LVO_ViewPortAddress (-0x12C) + #define LVO_WindowToBack (-0x132) + #define LVO_WindowToFront (-0x138) + #define LVO_WindowLimits (-0x13E) + #define LVO_SetPrefs (-0x144) + #define LVO_IntuiTextLength (-0x14A) + #define LVO_WBenchToBack (-0x150) + #define LVO_WBenchToFront (-0x156) + #define LVO_AutoRequest (-0x15C) + #define LVO_BeginRefresh (-0x162) + #define LVO_BuildSysRequest (-0x168) + #define LVO_EndRefresh (-0x16E) + #define LVO_FreeSysRequest (-0x174) + #define LVO_MakeScreen (-0x17A) + #define LVO_RemakeDisplay (-0x180) + #define LVO_RethinkDisplay (-0x186) + #define LVO_AllocRemember (-0x18C) + #define LVO_AlohaWorkbench (-0x192) + #define LVO_FreeRemember (-0x198) + #define LVO_LockIBase (-0x19E) + #define LVO_UnlockIBase (-0x1A4) + #define LVO_GetScreenData (-0x1AA) + #define LVO_RefreshGList (-0x1B0) + #define LVO_AddGList (-0x1B6) + #define LVO_RemoveGList (-0x1BC) + #define LVO_ActivateWindow (-0x1C2) + #define LVO_RefreshWindowFrame (-0x1C8) + #define LVO_ActivateGadget (-0x1CE) + #define LVO_NewModifyProp (-0x1D4) + #define LVO_QueryOverscan (-0x1DA) + #define LVO_MoveWindowInFrontOf (-0x1E0) + #define LVO_ChangeWindowBox (-0x1E6) + #define LVO_SetEditHook (-0x1EC) + #define LVO_SetMouseQueue (-0x1F2) + #define LVO_ZipWindow (-0x1F8) + #define LVO_LockPubScreen (-0x1FE) + #define LVO_UnlockPubScreen (-0x204) + #define LVO_LockPubScreenList (-0x20A) + #define LVO_UnlockPubScreenList (-0x210) + #define LVO_NextPubScreen (-0x216) + #define LVO_SetDefaultPubScreen (-0x21C) + #define LVO_SetPubScreenModes (-0x222) + #define LVO_PubScreenStatus (-0x228) + #define LVO_ObtainGIRPort (-0x22E) + #define LVO_ReleaseGIRPort (-0x234) + #define LVO_GadgetMouse (-0x23A) + #define LVO_intuitionPrivate1 (-0x240) + #define LVO_GetDefaultPubScreen (-0x246) + #define LVO_EasyRequestArgs (-0x24C) + #define LVO_BuildEasyRequestArgs (-0x252) + #define LVO_SysReqHandler (-0x258) + #define LVO_OpenWindowTagList (-0x25E) + #define LVO_OpenScreenTagList (-0x264) + #define LVO_DrawImageState (-0x26A) + #define LVO_PointInImage (-0x270) + #define LVO_EraseImage (-0x276) + #define LVO_NewObjectA (-0x27C) + #define LVO_DisposeObject (-0x282) + #define LVO_SetAttrsA (-0x288) + #define LVO_GetAttr (-0x28E) + #define LVO_SetGadgetAttrsA (-0x294) + #define LVO_NextObject (-0x29A) + #define LVO_intuitionPrivate2 (-0x2A0) + #define LVO_MakeClass (-0x2A6) + #define LVO_AddClass (-0x2AC) + #define LVO_GetScreenDrawInfo (-0x2B2) + #define LVO_FreeScreenDrawInfo (-0x2B8) + #define LVO_ResetMenuStrip (-0x2BE) + #define LVO_RemoveClass (-0x2C4) + #define LVO_FreeClass (-0x2CA) + #define LVO_intuitionPrivate3 (-0x2D0) + #define LVO_intuitionPrivate4 (-0x2D6) + #define LVO_AllocScreenBuffer (-0x300) + #define LVO_FreeScreenBuffer (-0x306) + #define LVO_ChangeScreenBuffer (-0x30C) + #define LVO_ScreenDepth (-0x312) + #define LVO_ScreenPosition (-0x318) + #define LVO_ScrollWindowRaster (-0x31E) + #define LVO_LendMenus (-0x324) + #define LVO_DoGadgetMethodA (-0x32A) + #define LVO_SetWindowPointerA (-0x330) + #define LVO_TimedDisplayAlert (-0x336) + #define LVO_HelpControl (-0x33C) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/keymap_lvo.h includenew/powerup/lvo/keymap_lvo.h *** include_h/powerup/lvo/keymap_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/keymap_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,15 ---- + #ifndef _LVO_KEYMAP_LIB_H + #define _LVO_KEYMAP_LIB_H + + /* + * $VER: keymap_lvolib.h (08/03/97) + * + */ + + + #define LVO_SetKeyMapDefault (-0x1E) + #define LVO_AskKeyMapDefault (-0x24) + #define LVO_MapRawKey (-0x2A) + #define LVO_MapANSI (-0x30) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/layers_lvo.h includenew/powerup/lvo/layers_lvo.h *** include_h/powerup/lvo/layers_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/layers_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,43 ---- + #ifndef _LVO_LAYERS_LIB_H + #define _LVO_LAYERS_LIB_H + + /* + * $VER: layers_lvolib.h (08/03/97) + * + */ + + + #define LVO_InitLayers (-0x1E) + #define LVO_CreateUpfrontLayer (-0x24) + #define LVO_CreateBehindLayer (-0x2A) + #define LVO_UpfrontLayer (-0x30) + #define LVO_BehindLayer (-0x36) + #define LVO_MoveLayer (-0x3C) + #define LVO_SizeLayer (-0x42) + #define LVO_ScrollLayer (-0x48) + #define LVO_BeginUpdate (-0x4E) + #define LVO_EndUpdate (-0x54) + #define LVO_DeleteLayer (-0x5A) + #define LVO_LockLayer (-0x60) + #define LVO_UnlockLayer (-0x66) + #define LVO_LockLayers (-0x6C) + #define LVO_UnlockLayers (-0x72) + #define LVO_LockLayerInfo (-0x78) + #define LVO_SwapBitsRastPortClipRect (-0x7E) + #define LVO_WhichLayer (-0x84) + #define LVO_UnlockLayerInfo (-0x8A) + #define LVO_NewLayerInfo (-0x90) + #define LVO_DisposeLayerInfo (-0x96) + #define LVO_FattenLayerInfo (-0x9C) + #define LVO_ThinLayerInfo (-0xA2) + #define LVO_MoveLayerInFrontOf (-0xA8) + #define LVO_InstallClipRegion (-0xAE) + #define LVO_MoveSizeLayer (-0xB4) + #define LVO_CreateUpfrontHookLayer (-0xBA) + #define LVO_CreateBehindHookLayer (-0xC0) + #define LVO_InstallLayerHook (-0xC6) + #define LVO_InstallLayerInfoHook (-0xCC) + #define LVO_SortLayerCR (-0xD2) + #define LVO_DoHookClipRects (-0xD8) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/locale_lvo.h includenew/powerup/lvo/locale_lvo.h *** include_h/powerup/lvo/locale_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/locale_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,43 ---- + #ifndef _LVO_LOCALE_LIB_H + #define _LVO_LOCALE_LIB_H + + /* + * $VER: locale_lvolib.h (08/03/97) + * + */ + + + #define LVO_localePrivate1 (-0x1E) + #define LVO_CloseCatalog (-0x24) + #define LVO_CloseLocale (-0x2A) + #define LVO_ConvToLower (-0x30) + #define LVO_ConvToUpper (-0x36) + #define LVO_FormatDate (-0x3C) + #define LVO_FormatString (-0x42) + #define LVO_GetCatalogStr (-0x48) + #define LVO_GetLocaleStr (-0x4E) + #define LVO_IsAlNum (-0x54) + #define LVO_IsAlpha (-0x5A) + #define LVO_IsCntrl (-0x60) + #define LVO_IsDigit (-0x66) + #define LVO_IsGraph (-0x6C) + #define LVO_IsLower (-0x72) + #define LVO_IsPrint (-0x78) + #define LVO_IsPunct (-0x7E) + #define LVO_IsSpace (-0x84) + #define LVO_IsUpper (-0x8A) + #define LVO_IsXDigit (-0x90) + #define LVO_OpenCatalogA (-0x96) + #define LVO_OpenLocale (-0x9C) + #define LVO_ParseDate (-0xA2) + #define LVO_localePrivate2 (-0xA8) + #define LVO_StrConvert (-0xAE) + #define LVO_StrnCmp (-0xB4) + #define LVO_localePrivate3 (-0xBA) + #define LVO_localePrivate4 (-0xC0) + #define LVO_localePrivate5 (-0xC6) + #define LVO_localePrivate6 (-0xCC) + #define LVO_localePrivate7 (-0xD2) + #define LVO_localePrivate8 (-0xD8) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/lowlevel_lvo.h includenew/powerup/lvo/lowlevel_lvo.h *** include_h/powerup/lvo/lowlevel_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/lowlevel_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,34 ---- + #ifndef _LVO_LOWLEVEL_LIB_H + #define _LVO_LOWLEVEL_LIB_H + + /* + * $VER: lowlevel_lvolib.h (08/03/97) + * + */ + + + #define LVO_ReadJoyPort (-0x1E) + #define LVO_GetLanguageSelection (-0x24) + #define LVO_lowlevelPrivate1 (-0x2A) + #define LVO_GetKey (-0x30) + #define LVO_QueryKeys (-0x36) + #define LVO_AddKBInt (-0x3C) + #define LVO_RemKBInt (-0x42) + #define LVO_SystemControlA (-0x48) + #define LVO_AddTimerInt (-0x4E) + #define LVO_RemTimerInt (-0x54) + #define LVO_StopTimerInt (-0x5A) + #define LVO_StartTimerInt (-0x60) + #define LVO_ElapsedTime (-0x66) + #define LVO_AddVBlankInt (-0x6C) + #define LVO_RemVBlankInt (-0x72) + #define LVO_lowlevelPrivate2 (-0x78) + #define LVO_lowlevelPrivate3 (-0x7E) + #define LVO_SetJoyPortAttrsA (-0x84) + #define LVO_lowlevelPrivate4 (-0x8A) + #define LVO_lowlevelPrivate5 (-0x90) + #define LVO_lowlevelPrivate6 (-0x96) + #define LVO_lowlevelPrivate7 (-0x9C) + #define LVO_lowlevelPrivate8 (-0xA2) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/mathffp_lvo.h includenew/powerup/lvo/mathffp_lvo.h *** include_h/powerup/lvo/mathffp_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/mathffp_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,23 ---- + #ifndef _LVO_MATHFFP_LIB_H + #define _LVO_MATHFFP_LIB_H + + /* + * $VER: mathffp_lvolib.h (08/03/97) + * + */ + + + #define LVO_SPFix (-0x1E) + #define LVO_SPFlt (-0x24) + #define LVO_SPCmp (-0x2A) + #define LVO_SPTst (-0x30) + #define LVO_SPAbs (-0x36) + #define LVO_SPNeg (-0x3C) + #define LVO_SPAdd (-0x42) + #define LVO_SPSub (-0x48) + #define LVO_SPMul (-0x4E) + #define LVO_SPDiv (-0x54) + #define LVO_SPFloor (-0x5A) + #define LVO_SPCeil (-0x60) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/mathieeedoubbas_lvo.h includenew/powerup/lvo/mathieeedoubbas_lvo.h *** include_h/powerup/lvo/mathieeedoubbas_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/mathieeedoubbas_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,23 ---- + #ifndef _LVO_MATHIEEEDOUBBAS_LIB_H + #define _LVO_MATHIEEEDOUBBAS_LIB_H + + /* + * $VER: mathieeedoubbas_lvolib.h (08/03/97) + * + */ + + + #define LVO_IEEEDPFix (-0x1E) + #define LVO_IEEEDPFlt (-0x24) + #define LVO_IEEEDPCmp (-0x2A) + #define LVO_IEEEDPTst (-0x30) + #define LVO_IEEEDPAbs (-0x36) + #define LVO_IEEEDPNeg (-0x3C) + #define LVO_IEEEDPAdd (-0x42) + #define LVO_IEEEDPSub (-0x48) + #define LVO_IEEEDPMul (-0x4E) + #define LVO_IEEEDPDiv (-0x54) + #define LVO_IEEEDPFloor (-0x5A) + #define LVO_IEEEDPCeil (-0x60) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/mathieeedoubtrans_lvo.h includenew/powerup/lvo/mathieeedoubtrans_lvo.h *** include_h/powerup/lvo/mathieeedoubtrans_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/mathieeedoubtrans_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef _LVO_MATHIEEEDOUBTRANS_LIB_H + #define _LVO_MATHIEEEDOUBTRANS_LIB_H + + /* + * $VER: mathieeedoubtrans_lvolib.h (08/03/97) + * + */ + + + #define LVO_IEEEDPAtan (-0x1E) + #define LVO_IEEEDPSin (-0x24) + #define LVO_IEEEDPCos (-0x2A) + #define LVO_IEEEDPTan (-0x30) + #define LVO_IEEEDPSincos (-0x36) + #define LVO_IEEEDPSinh (-0x3C) + #define LVO_IEEEDPCosh (-0x42) + #define LVO_IEEEDPTanh (-0x48) + #define LVO_IEEEDPExp (-0x4E) + #define LVO_IEEEDPLog (-0x54) + #define LVO_IEEEDPPow (-0x5A) + #define LVO_IEEEDPSqrt (-0x60) + #define LVO_IEEEDPTieee (-0x66) + #define LVO_IEEEDPFieee (-0x6C) + #define LVO_IEEEDPAsin (-0x72) + #define LVO_IEEEDPAcos (-0x78) + #define LVO_IEEEDPLog10 (-0x7E) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/mathieeesingbas_lvo.h includenew/powerup/lvo/mathieeesingbas_lvo.h *** include_h/powerup/lvo/mathieeesingbas_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/mathieeesingbas_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,23 ---- + #ifndef _LVO_MATHIEEESINGBAS_LIB_H + #define _LVO_MATHIEEESINGBAS_LIB_H + + /* + * $VER: mathieeesingbas_lvolib.h (08/03/97) + * + */ + + + #define LVO_IEEESPFix (-0x1E) + #define LVO_IEEESPFlt (-0x24) + #define LVO_IEEESPCmp (-0x2A) + #define LVO_IEEESPTst (-0x30) + #define LVO_IEEESPAbs (-0x36) + #define LVO_IEEESPNeg (-0x3C) + #define LVO_IEEESPAdd (-0x42) + #define LVO_IEEESPSub (-0x48) + #define LVO_IEEESPMul (-0x4E) + #define LVO_IEEESPDiv (-0x54) + #define LVO_IEEESPFloor (-0x5A) + #define LVO_IEEESPCeil (-0x60) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/mathieeesingtrans_lvo.h includenew/powerup/lvo/mathieeesingtrans_lvo.h *** include_h/powerup/lvo/mathieeesingtrans_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/mathieeesingtrans_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef _LVO_MATHIEEESINGTRANS_LIB_H + #define _LVO_MATHIEEESINGTRANS_LIB_H + + /* + * $VER: mathieeesingtrans_lvolib.h (08/03/97) + * + */ + + + #define LVO_IEEESPAtan (-0x1E) + #define LVO_IEEESPSin (-0x24) + #define LVO_IEEESPCos (-0x2A) + #define LVO_IEEESPTan (-0x30) + #define LVO_IEEESPSincos (-0x36) + #define LVO_IEEESPSinh (-0x3C) + #define LVO_IEEESPCosh (-0x42) + #define LVO_IEEESPTanh (-0x48) + #define LVO_IEEESPExp (-0x4E) + #define LVO_IEEESPLog (-0x54) + #define LVO_IEEESPPow (-0x5A) + #define LVO_IEEESPSqrt (-0x60) + #define LVO_IEEESPTieee (-0x66) + #define LVO_IEEESPFieee (-0x6C) + #define LVO_IEEESPAsin (-0x72) + #define LVO_IEEESPAcos (-0x78) + #define LVO_IEEESPLog10 (-0x7E) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/mathtrans_lvo.h includenew/powerup/lvo/mathtrans_lvo.h *** include_h/powerup/lvo/mathtrans_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/mathtrans_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,28 ---- + #ifndef _LVO_MATHTRANS_LIB_H + #define _LVO_MATHTRANS_LIB_H + + /* + * $VER: mathtrans_lvolib.h (08/03/97) + * + */ + + + #define LVO_SPAtan (-0x1E) + #define LVO_SPSin (-0x24) + #define LVO_SPCos (-0x2A) + #define LVO_SPTan (-0x30) + #define LVO_SPSincos (-0x36) + #define LVO_SPSinh (-0x3C) + #define LVO_SPCosh (-0x42) + #define LVO_SPTanh (-0x48) + #define LVO_SPExp (-0x4E) + #define LVO_SPLog (-0x54) + #define LVO_SPPow (-0x5A) + #define LVO_SPSqrt (-0x60) + #define LVO_SPTieee (-0x66) + #define LVO_SPFieee (-0x6C) + #define LVO_SPAsin (-0x72) + #define LVO_SPAcos (-0x78) + #define LVO_SPLog10 (-0x7E) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/misc_lvo.h includenew/powerup/lvo/misc_lvo.h *** include_h/powerup/lvo/misc_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/misc_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,13 ---- + #ifndef _LVO_MISC_LIB_H + #define _LVO_MISC_LIB_H + + /* + * $VER: misc_lvolib.h (08/03/97) + * + */ + + + #define LVO_AllocMiscResource (-0x6) + #define LVO_FreeMiscResource (-0xC) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/muimaster_lvo.h includenew/powerup/lvo/muimaster_lvo.h *** include_h/powerup/lvo/muimaster_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/muimaster_lvo.h Wed Feb 14 02:41:16 2001 *************** *** 0 **** --- 1,18 ---- + #ifndef _LVO_MUIMASTER_LIB_H + #define _LVO_MUIMASTER_LIB_H + + /* + * $VER: muimaster_lvolib.h (08/03/97) + * + */ + + + #define LVO_MUI_NewObjectA (-0x1E) + #define LVO_MUI_DisposeObject (-0x24) + #define LVO_MUI_RequestA (-0x2A) + #define LVO_MUI_AllocAslRequest (-0x30) + #define LVO_MUI_AslRequest (-0x36) + #define LVO_MUI_FreeAslRequest (-0x3C) + #define LVO_MUI_Error (-0x42) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/nonvolatile_lvo.h includenew/powerup/lvo/nonvolatile_lvo.h *** include_h/powerup/lvo/nonvolatile_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/nonvolatile_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,18 ---- + #ifndef _LVO_NONVOLATILE_LIB_H + #define _LVO_NONVOLATILE_LIB_H + + /* + * $VER: nonvolatile_lvolib.h (08/03/97) + * + */ + + + #define LVO_GetCopyNV (-0x1E) + #define LVO_FreeNVData (-0x24) + #define LVO_StoreNV (-0x2A) + #define LVO_DeleteNV (-0x30) + #define LVO_GetNVInfo (-0x36) + #define LVO_GetNVList (-0x3C) + #define LVO_SetNVProtection (-0x42) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/potgo_lvo.h includenew/powerup/lvo/potgo_lvo.h *** include_h/powerup/lvo/potgo_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/potgo_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,14 ---- + #ifndef _LVO_POTGO_LIB_H + #define _LVO_POTGO_LIB_H + + /* + * $VER: potgo_lvolib.h (08/03/97) + * + */ + + + #define LVO_AllocPotBits (-0x6) + #define LVO_FreePotBits (-0xC) + #define LVO_WritePotgo (-0x12) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/ramdrive_lvo.h includenew/powerup/lvo/ramdrive_lvo.h *** include_h/powerup/lvo/ramdrive_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/ramdrive_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,13 ---- + #ifndef _LVO_RAMDRIVE_LIB_H + #define _LVO_RAMDRIVE_LIB_H + + /* + * $VER: ramdrive_lvolib.h (08/03/97) + * + */ + + + #define LVO_KillRAD0 (-0x2A) + #define LVO_KillRAD (-0x30) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/realtime_lvo.h includenew/powerup/lvo/realtime_lvo.h *** include_h/powerup/lvo/realtime_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/realtime_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,21 ---- + #ifndef _LVO_REALTIME_LIB_H + #define _LVO_REALTIME_LIB_H + + /* + * $VER: realtime_lvolib.h (08/03/97) + * + */ + + + #define LVO_LockRealTime (-0x1E) + #define LVO_UnlockRealTime (-0x24) + #define LVO_CreatePlayerA (-0x2A) + #define LVO_DeletePlayer (-0x30) + #define LVO_SetPlayerAttrsA (-0x36) + #define LVO_SetConductorState (-0x3C) + #define LVO_ExternalSync (-0x42) + #define LVO_NextConductor (-0x48) + #define LVO_FindConductor (-0x4E) + #define LVO_GetPlayerAttrsA (-0x54) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/rexxsyslib_lvo.h includenew/powerup/lvo/rexxsyslib_lvo.h *** include_h/powerup/lvo/rexxsyslib_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/rexxsyslib_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,21 ---- + #ifndef _LVO_REXXSYSLIB_LIB_H + #define _LVO_REXXSYSLIB_LIB_H + + /* + * $VER: rexxsyslib_lvolib.h (08/03/97) + * + */ + + + #define LVO_CreateArgstring (-0x7E) + #define LVO_DeleteArgstring (-0x84) + #define LVO_LengthArgstring (-0x8A) + #define LVO_CreateRexxMsg (-0x90) + #define LVO_DeleteRexxMsg (-0x96) + #define LVO_ClearRexxMsg (-0x9C) + #define LVO_FillRexxMsg (-0xA2) + #define LVO_IsRexxMsg (-0xA8) + #define LVO_LockRexxBase (-0x1C2) + #define LVO_UnlockRexxBase (-0x1C8) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/timer_lvo.h includenew/powerup/lvo/timer_lvo.h *** include_h/powerup/lvo/timer_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/timer_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,16 ---- + #ifndef _LVO_TIMER_LIB_H + #define _LVO_TIMER_LIB_H + + /* + * $VER: timer_lvolib.h (08/03/97) + * + */ + + + #define LVO_AddTime (-0x2A) + #define LVO_SubTime (-0x30) + #define LVO_CmpTime (-0x36) + #define LVO_ReadEClock (-0x3C) + #define LVO_GetSysTime (-0x42) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/translator_lvo.h includenew/powerup/lvo/translator_lvo.h *** include_h/powerup/lvo/translator_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/translator_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,12 ---- + #ifndef _LVO_TRANSLATOR_LIB_H + #define _LVO_TRANSLATOR_LIB_H + + /* + * $VER: translator_lvolib.h (08/03/97) + * + */ + + + #define LVO_Translate (-0x1E) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/utility_lvo.h includenew/powerup/lvo/utility_lvo.h *** include_h/powerup/lvo/utility_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/utility_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,49 ---- + #ifndef _LVO_UTILITY_LIB_H + #define _LVO_UTILITY_LIB_H + + /* + * $VER: utility_lvolib.h (08/03/97) + * + */ + + + #define LVO_FindTagItem (-0x1E) + #define LVO_GetTagData (-0x24) + #define LVO_PackBoolTags (-0x2A) + #define LVO_NextTagItem (-0x30) + #define LVO_FilterTagChanges (-0x36) + #define LVO_MapTags (-0x3C) + #define LVO_AllocateTagItems (-0x42) + #define LVO_CloneTagItems (-0x48) + #define LVO_FreeTagItems (-0x4E) + #define LVO_RefreshTagItemClones (-0x54) + #define LVO_TagInArray (-0x5A) + #define LVO_FilterTagItems (-0x60) + #define LVO_CallHookPkt (-0x66) + #define LVO_Amiga2Date (-0x78) + #define LVO_Date2Amiga (-0x7E) + #define LVO_CheckDate (-0x84) + #define LVO_SMult32 (-0x8A) + #define LVO_UMult32 (-0x90) + #define LVO_SDivMod32 (-0x96) + #define LVO_UDivMod32 (-0x9C) + #define LVO_Stricmp (-0xA2) + #define LVO_Strnicmp (-0xA8) + #define LVO_ToUpper (-0xAE) + #define LVO_ToLower (-0xB4) + #define LVO_ApplyTagChanges (-0xBA) + #define LVO_SMult64 (-0xC6) + #define LVO_UMult64 (-0xCC) + #define LVO_PackStructureTags (-0xD2) + #define LVO_UnpackStructureTags (-0xD8) + #define LVO_AddNamedObject (-0xDE) + #define LVO_AllocNamedObjectA (-0xE4) + #define LVO_AttemptRemNamedObject (-0xEA) + #define LVO_FindNamedObject (-0xF0) + #define LVO_FreeNamedObject (-0xF6) + #define LVO_NamedObjectName (-0xFC) + #define LVO_ReleaseNamedObject (-0x102) + #define LVO_RemNamedObject (-0x108) + #define LVO_GetUniqueID (-0x10E) + + #endif diff -c2 -d -P -r include_h/powerup/lvo/wb_lvo.h includenew/powerup/lvo/wb_lvo.h *** include_h/powerup/lvo/wb_lvo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/lvo/wb_lvo.h Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,22 ---- + #ifndef _LVO_WB_LIB_H + #define _LVO_WB_LIB_H + + /* + * $VER: wb_lvolib.h (08/03/97) + * + */ + + + #define LVO_wbPrivate1 (-0x1E) + #define LVO_wbPrivate2 (-0x24) + #define LVO_wbPrivate3 (-0x2A) + #define LVO_AddAppWindowA (-0x30) + #define LVO_RemoveAppWindow (-0x36) + #define LVO_AddAppIconA (-0x3C) + #define LVO_RemoveAppIcon (-0x42) + #define LVO_AddAppMenuItemA (-0x48) + #define LVO_RemoveAppMenuItem (-0x4E) + #define LVO_wbPrivate4 (-0x54) + #define LVO_WBInfo (-0x5A) + + #endif diff -c2 -d -P -r include_h/powerup/misc/ppcsymbols.i includenew/powerup/misc/ppcsymbols.i *** include_h/powerup/misc/ppcsymbols.i Thu Jan 1 00:00:00 1970 --- includenew/powerup/misc/ppcsymbols.i Wed Feb 14 02:41:17 2001 *************** *** 0 **** --- 1,295 ---- + IFND ppcsymbols_i + ppcsymbols_i set 1 + + include "exec/types.i" + + * + * Define all the standard PPC register mnemonics + * + gpr0 equrp 0 + gpr1 equrp 1 + gpr2 equrp 2 + gpr3 equrp 3 + gpr4 equrp 4 + gpr5 equrp 5 + gpr6 equrp 6 + gpr7 equrp 7 + gpr8 equrp 8 + gpr9 equrp 9 + gpr10 equrp 10 + gpr11 equrp 11 + gpr12 equrp 12 + gpr13 equrp 13 + gpr14 equrp 14 + gpr15 equrp 15 + gpr16 equrp 16 + gpr17 equrp 17 + gpr18 equrp 18 + gpr19 equrp 19 + gpr20 equrp 20 + gpr21 equrp 21 + gpr22 equrp 22 + gpr23 equrp 23 + gpr24 equrp 24 + gpr25 equrp 25 + gpr26 equrp 26 + gpr27 equrp 27 + gpr28 equrp 28 + gpr29 equrp 29 + gpr30 equrp 30 + gpr31 equrp 31 + + r0 equrp 0 + r1 equrp 1 + r2 equrp 2 + r3 equrp 3 + r4 equrp 4 + r5 equrp 5 + r6 equrp 6 + r7 equrp 7 + r8 equrp 8 + r9 equrp 9 + r10 equrp 10 + r11 equrp 11 + r12 equrp 12 + r13 equrp 13 + r14 equrp 14 + r15 equrp 15 + r16 equrp 16 + r17 equrp 17 + r18 equrp 18 + r19 equrp 19 + r20 equrp 20 + r21 equrp 21 + r22 equrp 22 + r23 equrp 23 + r24 equrp 24 + r25 equrp 25 + r26 equrp 26 + r27 equrp 27 + r28 equrp 28 + r29 equrp 29 + r30 equrp 30 + r31 equrp 31 + + + fpr0 fequrp 0 + fpr1 fequrp 1 + fpr2 fequrp 2 + fpr3 fequrp 3 + fpr4 fequrp 4 + fpr5 fequrp 5 + fpr6 fequrp 6 + fpr7 fequrp 7 + fpr8 fequrp 8 + fpr9 fequrp 9 + fpr10 fequrp 10 + fpr11 fequrp 11 + fpr12 fequrp 12 + fpr13 fequrp 13 + fpr14 fequrp 14 + fpr15 fequrp 15 + fpr16 fequrp 16 + fpr17 fequrp 17 + fpr18 fequrp 18 + fpr19 fequrp 19 + fpr20 fequrp 20 + fpr21 fequrp 21 + fpr22 fequrp 22 + fpr23 fequrp 23 + fpr24 fequrp 24 + fpr25 fequrp 25 + fpr26 fequrp 26 + fpr27 fequrp 27 + fpr28 fequrp 28 + fpr29 fequrp 29 + fpr30 fequrp 30 + fpr31 fequrp 31 + + + f0 fequrp 0 + f1 fequrp 1 + f2 fequrp 2 + f3 fequrp 3 + f4 fequrp 4 + f5 fequrp 5 + f6 fequrp 6 + f7 fequrp 7 + f8 fequrp 8 + f9 fequrp 9 + f10 fequrp 10 + f11 fequrp 11 + f12 fequrp 12 + f13 fequrp 13 + f14 fequrp 14 + f15 fequrp 15 + f16 fequrp 16 + f17 fequrp 17 + f18 fequrp 18 + f19 fequrp 19 + f20 fequrp 20 + f21 fequrp 21 + f22 fequrp 22 + f23 fequrp 23 + f24 fequrp 24 + f25 fequrp 25 + f26 fequrp 26 + f27 fequrp 27 + f28 fequrp 28 + f29 fequrp 29 + f30 fequrp 30 + f31 fequrp 31 + + + * + * Define some standard PPC mappings + * + REG_ACU equrp 0 + REG_SP equrp 1 + REG_SSP equrp 1 + REG_TOC equrp 2 + + + * + * Define some standard Amiga 680xx<->PPC mappings + * + REG_D0 equrp 3 + REG_D1 equrp 4 + REG_D2 equrp 5 + REG_D3 equrp 6 + REG_D4 equrp 7 + REG_D5 equrp 8 + REG_D6 equrp 9 + REG_D7 equrp 10 + + REG_A0 equrp 11 + REG_A1 equrp 12 + REG_A2 equrp 13 + REG_A3 equrp 14 + REG_A4 equrp 15 + REG_A5 equrp 16 + REG_A6 equrp 17 + REG_A7 equrp 1 + + * + * Define unused PPC registers for orthogonality + * and avoid errors during the assembler programming + * by using mixed register mappings + * + + REG_X0 equrp 18 + REG_X1 equrp 19 + REG_X2 equrp 20 + REG_X3 equrp 21 + REG_X4 equrp 22 + REG_X5 equrp 23 + REG_X6 equrp 24 + REG_X7 equrp 25 + REG_X8 equrp 26 + REG_X9 equrp 27 + REG_X10 equrp 28 + REG_X11 equrp 29 + REG_X12 equrp 30 + REG_X13 equrp 31 + + + PPC601_Version = 1 + PPC603_Version = 3 + PPC603e_Version = 6 + + + ;MSRF_SF =(63-0) ; 63 64Bit Mode!!!! + + MSRF_VEC =$02000000 ; 6 VMX Vector engine + + MSRF_POW =$40000 ; 13 Power Management + MSRF_TGPR =$20000 ; 14 Temporary GPR remapping(603e) + MSRF_ILE =$10000 ; 15 Exception Little Endian Mode + MSRF_EE =$8000 ; 16 External Interrupt Enable + MSRF_PR =$4000 ; 17 Priviledge Level + MSRF_FP =$2000 ; 18 Floating Point available + MSRF_ME =$1000 ; 19 Machine Check enable + MSRF_FE0 =$800 ; 20 Floating Point Exception Mode 0 + MSRF_SE =$400 ; 21 Single Step enable + MSRF_BE =$200 ; 22 Branch Trace enable + MSRF_FE1 =$100 ; 23 Floating Point Exception Mode 1 + MSRF_RESERVED3 =$80 ; 24 Reserved + MSRF_IP =$40 ; 25 Exception Prefix + MSRF_IR =$20 ; 26 Instruction address translation + MSRF_DR =$10 ; 27 Data address translation + MSRF_RESERVED2 =$8 + MSRF_604_PM =$4 ; 29 Performance Monitor marked mode + MSRF_RI =$2 ; 30 Recoverable exception + MSRF_LE =$1 ; 31 Little endian mode + + + HID0_603_F_EMCP =$80000000 ;0 Enable Machine Check pin + HID0_603_F_RESERVED1 =$40000000 ;1 Reserved + HID0_603_F_EBA =$20000000 ;2 Enable Bus address parity checking + HID0_603_F_EBD =$10000000 ;3 Enable Bus data parity checking + HID0_603_F_SBCLK =$8000000 ;4 Select Bus clock for test clock pin + HID0_603_F_EICE =$4000000 ;5 Enable ICE outputs-pipeling tracking support + HID0_603_F_ECLK =$2000000 ;6 Enable external test clock pin + HID0_603_F_PAR =$1000000 ;7 Disable precharge of ARTRY and shared signals + HID0_603_F_DOZE =$800000 ;8 Doze Mode-PLL=time base and snooping alive + HID0_603_F_NAP =$400000 ;9 Nap Mode-PLL=time base active + HID0_603_F_SLEEP =$200000 ;10 Sleep Mode-no external clock required + HID0_603_F_DPM =$100000 ;11 Enable dynamic Power Management + HID0_603_F_RISEG =$80000 ;12 Reserved for Test + HID0_603_F_RESERVED10 =$40000 ;13 + HID0_603_F_RESERVED9 =$20000 ;14 + HID0_603_F_NHR =$10000 ;15 Not Hard Reset + HID0_603_F_ICE =$8000 ;16 Enable Instruction Cache + HID0_603_F_DCE =$4000 ;17 Enable Data Cache + HID0_603_F_ILOCK =$2000 ;18 Instruction Cache Lock + HID0_603_F_DLOCK =$1000 ;19 Data Cache Lock + HID0_603_F_ICFI =$800 ;20 Instruction Cache flush invalidate + HID0_603_F_DCFI =$400 ;21 Data Cache flush invalidate + HID0_603_F_RESERVED22 =$200 ;22 + HID0_603_F_RESERVED23 =$100 ;23 + HID0_603_F_RESERVED24 =$80 ;24 + HID0_603_F_RESERVED25 =$40 ;25 + HID0_603_F_RESERVED26 =$20 ;26 + HID0_603_F_FBIOB =$10 ;27 Force Branch indirect on bus + HID0_603_F_RESERVED28 =$8 ;28 + HID0_603_F_RESERVED29 =$4 ;29 + HID0_603_F_RESERVED30 =$2 ;30 + HID0_603_F_NOOPTI =$1 ;31 No-op touch instructions + + + HID0_604_F_EMCP =$80000000 ;0 Enable Machine Check pin + HID0_604_F_ECPC =$40000000 ;1 Enable Cache Parity Checking(604e) + HID0_604_F_EBA =$20000000 ;2 Enable Bus address parity checking + HID0_604_F_EBD =$10000000 ;3 Enable Bus data parity checking + HID0_604_F_RESERVED4 =$8000000 ;4 Reserved + HID0_604_F_RESERVED5 =$4000000 ;5 Reserved + HID0_604_F_RESERVED6 =$2000000 ;6 Reserved + HID0_604_F_DSS =$1000000 ;7 Disable Snoop response high state restore + HID0_604_F_RESERBED8 =$800000 ;8 Reserved + HID0_604_F_RESERBED9 =$400000 ;9 Reserved + HID0_604_F_RESERBED10 =$200000 ;10 Reserved + HID0_604_F_RESERBED11 =$100000 ;11 Reserved + HID0_604_F_RESERBED12 =$80000 ;12 Reserved + HID0_604_F_RESERVED13 =$40000 ;13 Reserved + HID0_604_F_RESERVED14 =$20000 ;14 Reserved + HID0_604_F_NHR =$10000 ;15 Not Hard Reset + HID0_604_F_ICE =$8000 ;16 Enable Instruction Cache + HID0_604_F_DCE =$4000 ;17 Enable Data Cache + HID0_604_F_ILOCK =$2000 ;18 Instruction Cache Lock + HID0_604_F_DLOCK =$1000 ;19 Data Cache Lock + HID0_604_F_ICFI =$800 ;20 Instruction Cache flush invalidate + HID0_604_F_DCFI =$400 ;21 Data Cache flush invalidate + HID0_604_F_RESERVED22 =$200 ;22 Reserved + HID0_604E_F_CIFE =$100 ;23 Coherent Instruction fetch enable(604e only) + HID0_604_F_DSIE =$80 ;24 Serial Instruction execution disable + HID0_604_F_RESERVED25 =$40 ;25 + HID0_604_F_RESERVED26 =$20 ;26 + HID0_604_F_FBIOB =$10 ;27 Force Branch indirect on bus + HID0_604_F_RESERVED28 =$8 ;28 + HID0_604_F_EBHT =$4 ;29 Branch History Table enable + HID0_604_F_RESERVED30 =$2 ;30 + HID0_604E_F_BTAC =$2 ;30 64bit entry branch target cache disable(with rev 1.1 Mach5 this doesn`t work..DISABLE) + HID0_604_F_RESERVED31 =$1 ;31 Reserved + + + ENDC diff -c2 -d -P -r include_h/powerup/ppcdisslib/ppcdiss.h includenew/powerup/ppcdisslib/ppcdiss.h *** include_h/powerup/ppcdisslib/ppcdiss.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcdisslib/ppcdiss.h Wed Feb 14 02:41:18 2001 *************** *** 0 **** --- 1,18 ---- + #ifndef POWERUP_PPCDISSLIB_PPCDISS_H + #define POWERUP_PPCDISSLIB_PPCDISS_H + + + #define DISASS_BUFFER 0x84000000 + #define DISASS_DEFINEPC 0x84000001 + #define DISASS_NOADRINC 0x84000002 + #define DISASS_RELADDR 0x84000003 + #define DISASS_SHOWDATA 0x84000004 + #define DISASS_PRESCANSIZE 0x84000005 + #define DISASS_USEDC68KDESC 0x84000006 + #define DISASS_ADDRESSHOOK 0x84000007 + #define DISASS_SYMBOLHOOK 0x84000008 + #define DISASS_RELOCHOOK 0x84000009 + #define DISASS_SHOWADDRESS 0x8400000a + #define DISASS_GETDATAHOOK 0x8400000b + + #endif diff -c2 -d -P -r include_h/powerup/ppcinline/amigaguide.h includenew/powerup/ppcinline/amigaguide.h *** include_h/powerup/ppcinline/amigaguide.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/amigaguide.h Wed Feb 14 02:41:18 2001 *************** *** 0 **** --- 1,126 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_AMIGAGUIDE_H + #define _PPCINLINE_AMIGAGUIDE_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef AMIGAGUIDE_BASE_NAME + #define AMIGAGUIDE_BASE_NAME AmigaGuideBase + #endif /* !AMIGAGUIDE_BASE_NAME */ + + #define AddAmigaGuideHostA(h, name, attrs) \ + LP3(0x8a, APTR, AddAmigaGuideHostA, struct Hook *, h, a0, STRPTR, name, d0, struct TagItem *, attrs, a1, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define AddAmigaGuideHost(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; AddAmigaGuideHostA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AmigaGuideSignal(cl) \ + LP1(0x48, ULONG, AmigaGuideSignal, APTR, cl, a0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseAmigaGuide(cl) \ + LP1NR(0x42, CloseAmigaGuide, APTR, cl, a0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ExpungeXRef() \ + LP0NR(0x84, ExpungeXRef, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetAmigaGuideAttr(tag, cl, storage) \ + LP3(0x72, LONG, GetAmigaGuideAttr, Tag, tag, d0, APTR, cl, a0, ULONG *, storage, a1, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetAmigaGuideMsg(cl) \ + LP1(0x4e, struct AmigaGuideMsg *, GetAmigaGuideMsg, APTR, cl, a0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetAmigaGuideString(id) \ + LP1(0xd2, STRPTR, GetAmigaGuideString, long, id, d0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LoadXRef(lock, name) \ + LP2(0x7e, LONG, LoadXRef, BPTR, lock, a0, STRPTR, name, a1, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockAmigaGuideBase(handle) \ + LP1(0x24, LONG, LockAmigaGuideBase, APTR, handle, a0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenAmigaGuideA(nag, attrs) \ + LP2(0x36, APTR, OpenAmigaGuideA, struct NewAmigaGuide *, nag, a0, struct TagItem *, attrs, a1, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define OpenAmigaGuide(a0, tags...) \ + ({ULONG _tags[] = { tags }; OpenAmigaGuideA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define OpenAmigaGuideAsyncA(nag, attrs) \ + LP2(0x3c, APTR, OpenAmigaGuideAsyncA, struct NewAmigaGuide *, nag, a0, struct TagItem *, attrs, d0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define OpenAmigaGuideAsync(a0, tags...) \ + ({ULONG _tags[] = { tags }; OpenAmigaGuideAsyncA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define RemoveAmigaGuideHostA(hh, attrs) \ + LP2(0x90, LONG, RemoveAmigaGuideHostA, APTR, hh, a0, struct TagItem *, attrs, a1, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define RemoveAmigaGuideHost(a0, tags...) \ + ({ULONG _tags[] = { tags }; RemoveAmigaGuideHostA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ReplyAmigaGuideMsg(amsg) \ + LP1NR(0x54, ReplyAmigaGuideMsg, struct AmigaGuideMsg *, amsg, a0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SendAmigaGuideCmdA(cl, cmd, attrs) \ + LP3(0x66, LONG, SendAmigaGuideCmdA, APTR, cl, a0, STRPTR, cmd, d0, struct TagItem *, attrs, d1, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SendAmigaGuideCmd(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; SendAmigaGuideCmdA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SendAmigaGuideContextA(cl, attrs) \ + LP2(0x60, LONG, SendAmigaGuideContextA, APTR, cl, a0, struct TagItem *, attrs, d0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SendAmigaGuideContext(a0, tags...) \ + ({ULONG _tags[] = { tags }; SendAmigaGuideContextA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetAmigaGuideAttrsA(cl, attrs) \ + LP2(0x6c, LONG, SetAmigaGuideAttrsA, APTR, cl, a0, struct TagItem *, attrs, a1, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetAmigaGuideAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetAmigaGuideAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetAmigaGuideContextA(cl, id, attrs) \ + LP3(0x5a, LONG, SetAmigaGuideContextA, APTR, cl, a0, unsigned long, id, d0, struct TagItem *, attrs, d1, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetAmigaGuideContext(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; SetAmigaGuideContextA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define UnlockAmigaGuideBase(key) \ + LP1NR(0x2a, UnlockAmigaGuideBase, long, key, d0, \ + , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_AMIGAGUIDE_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/asl.h includenew/powerup/ppcinline/asl.h *** include_h/powerup/ppcinline/asl.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/asl.h Wed Feb 14 02:41:18 2001 *************** *** 0 **** --- 1,48 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_ASL_H + #define _PPCINLINE_ASL_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef ASL_BASE_NAME + #define ASL_BASE_NAME AslBase + #endif /* !ASL_BASE_NAME */ + + #define AllocAslRequest(reqType, tagList) \ + LP2(0x30, APTR, AllocAslRequest, unsigned long, reqType, d0, struct TagItem *, tagList, a0, \ + , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define AllocAslRequestTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; AllocAslRequest((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AllocFileRequest() \ + LP0(0x1e, struct FileRequester *, AllocFileRequest, \ + , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AslRequest(requester, tagList) \ + LP2(0x3c, BOOL, AslRequest, APTR, requester, a0, struct TagItem *, tagList, a1, \ + , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define AslRequestTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; AslRequest((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define FreeAslRequest(requester) \ + LP1NR(0x36, FreeAslRequest, APTR, requester, a0, \ + , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeFileRequest(fileReq) \ + LP1NR(0x24, FreeFileRequest, struct FileRequester *, fileReq, a0, \ + , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RequestFile(fileReq) \ + LP1(0x2a, BOOL, RequestFile, struct FileRequester *, fileReq, a0, \ + , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_ASL_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/battclock.h includenew/powerup/ppcinline/battclock.h *** include_h/powerup/ppcinline/battclock.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/battclock.h Wed Feb 14 02:41:18 2001 *************** *** 0 **** --- 1,26 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_BATTCLOCK_H + #define _PPCINLINE_BATTCLOCK_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef BATTCLOCK_BASE_NAME + #define BATTCLOCK_BASE_NAME BattClockBase + #endif /* !BATTCLOCK_BASE_NAME */ + + #define ReadBattClock() \ + LP0(0xc, ULONG, ReadBattClock, \ + , BATTCLOCK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ResetBattClock() \ + LP0NR(0x6, ResetBattClock, \ + , BATTCLOCK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WriteBattClock(time) \ + LP1NR(0x12, WriteBattClock, unsigned long, time, d0, \ + , BATTCLOCK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_BATTCLOCK_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/battmem.h includenew/powerup/ppcinline/battmem.h *** include_h/powerup/ppcinline/battmem.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/battmem.h Wed Feb 14 02:41:18 2001 *************** *** 0 **** --- 1,30 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_BATTMEM_H + #define _PPCINLINE_BATTMEM_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef BATTMEM_BASE_NAME + #define BATTMEM_BASE_NAME BattMemBase + #endif /* !BATTMEM_BASE_NAME */ + + #define ObtainBattSemaphore() \ + LP0NR(0x6, ObtainBattSemaphore, \ + , BATTMEM_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadBattMem(buffer, offset, length) \ + LP3(0x12, ULONG, ReadBattMem, APTR, buffer, a0, unsigned long, offset, d0, unsigned long, length, d1, \ + , BATTMEM_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleaseBattSemaphore() \ + LP0NR(0xc, ReleaseBattSemaphore, \ + , BATTMEM_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WriteBattMem(buffer, offset, length) \ + LP3(0x18, ULONG, WriteBattMem, APTR, buffer, a0, unsigned long, offset, d0, unsigned long, length, d1, \ + , BATTMEM_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_BATTMEM_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/bullet.h includenew/powerup/ppcinline/bullet.h *** include_h/powerup/ppcinline/bullet.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/bullet.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,49 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_BULLET_H + #define _PPCINLINE_BULLET_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef BULLET_BASE_NAME + #define BULLET_BASE_NAME BulletBase + #endif /* !BULLET_BASE_NAME */ + + #define CloseEngine(glyphEngine) \ + LP1NR(0x24, CloseEngine, struct GlyphEngine *, glyphEngine, a0, \ + , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ObtainInfoA(glyphEngine, tagList) \ + LP2(0x30, ULONG, ObtainInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \ + , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define ObtainInfo(a0, tags...) \ + ({ULONG _tags[] = { tags }; ObtainInfoA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define OpenEngine() \ + LP0(0x1e, struct GlyphEngine *, OpenEngine, \ + , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleaseInfoA(glyphEngine, tagList) \ + LP2(0x36, ULONG, ReleaseInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \ + , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define ReleaseInfo(a0, tags...) \ + ({ULONG _tags[] = { tags }; ReleaseInfoA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetInfoA(glyphEngine, tagList) \ + LP2(0x2a, ULONG, SetInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \ + , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetInfo(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetInfoA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #endif /* !_PPCINLINE_BULLET_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/cardres.h includenew/powerup/ppcinline/cardres.h *** include_h/powerup/ppcinline/cardres.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/cardres.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,82 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_CARDRES_H + #define _PPCINLINE_CARDRES_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef CARDRES_BASE_NAME + #define CARDRES_BASE_NAME CardResource + #endif /* !CARDRES_BASE_NAME */ + + #define BeginCardAccess(handle) \ + LP1(0x18, BOOL, BeginCardAccess, struct CardHandle *, handle, a1, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CardAccessSpeed(handle, nanoseconds) \ + LP2(0x36, ULONG, CardAccessSpeed, struct CardHandle *, handle, a1, unsigned long, nanoseconds, d0, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CardChangeCount() \ + LP0(0x60, ULONG, CardChangeCount, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CardForceChange() \ + LP0(0x5a, BOOL, CardForceChange, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CardInterface() \ + LP0(0x66, ULONG, CardInterface, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CardMiscControl(handle, control_bits) \ + LP2(0x30, UBYTE, CardMiscControl, struct CardHandle *, handle, a1, unsigned long, control_bits, d1, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CardProgramVoltage(handle, voltage) \ + LP2(0x3c, LONG, CardProgramVoltage, struct CardHandle *, handle, a1, unsigned long, voltage, d0, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CardResetCard(handle) \ + LP1(0x42, BOOL, CardResetCard, struct CardHandle *, handle, a1, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CardResetRemove(handle, flag) \ + LP2(0x2a, BOOL, CardResetRemove, struct CardHandle *, handle, a1, unsigned long, flag, d0, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CopyTuple(handle, buffer, tuplecode, size) \ + LP4(0x48, BOOL, CopyTuple, struct CardHandle *, handle, a1, UBYTE *, buffer, a0, unsigned long, tuplecode, d1, unsigned long, size, d0, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeviceTuple(tuple_data, storage) \ + LP2(0x4e, ULONG, DeviceTuple, UBYTE *, tuple_data, a0, struct DeviceTData *, storage, a1, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EndCardAccess(handle) \ + LP1(0x1e, BOOL, EndCardAccess, struct CardHandle *, handle, a1, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetCardMap() \ + LP0(0x12, struct CardMemoryMap *, GetCardMap, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IfAmigaXIP(handle) \ + LP1(0x54, struct Resident *, IfAmigaXIP, struct CardHandle *, handle, a2, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OwnCard(handle) \ + LP1(0x6, struct CardHandle *, OwnCard, struct CardHandle *, handle, a1, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadCardStatus() \ + LP0(0x24, UBYTE, ReadCardStatus, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleaseCard(handle, flags) \ + LP2NR(0xc, ReleaseCard, struct CardHandle *, handle, a1, unsigned long, flags, d0, \ + , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_CARDRES_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/cia.h includenew/powerup/ppcinline/cia.h *** include_h/powerup/ppcinline/cia.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/cia.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,22 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_CIA_H + #define _PPCINLINE_CIA_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #define AbleICR(resource, mask) \ + LP2UB(0x12, WORD, AbleICR, struct Library *, resource, a6, long, mask, d0, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddICRVector(resource, iCRBit, interrupt) \ + LP3UB(0x6, struct Interrupt *, AddICRVector, struct Library *, resource, a6, long, iCRBit, d0, struct Interrupt *, interrupt, a1, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemICRVector(resource, iCRBit, interrupt) \ + LP3NRUB(0xc, RemICRVector, struct Library *, resource, a6, long, iCRBit, d0, struct Interrupt *, interrupt, a1, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetICR(resource, mask) \ + LP2UB(0x18, WORD, SetICR, struct Library *, resource, a6, long, mask, d0, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_CIA_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/colorwheel.h includenew/powerup/ppcinline/colorwheel.h *** include_h/powerup/ppcinline/colorwheel.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/colorwheel.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,22 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_COLORWHEEL_H + #define _PPCINLINE_COLORWHEEL_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef COLORWHEEL_BASE_NAME + #define COLORWHEEL_BASE_NAME ColorWheelBase + #endif /* !COLORWHEEL_BASE_NAME */ + + #define ConvertHSBToRGB(hsb, rgb) \ + LP2NR(0x1e, ConvertHSBToRGB, struct ColorWheelHSB *, hsb, a0, struct ColorWheelRGB *, rgb, a1, \ + , COLORWHEEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ConvertRGBToHSB(rgb, hsb) \ + LP2NR(0x24, ConvertRGBToHSB, struct ColorWheelRGB *, rgb, a0, struct ColorWheelHSB *, hsb, a1, \ + , COLORWHEEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_COLORWHEEL_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/commodities.h includenew/powerup/ppcinline/commodities.h *** include_h/powerup/ppcinline/commodities.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/commodities.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,118 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_COMMODITIES_H + #define _PPCINLINE_COMMODITIES_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef COMMODITIES_BASE_NAME + #define COMMODITIES_BASE_NAME CxBase + #endif /* !COMMODITIES_BASE_NAME */ + + #define ActivateCxObj(co, tf) \ + LP2(0x2a, LONG, ActivateCxObj, CxObj *, co, a0, long, tf, d0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddIEvents(events) \ + LP1NR(0xb4, AddIEvents, struct InputEvent *, events, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AttachCxObj(headObj, co) \ + LP2NR(0x54, AttachCxObj, CxObj *, headObj, a0, CxObj *, co, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClearCxObjError(co) \ + LP1NR(0x48, ClearCxObjError, CxObj *, co, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateCxObj(type, arg1, arg2) \ + LP3(0x1e, CxObj *, CreateCxObj, unsigned long, type, d0, long, arg1, a0, long, arg2, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CxBroker(nb, error) \ + LP2(0x24, CxObj *, CxBroker, struct NewBroker *, nb, a0, LONG *, error, d0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CxMsgData(cxm) \ + LP1(0x90, APTR, CxMsgData, CxMsg *, cxm, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CxMsgID(cxm) \ + LP1(0x96, LONG, CxMsgID, CxMsg *, cxm, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CxMsgType(cxm) \ + LP1(0x8a, ULONG, CxMsgType, CxMsg *, cxm, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CxObjError(co) \ + LP1(0x42, LONG, CxObjError, CxObj *, co, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CxObjType(co) \ + LP1(0x3c, ULONG, CxObjType, CxObj *, co, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeleteCxObj(co) \ + LP1NR(0x30, DeleteCxObj, CxObj *, co, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeleteCxObjAll(co) \ + LP1NR(0x36, DeleteCxObjAll, CxObj *, co, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisposeCxMsg(cxm) \ + LP1NR(0xa8, DisposeCxMsg, CxMsg *, cxm, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DivertCxMsg(cxm, headObj, returnObj) \ + LP3NR(0x9c, DivertCxMsg, CxMsg *, cxm, a0, CxObj *, headObj, a1, CxObj *, returnObj, a2, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EnqueueCxObj(headObj, co) \ + LP2NR(0x5a, EnqueueCxObj, CxObj *, headObj, a0, CxObj *, co, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InsertCxObj(headObj, co, pred) \ + LP3NR(0x60, InsertCxObj, CxObj *, headObj, a0, CxObj *, co, a1, CxObj *, pred, a2, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InvertKeyMap(ansiCode, event, km) \ + LP3(0xae, BOOL, InvertKeyMap, unsigned long, ansiCode, d0, struct InputEvent *, event, a0, struct KeyMap *, km, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MatchIX(event, ix) \ + LP2(0xcc, BOOL, MatchIX, struct InputEvent *, event, a0, IX *, ix, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ParseIX(description, ix) \ + LP2(0x84, LONG, ParseIX, STRPTR, description, a0, IX *, ix, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemoveCxObj(co) \ + LP1NR(0x66, RemoveCxObj, CxObj *, co, a0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RouteCxMsg(cxm, co) \ + LP2NR(0xa2, RouteCxMsg, CxMsg *, cxm, a0, CxObj *, co, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetCxObjPri(co, pri) \ + LP2(0x4e, LONG, SetCxObjPri, CxObj *, co, a0, long, pri, d0, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetFilter(filter, text) \ + LP2NR(0x78, SetFilter, CxObj *, filter, a0, STRPTR, text, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetFilterIX(filter, ix) \ + LP2NR(0x7e, SetFilterIX, CxObj *, filter, a0, IX *, ix, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetTranslate(translator, events) \ + LP2NR(0x72, SetTranslate, CxObj *, translator, a0, struct InputEvent *, events, a1, \ + , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_COMMODITIES_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/console.h includenew/powerup/ppcinline/console.h *** include_h/powerup/ppcinline/console.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/console.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,22 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_CONSOLE_H + #define _PPCINLINE_CONSOLE_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef CONSOLE_BASE_NAME + #define CONSOLE_BASE_NAME ConsoleDevice + #endif /* !CONSOLE_BASE_NAME */ + + #define CDInputHandler(events, consoleDevice) \ + LP2(0x2a, struct InputEvent *, CDInputHandler, struct InputEvent *, events, a0, struct Library *, consoleDevice, a1, \ + , CONSOLE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RawKeyConvert(events, buffer, length, keyMap) \ + LP4(0x30, LONG, RawKeyConvert, struct InputEvent *, events, a0, STRPTR, buffer, a1, long, length, d1, struct KeyMap *, keyMap, a2, \ + , CONSOLE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_CONSOLE_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/datatypes.h includenew/powerup/ppcinline/datatypes.h *** include_h/powerup/ppcinline/datatypes.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/datatypes.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,109 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_DATATYPES_H + #define _PPCINLINE_DATATYPES_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef DATATYPES_BASE_NAME + #define DATATYPES_BASE_NAME DataTypesBase + #endif /* !DATATYPES_BASE_NAME */ + + #define AddDTObject(win, req, o, pos) \ + LP4(0x48, LONG, AddDTObject, struct Window *, win, a0, struct Requester *, req, a1, Object *, o, a2, long, pos, d0, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisposeDTObject(o) \ + LP1NR(0x36, DisposeDTObject, Object *, o, a0, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoAsyncLayout(o, gpl) \ + LP2(0x54, ULONG, DoAsyncLayout, Object *, o, a0, struct gpLayout *, gpl, a1, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoDTMethodA(o, win, req, msg) \ + LP4(0x5a, ULONG, DoDTMethodA, Object *, o, a0, struct Window *, win, a1, struct Requester *, req, a2, Msg, msg, a3, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define DoDTMethod(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; DoDTMethodA((a0), (a1), (a2), (Msg)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetDTAttrsA(o, attrs) \ + LP2(0x42, ULONG, GetDTAttrsA, Object *, o, a0, struct TagItem *, attrs, a2, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define GetDTAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetDTAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetDTMethods(object) \ + LP1(0x66, ULONG *, GetDTMethods, Object *, object, a0, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDTString(id) \ + LP1(0x8a, STRPTR, GetDTString, unsigned long, id, d0, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDTTriggerMethods(object) \ + LP1(0x6c, struct DTMethods *, GetDTTriggerMethods, Object *, object, a0, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewDTObjectA(name, attrs) \ + LP2(0x30, Object *, NewDTObjectA, APTR, name, d0, struct TagItem *, attrs, a0, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define NewDTObject(a0, tags...) \ + ({ULONG _tags[] = { tags }; NewDTObjectA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ObtainDataTypeA(type, handle, attrs) \ + LP3(0x24, struct DataType *, ObtainDataTypeA, unsigned long, type, d0, APTR, handle, a0, struct TagItem *, attrs, a1, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define ObtainDataType(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; ObtainDataTypeA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define PrintDTObjectA(o, w, r, msg) \ + LP4(0x72, ULONG, PrintDTObjectA, Object *, o, a0, struct Window *, w, a1, struct Requester *, r, a2, struct dtPrint *, msg, a3, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define PrintDTObject(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; PrintDTObjectA((a0), (a1), (a2), (struct dtPrint *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define RefreshDTObjectA(o, win, req, attrs) \ + LP4NR(0x4e, RefreshDTObjectA, Object *, o, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, attrs, a3, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define RefreshDTObject(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; RefreshDTObjectA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ReleaseDataType(dt) \ + LP1NR(0x2a, ReleaseDataType, struct DataType *, dt, a0, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemoveDTObject(win, o) \ + LP2(0x60, LONG, RemoveDTObject, struct Window *, win, a0, Object *, o, a1, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetDTAttrsA(o, win, req, attrs) \ + LP4(0x3c, ULONG, SetDTAttrsA, Object *, o, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, attrs, a3, \ + , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetDTAttrs(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; SetDTAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #endif /* !_PPCINLINE_DATATYPES_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/disk.h includenew/powerup/ppcinline/disk.h *** include_h/powerup/ppcinline/disk.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/disk.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,38 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_DISK_H + #define _PPCINLINE_DISK_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef DISK_BASE_NAME + #define DISK_BASE_NAME DiskBase + #endif /* !DISK_BASE_NAME */ + + #define AllocUnit(unitNum) \ + LP1(0x6, BOOL, AllocUnit, long, unitNum, d0, \ + , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeUnit(unitNum) \ + LP1NR(0xc, FreeUnit, long, unitNum, d0, \ + , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetUnit(unitPointer) \ + LP1(0x12, struct DiskResourceUnit *, GetUnit, struct DiskResourceUnit *, unitPointer, a1, \ + , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetUnitID(unitNum) \ + LP1(0x1e, LONG, GetUnitID, long, unitNum, d0, \ + , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GiveUnit() \ + LP0NR(0x18, GiveUnit, \ + , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadUnitID(unitNum) \ + LP1(0x24, LONG, ReadUnitID, long, unitNum, d0, \ + , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_DISK_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/diskfont.h includenew/powerup/ppcinline/diskfont.h *** include_h/powerup/ppcinline/diskfont.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/diskfont.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,34 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_DISKFONT_H + #define _PPCINLINE_DISKFONT_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef DISKFONT_BASE_NAME + #define DISKFONT_BASE_NAME DiskfontBase + #endif /* !DISKFONT_BASE_NAME */ + + #define AvailFonts(buffer, bufBytes, flags) \ + LP3(0x24, LONG, AvailFonts, STRPTR, buffer, a0, long, bufBytes, d0, long, flags, d1, \ + , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisposeFontContents(fontContentsHeader) \ + LP1NR(0x30, DisposeFontContents, struct FontContentsHeader *, fontContentsHeader, a1, \ + , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewFontContents(fontsLock, fontName) \ + LP2(0x2a, struct FontContentsHeader *, NewFontContents, BPTR, fontsLock, a0, STRPTR, fontName, a1, \ + , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewScaledDiskFont(sourceFont, destTextAttr) \ + LP2(0x36, struct DiskFont *, NewScaledDiskFont, struct TextFont *, sourceFont, a0, struct TextAttr *, destTextAttr, a1, \ + , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenDiskFont(textAttr) \ + LP1(0x1e, struct TextFont *, OpenDiskFont, struct TextAttr *, textAttr, a0, \ + , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_DISKFONT_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/dos.h includenew/powerup/ppcinline/dos.h *** include_h/powerup/ppcinline/dos.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/dos.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,693 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_DOS_H + #define _PPCINLINE_DOS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef DOS_BASE_NAME + #define DOS_BASE_NAME DOSBase + #endif /* !DOS_BASE_NAME */ + + #define AbortPkt(port, pkt) \ + LP2NR(0x108, AbortPkt, struct MsgPort *, port, d1, struct DosPacket *, pkt, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddBuffers(name, number) \ + LP2(0x2dc, LONG, AddBuffers, STRPTR, name, d1, long, number, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddDosEntry(dlist) \ + LP1(0x2a6, LONG, AddDosEntry, struct DosList *, dlist, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddPart(dirname, filename, size) \ + LP3(0x372, BOOL, AddPart, STRPTR, dirname, d1, STRPTR, filename, d2, unsigned long, size, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddSegment(name, seg, system) \ + LP3(0x306, LONG, AddSegment, STRPTR, name, d1, BPTR, seg, d2, long, system, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocDosObject(type, tags) \ + LP2(0xe4, APTR, AllocDosObject, unsigned long, type, d1, struct TagItem *, tags, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocDosObjectTagList(a0, a1) AllocDosObject ((a0), (a1)) + + #ifndef NO_PPCINLINE_STDARG + #define AllocDosObjectTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; AllocDosObject((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AssignAdd(name, lock) \ + LP2(0x276, BOOL, AssignAdd, STRPTR, name, d1, BPTR, lock, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AssignLate(name, path) \ + LP2(0x26a, BOOL, AssignLate, STRPTR, name, d1, STRPTR, path, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AssignLock(name, lock) \ + LP2(0x264, LONG, AssignLock, STRPTR, name, d1, BPTR, lock, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AssignPath(name, path) \ + LP2(0x270, BOOL, AssignPath, STRPTR, name, d1, STRPTR, path, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AttemptLockDosList(flags) \ + LP1(0x29a, struct DosList *, AttemptLockDosList, unsigned long, flags, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChangeMode(type, fh, newmode) \ + LP3(0x1c2, LONG, ChangeMode, long, type, d1, BPTR, fh, d2, long, newmode, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CheckSignal(mask) \ + LP1(0x318, LONG, CheckSignal, long, mask, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Cli() \ + LP0(0x1ec, struct CommandLineInterface *, Cli, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CliInitNewcli(dp) \ + LP1(0x3a2, LONG, CliInitNewcli, struct DosPacket *, dp, a0, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CliInitRun(dp) \ + LP1(0x3a8, LONG, CliInitRun, struct DosPacket *, dp, a0, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Close(file) \ + LP1(0x24, LONG, Close, BPTR, file, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CompareDates(date1, date2) \ + LP2(0x2e2, LONG, CompareDates, struct DateStamp *, date1, d1, struct DateStamp *, date2, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateDir(name) \ + LP1(0x78, BPTR, CreateDir, STRPTR, name, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateNewProc(tags) \ + LP1(0x1f2, struct Process *, CreateNewProc, struct TagItem *, tags, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateNewProcTagList(a0) CreateNewProc ((a0)) + + #ifndef NO_PPCINLINE_STDARG + #define CreateNewProcTags(tags...) \ + ({ULONG _tags[] = { tags }; CreateNewProc((struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define CreateProc(name, pri, segList, stackSize) \ + LP4(0x8a, struct MsgPort *, CreateProc, STRPTR, name, d1, long, pri, d2, BPTR, segList, d3, long, stackSize, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CurrentDir(lock) \ + LP1(0x7e, BPTR, CurrentDir, BPTR, lock, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DateStamp(date) \ + LP1(0xc0, struct DateStamp *, DateStamp, struct DateStamp *, date, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DateToStr(datetime) \ + LP1(0x2e8, LONG, DateToStr, struct DateTime *, datetime, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Delay(timeout) \ + LP1NR(0xc6, Delay, long, timeout, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeleteFile(name) \ + LP1(0x48, LONG, DeleteFile, STRPTR, name, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeleteVar(name, flags) \ + LP2(0x390, LONG, DeleteVar, STRPTR, name, d1, unsigned long, flags, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeviceProc(name) \ + LP1(0xae, struct MsgPort *, DeviceProc, STRPTR, name, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoPkt(port, action, arg1, arg2, arg3, arg4, arg5) \ + LP7(0xf0, LONG, DoPkt, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, long, arg2, d4, long, arg3, d5, long, arg4, d6, long, arg5, d7, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoPkt0(port, action) \ + LP2(0xf0, LONG, DoPkt0, struct MsgPort *, port, d1, long, action, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoPkt1(port, action, arg1) \ + LP3(0xf0, LONG, DoPkt1, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoPkt2(port, action, arg1, arg2) \ + LP4(0xf0, LONG, DoPkt2, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, long, arg2, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoPkt3(port, action, arg1, arg2, arg3) \ + LP5(0xf0, LONG, DoPkt3, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, long, arg2, d4, long, arg3, d5, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoPkt4(port, action, arg1, arg2, arg3, arg4) \ + LP6(0xf0, LONG, DoPkt4, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, long, arg2, d4, long, arg3, d5, long, arg4, d6, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DupLock(lock) \ + LP1(0x60, BPTR, DupLock, BPTR, lock, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DupLockFromFH(fh) \ + LP1(0x174, BPTR, DupLockFromFH, BPTR, fh, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EndNotify(notify) \ + LP1NR(0x37e, EndNotify, struct NotifyRequest *, notify, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ErrorReport(code, type, arg1, device) \ + LP4(0x1e0, LONG, ErrorReport, long, code, d1, long, type, d2, unsigned long, arg1, d3, struct MsgPort *, device, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ExAll(lock, buffer, size, data, control) \ + LP5(0x1b0, LONG, ExAll, BPTR, lock, d1, struct ExAllData *, buffer, d2, long, size, d3, long, data, d4, struct ExAllControl *, control, d5, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ExAllEnd(lock, buffer, size, data, control) \ + LP5NR(0x3de, ExAllEnd, BPTR, lock, d1, struct ExAllData *, buffer, d2, long, size, d3, long, data, d4, struct ExAllControl *, control, d5, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ExNext(lock, fileInfoBlock) \ + LP2(0x6c, LONG, ExNext, BPTR, lock, d1, struct FileInfoBlock *, fileInfoBlock, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Examine(lock, fileInfoBlock) \ + LP2(0x66, LONG, Examine, BPTR, lock, d1, struct FileInfoBlock *, fileInfoBlock, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ExamineFH(fh, fib) \ + LP2(0x186, BOOL, ExamineFH, BPTR, fh, d1, struct FileInfoBlock *, fib, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Execute(string, file, file2) \ + LP3(0xde, LONG, Execute, STRPTR, string, d1, BPTR, file, d2, BPTR, file2, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Exit(returnCode) \ + LP1NR(0x90, Exit, long, returnCode, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FGetC(fh) \ + LP1(0x132, LONG, FGetC, BPTR, fh, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FGets(fh, buf, buflen) \ + LP3(0x150, STRPTR, FGets, BPTR, fh, d1, STRPTR, buf, d2, unsigned long, buflen, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FPutC(fh, ch) \ + LP2(0x138, LONG, FPutC, BPTR, fh, d1, long, ch, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FPuts(fh, str) \ + LP2(0x156, LONG, FPuts, BPTR, fh, d1, STRPTR, str, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FRead(fh, block, blocklen, number) \ + LP4(0x144, LONG, FRead, BPTR, fh, d1, APTR, block, d2, unsigned long, blocklen, d3, unsigned long, number, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FWrite(fh, block, blocklen, number) \ + LP4(0x14a, LONG, FWrite, BPTR, fh, d1, APTR, block, d2, unsigned long, blocklen, d3, unsigned long, number, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Fault(code, header, buffer, len) \ + LP4(0x1d4, BOOL, Fault, long, code, d1, STRPTR, header, d2, STRPTR, buffer, d3, long, len, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FilePart(path) \ + LP1(0x366, STRPTR, FilePart, STRPTR, path, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindArg(keyword, arg_template) \ + LP2(0x324, LONG, FindArg, STRPTR, keyword, d1, STRPTR, arg_template, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindCliProc(num) \ + LP1(0x222, struct Process *, FindCliProc, unsigned long, num, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindDosEntry(dlist, name, flags) \ + LP3(0x2ac, struct DosList *, FindDosEntry, struct DosList *, dlist, d1, STRPTR, name, d2, unsigned long, flags, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindSegment(name, seg, system) \ + LP3(0x30c, struct Segment *, FindSegment, STRPTR, name, d1, struct Segment *, seg, d2, long, system, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindVar(name, type) \ + LP2(0x396, struct LocalVar *, FindVar, STRPTR, name, d1, unsigned long, type, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Flush(fh) \ + LP1(0x168, LONG, Flush, BPTR, fh, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Format(filesystem, volumename, dostype) \ + LP3(0x2ca, BOOL, Format, STRPTR, filesystem, d1, STRPTR, volumename, d2, unsigned long, dostype, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeArgs(args) \ + LP1NR(0x35a, FreeArgs, struct RDArgs *, args, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeDeviceProc(dp) \ + LP1NR(0x288, FreeDeviceProc, struct DevProc *, dp, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeDosEntry(dlist) \ + LP1NR(0x2be, FreeDosEntry, struct DosList *, dlist, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeDosObject(type, ptr) \ + LP2NR(0xea, FreeDosObject, unsigned long, type, d1, APTR, ptr, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetArgStr() \ + LP0(0x216, STRPTR, GetArgStr, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetConsoleTask() \ + LP0(0x1fe, struct MsgPort *, GetConsoleTask, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetCurrentDirName(buf, len) \ + LP2(0x234, BOOL, GetCurrentDirName, STRPTR, buf, d1, long, len, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDeviceProc(name, dp) \ + LP2(0x282, struct DevProc *, GetDeviceProc, STRPTR, name, d1, struct DevProc *, dp, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetFileSysTask() \ + LP0(0x20a, struct MsgPort *, GetFileSysTask, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetProgramDir() \ + LP0(0x258, BPTR, GetProgramDir, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetProgramName(buf, len) \ + LP2(0x240, BOOL, GetProgramName, STRPTR, buf, d1, long, len, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetPrompt(buf, len) \ + LP2(0x24c, BOOL, GetPrompt, STRPTR, buf, d1, long, len, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetVar(name, buffer, size, flags) \ + LP4(0x38a, LONG, GetVar, STRPTR, name, d1, STRPTR, buffer, d2, long, size, d3, long, flags, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Info(lock, parameterBlock) \ + LP2(0x72, LONG, Info, BPTR, lock, d1, struct InfoData *, parameterBlock, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Inhibit(name, onoff) \ + LP2(0x2d6, LONG, Inhibit, STRPTR, name, d1, long, onoff, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Input() \ + LP0(0x36, BPTR, Input, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InternalLoadSeg(fh, table, funcarray, stack) \ + LP4(0x2f4, BPTR, InternalLoadSeg, BPTR, fh, d0, BPTR, table, a0, LONG *, funcarray, a1, LONG *, stack, a2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InternalUnLoadSeg(seglist, freefunc) \ + LP2FP(0x2fa, BOOL, InternalUnLoadSeg, BPTR, seglist, d1, __fpt, freefunc, a1, \ + , DOS_BASE_NAME, void (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IoErr() \ + LP0(0x84, LONG, IoErr, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsFileSystem(name) \ + LP1(0x2c4, BOOL, IsFileSystem, STRPTR, name, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsInteractive(file) \ + LP1(0xd8, LONG, IsInteractive, BPTR, file, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LoadSeg(name) \ + LP1(0x96, BPTR, LoadSeg, STRPTR, name, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Lock(name, type) \ + LP2(0x54, BPTR, Lock, STRPTR, name, d1, long, type, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockDosList(flags) \ + LP1(0x28e, struct DosList *, LockDosList, unsigned long, flags, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockRecord(fh, offset, length, mode, timeout) \ + LP5(0x10e, BOOL, LockRecord, BPTR, fh, d1, unsigned long, offset, d2, unsigned long, length, d3, unsigned long, mode, d4, unsigned long, timeout, d5, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockRecords(recArray, timeout) \ + LP2(0x114, BOOL, LockRecords, struct RecordLock *, recArray, d1, unsigned long, timeout, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MakeDosEntry(name, type) \ + LP2(0x2b8, struct DosList *, MakeDosEntry, STRPTR, name, d1, long, type, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MakeLink(name, dest, soft) \ + LP3(0x1bc, LONG, MakeLink, STRPTR, name, d1, long, dest, d2, long, soft, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MatchEnd(anchor) \ + LP1NR(0x342, MatchEnd, struct AnchorPath *, anchor, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MatchFirst(pat, anchor) \ + LP2(0x336, LONG, MatchFirst, STRPTR, pat, d1, struct AnchorPath *, anchor, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MatchNext(anchor) \ + LP1(0x33c, LONG, MatchNext, struct AnchorPath *, anchor, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MatchPattern(pat, str) \ + LP2(0x34e, BOOL, MatchPattern, STRPTR, pat, d1, STRPTR, str, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MatchPatternNoCase(pat, str) \ + LP2(0x3cc, BOOL, MatchPatternNoCase, STRPTR, pat, d1, STRPTR, str, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MaxCli() \ + LP0(0x228, ULONG, MaxCli, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NameFromFH(fh, buffer, len) \ + LP3(0x198, LONG, NameFromFH, BPTR, fh, d1, STRPTR, buffer, d2, long, len, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NameFromLock(lock, buffer, len) \ + LP3(0x192, LONG, NameFromLock, BPTR, lock, d1, STRPTR, buffer, d2, long, len, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewLoadSeg(file, tags) \ + LP2(0x300, BPTR, NewLoadSeg, STRPTR, file, d1, struct TagItem *, tags, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewLoadSegTagList(a0, a1) NewLoadSeg ((a0), (a1)) + + #ifndef NO_PPCINLINE_STDARG + #define NewLoadSegTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; NewLoadSeg((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define NextDosEntry(dlist, flags) \ + LP2(0x2b2, struct DosList *, NextDosEntry, struct DosList *, dlist, d1, unsigned long, flags, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Open(name, accessMode) \ + LP2(0x1e, BPTR, Open, STRPTR, name, d1, long, accessMode, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenFromLock(lock) \ + LP1(0x17a, BPTR, OpenFromLock, BPTR, lock, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Output() \ + LP0(0x3c, BPTR, Output, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ParentDir(lock) \ + LP1(0xd2, BPTR, ParentDir, BPTR, lock, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ParentOfFH(fh) \ + LP1(0x180, BPTR, ParentOfFH, BPTR, fh, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ParsePattern(pat, buf, buflen) \ + LP3(0x348, LONG, ParsePattern, STRPTR, pat, d1, STRPTR, buf, d2, long, buflen, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ParsePatternNoCase(pat, buf, buflen) \ + LP3(0x3c6, LONG, ParsePatternNoCase, STRPTR, pat, d1, STRPTR, buf, d2, long, buflen, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PathPart(path) \ + LP1(0x36c, STRPTR, PathPart, STRPTR, path, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PrintFault(code, header) \ + LP2(0x1da, BOOL, PrintFault, long, code, d1, STRPTR, header, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PutStr(str) \ + LP1(0x3b4, LONG, PutStr, STRPTR, str, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Read(file, buffer, length) \ + LP3(0x2a, LONG, Read, BPTR, file, d1, APTR, buffer, d2, long, length, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadArgs(arg_template, array, args) \ + LP3(0x31e, struct RDArgs *, ReadArgs, STRPTR, arg_template, d1, LONG *, array, d2, struct RDArgs *, args, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadItem(name, maxchars, cSource) \ + LP3(0x32a, LONG, ReadItem, STRPTR, name, d1, long, maxchars, d2, struct CSource *, cSource, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadLink(port, lock, path, buffer, size) \ + LP5(0x1b6, LONG, ReadLink, struct MsgPort *, port, d1, BPTR, lock, d2, STRPTR, path, d3, STRPTR, buffer, d4, unsigned long, size, d5, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Relabel(drive, newname) \ + LP2(0x2d0, LONG, Relabel, STRPTR, drive, d1, STRPTR, newname, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemAssignList(name, lock) \ + LP2(0x27c, LONG, RemAssignList, STRPTR, name, d1, BPTR, lock, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemDosEntry(dlist) \ + LP1(0x2a0, BOOL, RemDosEntry, struct DosList *, dlist, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemSegment(seg) \ + LP1(0x312, LONG, RemSegment, struct Segment *, seg, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Rename(oldName, newName) \ + LP2(0x4e, LONG, Rename, STRPTR, oldName, d1, STRPTR, newName, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReplyPkt(dp, res1, res2) \ + LP3NR(0x102, ReplyPkt, struct DosPacket *, dp, d1, long, res1, d2, long, res2, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RunCommand(seg, stack, paramptr, paramlen) \ + LP4(0x1f8, LONG, RunCommand, BPTR, seg, d1, long, stack, d2, STRPTR, paramptr, d3, long, paramlen, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SameDevice(lock1, lock2) \ + LP2(0x3d8, BOOL, SameDevice, BPTR, lock1, d1, BPTR, lock2, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SameLock(lock1, lock2) \ + LP2(0x1a4, LONG, SameLock, BPTR, lock1, d1, BPTR, lock2, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Seek(file, position, offset) \ + LP3(0x42, LONG, Seek, BPTR, file, d1, long, position, d2, long, offset, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SelectInput(fh) \ + LP1(0x126, BPTR, SelectInput, BPTR, fh, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SelectOutput(fh) \ + LP1(0x12c, BPTR, SelectOutput, BPTR, fh, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SendPkt(dp, port, replyport) \ + LP3NR(0xf6, SendPkt, struct DosPacket *, dp, d1, struct MsgPort *, port, d2, struct MsgPort *, replyport, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetArgStr(string) \ + LP1(0x21c, BOOL, SetArgStr, STRPTR, string, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetComment(name, comment) \ + LP2(0xb4, LONG, SetComment, STRPTR, name, d1, STRPTR, comment, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetConsoleTask(task) \ + LP1(0x204, struct MsgPort *, SetConsoleTask, struct MsgPort *, task, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetCurrentDirName(name) \ + LP1(0x22e, BOOL, SetCurrentDirName, STRPTR, name, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetFileDate(name, date) \ + LP2(0x18c, LONG, SetFileDate, STRPTR, name, d1, struct DateStamp *, date, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetFileSize(fh, pos, mode) \ + LP3(0x1c8, LONG, SetFileSize, BPTR, fh, d1, long, pos, d2, long, mode, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetFileSysTask(task) \ + LP1(0x210, struct MsgPort *, SetFileSysTask, struct MsgPort *, task, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetIoErr(result) \ + LP1(0x1ce, LONG, SetIoErr, long, result, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetMode(fh, mode) \ + LP2(0x1aa, LONG, SetMode, BPTR, fh, d1, long, mode, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetOwner(name, owner_info) \ + LP2(0x3e4, BOOL, SetOwner, STRPTR, name, d1, long, owner_info, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetProgramDir(lock) \ + LP1(0x252, BPTR, SetProgramDir, BPTR, lock, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetProgramName(name) \ + LP1(0x23a, BOOL, SetProgramName, STRPTR, name, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetPrompt(name) \ + LP1(0x246, BOOL, SetPrompt, STRPTR, name, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetProtection(name, protect) \ + LP2(0xba, LONG, SetProtection, STRPTR, name, d1, long, protect, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetVBuf(fh, buff, type, size) \ + LP4(0x16e, LONG, SetVBuf, BPTR, fh, d1, STRPTR, buff, d2, long, type, d3, long, size, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetVar(name, buffer, size, flags) \ + LP4(0x384, BOOL, SetVar, STRPTR, name, d1, STRPTR, buffer, d2, long, size, d3, long, flags, d4, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SplitName(name, seperator, buf, oldpos, size) \ + LP5(0x19e, WORD, SplitName, STRPTR, name, d1, unsigned long, seperator, d2, STRPTR, buf, d3, long, oldpos, d4, long, size, d5, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StartNotify(notify) \ + LP1(0x378, BOOL, StartNotify, struct NotifyRequest *, notify, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StrToDate(datetime) \ + LP1(0x2ee, LONG, StrToDate, struct DateTime *, datetime, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StrToLong(string, value) \ + LP2(0x330, LONG, StrToLong, STRPTR, string, d1, LONG *, value, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SystemTagList(command, tags) \ + LP2(0x25e, LONG, SystemTagList, STRPTR, command, d1, struct TagItem *, tags, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define System(a0, a1) SystemTagList ((a0), (a1)) + + #ifndef NO_PPCINLINE_STDARG + #define SystemTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; SystemTagList((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define UnGetC(fh, character) \ + LP2(0x13e, LONG, UnGetC, BPTR, fh, d1, long, character, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnLoadSeg(seglist) \ + LP1NR(0x9c, UnLoadSeg, BPTR, seglist, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnLock(lock) \ + LP1NR(0x5a, UnLock, BPTR, lock, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnLockDosList(flags) \ + LP1NR(0x294, UnLockDosList, unsigned long, flags, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnLockRecord(fh, offset, length) \ + LP3(0x11a, BOOL, UnLockRecord, BPTR, fh, d1, unsigned long, offset, d2, unsigned long, length, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnLockRecords(recArray) \ + LP1(0x120, BOOL, UnLockRecords, struct RecordLock *, recArray, d1, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define VFPrintf(fh, format, argarray) \ + LP3(0x162, LONG, VFPrintf, BPTR, fh, d1, STRPTR, format, d2, APTR, argarray, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define FPrintf(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; VFPrintf((a0), (a1), (APTR)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define VFWritef(fh, format, argarray) \ + LP3NR(0x15c, VFWritef, BPTR, fh, d1, STRPTR, format, d2, LONG *, argarray, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define FWritef(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; VFWritef((a0), (a1), (LONG *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define VPrintf(format, argarray) \ + LP2(0x3ba, LONG, VPrintf, STRPTR, format, d1, APTR, argarray, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define Printf(a0, tags...) \ + ({ULONG _tags[] = { tags }; VPrintf((a0), (APTR)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define WaitForChar(file, timeout) \ + LP2(0xcc, LONG, WaitForChar, BPTR, file, d1, long, timeout, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WaitPkt() \ + LP0(0xfc, struct DosPacket *, WaitPkt, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Write(file, buffer, length) \ + LP3(0x30, LONG, Write, BPTR, file, d1, APTR, buffer, d2, long, length, d3, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WriteChars(buf, buflen) \ + LP2(0x3ae, LONG, WriteChars, STRPTR, buf, d1, unsigned long, buflen, d2, \ + , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_DOS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/dtclass.h includenew/powerup/ppcinline/dtclass.h *** include_h/powerup/ppcinline/dtclass.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/dtclass.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,18 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_DTCLASS_H + #define _PPCINLINE_DTCLASS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef DTCLASS_BASE_NAME + #define DTCLASS_BASE_NAME DTClassBase + #endif /* !DTCLASS_BASE_NAME */ + + #define ObtainEngine() \ + LP0(0x1e, Class *, ObtainEngine, \ + , DTCLASS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_DTCLASS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/exec.h includenew/powerup/ppcinline/exec.h *** include_h/powerup/ppcinline/exec.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/exec.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,486 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_EXEC_H + #define _PPCINLINE_EXEC_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef EXEC_BASE_NAME + #define EXEC_BASE_NAME SysBase + #endif /* !EXEC_BASE_NAME */ + + #define AbortIO(ioRequest) \ + LP1NR(0x1e0, AbortIO, struct IORequest *, ioRequest, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddDevice(device) \ + LP1NR(0x1b0, AddDevice, struct Device *, device, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddHead(list, node) \ + LP2NR(0xf0, AddHead, struct List *, list, a0, struct Node *, node, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddIntServer(intNumber, interrupt) \ + LP2NR(0xa8, AddIntServer, long, intNumber, d0, struct Interrupt *, interrupt, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddLibrary(library) \ + LP1NR(0x18c, AddLibrary, struct Library *, library, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddMemHandler(memhand) \ + LP1NR(0x306, AddMemHandler, struct Interrupt *, memhand, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddMemList(size, attributes, pri, base, name) \ + LP5NR(0x26a, AddMemList, unsigned long, size, d0, unsigned long, attributes, d1, long, pri, d2, APTR, base, a0, UBYTE *, name, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddPort(port) \ + LP1NR(0x162, AddPort, struct MsgPort *, port, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddResource(resource) \ + LP1NR(0x1e6, AddResource, APTR, resource, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddSemaphore(sigSem) \ + LP1NR(0x258, AddSemaphore, struct SignalSemaphore *, sigSem, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddTail(list, node) \ + LP2NR(0xf6, AddTail, struct List *, list, a0, struct Node *, node, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddTask(task, initPC, finalPC) \ + LP3(0x11a, APTR, AddTask, struct Task *, task, a1, APTR, initPC, a2, APTR, finalPC, a3, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Alert(alertNum) \ + LP1NR(0x6c, Alert, unsigned long, alertNum, d7, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocAbs(byteSize, location) \ + LP2(0xcc, APTR, AllocAbs, unsigned long, byteSize, d0, APTR, location, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocEntry(entry) \ + LP1(0xde, struct MemList *, AllocEntry, struct MemList *, entry, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocMem(byteSize, requirements) \ + LP2(0xc6, APTR, AllocMem, unsigned long, byteSize, d0, unsigned long, requirements, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocPooled(poolHeader, memSize) \ + LP2(0x2c4, APTR, AllocPooled, APTR, poolHeader, a0, unsigned long, memSize, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocSignal(signalNum) \ + LP1(0x14a, BYTE, AllocSignal, long, signalNum, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocTrap(trapNum) \ + LP1(0x156, LONG, AllocTrap, long, trapNum, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocVec(byteSize, requirements) \ + LP2(0x2ac, APTR, AllocVec, unsigned long, byteSize, d0, unsigned long, requirements, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Allocate(freeList, byteSize) \ + LP2(0xba, APTR, Allocate, struct MemHeader *, freeList, a0, unsigned long, byteSize, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AttemptSemaphore(sigSem) \ + LP1(0x240, ULONG, AttemptSemaphore, struct SignalSemaphore *, sigSem, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AttemptSemaphoreShared(sigSem) \ + LP1(0x2d0, ULONG, AttemptSemaphoreShared, struct SignalSemaphore *, sigSem, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AvailMem(requirements) \ + LP1(0xd8, ULONG, AvailMem, unsigned long, requirements, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CacheClearE(address, length, caches) \ + LP3NR(0x282, CacheClearE, APTR, address, a0, unsigned long, length, d0, unsigned long, caches, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CacheClearU() \ + LP0NR(0x27c, CacheClearU, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CacheControl(cacheBits, cacheMask) \ + LP2(0x288, ULONG, CacheControl, unsigned long, cacheBits, d0, unsigned long, cacheMask, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CachePostDMA(address, length, flags) \ + LP3NR(0x300, CachePostDMA, APTR, address, a0, ULONG *, length, a1, unsigned long, flags, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CachePreDMA(address, length, flags) \ + LP3(0x2fa, APTR, CachePreDMA, APTR, address, a0, ULONG *, length, a1, unsigned long, flags, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Cause(interrupt) \ + LP1NR(0xb4, Cause, struct Interrupt *, interrupt, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CheckIO(ioRequest) \ + LP1(0x1d4, struct IORequest *, CheckIO, struct IORequest *, ioRequest, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChildFree(tid) \ + LP1NR(0x2e2, ChildFree, APTR, tid, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChildOrphan(tid) \ + LP1NR(0x2e8, ChildOrphan, APTR, tid, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChildStatus(tid) \ + LP1NR(0x2ee, ChildStatus, APTR, tid, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChildWait(tid) \ + LP1NR(0x2f4, ChildWait, APTR, tid, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseDevice(ioRequest) \ + LP1NR(0x1c2, CloseDevice, struct IORequest *, ioRequest, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseLibrary(library) \ + LP1NR(0x19e, CloseLibrary, struct Library *, library, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ColdReboot() \ + LP0NR(0x2d6, ColdReboot, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CopyMem(source, dest, size) \ + LP3NR(0x270, CopyMem, APTR, source, a0, APTR, dest, a1, unsigned long, size, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CopyMemQuick(source, dest, size) \ + LP3NR(0x276, CopyMemQuick, APTR, source, a0, APTR, dest, a1, unsigned long, size, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateIORequest(port, size) \ + LP2(0x28e, APTR, CreateIORequest, struct MsgPort *, port, a0, unsigned long, size, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateMsgPort() \ + LP0(0x29a, struct MsgPort *, CreateMsgPort, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreatePool(requirements, puddleSize, threshSize) \ + LP3(0x2b8, APTR, CreatePool, unsigned long, requirements, d0, unsigned long, puddleSize, d1, unsigned long, threshSize, d2, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Deallocate(freeList, memoryBlock, byteSize) \ + LP3NR(0xc0, Deallocate, struct MemHeader *, freeList, a0, APTR, memoryBlock, a1, unsigned long, byteSize, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Debug(flags) \ + LP1NR(0x72, Debug, unsigned long, flags, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeleteIORequest(iorequest) \ + LP1NR(0x294, DeleteIORequest, APTR, iorequest, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeleteMsgPort(port) \ + LP1NR(0x2a0, DeleteMsgPort, struct MsgPort *, port, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeletePool(poolHeader) \ + LP1NR(0x2be, DeletePool, APTR, poolHeader, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Disable() \ + LP0NR(0x78, Disable, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoIO(ioRequest) \ + LP1(0x1c8, BYTE, DoIO, struct IORequest *, ioRequest, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Enable() \ + LP0NR(0x7e, Enable, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Enqueue(list, node) \ + LP2NR(0x10e, Enqueue, struct List *, list, a0, struct Node *, node, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindName(list, name) \ + LP2(0x114, struct Node *, FindName, struct List *, list, a0, UBYTE *, name, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindPort(name) \ + LP1(0x186, struct MsgPort *, FindPort, UBYTE *, name, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindResident(name) \ + LP1(0x60, struct Resident *, FindResident, UBYTE *, name, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindSemaphore(sigSem) \ + LP1(0x252, struct SignalSemaphore *, FindSemaphore, UBYTE *, sigSem, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindTask(name) \ + LP1(0x126, struct Task *, FindTask, UBYTE *, name, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Forbid() \ + LP0NR(0x84, Forbid, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeEntry(entry) \ + LP1NR(0xe4, FreeEntry, struct MemList *, entry, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeMem(memoryBlock, byteSize) \ + LP2NR(0xd2, FreeMem, APTR, memoryBlock, a1, unsigned long, byteSize, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreePooled(poolHeader, memory, memSize) \ + LP3NR(0x2ca, FreePooled, APTR, poolHeader, a0, APTR, memory, a1, unsigned long, memSize, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeSignal(signalNum) \ + LP1NR(0x150, FreeSignal, long, signalNum, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeTrap(trapNum) \ + LP1NR(0x15c, FreeTrap, long, trapNum, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeVec(memoryBlock) \ + LP1NR(0x2b2, FreeVec, APTR, memoryBlock, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetCC() \ + LP0(0x210, ULONG, GetCC, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetMsg(port) \ + LP1(0x174, struct Message *, GetMsg, struct MsgPort *, port, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitCode(startClass, version) \ + LP2NR(0x48, InitCode, unsigned long, startClass, d0, unsigned long, version, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitResident(resident, segList) \ + LP2(0x66, APTR, InitResident, struct Resident *, resident, a1, unsigned long, segList, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitSemaphore(sigSem) \ + LP1NR(0x22e, InitSemaphore, struct SignalSemaphore *, sigSem, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitStruct(initTable, memory, size) \ + LP3NR(0x4e, InitStruct, APTR, initTable, a1, APTR, memory, a2, unsigned long, size, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Insert(list, node, pred) \ + LP3NR(0xea, Insert, struct List *, list, a0, struct Node *, node, a1, struct Node *, pred, a2, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MakeFunctions(target, functionArray, funcDispBase) \ + LP3NR(0x5a, MakeFunctions, APTR, target, a0, APTR, functionArray, a1, unsigned long, funcDispBase, a2, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MakeLibrary(funcInit, structInit, libInit, dataSize, segList) \ + LP5FP(0x54, struct Library *, MakeLibrary, APTR, funcInit, a0, APTR, structInit, a1, __fpt, libInit, a2, unsigned long, dataSize, d0, unsigned long, segList, d1, \ + , EXEC_BASE_NAME, unsigned long (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ObtainQuickVector(interruptCode) \ + LP1(0x312, ULONG, ObtainQuickVector, APTR, interruptCode, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ObtainSemaphore(sigSem) \ + LP1NR(0x234, ObtainSemaphore, struct SignalSemaphore *, sigSem, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ObtainSemaphoreList(sigSem) \ + LP1NR(0x246, ObtainSemaphoreList, struct List *, sigSem, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ObtainSemaphoreShared(sigSem) \ + LP1NR(0x2a6, ObtainSemaphoreShared, struct SignalSemaphore *, sigSem, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OldOpenLibrary(libName) \ + LP1(0x198, struct Library *, OldOpenLibrary, UBYTE *, libName, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenDevice(devName, unit, ioRequest, flags) \ + LP4(0x1bc, BYTE, OpenDevice, UBYTE *, devName, a0, unsigned long, unit, d0, struct IORequest *, ioRequest, a1, unsigned long, flags, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenLibrary(libName, version) \ + LP2(0x228, struct Library *, OpenLibrary, UBYTE *, libName, a1, unsigned long, version, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenResource(resName) \ + LP1(0x1f2, APTR, OpenResource, UBYTE *, resName, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Permit() \ + LP0NR(0x8a, Permit, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Procure(sigSem, bidMsg) \ + LP2(0x21c, ULONG, Procure, struct SignalSemaphore *, sigSem, a0, struct SemaphoreMessage *, bidMsg, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PutMsg(port, message) \ + LP2NR(0x16e, PutMsg, struct MsgPort *, port, a0, struct Message *, message, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RawDoFmt(formatString, dataStream, putChProc, putChData) \ + LP4FP(0x20a, APTR, RawDoFmt, UBYTE *, formatString, a0, APTR, dataStream, a1, __fpt, putChProc, a2, APTR, putChData, a3, \ + , EXEC_BASE_NAME, void (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleaseSemaphore(sigSem) \ + LP1NR(0x23a, ReleaseSemaphore, struct SignalSemaphore *, sigSem, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleaseSemaphoreList(sigSem) \ + LP1NR(0x24c, ReleaseSemaphoreList, struct List *, sigSem, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemDevice(device) \ + LP1NR(0x1b6, RemDevice, struct Device *, device, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemHead(list) \ + LP1(0x102, struct Node *, RemHead, struct List *, list, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemIntServer(intNumber, interrupt) \ + LP2NR(0xae, RemIntServer, long, intNumber, d0, struct Interrupt *, interrupt, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemLibrary(library) \ + LP1NR(0x192, RemLibrary, struct Library *, library, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemMemHandler(memhand) \ + LP1NR(0x30c, RemMemHandler, struct Interrupt *, memhand, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemPort(port) \ + LP1NR(0x168, RemPort, struct MsgPort *, port, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemResource(resource) \ + LP1NR(0x1ec, RemResource, APTR, resource, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemSemaphore(sigSem) \ + LP1NR(0x25e, RemSemaphore, struct SignalSemaphore *, sigSem, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemTail(list) \ + LP1(0x108, struct Node *, RemTail, struct List *, list, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemTask(task) \ + LP1NR(0x120, RemTask, struct Task *, task, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Remove(node) \ + LP1NR(0xfc, Remove, struct Node *, node, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReplyMsg(message) \ + LP1NR(0x17a, ReplyMsg, struct Message *, message, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SendIO(ioRequest) \ + LP1NR(0x1ce, SendIO, struct IORequest *, ioRequest, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetExcept(newSignals, signalSet) \ + LP2(0x138, ULONG, SetExcept, unsigned long, newSignals, d0, unsigned long, signalSet, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetFunction(library, funcOffset, newFunction) \ + LP3FP(0x1a4, APTR, SetFunction, struct Library *, library, a1, long, funcOffset, a0, __fpt, newFunction, d0, \ + , EXEC_BASE_NAME, unsigned long (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetIntVector(intNumber, interrupt) \ + LP2(0xa2, struct Interrupt *, SetIntVector, long, intNumber, d0, struct Interrupt *, interrupt, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetSR(newSR, mask) \ + LP2(0x90, ULONG, SetSR, unsigned long, newSR, d0, unsigned long, mask, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetSignal(newSignals, signalSet) \ + LP2(0x132, ULONG, SetSignal, unsigned long, newSignals, d0, unsigned long, signalSet, d1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetTaskPri(task, priority) \ + LP2(0x12c, BYTE, SetTaskPri, struct Task *, task, a1, long, priority, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Signal(task, signalSet) \ + LP2NR(0x144, Signal, struct Task *, task, a1, unsigned long, signalSet, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StackSwap(newStack) \ + LP1NR(0x2dc, StackSwap, struct StackSwapStruct *, newStack, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SumKickData() \ + LP0(0x264, ULONG, SumKickData, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SumLibrary(library) \ + LP1NR(0x1aa, SumLibrary, struct Library *, library, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SuperState() \ + LP0(0x96, APTR, SuperState, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Supervisor(userFunction) \ + LP1A5FP(0x1e, ULONG, Supervisor, __fpt, userFunction, a5, \ + , EXEC_BASE_NAME, unsigned long (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define TypeOfMem(address) \ + LP1(0x216, ULONG, TypeOfMem, APTR, address, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UserState(sysStack) \ + LP1NR(0x9c, UserState, APTR, sysStack, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Vacate(sigSem, bidMsg) \ + LP2NR(0x222, Vacate, struct SignalSemaphore *, sigSem, a0, struct SemaphoreMessage *, bidMsg, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Wait(signalSet) \ + LP1(0x13e, ULONG, Wait, unsigned long, signalSet, d0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WaitIO(ioRequest) \ + LP1(0x1da, BYTE, WaitIO, struct IORequest *, ioRequest, a1, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WaitPort(port) \ + LP1(0x180, struct Message *, WaitPort, struct MsgPort *, port, a0, \ + , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_EXEC_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/expansion.h includenew/powerup/ppcinline/expansion.h *** include_h/powerup/ppcinline/expansion.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/expansion.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,98 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_EXPANSION_H + #define _PPCINLINE_EXPANSION_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef EXPANSION_BASE_NAME + #define EXPANSION_BASE_NAME ExpansionBase + #endif /* !EXPANSION_BASE_NAME */ + + #define AddBootNode(bootPri, flags, deviceNode, configDev) \ + LP4(0x24, BOOL, AddBootNode, long, bootPri, d0, unsigned long, flags, d1, struct DeviceNode *, deviceNode, a0, struct ConfigDev *, configDev, a1, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddConfigDev(configDev) \ + LP1NR(0x1e, AddConfigDev, struct ConfigDev *, configDev, a0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddDosNode(bootPri, flags, deviceNode) \ + LP3(0x96, BOOL, AddDosNode, long, bootPri, d0, unsigned long, flags, d1, struct DeviceNode *, deviceNode, a0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocBoardMem(slotSpec) \ + LP1NR(0x2a, AllocBoardMem, unsigned long, slotSpec, d0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocConfigDev() \ + LP0(0x30, struct ConfigDev *, AllocConfigDev, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocExpansionMem(numSlots, slotAlign) \ + LP2(0x36, APTR, AllocExpansionMem, unsigned long, numSlots, d0, unsigned long, slotAlign, d1, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ConfigBoard(board, configDev) \ + LP2NR(0x3c, ConfigBoard, APTR, board, a0, struct ConfigDev *, configDev, a1, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ConfigChain(baseAddr) \ + LP1NR(0x42, ConfigChain, APTR, baseAddr, a0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindConfigDev(oldConfigDev, manufacturer, product) \ + LP3(0x48, struct ConfigDev *, FindConfigDev, struct ConfigDev *, oldConfigDev, a0, long, manufacturer, d0, long, product, d1, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeBoardMem(startSlot, slotSpec) \ + LP2NR(0x4e, FreeBoardMem, unsigned long, startSlot, d0, unsigned long, slotSpec, d1, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeConfigDev(configDev) \ + LP1NR(0x54, FreeConfigDev, struct ConfigDev *, configDev, a0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeExpansionMem(startSlot, numSlots) \ + LP2NR(0x5a, FreeExpansionMem, unsigned long, startSlot, d0, unsigned long, numSlots, d1, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetCurrentBinding(currentBinding, bindingSize) \ + LP2(0x8a, ULONG, GetCurrentBinding, struct CurrentBinding *, currentBinding, a0, unsigned long, bindingSize, d0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MakeDosNode(parmPacket) \ + LP1(0x90, struct DeviceNode *, MakeDosNode, APTR, parmPacket, a0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ObtainConfigBinding() \ + LP0NR(0x78, ObtainConfigBinding, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadExpansionByte(board, offset) \ + LP2(0x60, UBYTE, ReadExpansionByte, APTR, board, a0, unsigned long, offset, d0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadExpansionRom(board, configDev) \ + LP2NR(0x66, ReadExpansionRom, APTR, board, a0, struct ConfigDev *, configDev, a1, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleaseConfigBinding() \ + LP0NR(0x7e, ReleaseConfigBinding, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemConfigDev(configDev) \ + LP1NR(0x6c, RemConfigDev, struct ConfigDev *, configDev, a0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetCurrentBinding(currentBinding, bindingSize) \ + LP2NR(0x84, SetCurrentBinding, struct CurrentBinding *, currentBinding, a0, unsigned long, bindingSize, d0, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WriteExpansionByte(board, offset, byte) \ + LP3NR(0x72, WriteExpansionByte, APTR, board, a0, unsigned long, offset, d0, unsigned long, byte, d1, \ + , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_EXPANSION_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/gadtools.h includenew/powerup/ppcinline/gadtools.h *** include_h/powerup/ppcinline/gadtools.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/gadtools.h Wed Feb 14 02:41:19 2001 *************** *** 0 **** --- 1,130 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_GADTOOLS_H + #define _PPCINLINE_GADTOOLS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef GADTOOLS_BASE_NAME + #define GADTOOLS_BASE_NAME GadToolsBase + #endif /* !GADTOOLS_BASE_NAME */ + + #define CreateContext(glistptr) \ + LP1(0x72, struct Gadget *, CreateContext, struct Gadget **, glistptr, a0, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateGadgetA(kind, gad, ng, taglist) \ + LP4(0x1e, struct Gadget *, CreateGadgetA, unsigned long, kind, d0, struct Gadget *, gad, a0, struct NewGadget *, ng, a1, struct TagItem *, taglist, a2, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define CreateGadget(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; CreateGadgetA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define CreateMenusA(newmenu, taglist) \ + LP2(0x30, struct Menu *, CreateMenusA, struct NewMenu *, newmenu, a0, struct TagItem *, taglist, a1, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define CreateMenus(a0, tags...) \ + ({ULONG _tags[] = { tags }; CreateMenusA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define DrawBevelBoxA(rport, left, top, width, height, taglist) \ + LP6NR(0x78, DrawBevelBoxA, struct RastPort *, rport, a0, long, left, d0, long, top, d1, long, width, d2, long, height, d3, struct TagItem *, taglist, a1, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define DrawBevelBox(a0, a1, a2, a3, a4, tags...) \ + ({ULONG _tags[] = { tags }; DrawBevelBoxA((a0), (a1), (a2), (a3), (a4), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define FreeGadgets(gad) \ + LP1NR(0x24, FreeGadgets, struct Gadget *, gad, a0, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeMenus(menu) \ + LP1NR(0x36, FreeMenus, struct Menu *, menu, a0, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeVisualInfo(vi) \ + LP1NR(0x84, FreeVisualInfo, APTR, vi, a0, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GT_BeginRefresh(win) \ + LP1NR(0x5a, GT_BeginRefresh, struct Window *, win, a0, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GT_EndRefresh(win, complete) \ + LP2NR(0x60, GT_EndRefresh, struct Window *, win, a0, long, complete, d0, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GT_FilterIMsg(imsg) \ + LP1(0x66, struct IntuiMessage *, GT_FilterIMsg, struct IntuiMessage *, imsg, a1, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GT_GetGadgetAttrsA(gad, win, req, taglist) \ + LP4(0xae, LONG, GT_GetGadgetAttrsA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, taglist, a3, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define GT_GetGadgetAttrs(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; GT_GetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GT_GetIMsg(iport) \ + LP1(0x48, struct IntuiMessage *, GT_GetIMsg, struct MsgPort *, iport, a0, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GT_PostFilterIMsg(imsg) \ + LP1(0x6c, struct IntuiMessage *, GT_PostFilterIMsg, struct IntuiMessage *, imsg, a1, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GT_RefreshWindow(win, req) \ + LP2NR(0x54, GT_RefreshWindow, struct Window *, win, a0, struct Requester *, req, a1, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GT_ReplyIMsg(imsg) \ + LP1NR(0x4e, GT_ReplyIMsg, struct IntuiMessage *, imsg, a1, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GT_SetGadgetAttrsA(gad, win, req, taglist) \ + LP4NR(0x2a, GT_SetGadgetAttrsA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, taglist, a3, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define GT_SetGadgetAttrs(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; GT_SetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetVisualInfoA(screen, taglist) \ + LP2(0x7e, APTR, GetVisualInfoA, struct Screen *, screen, a0, struct TagItem *, taglist, a1, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define GetVisualInfo(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetVisualInfoA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define LayoutMenuItemsA(firstitem, vi, taglist) \ + LP3(0x3c, BOOL, LayoutMenuItemsA, struct MenuItem *, firstitem, a0, APTR, vi, a1, struct TagItem *, taglist, a2, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define LayoutMenuItems(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; LayoutMenuItemsA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define LayoutMenusA(firstmenu, vi, taglist) \ + LP3(0x42, BOOL, LayoutMenusA, struct Menu *, firstmenu, a0, APTR, vi, a1, struct TagItem *, taglist, a2, \ + , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define LayoutMenus(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; LayoutMenusA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #endif /* !_PPCINLINE_GADTOOLS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/graphics.h includenew/powerup/ppcinline/graphics.h *** include_h/powerup/ppcinline/graphics.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/graphics.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,693 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_GRAPHICS_H + #define _PPCINLINE_GRAPHICS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef GRAPHICS_BASE_NAME + #define GRAPHICS_BASE_NAME GfxBase + #endif /* !GRAPHICS_BASE_NAME */ + + #define AddAnimOb(anOb, anKey, rp) \ + LP3NR(0x9c, AddAnimOb, struct AnimOb *, anOb, a0, struct AnimOb **, anKey, a1, struct RastPort *, rp, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddBob(bob, rp) \ + LP2NR(0x60, AddBob, struct Bob *, bob, a0, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddFont(textFont) \ + LP1NR(0x1e0, AddFont, struct TextFont *, textFont, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddVSprite(vSprite, rp) \ + LP2NR(0x66, AddVSprite, struct VSprite *, vSprite, a0, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocBitMap(sizex, sizey, depth, flags, friend_bitmap) \ + LP5(0x396, struct BitMap *, AllocBitMap, unsigned long, sizex, d0, unsigned long, sizey, d1, unsigned long, depth, d2, unsigned long, flags, d3, struct BitMap *, friend_bitmap, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocDBufInfo(vp) \ + LP1(0x3c6, struct DBufInfo *, AllocDBufInfo, struct ViewPort *, vp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocRaster(width, height) \ + LP2(0x1ec, PLANEPTR, AllocRaster, unsigned long, width, d0, unsigned long, height, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocSpriteDataA(bm, tags) \ + LP2(0x3fc, struct ExtSprite *, AllocSpriteDataA, struct BitMap *, bm, a2, struct TagItem *, tags, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define AllocSpriteData(a0, tags...) \ + ({ULONG _tags[] = { tags }; AllocSpriteDataA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AndRectRegion(region, rectangle) \ + LP2NR(0x1f8, AndRectRegion, struct Region *, region, a0, struct Rectangle *, rectangle, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AndRegionRegion(srcRegion, destRegion) \ + LP2(0x270, BOOL, AndRegionRegion, struct Region *, srcRegion, a0, struct Region *, destRegion, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Animate(anKey, rp) \ + LP2NR(0xa2, Animate, struct AnimOb **, anKey, a0, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AreaDraw(rp, x, y) \ + LP3(0x102, LONG, AreaDraw, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AreaEllipse(rp, xCenter, yCenter, a, b) \ + LP5(0xba, LONG, AreaEllipse, struct RastPort *, rp, a1, long, xCenter, d0, long, yCenter, d1, long, a, d2, long, b, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AreaEnd(rp) \ + LP1(0x108, LONG, AreaEnd, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AreaMove(rp, x, y) \ + LP3(0xfc, LONG, AreaMove, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AskFont(rp, textAttr) \ + LP2NR(0x1da, AskFont, struct RastPort *, rp, a1, struct TextAttr *, textAttr, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AskSoftStyle(rp) \ + LP1(0x54, ULONG, AskSoftStyle, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AttachPalExtra(cm, vp) \ + LP2(0x342, LONG, AttachPalExtra, struct ColorMap *, cm, a0, struct ViewPort *, vp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AttemptLockLayerRom(layer) \ + LP1A5(0x28e, BOOL, AttemptLockLayerRom, struct Layer *, layer, d7, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BestModeIDA(tags) \ + LP1(0x41a, ULONG, BestModeIDA, struct TagItem *, tags, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define BestModeID(tags...) \ + ({ULONG _tags[] = { tags }; BestModeIDA((struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define BitMapScale(bitScaleArgs) \ + LP1NR(0x2a6, BitMapScale, struct BitScaleArgs *, bitScaleArgs, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BltBitMap(srcBitMap, xSrc, ySrc, destBitMap, xDest, yDest, xSize, ySize, minterm, mask, tempA) \ + LP11(0x1e, LONG, BltBitMap, struct BitMap *, srcBitMap, a0, long, xSrc, d0, long, ySrc, d1, struct BitMap *, destBitMap, a1, long, xDest, d2, long, yDest, d3, long, xSize, d4, long, ySize, d5, unsigned long, minterm, d6, unsigned long, mask, d7, PLANEPTR, tempA, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BltBitMapRastPort(srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm) \ + LP9NR(0x25e, BltBitMapRastPort, struct BitMap *, srcBitMap, a0, long, xSrc, d0, long, ySrc, d1, struct RastPort *, destRP, a1, long, xDest, d2, long, yDest, d3, long, xSize, d4, long, ySize, d5, unsigned long, minterm, d6, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BltClear(memBlock, byteCount, flags) \ + LP3NR(0x12c, BltClear, PLANEPTR, memBlock, a1, unsigned long, byteCount, d0, unsigned long, flags, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BltMaskBitMapRastPort(srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm, bltMask) \ + LP10NR(0x27c, BltMaskBitMapRastPort, struct BitMap *, srcBitMap, a0, long, xSrc, d0, long, ySrc, d1, struct RastPort *, destRP, a1, long, xDest, d2, long, yDest, d3, long, xSize, d4, long, ySize, d5, unsigned long, minterm, d6, PLANEPTR, bltMask, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BltPattern(rp, mask, xMin, yMin, xMax, yMax, maskBPR) \ + LP7NR(0x138, BltPattern, struct RastPort *, rp, a1, PLANEPTR, mask, a0, long, xMin, d0, long, yMin, d1, long, xMax, d2, long, yMax, d3, unsigned long, maskBPR, d4, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BltTemplate(source, xSrc, srcMod, destRP, xDest, yDest, xSize, ySize) \ + LP8NR(0x24, BltTemplate, PLANEPTR, source, a0, long, xSrc, d0, long, srcMod, d1, struct RastPort *, destRP, a1, long, xDest, d2, long, yDest, d3, long, xSize, d4, long, ySize, d5, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CBump(copList) \ + LP1NR(0x16e, CBump, struct UCopList *, copList, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CMove(copList, destination, data) \ + LP3NR(0x174, CMove, struct UCopList *, copList, a1, APTR, destination, d0, long, data, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CWait(copList, v, h) \ + LP3NR(0x17a, CWait, struct UCopList *, copList, a1, long, v, d0, long, h, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CalcIVG(v, vp) \ + LP2(0x33c, UWORD, CalcIVG, struct View *, v, a0, struct ViewPort *, vp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChangeExtSpriteA(vp, oldsprite, newsprite, tags) \ + LP4(0x402, LONG, ChangeExtSpriteA, struct ViewPort *, vp, a0, struct ExtSprite *, oldsprite, a1, struct ExtSprite *, newsprite, a2, struct TagItem *, tags, a3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define ChangeExtSprite(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; ChangeExtSpriteA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ChangeSprite(vp, sprite, newData) \ + LP3NR(0x1a4, ChangeSprite, struct ViewPort *, vp, a0, struct SimpleSprite *, sprite, a1, PLANEPTR, newData, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChangeVPBitMap(vp, bm, db) \ + LP3NR(0x3ae, ChangeVPBitMap, struct ViewPort *, vp, a0, struct BitMap *, bm, a1, struct DBufInfo *, db, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClearEOL(rp) \ + LP1NR(0x2a, ClearEOL, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClearRectRegion(region, rectangle) \ + LP2(0x20a, BOOL, ClearRectRegion, struct Region *, region, a0, struct Rectangle *, rectangle, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClearRegion(region) \ + LP1NR(0x210, ClearRegion, struct Region *, region, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClearScreen(rp) \ + LP1NR(0x30, ClearScreen, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClipBlit(srcRP, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm) \ + LP9NR(0x228, ClipBlit, struct RastPort *, srcRP, a0, long, xSrc, d0, long, ySrc, d1, struct RastPort *, destRP, a1, long, xDest, d2, long, yDest, d3, long, xSize, d4, long, ySize, d5, unsigned long, minterm, d6, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseFont(textFont) \ + LP1NR(0x4e, CloseFont, struct TextFont *, textFont, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseMonitor(monitorSpec) \ + LP1(0x2d0, BOOL, CloseMonitor, struct MonitorSpec *, monitorSpec, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CoerceMode(vp, monitorid, flags) \ + LP3(0x3a8, ULONG, CoerceMode, struct ViewPort *, vp, a0, unsigned long, monitorid, d0, unsigned long, flags, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CopySBitMap(layer) \ + LP1NR(0x1c2, CopySBitMap, struct Layer *, layer, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisownBlitter() \ + LP0NR(0x1ce, DisownBlitter, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisposeRegion(region) \ + LP1NR(0x216, DisposeRegion, struct Region *, region, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoCollision(rp) \ + LP1NR(0x6c, DoCollision, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Draw(rp, x, y) \ + LP3NR(0xf6, Draw, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DrawEllipse(rp, xCenter, yCenter, a, b) \ + LP5NR(0xb4, DrawEllipse, struct RastPort *, rp, a1, long, xCenter, d0, long, yCenter, d1, long, a, d2, long, b, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DrawGList(rp, vp) \ + LP2NR(0x72, DrawGList, struct RastPort *, rp, a1, struct ViewPort *, vp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EraseRect(rp, xMin, yMin, xMax, yMax) \ + LP5NR(0x32a, EraseRect, struct RastPort *, rp, a1, long, xMin, d0, long, yMin, d1, long, xMax, d2, long, yMax, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ExtendFont(font, fontTags) \ + LP2(0x330, ULONG, ExtendFont, struct TextFont *, font, a0, struct TagItem *, fontTags, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define ExtendFontTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; ExtendFont((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define FindColor(cm, r, g, b, maxcolor) \ + LP5(0x3f0, LONG, FindColor, struct ColorMap *, cm, a3, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, long, maxcolor, d4, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindDisplayInfo(displayID) \ + LP1(0x2d6, DisplayInfoHandle, FindDisplayInfo, unsigned long, displayID, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Flood(rp, mode, x, y) \ + LP4(0x14a, BOOL, Flood, struct RastPort *, rp, a1, unsigned long, mode, d2, long, x, d0, long, y, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FontExtent(font, fontExtent) \ + LP2NR(0x2fa, FontExtent, struct TextFont *, font, a0, struct TextExtent *, fontExtent, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeBitMap(bm) \ + LP1NR(0x39c, FreeBitMap, struct BitMap *, bm, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeColorMap(colorMap) \ + LP1NR(0x240, FreeColorMap, struct ColorMap *, colorMap, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeCopList(copList) \ + LP1NR(0x222, FreeCopList, struct CopList *, copList, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeCprList(cprList) \ + LP1NR(0x234, FreeCprList, struct cprlist *, cprList, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeDBufInfo(dbi) \ + LP1NR(0x3cc, FreeDBufInfo, struct DBufInfo *, dbi, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeGBuffers(anOb, rp, flag) \ + LP3NR(0x258, FreeGBuffers, struct AnimOb *, anOb, a0, struct RastPort *, rp, a1, long, flag, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeRaster(p, width, height) \ + LP3NR(0x1f2, FreeRaster, PLANEPTR, p, a0, unsigned long, width, d0, unsigned long, height, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeSprite(num) \ + LP1NR(0x19e, FreeSprite, long, num, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeSpriteData(sp) \ + LP1NR(0x408, FreeSpriteData, struct ExtSprite *, sp, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeVPortCopLists(vp) \ + LP1NR(0x21c, FreeVPortCopLists, struct ViewPort *, vp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetAPen(rp) \ + LP1(0x35a, ULONG, GetAPen, struct RastPort *, rp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetBPen(rp) \ + LP1(0x360, ULONG, GetBPen, struct RastPort *, rp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetBitMapAttr(bm, attrnum) \ + LP2(0x3c0, ULONG, GetBitMapAttr, struct BitMap *, bm, a0, unsigned long, attrnum, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetColorMap(entries) \ + LP1(0x23a, struct ColorMap *, GetColorMap, long, entries, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDisplayInfoData(handle, buf, size, tagID, displayID) \ + LP5(0x2f4, ULONG, GetDisplayInfoData, DisplayInfoHandle, handle, a0, UBYTE *, buf, a1, unsigned long, size, d0, unsigned long, tagID, d1, unsigned long, displayID, d2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDrMd(rp) \ + LP1(0x366, ULONG, GetDrMd, struct RastPort *, rp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetExtSpriteA(ss, tags) \ + LP2(0x3a2, LONG, GetExtSpriteA, struct ExtSprite *, ss, a2, struct TagItem *, tags, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define GetExtSprite(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetExtSpriteA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetGBuffers(anOb, rp, flag) \ + LP3(0xa8, BOOL, GetGBuffers, struct AnimOb *, anOb, a0, struct RastPort *, rp, a1, long, flag, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetOutlinePen(rp) \ + LP1(0x36c, ULONG, GetOutlinePen, struct RastPort *, rp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetRGB32(cm, firstcolor, ncolors, table) \ + LP4NR(0x384, GetRGB32, struct ColorMap *, cm, a0, unsigned long, firstcolor, d0, unsigned long, ncolors, d1, ULONG *, table, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetRGB4(colorMap, entry) \ + LP2(0x246, ULONG, GetRGB4, struct ColorMap *, colorMap, a0, long, entry, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetRPAttrsA(rp, tags) \ + LP2NR(0x414, GetRPAttrsA, struct RastPort *, rp, a0, struct TagItem *, tags, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define GetRPAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetRPAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetSprite(sprite, num) \ + LP2(0x198, WORD, GetSprite, struct SimpleSprite *, sprite, a0, long, num, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetVPModeID(vp) \ + LP1(0x318, LONG, GetVPModeID, struct ViewPort *, vp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GfxAssociate(associateNode, gfxNodePtr) \ + LP2NR(0x2a0, GfxAssociate, APTR, associateNode, a0, APTR, gfxNodePtr, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GfxFree(gfxNodePtr) \ + LP1NR(0x29a, GfxFree, APTR, gfxNodePtr, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GfxLookUp(associateNode) \ + LP1(0x2be, APTR, GfxLookUp, APTR, associateNode, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GfxNew(gfxNodeType) \ + LP1(0x294, APTR, GfxNew, unsigned long, gfxNodeType, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitArea(areaInfo, vectorBuffer, maxVectors) \ + LP3NR(0x11a, InitArea, struct AreaInfo *, areaInfo, a0, APTR, vectorBuffer, a1, long, maxVectors, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitBitMap(bitMap, depth, width, height) \ + LP4NR(0x186, InitBitMap, struct BitMap *, bitMap, a0, long, depth, d0, long, width, d1, long, height, d2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitGMasks(anOb) \ + LP1NR(0xae, InitGMasks, struct AnimOb *, anOb, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitGels(head, tail, gelsInfo) \ + LP3NR(0x78, InitGels, struct VSprite *, head, a0, struct VSprite *, tail, a1, struct GelsInfo *, gelsInfo, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitMasks(vSprite) \ + LP1NR(0x7e, InitMasks, struct VSprite *, vSprite, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitRastPort(rp) \ + LP1NR(0xc6, InitRastPort, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitTmpRas(tmpRas, buffer, size) \ + LP3(0x1d4, struct TmpRas *, InitTmpRas, struct TmpRas *, tmpRas, a0, PLANEPTR, buffer, a1, long, size, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitVPort(vp) \ + LP1NR(0xcc, InitVPort, struct ViewPort *, vp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitView(view) \ + LP1NR(0x168, InitView, struct View *, view, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LoadRGB32(vp, table) \ + LP2NR(0x372, LoadRGB32, struct ViewPort *, vp, a0, ULONG *, table, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LoadRGB4(vp, colors, count) \ + LP3NR(0xc0, LoadRGB4, struct ViewPort *, vp, a0, UWORD *, colors, a1, long, count, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LoadView(view) \ + LP1NR(0xde, LoadView, struct View *, view, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockLayerRom(layer) \ + LP1NRA5(0x1b0, LockLayerRom, struct Layer *, layer, d7, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MakeVPort(view, vp) \ + LP2(0xd8, ULONG, MakeVPort, struct View *, view, a0, struct ViewPort *, vp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ModeNotAvailable(modeID) \ + LP1(0x31e, LONG, ModeNotAvailable, unsigned long, modeID, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Move(rp, x, y) \ + LP3NR(0xf0, Move, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MoveSprite(vp, sprite, x, y) \ + LP4NR(0x1aa, MoveSprite, struct ViewPort *, vp, a0, struct SimpleSprite *, sprite, a1, long, x, d0, long, y, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MrgCop(view) \ + LP1(0xd2, ULONG, MrgCop, struct View *, view, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewRegion() \ + LP0(0x204, struct Region *, NewRegion, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NextDisplayInfo(displayID) \ + LP1(0x2dc, ULONG, NextDisplayInfo, unsigned long, displayID, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ObtainBestPenA(cm, r, g, b, tags) \ + LP5(0x348, LONG, ObtainBestPenA, struct ColorMap *, cm, a0, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, struct TagItem *, tags, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define ObtainBestPen(a0, a1, a2, a3, tags...) \ + ({ULONG _tags[] = { tags }; ObtainBestPenA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ObtainPen(cm, n, r, g, b, f) \ + LP6(0x3ba, ULONG, ObtainPen, struct ColorMap *, cm, a0, unsigned long, n, d0, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, long, f, d4, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenFont(textAttr) \ + LP1(0x48, struct TextFont *, OpenFont, struct TextAttr *, textAttr, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenMonitor(monitorName, displayID) \ + LP2(0x2ca, struct MonitorSpec *, OpenMonitor, STRPTR, monitorName, a1, unsigned long, displayID, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OrRectRegion(region, rectangle) \ + LP2(0x1fe, BOOL, OrRectRegion, struct Region *, region, a0, struct Rectangle *, rectangle, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OrRegionRegion(srcRegion, destRegion) \ + LP2(0x264, BOOL, OrRegionRegion, struct Region *, srcRegion, a0, struct Region *, destRegion, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OwnBlitter() \ + LP0NR(0x1c8, OwnBlitter, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PolyDraw(rp, count, polyTable) \ + LP3NR(0x150, PolyDraw, struct RastPort *, rp, a1, long, count, d0, WORD *, polyTable, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define QBSBlit(blit) \ + LP1NR(0x126, QBSBlit, struct bltnode *, blit, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define QBlit(blit) \ + LP1NR(0x114, QBlit, struct bltnode *, blit, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadPixel(rp, x, y) \ + LP3(0x13e, ULONG, ReadPixel, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadPixelArray8(rp, xstart, ystart, xstop, ystop, array, temprp) \ + LP7(0x30c, LONG, ReadPixelArray8, struct RastPort *, rp, a0, unsigned long, xstart, d0, unsigned long, ystart, d1, unsigned long, xstop, d2, unsigned long, ystop, d3, UBYTE *, array, a2, struct RastPort *, temprp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadPixelLine8(rp, xstart, ystart, width, array, tempRP) \ + LP6(0x300, LONG, ReadPixelLine8, struct RastPort *, rp, a0, unsigned long, xstart, d0, unsigned long, ystart, d1, unsigned long, width, d2, UBYTE *, array, a2, struct RastPort *, tempRP, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RectFill(rp, xMin, yMin, xMax, yMax) \ + LP5NR(0x132, RectFill, struct RastPort *, rp, a1, long, xMin, d0, long, yMin, d1, long, xMax, d2, long, yMax, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleasePen(cm, n) \ + LP2NR(0x3b4, ReleasePen, struct ColorMap *, cm, a0, unsigned long, n, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemFont(textFont) \ + LP1NR(0x1e6, RemFont, struct TextFont *, textFont, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemIBob(bob, rp, vp) \ + LP3NR(0x84, RemIBob, struct Bob *, bob, a0, struct RastPort *, rp, a1, struct ViewPort *, vp, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemVSprite(vSprite) \ + LP1NR(0x8a, RemVSprite, struct VSprite *, vSprite, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScalerDiv(factor, numerator, denominator) \ + LP3(0x2ac, UWORD, ScalerDiv, unsigned long, factor, d0, unsigned long, numerator, d1, unsigned long, denominator, d2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScrollRaster(rp, dx, dy, xMin, yMin, xMax, yMax) \ + LP7NR(0x18c, ScrollRaster, struct RastPort *, rp, a1, long, dx, d0, long, dy, d1, long, xMin, d2, long, yMin, d3, long, xMax, d4, long, yMax, d5, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScrollRasterBF(rp, dx, dy, xMin, yMin, xMax, yMax) \ + LP7NR(0x3ea, ScrollRasterBF, struct RastPort *, rp, a1, long, dx, d0, long, dy, d1, long, xMin, d2, long, yMin, d3, long, xMax, d4, long, yMax, d5, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScrollVPort(vp) \ + LP1NR(0x24c, ScrollVPort, struct ViewPort *, vp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetABPenDrMd(rp, apen, bpen, drawmode) \ + LP4NR(0x37e, SetABPenDrMd, struct RastPort *, rp, a1, unsigned long, apen, d0, unsigned long, bpen, d1, unsigned long, drawmode, d2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetAPen(rp, pen) \ + LP2NR(0x156, SetAPen, struct RastPort *, rp, a1, unsigned long, pen, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetBPen(rp, pen) \ + LP2NR(0x15c, SetBPen, struct RastPort *, rp, a1, unsigned long, pen, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetChipRev(want) \ + LP1(0x378, ULONG, SetChipRev, unsigned long, want, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetCollision(num, routine, gelsInfo) \ + LP3NRFP(0x90, SetCollision, unsigned long, num, d0, __fpt, routine, a0, struct GelsInfo *, gelsInfo, a1, \ + , GRAPHICS_BASE_NAME, void (*__fpt)(struct VSprite *vSprite, APTR), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetDrMd(rp, drawMode) \ + LP2NR(0x162, SetDrMd, struct RastPort *, rp, a1, unsigned long, drawMode, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetFont(rp, textFont) \ + LP2(0x42, LONG, SetFont, struct RastPort *, rp, a1, struct TextFont *, textFont, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetMaxPen(rp, maxpen) \ + LP2NR(0x3de, SetMaxPen, struct RastPort *, rp, a0, unsigned long, maxpen, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetOutlinePen(rp, pen) \ + LP2(0x3d2, ULONG, SetOutlinePen, struct RastPort *, rp, a0, unsigned long, pen, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetRGB32(vp, n, r, g, b) \ + LP5NR(0x354, SetRGB32, struct ViewPort *, vp, a0, unsigned long, n, d0, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetRGB32CM(cm, n, r, g, b) \ + LP5NR(0x3e4, SetRGB32CM, struct ColorMap *, cm, a0, unsigned long, n, d0, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetRGB4(vp, index, red, green, blue) \ + LP5NR(0x120, SetRGB4, struct ViewPort *, vp, a0, long, index, d0, unsigned long, red, d1, unsigned long, green, d2, unsigned long, blue, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetRGB4CM(colorMap, index, red, green, blue) \ + LP5NR(0x276, SetRGB4CM, struct ColorMap *, colorMap, a0, long, index, d0, unsigned long, red, d1, unsigned long, green, d2, unsigned long, blue, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetRPAttrsA(rp, tags) \ + LP2NR(0x40e, SetRPAttrsA, struct RastPort *, rp, a0, struct TagItem *, tags, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetRPAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetRPAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetRast(rp, pen) \ + LP2NR(0xea, SetRast, struct RastPort *, rp, a1, unsigned long, pen, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetSoftStyle(rp, style, enable) \ + LP3(0x5a, ULONG, SetSoftStyle, struct RastPort *, rp, a1, unsigned long, style, d0, unsigned long, enable, d1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetWriteMask(rp, msk) \ + LP2(0x3d8, ULONG, SetWriteMask, struct RastPort *, rp, a0, unsigned long, msk, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SortGList(rp) \ + LP1NR(0x96, SortGList, struct RastPort *, rp, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StripFont(font) \ + LP1NR(0x336, StripFont, struct TextFont *, font, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SyncSBitMap(layer) \ + LP1NR(0x1bc, SyncSBitMap, struct Layer *, layer, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Text(rp, string, count) \ + LP3(0x3c, LONG, Text, struct RastPort *, rp, a1, STRPTR, string, a0, unsigned long, count, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define TextExtent(rp, string, count, textExtent) \ + LP4(0x2b2, WORD, TextExtent, struct RastPort *, rp, a1, STRPTR, string, a0, long, count, d0, struct TextExtent *, textExtent, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define TextFit(rp, string, strLen, textExtent, constrainingExtent, strDirection, constrainingBitWidth, constrainingBitHeight) \ + LP8(0x2b8, ULONG, TextFit, struct RastPort *, rp, a1, STRPTR, string, a0, unsigned long, strLen, d0, struct TextExtent *, textExtent, a2, struct TextExtent *, constrainingExtent, a3, long, strDirection, d1, unsigned long, constrainingBitWidth, d2, unsigned long, constrainingBitHeight, d3, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define TextLength(rp, string, count) \ + LP3(0x36, WORD, TextLength, struct RastPort *, rp, a1, STRPTR, string, a0, unsigned long, count, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UCopperListInit(uCopList, n) \ + LP2(0x252, struct CopList *, UCopperListInit, struct UCopList *, uCopList, a0, long, n, d0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnlockLayerRom(layer) \ + LP1NRA5(0x1b6, UnlockLayerRom, struct Layer *, layer, d7, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define VBeamPos() \ + LP0(0x180, LONG, VBeamPos, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define VideoControl(colorMap, tagarray) \ + LP2(0x2c4, BOOL, VideoControl, struct ColorMap *, colorMap, a0, struct TagItem *, tagarray, a1, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define VideoControlTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; VideoControl((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define WaitBOVP(vp) \ + LP1NR(0x192, WaitBOVP, struct ViewPort *, vp, a0, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WaitBlit() \ + LP0NR(0xe4, WaitBlit, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WaitTOF() \ + LP0NR(0x10e, WaitTOF, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WeighTAMatch(reqTextAttr, targetTextAttr, targetTags) \ + LP3(0x324, WORD, WeighTAMatch, struct TextAttr *, reqTextAttr, a0, struct TextAttr *, targetTextAttr, a1, struct TagItem *, targetTags, a2, \ + , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define WeighTAMatchTags(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; WeighTAMatch((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define WriteChunkyPixels(rp, xstart, ystart, xstop, ystop, array, bytesperrow) \ + LP7NR(0x420, WriteChunkyPixels, struct RastPort *, rp, a0, unsigned long, xstart, d0, unsigned long, ystart, d1, unsigned long, xstop, d2, unsigned long, ys \ No newline at end of file diff -c2 -d -P -r include_h/powerup/ppcinline/icon.h includenew/powerup/ppcinline/icon.h *** include_h/powerup/ppcinline/icon.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/icon.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,62 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_ICON_H + #define _PPCINLINE_ICON_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef ICON_BASE_NAME + #define ICON_BASE_NAME IconBase + #endif /* !ICON_BASE_NAME */ + + #define AddFreeList(freelist, mem, size) \ + LP3(0x48, BOOL, AddFreeList, struct FreeList *, freelist, a0, APTR, mem, a1, unsigned long, size, a2, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BumpRevision(newname, oldname) \ + LP2(0x6c, UBYTE *, BumpRevision, UBYTE *, newname, a0, UBYTE *, oldname, a1, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeleteDiskObject(name) \ + LP1(0x8a, BOOL, DeleteDiskObject, UBYTE *, name, a0, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindToolType(toolTypeArray, typeName) \ + LP2(0x60, UBYTE *, FindToolType, UBYTE **, toolTypeArray, a0, UBYTE *, typeName, a1, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeDiskObject(diskobj) \ + LP1NR(0x5a, FreeDiskObject, struct DiskObject *, diskobj, a0, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeFreeList(freelist) \ + LP1NR(0x36, FreeFreeList, struct FreeList *, freelist, a0, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDefDiskObject(type) \ + LP1(0x78, struct DiskObject *, GetDefDiskObject, long, type, d0, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDiskObject(name) \ + LP1(0x4e, struct DiskObject *, GetDiskObject, UBYTE *, name, a0, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDiskObjectNew(name) \ + LP1(0x84, struct DiskObject *, GetDiskObjectNew, UBYTE *, name, a0, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MatchToolValue(typeString, value) \ + LP2(0x66, BOOL, MatchToolValue, UBYTE *, typeString, a0, UBYTE *, value, a1, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PutDefDiskObject(diskObject) \ + LP1(0x7e, BOOL, PutDefDiskObject, struct DiskObject *, diskObject, a0, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PutDiskObject(name, diskobj) \ + LP2(0x54, BOOL, PutDiskObject, UBYTE *, name, a0, struct DiskObject *, diskobj, a1, \ + , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_ICON_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/iffparse.h includenew/powerup/ppcinline/iffparse.h *** include_h/powerup/ppcinline/iffparse.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/iffparse.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,174 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_IFFPARSE_H + #define _PPCINLINE_IFFPARSE_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef IFFPARSE_BASE_NAME + #define IFFPARSE_BASE_NAME IFFParseBase + #endif /* !IFFPARSE_BASE_NAME */ + + #define AllocIFF() \ + LP0(0x1e, struct IFFHandle *, AllocIFF, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocLocalItem(type, id, ident, dataSize) \ + LP4(0xba, struct LocalContextItem *, AllocLocalItem, long, type, d0, long, id, d1, long, ident, d2, long, dataSize, d3, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseClipboard(clipHandle) \ + LP1NR(0xfc, CloseClipboard, struct ClipboardHandle *, clipHandle, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseIFF(iff) \ + LP1NR(0x30, CloseIFF, struct IFFHandle *, iff, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CollectionChunk(iff, type, id) \ + LP3(0x8a, LONG, CollectionChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CollectionChunks(iff, propArray, numPairs) \ + LP3(0x90, LONG, CollectionChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CurrentChunk(iff) \ + LP1(0xae, struct ContextNode *, CurrentChunk, struct IFFHandle *, iff, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EntryHandler(iff, type, id, position, handler, object) \ + LP6(0x66, LONG, EntryHandler, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, position, d2, struct Hook *, handler, a1, APTR, object, a2, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ExitHandler(iff, type, id, position, handler, object) \ + LP6(0x6c, LONG, ExitHandler, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, position, d2, struct Hook *, handler, a1, APTR, object, a2, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindCollection(iff, type, id) \ + LP3(0xa2, struct CollectionItem *, FindCollection, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindLocalItem(iff, type, id, ident) \ + LP4(0xd2, struct LocalContextItem *, FindLocalItem, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, ident, d2, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindProp(iff, type, id) \ + LP3(0x9c, struct StoredProperty *, FindProp, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindPropContext(iff) \ + LP1(0xa8, struct ContextNode *, FindPropContext, struct IFFHandle *, iff, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeIFF(iff) \ + LP1NR(0x36, FreeIFF, struct IFFHandle *, iff, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeLocalItem(localItem) \ + LP1NR(0xcc, FreeLocalItem, struct LocalContextItem *, localItem, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GoodID(id) \ + LP1(0x102, LONG, GoodID, long, id, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GoodType(type) \ + LP1(0x108, LONG, GoodType, long, type, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IDtoStr(id, buf) \ + LP2(0x10e, STRPTR, IDtoStr, long, id, d0, STRPTR, buf, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitIFF(iff, flags, streamHook) \ + LP3NR(0xe4, InitIFF, struct IFFHandle *, iff, a0, long, flags, d0, struct Hook *, streamHook, a1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitIFFasClip(iff) \ + LP1NR(0xf0, InitIFFasClip, struct IFFHandle *, iff, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitIFFasDOS(iff) \ + LP1NR(0xea, InitIFFasDOS, struct IFFHandle *, iff, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LocalItemData(localItem) \ + LP1(0xc0, APTR, LocalItemData, struct LocalContextItem *, localItem, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenClipboard(unitNumber) \ + LP1(0xf6, struct ClipboardHandle *, OpenClipboard, long, unitNumber, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenIFF(iff, rwMode) \ + LP2(0x24, LONG, OpenIFF, struct IFFHandle *, iff, a0, long, rwMode, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ParentChunk(contextNode) \ + LP1(0xb4, struct ContextNode *, ParentChunk, struct ContextNode *, contextNode, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ParseIFF(iff, control) \ + LP2(0x2a, LONG, ParseIFF, struct IFFHandle *, iff, a0, long, control, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PopChunk(iff) \ + LP1(0x5a, LONG, PopChunk, struct IFFHandle *, iff, a0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PropChunk(iff, type, id) \ + LP3(0x72, LONG, PropChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PropChunks(iff, propArray, numPairs) \ + LP3(0x78, LONG, PropChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PushChunk(iff, type, id, size) \ + LP4(0x54, LONG, PushChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, size, d2, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadChunkBytes(iff, buf, numBytes) \ + LP3(0x3c, LONG, ReadChunkBytes, struct IFFHandle *, iff, a0, APTR, buf, a1, long, numBytes, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadChunkRecords(iff, buf, bytesPerRecord, numRecords) \ + LP4(0x48, LONG, ReadChunkRecords, struct IFFHandle *, iff, a0, APTR, buf, a1, long, bytesPerRecord, d0, long, numRecords, d1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetLocalItemPurge(localItem, purgeHook) \ + LP2NR(0xc6, SetLocalItemPurge, struct LocalContextItem *, localItem, a0, struct Hook *, purgeHook, a1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StopChunk(iff, type, id) \ + LP3(0x7e, LONG, StopChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StopChunks(iff, propArray, numPairs) \ + LP3(0x84, LONG, StopChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StopOnExit(iff, type, id) \ + LP3(0x96, LONG, StopOnExit, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StoreItemInContext(iff, localItem, contextNode) \ + LP3NR(0xde, StoreItemInContext, struct IFFHandle *, iff, a0, struct LocalContextItem *, localItem, a1, struct ContextNode *, contextNode, a2, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StoreLocalItem(iff, localItem, position) \ + LP3(0xd8, LONG, StoreLocalItem, struct IFFHandle *, iff, a0, struct LocalContextItem *, localItem, a1, long, position, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WriteChunkBytes(iff, buf, numBytes) \ + LP3(0x42, LONG, WriteChunkBytes, struct IFFHandle *, iff, a0, APTR, buf, a1, long, numBytes, d0, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WriteChunkRecords(iff, buf, bytesPerRecord, numRecords) \ + LP4(0x4e, LONG, WriteChunkRecords, struct IFFHandle *, iff, a0, APTR, buf, a1, long, bytesPerRecord, d0, long, numRecords, d1, \ + , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_IFFPARSE_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/input.h includenew/powerup/ppcinline/input.h *** include_h/powerup/ppcinline/input.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/input.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,18 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_INPUT_H + #define _PPCINLINE_INPUT_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef INPUT_BASE_NAME + #define INPUT_BASE_NAME InputBase + #endif /* !INPUT_BASE_NAME */ + + #define PeekQualifier() \ + LP0(0x2a, UWORD, PeekQualifier, \ + , INPUT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_INPUT_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/intuition.h includenew/powerup/ppcinline/intuition.h *** include_h/powerup/ppcinline/intuition.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/intuition.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,555 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_INTUITION_H + #define _PPCINLINE_INTUITION_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef INTUITION_BASE_NAME + #define INTUITION_BASE_NAME IntuitionBase + #endif /* !INTUITION_BASE_NAME */ + + #define ActivateGadget(gadgets, window, requester) \ + LP3(0x1ce, BOOL, ActivateGadget, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ActivateWindow(window) \ + LP1NR(0x1c2, ActivateWindow, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddClass(classPtr) \ + LP1NR(0x2ac, AddClass, struct IClass *, classPtr, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddGList(window, gadget, position, numGad, requester) \ + LP5(0x1b6, UWORD, AddGList, struct Window *, window, a0, struct Gadget *, gadget, a1, unsigned long, position, d0, long, numGad, d1, struct Requester *, requester, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddGadget(window, gadget, position) \ + LP3(0x2a, UWORD, AddGadget, struct Window *, window, a0, struct Gadget *, gadget, a1, unsigned long, position, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocRemember(rememberKey, size, flags) \ + LP3(0x18c, APTR, AllocRemember, struct Remember **, rememberKey, a0, unsigned long, size, d0, unsigned long, flags, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocScreenBuffer(sc, bm, flags) \ + LP3(0x300, struct ScreenBuffer *, AllocScreenBuffer, struct Screen *, sc, a0, struct BitMap *, bm, a1, unsigned long, flags, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AlohaWorkbench(wbport) \ + LP1NR(0x192, AlohaWorkbench, long, wbport, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AutoRequest(window, body, posText, negText, pFlag, nFlag, width, height) \ + LP8(0x15c, BOOL, AutoRequest, struct Window *, window, a0, struct IntuiText *, body, a1, struct IntuiText *, posText, a2, struct IntuiText *, negText, a3, unsigned long, pFlag, d0, unsigned long, nFlag, d1, unsigned long, width, d2, unsigned long, height, d3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BeginRefresh(window) \ + LP1NR(0x162, BeginRefresh, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BuildEasyRequestArgs(window, easyStruct, idcmp, args) \ + LP4(0x252, struct Window *, BuildEasyRequestArgs, struct Window *, window, a0, struct EasyStruct *, easyStruct, a1, unsigned long, idcmp, d0, APTR, args, a3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define BuildEasyRequest(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; BuildEasyRequestArgs((a0), (a1), (a2), (APTR)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define BuildSysRequest(window, body, posText, negText, flags, width, height) \ + LP7(0x168, struct Window *, BuildSysRequest, struct Window *, window, a0, struct IntuiText *, body, a1, struct IntuiText *, posText, a2, struct IntuiText *, negText, a3, unsigned long, flags, d0, unsigned long, width, d1, unsigned long, height, d2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChangeScreenBuffer(sc, sb) \ + LP2(0x30c, ULONG, ChangeScreenBuffer, struct Screen *, sc, a0, struct ScreenBuffer *, sb, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ChangeWindowBox(window, left, top, width, height) \ + LP5NR(0x1e6, ChangeWindowBox, struct Window *, window, a0, long, left, d0, long, top, d1, long, width, d2, long, height, d3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClearDMRequest(window) \ + LP1(0x30, BOOL, ClearDMRequest, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClearMenuStrip(window) \ + LP1NR(0x36, ClearMenuStrip, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ClearPointer(window) \ + LP1NR(0x3c, ClearPointer, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseScreen(screen) \ + LP1(0x42, BOOL, CloseScreen, struct Screen *, screen, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseWindow(window) \ + LP1NR(0x48, CloseWindow, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseWorkBench() \ + LP0(0x4e, LONG, CloseWorkBench, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CurrentTime(seconds, micros) \ + LP2NR(0x54, CurrentTime, ULONG *, seconds, a0, ULONG *, micros, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisplayAlert(alertNumber, string, height) \ + LP3(0x5a, BOOL, DisplayAlert, unsigned long, alertNumber, d0, UBYTE *, string, a0, unsigned long, height, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisplayBeep(screen) \ + LP1NR(0x60, DisplayBeep, struct Screen *, screen, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisposeObject(object) \ + LP1NR(0x282, DisposeObject, APTR, object, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoGadgetMethodA(gad, win, req, message) \ + LP4(0x32a, ULONG, DoGadgetMethodA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, Msg, message, a3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define DoGadgetMethod(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; DoGadgetMethodA((a0), (a1), (a2), (Msg)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define DoubleClick(sSeconds, sMicros, cSeconds, cMicros) \ + LP4(0x66, BOOL, DoubleClick, unsigned long, sSeconds, d0, unsigned long, sMicros, d1, unsigned long, cSeconds, d2, unsigned long, cMicros, d3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DrawBorder(rp, border, leftOffset, topOffset) \ + LP4NR(0x6c, DrawBorder, struct RastPort *, rp, a0, struct Border *, border, a1, long, leftOffset, d0, long, topOffset, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DrawImage(rp, image, leftOffset, topOffset) \ + LP4NR(0x72, DrawImage, struct RastPort *, rp, a0, struct Image *, image, a1, long, leftOffset, d0, long, topOffset, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DrawImageState(rp, image, leftOffset, topOffset, state, drawInfo) \ + LP6NR(0x26a, DrawImageState, struct RastPort *, rp, a0, struct Image *, image, a1, long, leftOffset, d0, long, topOffset, d1, unsigned long, state, d2, struct DrawInfo *, drawInfo, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EasyRequestArgs(window, easyStruct, idcmpPtr, args) \ + LP4(0x24c, LONG, EasyRequestArgs, struct Window *, window, a0, struct EasyStruct *, easyStruct, a1, ULONG *, idcmpPtr, a2, APTR, args, a3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define EasyRequest(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; EasyRequestArgs((a0), (a1), (a2), (APTR)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define EndRefresh(window, complete) \ + LP2NR(0x16e, EndRefresh, struct Window *, window, a0, long, complete, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EndRequest(requester, window) \ + LP2NR(0x78, EndRequest, struct Requester *, requester, a0, struct Window *, window, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EraseImage(rp, image, leftOffset, topOffset) \ + LP4NR(0x276, EraseImage, struct RastPort *, rp, a0, struct Image *, image, a1, long, leftOffset, d0, long, topOffset, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeClass(classPtr) \ + LP1(0x2ca, BOOL, FreeClass, struct IClass *, classPtr, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeRemember(rememberKey, reallyForget) \ + LP2NR(0x198, FreeRemember, struct Remember **, rememberKey, a0, long, reallyForget, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeScreenBuffer(sc, sb) \ + LP2NR(0x306, FreeScreenBuffer, struct Screen *, sc, a0, struct ScreenBuffer *, sb, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeScreenDrawInfo(screen, drawInfo) \ + LP2NR(0x2b8, FreeScreenDrawInfo, struct Screen *, screen, a0, struct DrawInfo *, drawInfo, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeSysRequest(window) \ + LP1NR(0x174, FreeSysRequest, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GadgetMouse(gadget, gInfo, mousePoint) \ + LP3NR(0x23a, GadgetMouse, struct Gadget *, gadget, a0, struct GadgetInfo *, gInfo, a1, WORD *, mousePoint, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetAttr(attrID, object, storagePtr) \ + LP3(0x28e, ULONG, GetAttr, unsigned long, attrID, d0, APTR, object, a0, ULONG *, storagePtr, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDefPrefs(preferences, size) \ + LP2(0x7e, struct Preferences *, GetDefPrefs, struct Preferences *, preferences, a0, long, size, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetDefaultPubScreen(nameBuffer) \ + LP1NR(0x246, GetDefaultPubScreen, UBYTE *, nameBuffer, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetPrefs(preferences, size) \ + LP2(0x84, struct Preferences *, GetPrefs, struct Preferences *, preferences, a0, long, size, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetScreenData(buffer, size, type, screen) \ + LP4(0x1aa, LONG, GetScreenData, APTR, buffer, a0, unsigned long, size, d0, unsigned long, type, d1, struct Screen *, screen, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetScreenDrawInfo(screen) \ + LP1(0x2b2, struct DrawInfo *, GetScreenDrawInfo, struct Screen *, screen, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define HelpControl(win, flags) \ + LP2NR(0x33c, HelpControl, struct Window *, win, a0, unsigned long, flags, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitRequester(requester) \ + LP1NR(0x8a, InitRequester, struct Requester *, requester, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IntuiTextLength(iText) \ + LP1(0x14a, LONG, IntuiTextLength, struct IntuiText *, iText, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Intuition(iEvent) \ + LP1NR(0x24, Intuition, struct InputEvent *, iEvent, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ItemAddress(menuStrip, menuNumber) \ + LP2(0x90, struct MenuItem *, ItemAddress, struct Menu *, menuStrip, a0, unsigned long, menuNumber, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LendMenus(fromwindow, towindow) \ + LP2NR(0x324, LendMenus, struct Window *, fromwindow, a0, struct Window *, towindow, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockIBase(dontknow) \ + LP1(0x19e, ULONG, LockIBase, unsigned long, dontknow, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockPubScreen(name) \ + LP1(0x1fe, struct Screen *, LockPubScreen, UBYTE *, name, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockPubScreenList() \ + LP0(0x20a, struct List *, LockPubScreenList, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MakeClass(classID, superClassID, superClassPtr, instanceSize, flags) \ + LP5(0x2a6, struct IClass *, MakeClass, UBYTE *, classID, a0, UBYTE *, superClassID, a1, struct IClass *, superClassPtr, a2, unsigned long, instanceSize, d0, unsigned long, flags, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MakeScreen(screen) \ + LP1(0x17a, LONG, MakeScreen, struct Screen *, screen, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ModifyIDCMP(window, flags) \ + LP2(0x96, BOOL, ModifyIDCMP, struct Window *, window, a0, unsigned long, flags, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody) \ + LP8NR(0x9c, ModifyProp, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, unsigned long, flags, d0, unsigned long, horizPot, d1, unsigned long, vertPot, d2, unsigned long, horizBody, d3, unsigned long, vertBody, d4, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MoveScreen(screen, dx, dy) \ + LP3NR(0xa2, MoveScreen, struct Screen *, screen, a0, long, dx, d0, long, dy, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MoveWindow(window, dx, dy) \ + LP3NR(0xa8, MoveWindow, struct Window *, window, a0, long, dx, d0, long, dy, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MoveWindowInFrontOf(window, behindWindow) \ + LP2NR(0x1e0, MoveWindowInFrontOf, struct Window *, window, a0, struct Window *, behindWindow, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody, numGad) \ + LP9NR(0x1d4, NewModifyProp, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, unsigned long, flags, d0, unsigned long, horizPot, d1, unsigned long, vertPot, d2, unsigned long, horizBody, d3, unsigned long, vertBody, d4, long, numGad, d5, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewObjectA(classPtr, classID, tagList) \ + LP3(0x27c, APTR, NewObjectA, struct IClass *, classPtr, a0, UBYTE *, classID, a1, struct TagItem *, tagList, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define NewObject(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; NewObjectA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define NextObject(objectPtrPtr) \ + LP1(0x29a, APTR, NextObject, APTR, objectPtrPtr, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NextPubScreen(screen, namebuf) \ + LP2(0x216, UBYTE *, NextPubScreen, struct Screen *, screen, a0, UBYTE *, namebuf, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ObtainGIRPort(gInfo) \ + LP1(0x22e, struct RastPort *, ObtainGIRPort, struct GadgetInfo *, gInfo, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OffGadget(gadget, window, requester) \ + LP3NR(0xae, OffGadget, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OffMenu(window, menuNumber) \ + LP2NR(0xb4, OffMenu, struct Window *, window, a0, unsigned long, menuNumber, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OnGadget(gadget, window, requester) \ + LP3NR(0xba, OnGadget, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OnMenu(window, menuNumber) \ + LP2NR(0xc0, OnMenu, struct Window *, window, a0, unsigned long, menuNumber, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenIntuition() \ + LP0NR(0x1e, OpenIntuition, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenScreen(newScreen) \ + LP1(0xc6, struct Screen *, OpenScreen, struct NewScreen *, newScreen, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenScreenTagList(newScreen, tagList) \ + LP2(0x264, struct Screen *, OpenScreenTagList, struct NewScreen *, newScreen, a0, struct TagItem *, tagList, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define OpenScreenTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; OpenScreenTagList((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define OpenWindow(newWindow) \ + LP1(0xcc, struct Window *, OpenWindow, struct NewWindow *, newWindow, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenWindowTagList(newWindow, tagList) \ + LP2(0x25e, struct Window *, OpenWindowTagList, struct NewWindow *, newWindow, a0, struct TagItem *, tagList, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define OpenWindowTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; OpenWindowTagList((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define OpenWorkBench() \ + LP0(0xd2, ULONG, OpenWorkBench, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PointInImage(point, image) \ + LP2(0x270, BOOL, PointInImage, unsigned long, point, d0, struct Image *, image, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PrintIText(rp, iText, left, top) \ + LP4NR(0xd8, PrintIText, struct RastPort *, rp, a0, struct IntuiText *, iText, a1, long, left, d0, long, top, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PubScreenStatus(screen, statusFlags) \ + LP2(0x228, UWORD, PubScreenStatus, struct Screen *, screen, a0, unsigned long, statusFlags, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define QueryOverscan(displayID, rect, oScanType) \ + LP3(0x1da, LONG, QueryOverscan, unsigned long, displayID, a0, struct Rectangle *, rect, a1, long, oScanType, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RefreshGList(gadgets, window, requester, numGad) \ + LP4NR(0x1b0, RefreshGList, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, long, numGad, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RefreshGadgets(gadgets, window, requester) \ + LP3NR(0xde, RefreshGadgets, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RefreshWindowFrame(window) \ + LP1NR(0x1c8, RefreshWindowFrame, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleaseGIRPort(rp) \ + LP1NR(0x234, ReleaseGIRPort, struct RastPort *, rp, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemakeDisplay() \ + LP0(0x180, LONG, RemakeDisplay, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemoveClass(classPtr) \ + LP1NR(0x2c4, RemoveClass, struct IClass *, classPtr, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemoveGList(remPtr, gadget, numGad) \ + LP3(0x1bc, UWORD, RemoveGList, struct Window *, remPtr, a0, struct Gadget *, gadget, a1, long, numGad, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemoveGadget(window, gadget) \ + LP2(0xe4, UWORD, RemoveGadget, struct Window *, window, a0, struct Gadget *, gadget, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReportMouse(flag, window) \ + LP2NR(0xea, ReportMouse, long, flag, d0, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Request(requester, window) \ + LP2(0xf0, BOOL, Request, struct Requester *, requester, a0, struct Window *, window, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ResetMenuStrip(window, menu) \ + LP2(0x2be, BOOL, ResetMenuStrip, struct Window *, window, a0, struct Menu *, menu, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RethinkDisplay() \ + LP0(0x186, LONG, RethinkDisplay, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScreenDepth(screen, flags, reserved) \ + LP3NR(0x312, ScreenDepth, struct Screen *, screen, a0, unsigned long, flags, d0, APTR, reserved, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScreenPosition(screen, flags, x1, y1, x2, y2) \ + LP6NR(0x318, ScreenPosition, struct Screen *, screen, a0, unsigned long, flags, d0, long, x1, d1, long, y1, d2, long, x2, d3, long, y2, d4, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScreenToBack(screen) \ + LP1NR(0xf6, ScreenToBack, struct Screen *, screen, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScreenToFront(screen) \ + LP1NR(0xfc, ScreenToFront, struct Screen *, screen, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScrollWindowRaster(win, dx, dy, xMin, yMin, xMax, yMax) \ + LP7NR(0x31e, ScrollWindowRaster, struct Window *, win, a1, long, dx, d0, long, dy, d1, long, xMin, d2, long, yMin, d3, long, xMax, d4, long, yMax, d5, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetAttrsA(object, tagList) \ + LP2(0x288, ULONG, SetAttrsA, APTR, object, a0, struct TagItem *, tagList, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetDMRequest(window, requester) \ + LP2(0x102, BOOL, SetDMRequest, struct Window *, window, a0, struct Requester *, requester, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetDefaultPubScreen(name) \ + LP1NR(0x21c, SetDefaultPubScreen, UBYTE *, name, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetEditHook(hook) \ + LP1(0x1ec, struct Hook *, SetEditHook, struct Hook *, hook, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetGadgetAttrsA(gadget, window, requester, tagList) \ + LP4(0x294, ULONG, SetGadgetAttrsA, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, struct TagItem *, tagList, a3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetGadgetAttrs(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; SetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetMenuStrip(window, menu) \ + LP2(0x108, BOOL, SetMenuStrip, struct Window *, window, a0, struct Menu *, menu, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetMouseQueue(window, queueLength) \ + LP2(0x1f2, LONG, SetMouseQueue, struct Window *, window, a0, unsigned long, queueLength, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetPointer(window, pointer, height, width, xOffset, yOffset) \ + LP6NR(0x10e, SetPointer, struct Window *, window, a0, UWORD *, pointer, a1, long, height, d0, long, width, d1, long, xOffset, d2, long, yOffset, d3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetPrefs(preferences, size, inform) \ + LP3(0x144, struct Preferences *, SetPrefs, struct Preferences *, preferences, a0, long, size, d0, long, inform, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetPubScreenModes(modes) \ + LP1(0x222, UWORD, SetPubScreenModes, unsigned long, modes, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetWindowPointerA(win, taglist) \ + LP2NR(0x330, SetWindowPointerA, struct Window *, win, a0, struct TagItem *, taglist, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetWindowPointer(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetWindowPointerA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetWindowTitles(window, windowTitle, screenTitle) \ + LP3NR(0x114, SetWindowTitles, struct Window *, window, a0, UBYTE *, windowTitle, a1, UBYTE *, screenTitle, a2, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ShowTitle(screen, showIt) \ + LP2NR(0x11a, ShowTitle, struct Screen *, screen, a0, long, showIt, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SizeWindow(window, dx, dy) \ + LP3NR(0x120, SizeWindow, struct Window *, window, a0, long, dx, d0, long, dy, d1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SysReqHandler(window, idcmpPtr, waitInput) \ + LP3(0x258, LONG, SysReqHandler, struct Window *, window, a0, ULONG *, idcmpPtr, a1, long, waitInput, d0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define TimedDisplayAlert(alertNumber, string, height, time) \ + LP4(0x336, BOOL, TimedDisplayAlert, unsigned long, alertNumber, d0, UBYTE *, string, a0, unsigned long, height, d1, unsigned long, time, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnlockIBase(ibLock) \ + LP1NR(0x1a4, UnlockIBase, unsigned long, ibLock, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnlockPubScreen(name, screen) \ + LP2NR(0x204, UnlockPubScreen, UBYTE *, name, a0, struct Screen *, screen, a1, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnlockPubScreenList() \ + LP0NR(0x210, UnlockPubScreenList, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ViewAddress() \ + LP0(0x126, struct View *, ViewAddress, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ViewPortAddress(window) \ + LP1(0x12c, struct ViewPort *, ViewPortAddress, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WBenchToBack() \ + LP0(0x150, BOOL, WBenchToBack, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WBenchToFront() \ + LP0(0x156, BOOL, WBenchToFront, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WindowLimits(window, widthMin, heightMin, widthMax, heightMax) \ + LP5(0x13e, BOOL, WindowLimits, struct Window *, window, a0, long, widthMin, d0, long, heightMin, d1, unsigned long, widthMax, d2, unsigned long, heightMax, d3, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WindowToBack(window) \ + LP1NR(0x132, WindowToBack, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WindowToFront(window) \ + LP1NR(0x138, WindowToFront, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ZipWindow(window) \ + LP1NR(0x1f8, ZipWindow, struct Window *, window, a0, \ + , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_INTUITION_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/keymap.h includenew/powerup/ppcinline/keymap.h *** include_h/powerup/ppcinline/keymap.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/keymap.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,30 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_KEYMAP_H + #define _PPCINLINE_KEYMAP_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef KEYMAP_BASE_NAME + #define KEYMAP_BASE_NAME KeymapBase + #endif /* !KEYMAP_BASE_NAME */ + + #define AskKeyMapDefault() \ + LP0(0x24, struct KeyMap *, AskKeyMapDefault, \ + , KEYMAP_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MapANSI(string, count, buffer, length, keyMap) \ + LP5(0x30, LONG, MapANSI, STRPTR, string, a0, long, count, d0, STRPTR, buffer, a1, long, length, d1, struct KeyMap *, keyMap, a2, \ + , KEYMAP_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MapRawKey(event, buffer, length, keyMap) \ + LP4(0x2a, WORD, MapRawKey, struct InputEvent *, event, a0, STRPTR, buffer, a1, long, length, d1, struct KeyMap *, keyMap, a2, \ + , KEYMAP_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetKeyMapDefault(keyMap) \ + LP1NR(0x1e, SetKeyMapDefault, struct KeyMap *, keyMap, a0, \ + , KEYMAP_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_KEYMAP_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/layers.h includenew/powerup/ppcinline/layers.h *** include_h/powerup/ppcinline/layers.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/layers.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,142 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_LAYERS_H + #define _PPCINLINE_LAYERS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef LAYERS_BASE_NAME + #define LAYERS_BASE_NAME LayersBase + #endif /* !LAYERS_BASE_NAME */ + + #define BeginUpdate(l) \ + LP1(0x4e, LONG, BeginUpdate, struct Layer *, l, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define BehindLayer(dummy, layer) \ + LP2(0x36, LONG, BehindLayer, long, dummy, a0, struct Layer *, layer, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateBehindHookLayer(li, bm, x0, y0, x1, y1, flags, hook, bm2) \ + LP9(0xc0, struct Layer *, CreateBehindHookLayer, struct Layer_Info *, li, a0, struct BitMap *, bm, a1, long, x0, d0, long, y0, d1, long, x1, d2, long, y1, d3, long, flags, d4, struct Hook *, hook, a3, struct BitMap *, bm2, a2, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateBehindLayer(li, bm, x0, y0, x1, y1, flags, bm2) \ + LP8(0x2a, struct Layer *, CreateBehindLayer, struct Layer_Info *, li, a0, struct BitMap *, bm, a1, long, x0, d0, long, y0, d1, long, x1, d2, long, y1, d3, long, flags, d4, struct BitMap *, bm2, a2, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateUpfrontHookLayer(li, bm, x0, y0, x1, y1, flags, hook, bm2) \ + LP9(0xba, struct Layer *, CreateUpfrontHookLayer, struct Layer_Info *, li, a0, struct BitMap *, bm, a1, long, x0, d0, long, y0, d1, long, x1, d2, long, y1, d3, long, flags, d4, struct Hook *, hook, a3, struct BitMap *, bm2, a2, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CreateUpfrontLayer(li, bm, x0, y0, x1, y1, flags, bm2) \ + LP8(0x24, struct Layer *, CreateUpfrontLayer, struct Layer_Info *, li, a0, struct BitMap *, bm, a1, long, x0, d0, long, y0, d1, long, x1, d2, long, y1, d3, long, flags, d4, struct BitMap *, bm2, a2, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DeleteLayer(dummy, layer) \ + LP2(0x5a, LONG, DeleteLayer, long, dummy, a0, struct Layer *, layer, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DisposeLayerInfo(li) \ + LP1NR(0x96, DisposeLayerInfo, struct Layer_Info *, li, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define DoHookClipRects(hook, rport, rect) \ + LP3NR(0xd8, DoHookClipRects, struct Hook *, hook, a0, struct RastPort *, rport, a1, struct Rectangle *, rect, a2, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define EndUpdate(layer, flag) \ + LP2NR(0x54, EndUpdate, struct Layer *, layer, a0, unsigned long, flag, d0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FattenLayerInfo(li) \ + LP1(0x9c, LONG, FattenLayerInfo, struct Layer_Info *, li, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InitLayers(li) \ + LP1NR(0x1e, InitLayers, struct Layer_Info *, li, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InstallClipRegion(layer, region) \ + LP2(0xae, struct Region *, InstallClipRegion, struct Layer *, layer, a0, struct Region *, region, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InstallLayerHook(layer, hook) \ + LP2(0xc6, struct Hook *, InstallLayerHook, struct Layer *, layer, a0, struct Hook *, hook, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define InstallLayerInfoHook(li, hook) \ + LP2(0xcc, struct Hook *, InstallLayerInfoHook, struct Layer_Info *, li, a0, struct Hook *, hook, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockLayer(dummy, layer) \ + LP2NR(0x60, LockLayer, long, dummy, a0, struct Layer *, layer, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockLayerInfo(li) \ + LP1NR(0x78, LockLayerInfo, struct Layer_Info *, li, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define LockLayers(li) \ + LP1NR(0x6c, LockLayers, struct Layer_Info *, li, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MoveLayer(dummy, layer, dx, dy) \ + LP4(0x3c, LONG, MoveLayer, long, dummy, a0, struct Layer *, layer, a1, long, dx, d0, long, dy, d1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MoveLayerInFrontOf(layer_to_move, other_layer) \ + LP2(0xa8, LONG, MoveLayerInFrontOf, struct Layer *, layer_to_move, a0, struct Layer *, other_layer, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MoveSizeLayer(layer, dx, dy, dw, dh) \ + LP5(0xb4, LONG, MoveSizeLayer, struct Layer *, layer, a0, long, dx, d0, long, dy, d1, long, dw, d2, long, dh, d3, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NewLayerInfo() \ + LP0(0x90, struct Layer_Info *, NewLayerInfo, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ScrollLayer(dummy, layer, dx, dy) \ + LP4NR(0x48, ScrollLayer, long, dummy, a0, struct Layer *, layer, a1, long, dx, d0, long, dy, d1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SizeLayer(dummy, layer, dx, dy) \ + LP4(0x42, LONG, SizeLayer, long, dummy, a0, struct Layer *, layer, a1, long, dx, d0, long, dy, d1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SortLayerCR(layer, dx, dy) \ + LP3NR(0xd2, SortLayerCR, struct Layer *, layer, a0, long, dx, d0, long, dy, d1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SwapBitsRastPortClipRect(rp, cr) \ + LP2NR(0x7e, SwapBitsRastPortClipRect, struct RastPort *, rp, a0, struct ClipRect *, cr, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ThinLayerInfo(li) \ + LP1NR(0xa2, ThinLayerInfo, struct Layer_Info *, li, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnlockLayer(layer) \ + LP1NR(0x66, UnlockLayer, struct Layer *, layer, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnlockLayerInfo(li) \ + LP1NR(0x8a, UnlockLayerInfo, struct Layer_Info *, li, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnlockLayers(li) \ + LP1NR(0x72, UnlockLayers, struct Layer_Info *, li, a0, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UpfrontLayer(dummy, layer) \ + LP2(0x30, LONG, UpfrontLayer, long, dummy, a0, struct Layer *, layer, a1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WhichLayer(li, x, y) \ + LP3(0x84, struct Layer *, WhichLayer, struct Layer_Info *, li, a0, long, x, d0, long, y, d1, \ + , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_LAYERS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/locale.h includenew/powerup/ppcinline/locale.h *** include_h/powerup/ppcinline/locale.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/locale.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,115 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_LOCALE_H + #define _PPCINLINE_LOCALE_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef LOCALE_BASE_NAME + #define LOCALE_BASE_NAME LocaleBase + #endif /* !LOCALE_BASE_NAME */ + + #define CloseCatalog(catalog) \ + LP1NR(0x24, CloseCatalog, struct Catalog *, catalog, a0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloseLocale(locale) \ + LP1NR(0x2a, CloseLocale, struct Locale *, locale, a0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ConvToLower(locale, character) \ + LP2(0x30, ULONG, ConvToLower, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ConvToUpper(locale, character) \ + LP2(0x36, ULONG, ConvToUpper, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FormatDate(locale, fmtTemplate, date, putCharFunc) \ + LP4NR(0x3c, FormatDate, struct Locale *, locale, a0, STRPTR, fmtTemplate, a1, struct DateStamp *, date, a2, struct Hook *, putCharFunc, a3, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FormatString(locale, fmtTemplate, dataStream, putCharFunc) \ + LP4(0x42, APTR, FormatString, struct Locale *, locale, a0, STRPTR, fmtTemplate, a1, APTR, dataStream, a2, struct Hook *, putCharFunc, a3, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetCatalogStr(catalog, stringNum, defaultString) \ + LP3(0x48, STRPTR, GetCatalogStr, struct Catalog *, catalog, a0, long, stringNum, d0, STRPTR, defaultString, a1, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetLocaleStr(locale, stringNum) \ + LP2(0x4e, STRPTR, GetLocaleStr, struct Locale *, locale, a0, unsigned long, stringNum, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsAlNum(locale, character) \ + LP2(0x54, BOOL, IsAlNum, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsAlpha(locale, character) \ + LP2(0x5a, BOOL, IsAlpha, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsCntrl(locale, character) \ + LP2(0x60, BOOL, IsCntrl, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsDigit(locale, character) \ + LP2(0x66, BOOL, IsDigit, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsGraph(locale, character) \ + LP2(0x6c, BOOL, IsGraph, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsLower(locale, character) \ + LP2(0x72, BOOL, IsLower, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsPrint(locale, character) \ + LP2(0x78, BOOL, IsPrint, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsPunct(locale, character) \ + LP2(0x7e, BOOL, IsPunct, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsSpace(locale, character) \ + LP2(0x84, BOOL, IsSpace, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsUpper(locale, character) \ + LP2(0x8a, BOOL, IsUpper, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IsXDigit(locale, character) \ + LP2(0x90, BOOL, IsXDigit, struct Locale *, locale, a0, unsigned long, character, d0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define OpenCatalogA(locale, name, tags) \ + LP3(0x96, struct Catalog *, OpenCatalogA, struct Locale *, locale, a0, STRPTR, name, a1, struct TagItem *, tags, a2, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define OpenCatalog(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; OpenCatalogA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define OpenLocale(name) \ + LP1(0x9c, struct Locale *, OpenLocale, STRPTR, name, a0, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ParseDate(locale, date, fmtTemplate, getCharFunc) \ + LP4(0xa2, BOOL, ParseDate, struct Locale *, locale, a0, struct DateStamp *, date, a1, STRPTR, fmtTemplate, a2, struct Hook *, getCharFunc, a3, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StrConvert(locale, string, buffer, bufferSize, type) \ + LP5(0xae, ULONG, StrConvert, struct Locale *, locale, a0, STRPTR, string, a1, APTR, buffer, a2, unsigned long, bufferSize, d0, unsigned long, type, d1, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StrnCmp(locale, string1, string2, length, type) \ + LP5(0xb4, LONG, StrnCmp, struct Locale *, locale, a0, STRPTR, string1, a1, STRPTR, string2, a2, long, length, d0, unsigned long, type, d1, \ + , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_LOCALE_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/lowlevel.h includenew/powerup/ppcinline/lowlevel.h *** include_h/powerup/ppcinline/lowlevel.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/lowlevel.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,84 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_LOWLEVEL_H + #define _PPCINLINE_LOWLEVEL_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef LOWLEVEL_BASE_NAME + #define LOWLEVEL_BASE_NAME LowLevelBase + #endif /* !LOWLEVEL_BASE_NAME */ + + #define AddKBInt(intRoutine, intData) \ + LP2(0x3c, APTR, AddKBInt, APTR, intRoutine, a0, APTR, intData, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddTimerInt(intRoutine, intData) \ + LP2(0x4e, APTR, AddTimerInt, APTR, intRoutine, a0, APTR, intData, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AddVBlankInt(intRoutine, intData) \ + LP2(0x6c, APTR, AddVBlankInt, APTR, intRoutine, a0, APTR, intData, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ElapsedTime(context) \ + LP1(0x66, ULONG, ElapsedTime, struct EClockVal *, context, a0, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetKey() \ + LP0(0x30, ULONG, GetKey, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetLanguageSelection() \ + LP0(0x24, UBYTE, GetLanguageSelection, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define QueryKeys(queryArray, arraySize) \ + LP2NR(0x36, QueryKeys, struct KeyQuery *, queryArray, a0, unsigned long, arraySize, d1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadJoyPort(port) \ + LP1(0x1e, ULONG, ReadJoyPort, unsigned long, port, d0, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemKBInt(intHandle) \ + LP1NR(0x42, RemKBInt, APTR, intHandle, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemTimerInt(intHandle) \ + LP1NR(0x54, RemTimerInt, APTR, intHandle, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemVBlankInt(intHandle) \ + LP1NR(0x72, RemVBlankInt, APTR, intHandle, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetJoyPortAttrsA(portNumber, tagList) \ + LP2(0x84, BOOL, SetJoyPortAttrsA, unsigned long, portNumber, d0, struct TagItem *, tagList, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetJoyPortAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetJoyPortAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define StartTimerInt(intHandle, timeInterval, continuous) \ + LP3NR(0x60, StartTimerInt, APTR, intHandle, a1, unsigned long, timeInterval, d0, long, continuous, d1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StopTimerInt(intHandle) \ + LP1NR(0x5a, StopTimerInt, APTR, intHandle, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SystemControlA(tagList) \ + LP1(0x48, ULONG, SystemControlA, struct TagItem *, tagList, a1, \ + , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SystemControl(tags...) \ + ({ULONG _tags[] = { tags }; SystemControlA((struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #endif /* !_PPCINLINE_LOWLEVEL_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/macros.h includenew/powerup/ppcinline/macros.h *** include_h/powerup/ppcinline/macros.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/macros.h Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,1025 ---- + #ifndef __INLINE_MACROS_H + #define __INLINE_MACROS_H + + #include <powerup/gcclib/powerup_protos.h> + + /* Use these macros to calculate cache flush start address and cache flush + length. */ + #define __CACHE_START(start) ((void *) ((unsigned long int) (start) & ~31)) + #define __CACHE_LENGTH(start,length) ((((length) + (unsigned long int) (start) + 31) & ~31) - ((unsigned long int) (start) & ~31)) + + /* + General macros for Amiga function calls. Not all the possibilities have + been created - only the ones which exist in OS 3.1. Third party libraries + and future versions of AmigaOS will maybe need some new ones... + + LPX - functions that take X arguments. + + Modifiers (variations are possible): + NR - no return (void), + A4, A5 - "a4" or "a5" is used as one of the arguments, + UB - base will be given explicitly by user (see cia.resource). + FP - one of the parameters has type "pointer to function". + + "bt" arguments are not used - they are provided for backward compatibility + only. + Actually..the "bt" parameter is needed because otherwise the macro doesn`t + work for some reason i don`t know gcc puts an empty argument at the position + before the argument bn and without the placeholder "bt". + I think it has something to do with #define *_BASE_NAME + + the (cm1==IF_CACHEFLUSHAREA) conditional is optimized away + */ + + #ifndef __INLINE_STUB_H + #include <powerup/ppcinline/stubs.h> + #endif + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #define LP0(offs, rt, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP0NR(offs, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + #define LP1(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP1NR(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only graphics.library/AttemptLockLayerRom() */ + #define LP1A5(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/LockLayerRom() and graphics.library/UnlockLayerRom() */ + #define LP1NRA5(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only exec.library/Supervisor() */ + #define LP1A5FP(offs, rt, name, t1, v1, r1, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + + #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only cia.resource/AbleICR() and cia.resource/SetICR() */ + #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only dos.library/InternalUnLoadSeg() */ + #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP3NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only cia.resource/AddICRVector() */ + #define LP3UB(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only cia.resource/RemICRVector() */ + #define LP3NRUB(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only exec.library/SetFunction() */ + #define LP3FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/SetCollision() */ + #define LP3NRFP(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + #define LP4(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP4NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only exec.library/RawDoFmt() */ + #define LP4FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP5(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP5NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only exec.library/MakeLibrary() */ + #define LP5FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP6(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP6NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + #define LP7(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP7NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only workbench.library/AddAppIconA() */ + #define LP7A4(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Would you believe that there really are beasts that need more than 7 + arguments? :-) */ + + /* For example intuition.library/AutoRequest() */ + #define LP8(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.##r8 = (ULONG) v8; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + /* For example intuition.library/ModifyProp() */ + #define LP8NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.##r8 = (ULONG) v8; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* For example layers.library/CreateUpfrontHookLayer() */ + #define LP9(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.##r8 = (ULONG) v8; \ + MyCaos.##r9 = (ULONG) v9; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + /* For example intuition.library/NewModifyProp() */ + #define LP9NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.##r8 = (ULONG) v8; \ + MyCaos.##r9 = (ULONG) v9; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* LP10 not needed... */ + /* Kriton Kyrimis <kyrimis@cti.gr> says CyberGraphics needs the following */ + #define LP10(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.##r8 = (ULONG) v8; \ + MyCaos.##r9 = (ULONG) v9; \ + MyCaos.##r10 = (ULONG) v10; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS(&MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/BltMaskBitMapRastPort() */ + #define LP10NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.##r8 = (ULONG) v8; \ + MyCaos.##r9 = (ULONG) v9; \ + MyCaos.##r10 = (ULONG) v10; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + PPCCallOS(&MyCaos); \ + } \ + }) + + /* Only graphics.library/BltBitMap() */ + #define LP11(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, t11, v11, r11, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + { \ + rt _##name##_re; \ + MyCaos.##r1 = (ULONG) v1; \ + MyCaos.##r2 = (ULONG) v2; \ + MyCaos.##r3 = (ULONG) v3; \ + MyCaos.##r4 = (ULONG) v4; \ + MyCaos.##r5 = (ULONG) v5; \ + MyCaos.##r6 = (ULONG) v6; \ + MyCaos.##r7 = (ULONG) v7; \ + MyCaos.##r8 = (ULONG) v8; \ + MyCaos.##r9 = (ULONG) v9; \ + MyCaos.##r10 = (ULONG) v10; \ + MyCaos.##r11 = (ULONG) v11; \ + MyCaos.a6 = (ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ No newline at end of file diff -c2 -d -P -r include_h/powerup/ppcinline/macros.h_old0 includenew/powerup/ppcinline/macros.h_old0 *** include_h/powerup/ppcinline/macros.h_old0 Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/macros.h_old0 Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,1072 ---- + #ifndef __INLINE_MACROS_H + #define __INLINE_MACROS_H + + #include <powerup/gcclib/powerup_protos.h> + + /* Use these macros to calculate cache flush start address and cache flush + length. */ + #define __CACHE_START(start) ((void *) ((unsigned long int) (start) & ~31)) + #define __CACHE_LENGTH(start,length) ((((length) + (unsigned long int) (start) + 31) & ~31) - ((unsigned long int) (start) & ~31)) + + /* + General macros for Amiga function calls. Not all the possibilities have + been created - only the ones which exist in OS 3.1. Third party libraries + and future versions of AmigaOS will maybe need some new ones... + + LPX - functions that take X arguments. + + Modifiers (variations are possible): + NR - no return (void), + A4, A5 - "a4" or "a5" is used as one of the arguments, + UB - base will be given explicitly by user (see cia.resource). + FP - one of the parameters has type "pointer to function". + + "bt" arguments are not used - they are provided for backward compatibility + only. + Actually..the "bt" parameter is needed because otherwise the macro doesn`t + work for some reason i don`t know gcc puts an empty argument at the position + before the argument bn and without the placeholder "bt". + I think it has something to do with #define *_BASE_NAME + + the (cm1==IF_CACHEFLUSHAREA) conditional is optimized away + */ + + #ifndef __INLINE_STUB_H + #include <powerup/ppcinline/stubs.h> + #endif + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #define LP0(offs, rt, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP0NR(offs, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + #define LP1(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP1NR(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only graphics.library/AttemptLockLayerRom() */ + #define LP1A5(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/LockLayerRom() and graphics.library/UnlockLayerRom() */ + #define LP1NRA5(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only exec.library/Supervisor() */ + #define LP1A5FP(offs, rt, name, t1, v1, r1, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + + #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only cia.resource/AbleICR() and cia.resource/SetICR() */ + #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only dos.library/InternalUnLoadSeg() */ + #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP3NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only cia.resource/AddICRVector() */ + #define LP3UB(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only cia.resource/RemICRVector() */ + #define LP3NRUB(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only exec.library/SetFunction() */ + #define LP3FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/SetCollision() */ + #define LP3NRFP(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + #define LP4(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP4NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only exec.library/RawDoFmt() */ + #define LP4FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP5(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP5NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only exec.library/MakeLibrary() */ + #define LP5FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP6(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP6NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + #define LP7(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP7NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only workbench.library/AddAppIconA() */ + #define LP7A4(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Would you believe that there really are beasts that need more than 7 + arguments? :-) */ + + /* For example intuition.library/AutoRequest() */ + #define LP8(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* For example intuition.library/ModifyProp() */ + #define LP8NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* For example layers.library/CreateUpfrontHookLayer() */ + #define LP9(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* For example intuition.library/NewModifyProp() */ + #define LP9NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* LP10 not needed... */ + /* Kriton Kyrimis <kyrimis@cti.gr> says CyberGraphics needs the following */ + #define LP10(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->##r10 = (ULONG) v10; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/BltMaskBitMapRastPort() */ + #define LP10NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->##r10 = (ULONG) v10; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only graphics.library/BltBitMap() */ + #define LP11(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, t11, v11, r11, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->##r10 = (ULONG) v10; \ + MyCaos->##r11 = (ULONG) v11; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #endif /* __INLINE_MACROS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/macros.h_old1 includenew/powerup/ppcinline/macros.h_old1 *** include_h/powerup/ppcinline/macros.h_old1 Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/macros.h_old1 Wed Feb 14 02:41:20 2001 *************** *** 0 **** --- 1,1039 ---- + #ifndef __INLINE_MACROS_H + #define __INLINE_MACROS_H + + #include <powerup/gcclib/powerup_protos.h> + + /* Use these macros to calculate cache flush start address and cache flush + length. */ + #define __CACHE_START(start) ((void *) ((unsigned long int) (start) & ~31)) + #define __CACHE_LENGTH(start,length) ((((length) + (unsigned long int) (start) + 31) & ~31) - ((unsigned long int) (start) & ~31)) + + /* + General macros for Amiga function calls. Not all the possibilities have + been created - only the ones which exist in OS 3.1. Third party libraries + and future versions of AmigaOS will maybe need some new ones... + + LPX - functions that take X arguments. + + Modifiers (variations are possible): + NR - no return (void), + A4, A5 - "a4" or "a5" is used as one of the arguments, + UB - base will be given explicitly by user (see cia.resource). + FP - one of the parameters has type "pointer to function". + + "bt" arguments are not used - they are provided for backward compatibility + only. + Actually..the "bt" parameter is needed because otherwise the macro doesn`t + work for some reason i don`t know gcc puts an empty argument at the position + before the argument bn and without the placeholder "bt". + I think it has something to do with #define *_BASE_NAME + + the (cm1==IF_CACHEFLUSHAREA) conditional is optimized away + */ + + #ifndef __INLINE_STUB_H + #include <powerup/ppcinline/stubs.h> + #endif + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #define LP0(offs, rt, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP0NR(offs, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + #define LP1(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP1NR(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only graphics.library/AttemptLockLayerRom() */ + #define LP1A5(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/LockLayerRom() and graphics.library/UnlockLayerRom() */ + #define LP1NRA5(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only exec.library/Supervisor() */ + #define LP1A5FP(offs, rt, name, t1, v1, r1, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + + #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only cia.resource/AbleICR() and cia.resource/SetICR() */ + #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only dos.library/InternalUnLoadSeg() */ + #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP3NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only cia.resource/AddICRVector() */ + #define LP3UB(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only cia.resource/RemICRVector() */ + #define LP3NRUB(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only exec.library/SetFunction() */ + #define LP3FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/SetCollision() */ + #define LP3NRFP(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + #define LP4(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP4NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only exec.library/RawDoFmt() */ + #define LP4FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP5(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP5NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only exec.library/MakeLibrary() */ + #define LP5FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP6(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP6NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + #define LP7(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #define LP7NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only workbench.library/AddAppIconA() */ + #define LP7A4(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* Would you believe that there really are beasts that need more than 7 + arguments? :-) */ + + /* For example intuition.library/AutoRequest() */ + #define LP8(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* For example intuition.library/ModifyProp() */ + #define LP8NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* For example layers.library/CreateUpfrontHookLayer() */ + #define LP9(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + /* For example intuition.library/NewModifyProp() */ + #define LP9NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* LP10 not needed... */ + + /* Only graphics.library/BltMaskBitMapRastPort() */ + #define LP10NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->##r10 = (ULONG) v10; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + PPCCallOS (MyCaos); \ + } \ + }) + + /* Only graphics.library/BltBitMap() */ + #define LP11(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, t11, v11, r11, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos *MyCaos; \ + MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \ + { \ + rt _##name##_re; \ + MyCaos->##r1 = (ULONG) v1; \ + MyCaos->##r2 = (ULONG) v2; \ + MyCaos->##r3 = (ULONG) v3; \ + MyCaos->##r4 = (ULONG) v4; \ + MyCaos->##r5 = (ULONG) v5; \ + MyCaos->##r6 = (ULONG) v6; \ + MyCaos->##r7 = (ULONG) v7; \ + MyCaos->##r8 = (ULONG) v8; \ + MyCaos->##r9 = (ULONG) v9; \ + MyCaos->##r10 = (ULONG) v10; \ + MyCaos->##r11 = (ULONG) v11; \ + MyCaos->a6 = (ULONG) bn; \ + MyCaos->M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->M68kStart = cs1; \ + MyCaos->M68kLength = cl1; \ + } \ + MyCaos->PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos->PPCStart = cs2; \ + MyCaos->PPCLength = cl2; \ + } \ + MyCaos->caos_Un.Offset = (-offs); \ + _##name##_re = (rt) PPCCallOS (MyCaos); \ + _##name##_re; \ + } \ + }) + + #endif /* __INLINE_MACROS_H */ + + diff -c2 -d -P -r include_h/powerup/ppcinline/macros.h_old2 includenew/powerup/ppcinline/macros.h_old2 *** include_h/powerup/ppcinline/macros.h_old2 Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/macros.h_old2 Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,1132 ---- + #ifndef __INLINE_MACROS_H + #define __INLINE_MACROS_H + + /* + General macros for Amiga function calls. Not all the possibilities have + been created - only the ones which exist in OS 3.1. Third party libraries + and future versions of AmigaOS will maybe need some new ones... + + LPX - functions that take X arguments. + + Modifiers (variations are possible): + NR - no return (void), + A4, A5 - "a4" or "a5" is used as one of the arguments, + UB - base will be given explicitly by user (see cia.resource). + FP - one of the parameters has type "pointer to function". + + "bt" arguments are not used - they are provided for backward compatibility + only. + Actually..the "bt" parameter is needed because otherwise the macro doesn`t + work for some reason i don`t know gcc puts an empty argument at the position + before the argument bn and without the placeholder "bt". + I think it has something to do with #define *_BASE_NAME + + the (cm1==IF_CACHEFLUSHAREA) conditional is optimized away + */ + + #ifndef __INLINE_STUB_H + #include <powerup/ppcinline/stubs.h> + #endif + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #define LP0(offs, rt, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP0NR(offs, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + #define LP1(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP1NR(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only graphics.library/AttemptLockLayerRom() */ + #define LP1A5(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/LockLayerRom() and graphics.library/UnlockLayerRom() */ + #define LP1NRA5(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only exec.library/Supervisor() */ + #define LP1A5FP(offs, rt, name, t1, v1, r1, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + + #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only cia.resource/AbleICR() and cia.resource/SetICR() */ + #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + /* Only dos.library/InternalUnLoadSeg() */ + #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP3NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only cia.resource/AddICRVector() */ + #define LP3UB(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + /* Only cia.resource/RemICRVector() */ + #define LP3NRUB(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only exec.library/SetFunction() */ + #define LP3FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + /* Only graphics.library/SetCollision() */ + #define LP3NRFP(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + #define LP4(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP4NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only exec.library/RawDoFmt() */ + #define LP4FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP5(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP5NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only exec.library/MakeLibrary() */ + #define LP5FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + typedef fpt; \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP6(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP6NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + #define LP7(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #define LP7NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only workbench.library/AddAppIconA() */ + #define LP7A4(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + /* Would you believe that there really are beasts that need more than 7 + arguments? :-) */ + + /* For example intuition.library/AutoRequest() */ + #define LP8(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.##r8 =(ULONG) v8; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + /* For example intuition.library/ModifyProp() */ + #define LP8NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.##r8 =(ULONG) v8; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* For example layers.library/CreateUpfrontHookLayer() */ + #define LP9(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.##r8 =(ULONG) v8; \ + MyCaos.##r9 =(ULONG) v9; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + /* For example intuition.library/NewModifyProp() */ + #define LP9NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.##r8 =(ULONG) v8; \ + MyCaos.##r9 =(ULONG) v9; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* LP10 not needed... */ + + /* Only graphics.library/BltMaskBitMapRastPort() */ + #define LP10NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.##r8 =(ULONG) v8; \ + MyCaos.##r9 =(ULONG) v9; \ + MyCaos.##r10 =(ULONG) v10; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + } \ + }) + + /* Only graphics.library/BltBitMap() */ + #define LP11(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, t5, v5, r5, t6, v6, r6, t7, v7, r7, t8, v8, r8, t9, v9, r9, t10, v10, r10, t11, v11, r11, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 ) \ + ({ \ + struct Caos MyCaos; \ + register struct Caos *MyCaosReg __asm("r3") = &MyCaos; \ + { \ + register rt _##name##_re __asm("r3"); \ + MyCaos.##r1 =(ULONG) v1; \ + MyCaos.##r2 =(ULONG) v2; \ + MyCaos.##r3 =(ULONG) v3; \ + MyCaos.##r4 =(ULONG) v4; \ + MyCaos.##r5 =(ULONG) v5; \ + MyCaos.##r6 =(ULONG) v6; \ + MyCaos.##r7 =(ULONG) v7; \ + MyCaos.##r8 =(ULONG) v8; \ + MyCaos.##r9 =(ULONG) v9; \ + MyCaos.##r10 =(ULONG) v10; \ + MyCaos.##r11 =(ULONG) v11; \ + MyCaos.a6 =(ULONG) bn; \ + MyCaos.M68kCacheMode = cm1; \ + if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.M68kStart = cs1; \ + MyCaos.M68kLength = cl1; \ + } \ + MyCaos.PPCCacheMode = cm2; \ + if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA)) \ + { \ + MyCaos.PPCStart = cs2; \ + MyCaos.PPCLength = cl2; \ + } \ + MyCaos.caos_Un.Offset = (-offs); \ + __asm volatile ("bl PPCCallOS" \ + : "=r" (_##name##_re) \ + : "r" (MyCaosReg) \ + : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "lr", "ctr", "cc", "memory"); \ + _##name##_re; \ + } \ + }) + + #endif /* __INLINE_MACROS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/mathieeedoubbas.h includenew/powerup/ppcinline/mathieeedoubbas.h *** include_h/powerup/ppcinline/mathieeedoubbas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/mathieeedoubbas.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,62 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_MATHIEEEDOUBBAS_H + #define _PPCINLINE_MATHIEEEDOUBBAS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef MATHIEEEDOUBBAS_BASE_NAME + #define MATHIEEEDOUBBAS_BASE_NAME MathIeeeDoubBasBase + #endif /* !MATHIEEEDOUBBAS_BASE_NAME */ + + #define IEEEDPAbs(parm) \ + LP1(0x36, DOUBLE, IEEEDPAbs, DOUBLE, parm, d0, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPAdd(leftParm, rightParm) \ + LP2(0x42, DOUBLE, IEEEDPAdd, DOUBLE, leftParm, d0, DOUBLE, rightParm, d2, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPCeil(parm) \ + LP1(0x60, DOUBLE, IEEEDPCeil, DOUBLE, parm, d0, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPCmp(leftParm, rightParm) \ + LP2(0x2a, LONG, IEEEDPCmp, DOUBLE, leftParm, d0, DOUBLE, rightParm, d2, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPDiv(dividend, divisor) \ + LP2(0x54, DOUBLE, IEEEDPDiv, DOUBLE, dividend, d0, DOUBLE, divisor, d2, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPFix(parm) \ + LP1(0x1e, LONG, IEEEDPFix, DOUBLE, parm, d0, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPFloor(parm) \ + LP1(0x5a, DOUBLE, IEEEDPFloor, DOUBLE, parm, d0, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPFlt(integer) \ + LP1(0x24, DOUBLE, IEEEDPFlt, long, integer, d0, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPMul(factor1, factor2) \ + LP2(0x4e, DOUBLE, IEEEDPMul, DOUBLE, factor1, d0, DOUBLE, factor2, d2, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPNeg(parm) \ + LP1(0x3c, DOUBLE, IEEEDPNeg, DOUBLE, parm, d0, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPSub(leftParm, rightParm) \ + LP2(0x48, DOUBLE, IEEEDPSub, DOUBLE, leftParm, d0, DOUBLE, rightParm, d2, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPTst(parm) \ + LP1(0x30, LONG, IEEEDPTst, DOUBLE, parm, d0, \ + , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_MATHIEEEDOUBBAS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/mathieeedoubtrans.h includenew/powerup/ppcinline/mathieeedoubtrans.h *** include_h/powerup/ppcinline/mathieeedoubtrans.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/mathieeedoubtrans.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,82 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_MATHIEEEDOUBTRANS_H + #define _PPCINLINE_MATHIEEEDOUBTRANS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef MATHIEEEDOUBTRANS_BASE_NAME + #define MATHIEEEDOUBTRANS_BASE_NAME MathIeeeDoubTransBase + #endif /* !MATHIEEEDOUBTRANS_BASE_NAME */ + + #define IEEEDPAcos(parm) \ + LP1(0x78, DOUBLE, IEEEDPAcos, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPAsin(parm) \ + LP1(0x72, DOUBLE, IEEEDPAsin, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPAtan(parm) \ + LP1(0x1e, DOUBLE, IEEEDPAtan, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPCos(parm) \ + LP1(0x2a, DOUBLE, IEEEDPCos, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPCosh(parm) \ + LP1(0x42, DOUBLE, IEEEDPCosh, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPExp(parm) \ + LP1(0x4e, DOUBLE, IEEEDPExp, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPFieee(single) \ + LP1(0x6c, DOUBLE, IEEEDPFieee, FLOAT, single, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPLog(parm) \ + LP1(0x54, DOUBLE, IEEEDPLog, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPLog10(parm) \ + LP1(0x7e, DOUBLE, IEEEDPLog10, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPPow(exp, arg) \ + LP2(0x5a, DOUBLE, IEEEDPPow, DOUBLE, exp, d2, DOUBLE, arg, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPSin(parm) \ + LP1(0x24, DOUBLE, IEEEDPSin, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPSincos(pf2, parm) \ + LP2(0x36, DOUBLE, IEEEDPSincos, DOUBLE *, pf2, a0, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPSinh(parm) \ + LP1(0x3c, DOUBLE, IEEEDPSinh, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPSqrt(parm) \ + LP1(0x60, DOUBLE, IEEEDPSqrt, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPTan(parm) \ + LP1(0x30, DOUBLE, IEEEDPTan, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPTanh(parm) \ + LP1(0x48, DOUBLE, IEEEDPTanh, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEEDPTieee(parm) \ + LP1(0x66, FLOAT, IEEEDPTieee, DOUBLE, parm, d0, \ + , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_MATHIEEEDOUBTRANS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/mathieeesingbas.h includenew/powerup/ppcinline/mathieeesingbas.h *** include_h/powerup/ppcinline/mathieeesingbas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/mathieeesingbas.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,62 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_MATHIEEESINGBAS_H + #define _PPCINLINE_MATHIEEESINGBAS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef MATHIEEESINGBAS_BASE_NAME + #define MATHIEEESINGBAS_BASE_NAME MathIeeeSingBasBase + #endif /* !MATHIEEESINGBAS_BASE_NAME */ + + #define IEEESPAbs(parm) \ + LP1(0x36, FLOAT, IEEESPAbs, FLOAT, parm, d0, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPAdd(leftParm, rightParm) \ + LP2(0x42, FLOAT, IEEESPAdd, FLOAT, leftParm, d0, FLOAT, rightParm, d1, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPCeil(parm) \ + LP1(0x60, FLOAT, IEEESPCeil, FLOAT, parm, d0, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPCmp(leftParm, rightParm) \ + LP2(0x2a, LONG, IEEESPCmp, FLOAT, leftParm, d0, FLOAT, rightParm, d1, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPDiv(dividend, divisor) \ + LP2(0x54, FLOAT, IEEESPDiv, FLOAT, dividend, d0, FLOAT, divisor, d1, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPFix(parm) \ + LP1(0x1e, LONG, IEEESPFix, FLOAT, parm, d0, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPFloor(parm) \ + LP1(0x5a, FLOAT, IEEESPFloor, FLOAT, parm, d0, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPFlt(integer) \ + LP1(0x24, FLOAT, IEEESPFlt, long, integer, d0, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPMul(leftParm, rightParm) \ + LP2(0x4e, FLOAT, IEEESPMul, FLOAT, leftParm, d0, FLOAT, rightParm, d1, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPNeg(parm) \ + LP1(0x3c, FLOAT, IEEESPNeg, FLOAT, parm, d0, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPSub(leftParm, rightParm) \ + LP2(0x48, FLOAT, IEEESPSub, FLOAT, leftParm, d0, FLOAT, rightParm, d1, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPTst(parm) \ + LP1(0x30, LONG, IEEESPTst, FLOAT, parm, d0, \ + , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_MATHIEEESINGBAS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/mathieeesingtrans.h includenew/powerup/ppcinline/mathieeesingtrans.h *** include_h/powerup/ppcinline/mathieeesingtrans.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/mathieeesingtrans.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,82 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_MATHIEEESINGTRANS_H + #define _PPCINLINE_MATHIEEESINGTRANS_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef MATHIEEESINGTRANS_BASE_NAME + #define MATHIEEESINGTRANS_BASE_NAME MathIeeeSingTransBase + #endif /* !MATHIEEESINGTRANS_BASE_NAME */ + + #define IEEESPAcos(parm) \ + LP1(0x78, FLOAT, IEEESPAcos, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPAsin(parm) \ + LP1(0x72, FLOAT, IEEESPAsin, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPAtan(parm) \ + LP1(0x1e, FLOAT, IEEESPAtan, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPCos(parm) \ + LP1(0x2a, FLOAT, IEEESPCos, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPCosh(parm) \ + LP1(0x42, FLOAT, IEEESPCosh, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPExp(parm) \ + LP1(0x4e, FLOAT, IEEESPExp, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPFieee(parm) \ + LP1(0x6c, FLOAT, IEEESPFieee, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPLog(parm) \ + LP1(0x54, FLOAT, IEEESPLog, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPLog10(parm) \ + LP1(0x7e, FLOAT, IEEESPLog10, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPPow(exp, arg) \ + LP2(0x5a, FLOAT, IEEESPPow, FLOAT, exp, d1, FLOAT, arg, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPSin(parm) \ + LP1(0x24, FLOAT, IEEESPSin, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPSincos(cosptr, parm) \ + LP2(0x36, FLOAT, IEEESPSincos, FLOAT *, cosptr, a0, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPSinh(parm) \ + LP1(0x3c, FLOAT, IEEESPSinh, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPSqrt(parm) \ + LP1(0x60, FLOAT, IEEESPSqrt, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPTan(parm) \ + LP1(0x30, FLOAT, IEEESPTan, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPTanh(parm) \ + LP1(0x48, FLOAT, IEEESPTanh, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define IEEESPTieee(parm) \ + LP1(0x66, FLOAT, IEEESPTieee, FLOAT, parm, d0, \ + , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_MATHIEEESINGTRANS_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/misc.h includenew/powerup/ppcinline/misc.h *** include_h/powerup/ppcinline/misc.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/misc.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,22 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_MISC_H + #define _PPCINLINE_MISC_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef MISC_BASE_NAME + #define MISC_BASE_NAME MiscBase + #endif /* !MISC_BASE_NAME */ + + #define AllocMiscResource(unitNum, name) \ + LP2(0x6, UBYTE *, AllocMiscResource, unsigned long, unitNum, d0, UBYTE *, name, a1, \ + , MISC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeMiscResource(unitNum) \ + LP1NR(0xc, FreeMiscResource, unsigned long, unitNum, d0, \ + , MISC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_MISC_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/nonvolatile.h includenew/powerup/ppcinline/nonvolatile.h *** include_h/powerup/ppcinline/nonvolatile.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/nonvolatile.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,42 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_NONVOLATILE_H + #define _PPCINLINE_NONVOLATILE_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef NONVOLATILE_BASE_NAME + #define NONVOLATILE_BASE_NAME NVBase + #endif /* !NONVOLATILE_BASE_NAME */ + + #define DeleteNV(appName, itemName, killRequesters) \ + LP3(0x30, BOOL, DeleteNV, STRPTR, appName, a0, STRPTR, itemName, a1, long, killRequesters, d1, \ + , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeNVData(data) \ + LP1NR(0x24, FreeNVData, APTR, data, a0, \ + , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetCopyNV(appName, itemName, killRequesters) \ + LP3(0x1e, APTR, GetCopyNV, STRPTR, appName, a0, STRPTR, itemName, a1, long, killRequesters, d1, \ + , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetNVInfo(killRequesters) \ + LP1(0x36, struct NVInfo *, GetNVInfo, long, killRequesters, d1, \ + , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetNVList(appName, killRequesters) \ + LP2(0x3c, struct MinList *, GetNVList, STRPTR, appName, a0, long, killRequesters, d1, \ + , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetNVProtection(appName, itemName, mask, killRequesters) \ + LP4(0x42, BOOL, SetNVProtection, STRPTR, appName, a0, STRPTR, itemName, a1, long, mask, d2, long, killRequesters, d1, \ + , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define StoreNV(appName, itemName, data, length, killRequesters) \ + LP5(0x2a, UWORD, StoreNV, STRPTR, appName, a0, STRPTR, itemName, a1, APTR, data, a2, unsigned long, length, d0, long, killRequesters, d1, \ + , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_NONVOLATILE_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/potgo.h includenew/powerup/ppcinline/potgo.h *** include_h/powerup/ppcinline/potgo.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/potgo.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,26 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_POTGO_H + #define _PPCINLINE_POTGO_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef POTGO_BASE_NAME + #define POTGO_BASE_NAME PotgoBase + #endif /* !POTGO_BASE_NAME */ + + #define AllocPotBits(bits) \ + LP1(0x6, UWORD, AllocPotBits, unsigned long, bits, d0, \ + , POTGO_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreePotBits(bits) \ + LP1NR(0xc, FreePotBits, unsigned long, bits, d0, \ + , POTGO_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WritePotgo(word, mask) \ + LP2NR(0x12, WritePotgo, unsigned long, word, d0, unsigned long, mask, d1, \ + , POTGO_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_POTGO_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/ramdrive.h includenew/powerup/ppcinline/ramdrive.h *** include_h/powerup/ppcinline/ramdrive.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/ramdrive.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,22 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_RAMDRIVE_H + #define _PPCINLINE_RAMDRIVE_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef RAMDRIVE_BASE_NAME + #define RAMDRIVE_BASE_NAME RamdriveDevice + #endif /* !RAMDRIVE_BASE_NAME */ + + #define KillRAD(unit) \ + LP1(0x30, STRPTR, KillRAD, unsigned long, unit, d0, \ + , RAMDRIVE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define KillRAD0() \ + LP0(0x2a, STRPTR, KillRAD0, \ + , RAMDRIVE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_RAMDRIVE_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/realtime.h includenew/powerup/ppcinline/realtime.h *** include_h/powerup/ppcinline/realtime.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/realtime.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,69 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_REALTIME_H + #define _PPCINLINE_REALTIME_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef REALTIME_BASE_NAME + #define REALTIME_BASE_NAME RealTimeBase + #endif /* !REALTIME_BASE_NAME */ + + #define CreatePlayerA(tagList) \ + LP1(0x2a, struct Player *, CreatePlayerA, struct TagItem *, tagList, a0, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define CreatePlayer(tags...) \ + ({ULONG _tags[] = { tags }; CreatePlayerA((struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define DeletePlayer(player) \ + LP1NR(0x30, DeletePlayer, struct Player *, player, a0, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ExternalSync(player, minTime, maxTime) \ + LP3(0x42, BOOL, ExternalSync, struct Player *, player, a0, long, minTime, d0, long, maxTime, d1, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindConductor(name) \ + LP1(0x4e, struct Conductor *, FindConductor, STRPTR, name, a0, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetPlayerAttrsA(player, tagList) \ + LP2(0x54, ULONG, GetPlayerAttrsA, struct Player *, player, a0, struct TagItem *, tagList, a1, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define GetPlayerAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetPlayerAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define LockRealTime(lockType) \ + LP1(0x1e, APTR, LockRealTime, unsigned long, lockType, d0, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NextConductor(previousConductor) \ + LP1(0x48, struct Conductor *, NextConductor, struct Conductor *, previousConductor, a0, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetConductorState(player, state, time) \ + LP3(0x3c, LONG, SetConductorState, struct Player *, player, a0, unsigned long, state, d0, long, time, d1, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SetPlayerAttrsA(player, tagList) \ + LP2(0x36, BOOL, SetPlayerAttrsA, struct Player *, player, a0, struct TagItem *, tagList, a1, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define SetPlayerAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetPlayerAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define UnlockRealTime(lock) \ + LP1NR(0x24, UnlockRealTime, APTR, lock, a0, \ + , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_REALTIME_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/rexxsyslib.h includenew/powerup/ppcinline/rexxsyslib.h *** include_h/powerup/ppcinline/rexxsyslib.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/rexxsyslib.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,54 ---- + /* 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 */ diff -c2 -d -P -r include_h/powerup/ppcinline/stubs.h includenew/powerup/ppcinline/stubs.h *** include_h/powerup/ppcinline/stubs.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/stubs.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,141 ---- + #ifndef __INLINE_STUB_H + #define __INLINE_STUB_H + + #ifndef EXEC_TYPES_H + #include <exec/types.h> + #endif + #ifndef EXEC_NODES_H + #include <exec/lists.h> + #endif + #ifndef DOS_DOS_H + #include <dos/dos.h> + #endif + #ifndef INTUITION_CLASSES_H + #include <intuition/classes.h> + #endif + #ifndef GRAPHICS_DISPLAYINFO_H + #include <graphics/displayinfo.h> + #endif + #ifndef LIBRARIES_COMMODITIES_H + #include <libraries/commodities.h> + #endif + + struct AnchorPath; + struct AnimOb; + struct AreaInfo; + struct BitMap; + struct BitScaleArgs; + struct Bob; + struct Border; + struct Catalog; + struct CardHandle; + struct ClipboardHandle; + struct ClipRect; + struct ClockData; + struct ColorMap; + struct ColorWheelRGB; + struct ColorWheelHSB; + struct ConfigDev; + struct CSource; + struct CopList; + struct CurrentBinding; + struct DataBase; + struct DateStamp; + struct DateTime; + struct Device; + struct DeviceNode; + struct DeviceTData; + struct DiskObject; + struct DosLibrary; + struct DosList; + struct DevProc; + struct DosPacket; + struct DrawInfo; + struct EasyStruct; + struct EClockVal; + struct ExAllControl; + struct ExAllData; + struct ExecBase; + struct ExpansionBase; + struct FileInfoBlock; + struct FileLock; + struct FileRequester; + struct FontContentsHeader; + struct FreeList; + struct Gadget; + struct GadgetInfo; + struct GelsInfo; + struct GlyphEngine; + struct GlyphMap; + struct GfxBase; + struct HelpNode; + struct Hook; + struct IClass; + struct Image; + struct InfoData; + struct InputEvent; + struct Interrupt; + struct IntuiText; + struct IntuitionBase; + struct IORequest; + struct KeyMap; + struct KeyQuery; + struct Layer; + struct Layer_Info; + struct Library; + struct List; + struct Locale; + struct LocaleBase; + struct MathIEEEBase; + struct MemHeader; + struct MemList; + struct Menu; + struct MenuItem; + struct Message; + struct MiscResource; + struct MsgPort; + struct NamedObject; + struct Node; + struct NewAmigaGuide; + struct NewGadget; + struct NewMenu; + struct NewScreen; + struct NewWindow; + struct NotifyRequest; + struct Preferences; + struct RDArgs; + struct RastPort; + struct RealTimeBase; + struct RecordLock; + struct Rectangle; + struct Region; + struct Remember; + struct Requester; + struct ReqToolsBase; + struct Resident; + struct RexxMsg; + struct RomBootBase; + struct RxsLib; + struct Screen; + struct Semaphore; + struct SignalSemaphore; + struct SimpleSprite; + struct TagItem; + struct Task; + struct TextAttr; + struct TextExtent; + struct TextFont; + struct timeval; + struct UCopList; + struct View; + struct ViewPort; + struct VSprite; + struct WBObject; + struct Window; + + struct bltnode; + struct cprlist; + struct gpLayout; + struct dtPrint; + + #endif /* __INLINE_STUB_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/timer.h includenew/powerup/ppcinline/timer.h *** include_h/powerup/ppcinline/timer.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/timer.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,34 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_TIMER_H + #define _PPCINLINE_TIMER_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef TIMER_BASE_NAME + #define TIMER_BASE_NAME TimerBase + #endif /* !TIMER_BASE_NAME */ + + #define AddTime(dest, src) \ + LP2NR(0x2a, AddTime, struct timeval *, dest, a0, struct timeval *, src, a1, \ + , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CmpTime(dest, src) \ + LP2(0x36, LONG, CmpTime, struct timeval *, dest, a0, struct timeval *, src, a1, \ + , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetSysTime(dest) \ + LP1NR(0x42, GetSysTime, struct timeval *, dest, a0, \ + , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReadEClock(dest) \ + LP1(0x3c, ULONG, ReadEClock, struct EClockVal *, dest, a0, \ + , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SubTime(dest, src) \ + LP2NR(0x30, SubTime, struct timeval *, dest, a0, struct timeval *, src, a1, \ + , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_TIMER_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/translator.h includenew/powerup/ppcinline/translator.h *** include_h/powerup/ppcinline/translator.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/translator.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,18 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_TRANSLATOR_H + #define _PPCINLINE_TRANSLATOR_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef TRANSLATOR_BASE_NAME + #define TRANSLATOR_BASE_NAME TranslatorBase + #endif /* !TRANSLATOR_BASE_NAME */ + + #define Translate(inputString, inputLength, outputBuffer, bufferSize) \ + LP4(0x1e, LONG, Translate, STRPTR, inputString, a0, long, inputLength, d0, STRPTR, outputBuffer, a1, long, bufferSize, d1, \ + , TRANSLATOR_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_TRANSLATOR_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/utility.h includenew/powerup/ppcinline/utility.h *** include_h/powerup/ppcinline/utility.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/utility.h Wed Feb 14 02:41:21 2001 *************** *** 0 **** --- 1,171 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_UTILITY_H + #define _PPCINLINE_UTILITY_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef UTILITY_BASE_NAME + #define UTILITY_BASE_NAME UtilityBase + #endif /* !UTILITY_BASE_NAME */ + + #define AddNamedObject(nameSpace, object) \ + LP2(0xde, BOOL, AddNamedObject, struct NamedObject *, nameSpace, a0, struct NamedObject *, object, a1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AllocNamedObjectA(name, tagList) \ + LP2(0xe4, struct NamedObject *, AllocNamedObjectA, STRPTR, name, a0, struct TagItem *, tagList, a1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define AllocNamedObject(a0, tags...) \ + ({ULONG _tags[] = { tags }; AllocNamedObjectA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AllocateTagItems(numTags) \ + LP1(0x42, struct TagItem *, AllocateTagItems, unsigned long, numTags, d0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Amiga2Date(seconds, result) \ + LP2NR(0x78, Amiga2Date, unsigned long, seconds, d0, struct ClockData *, result, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ApplyTagChanges(list, changeList) \ + LP2NR(0xba, ApplyTagChanges, struct TagItem *, list, a0, struct TagItem *, changeList, a1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define AttemptRemNamedObject(object) \ + LP1(0xea, LONG, AttemptRemNamedObject, struct NamedObject *, object, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CallHookPkt(hook, object, paramPacket) \ + LP3(0x66, ULONG, CallHookPkt, struct Hook *, hook, a0, APTR, object, a2, APTR, paramPacket, a1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CheckDate(date) \ + LP1(0x84, ULONG, CheckDate, struct ClockData *, date, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define CloneTagItems(tagList) \ + LP1(0x48, struct TagItem *, CloneTagItems, struct TagItem *, tagList, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Date2Amiga(date) \ + LP1(0x7e, ULONG, Date2Amiga, struct ClockData *, date, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FilterTagChanges(changeList, originalList, apply) \ + LP3NR(0x36, FilterTagChanges, struct TagItem *, changeList, a0, struct TagItem *, originalList, a1, unsigned long, apply, d0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FilterTagItems(tagList, filterArray, logic) \ + LP3(0x60, ULONG, FilterTagItems, struct TagItem *, tagList, a0, Tag *, filterArray, a1, unsigned long, logic, d0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindNamedObject(nameSpace, name, lastObject) \ + LP3(0xf0, struct NamedObject *, FindNamedObject, struct NamedObject *, nameSpace, a0, STRPTR, name, a1, struct NamedObject *, lastObject, a2, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FindTagItem(tagVal, tagList) \ + LP2(0x1e, struct TagItem *, FindTagItem, Tag, tagVal, d0, struct TagItem *, tagList, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeNamedObject(object) \ + LP1NR(0xf6, FreeNamedObject, struct NamedObject *, object, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define FreeTagItems(tagList) \ + LP1NR(0x4e, FreeTagItems, struct TagItem *, tagList, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetTagData(tagValue, defaultVal, tagList) \ + LP3(0x24, ULONG, GetTagData, Tag, tagValue, d0, unsigned long, defaultVal, d1, struct TagItem *, tagList, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define GetUniqueID() \ + LP0(0x10e, ULONG, GetUniqueID, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define MapTags(tagList, mapList, mapType) \ + LP3NR(0x3c, MapTags, struct TagItem *, tagList, a0, struct TagItem *, mapList, a1, unsigned long, mapType, d0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NamedObjectName(object) \ + LP1(0xfc, STRPTR, NamedObjectName, struct NamedObject *, object, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define NextTagItem(tagListPtr) \ + LP1(0x30, struct TagItem *, NextTagItem, struct TagItem **, tagListPtr, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PackBoolTags(initialFlags, tagList, boolMap) \ + LP3(0x2a, ULONG, PackBoolTags, unsigned long, initialFlags, d0, struct TagItem *, tagList, a0, struct TagItem *, boolMap, a1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define PackStructureTags(pack, packTable, tagList) \ + LP3(0xd2, ULONG, PackStructureTags, APTR, pack, a0, ULONG *, packTable, a1, struct TagItem *, tagList, a2, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RefreshTagItemClones(clone, original) \ + LP2NR(0x54, RefreshTagItemClones, struct TagItem *, clone, a0, struct TagItem *, original, a1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ReleaseNamedObject(object) \ + LP1NR(0x102, ReleaseNamedObject, struct NamedObject *, object, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemNamedObject(object, message) \ + LP2NR(0x108, RemNamedObject, struct NamedObject *, object, a0, struct Message *, message, a1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SDivMod32(dividend, divisor) \ + LP2(0x96, LONG, SDivMod32, long, dividend, d0, long, divisor, d1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SMult32(arg1, arg2) \ + LP2(0x8a, LONG, SMult32, long, arg1, d0, long, arg2, d1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define SMult64(arg1, arg2) \ + LP2(0xc6, LONG, SMult64, long, arg1, d0, long, arg2, d1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Stricmp(string1, string2) \ + LP2(0xa2, LONG, Stricmp, STRPTR, string1, a0, STRPTR, string2, a1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define Strnicmp(string1, string2, length) \ + LP3(0xa8, LONG, Strnicmp, STRPTR, string1, a0, STRPTR, string2, a1, long, length, d0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define TagInArray(tagValue, tagArray) \ + LP2(0x5a, BOOL, TagInArray, Tag, tagValue, d0, Tag *, tagArray, a0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ToLower(character) \ + LP1(0xb4, UBYTE, ToLower, unsigned long, character, d0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define ToUpper(character) \ + LP1(0xae, UBYTE, ToUpper, unsigned long, character, d0, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UDivMod32(dividend, divisor) \ + LP2(0x9c, ULONG, UDivMod32, unsigned long, dividend, d0, unsigned long, divisor, d1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UMult32(arg1, arg2) \ + LP2(0x90, ULONG, UMult32, unsigned long, arg1, d0, unsigned long, arg2, d1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UMult64(arg1, arg2) \ + LP2(0xcc, ULONG, UMult64, unsigned long, arg1, d0, unsigned long, arg2, d1, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define UnpackStructureTags(pack, packTable, tagList) \ + LP3(0xd8, ULONG, UnpackStructureTags, APTR, pack, a0, ULONG *, packTable, a1, struct TagItem *, tagList, a2, \ + , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_UTILITY_H */ diff -c2 -d -P -r include_h/powerup/ppcinline/wb.h includenew/powerup/ppcinline/wb.h *** include_h/powerup/ppcinline/wb.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcinline/wb.h Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,57 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCINLINE_WB_H + #define _PPCINLINE_WB_H + + #ifndef __PPCINLINE_MACROS_H + #include <powerup/ppcinline/macros.h> + #endif /* !__PPCINLINE_MACROS_H */ + + #ifndef WB_BASE_NAME + #define WB_BASE_NAME WorkbenchBase + #endif /* !WB_BASE_NAME */ + + #define AddAppIconA(id, userdata, text, msgport, lock, diskobj, taglist) \ + LP7A4(0x3c, struct AppIcon *, AddAppIconA, unsigned long, id, d0, unsigned long, userdata, d1, UBYTE *, text, a0, struct MsgPort *, msgport, a1, struct FileLock *, lock, a2, struct DiskObject *, diskobj, a3, struct TagItem *, taglist, d7, \ + , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define AddAppIcon(a0, a1, a2, a3, a4, a5, tags...) \ + ({ULONG _tags[] = { tags }; AddAppIconA((a0), (a1), (a2), (a3), (a4), (a5), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AddAppMenuItemA(id, userdata, text, msgport, taglist) \ + LP5(0x48, struct AppMenuItem *, AddAppMenuItemA, unsigned long, id, d0, unsigned long, userdata, d1, UBYTE *, text, a0, struct MsgPort *, msgport, a1, struct TagItem *, taglist, a2, \ + , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define AddAppMenuItem(a0, a1, a2, a3, tags...) \ + ({ULONG _tags[] = { tags }; AddAppMenuItemA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AddAppWindowA(id, userdata, window, msgport, taglist) \ + LP5(0x30, struct AppWindow *, AddAppWindowA, unsigned long, id, d0, unsigned long, userdata, d1, struct Window *, window, a0, struct MsgPort *, msgport, a1, struct TagItem *, taglist, a2, \ + , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #ifndef NO_PPCINLINE_STDARG + #define AddAppWindow(a0, a1, a2, a3, tags...) \ + ({ULONG _tags[] = { tags }; AddAppWindowA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define RemoveAppIcon(appIcon) \ + LP1(0x42, BOOL, RemoveAppIcon, struct AppIcon *, appIcon, a0, \ + , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemoveAppMenuItem(appMenuItem) \ + LP1(0x4e, BOOL, RemoveAppMenuItem, struct AppMenuItem *, appMenuItem, a0, \ + , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define RemoveAppWindow(appWindow) \ + LP1(0x36, BOOL, RemoveAppWindow, struct AppWindow *, appWindow, a0, \ + , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #define WBInfo(lock, name, screen) \ + LP3NR(0x5a, WBInfo, BPTR, lock, a0, STRPTR, name, a1, struct Screen *, screen, a2, \ + , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0) + + #endif /* !_PPCINLINE_WB_H */ diff -c2 -d -P -r include_h/powerup/ppclib/interface.h includenew/powerup/ppclib/interface.h *** include_h/powerup/ppclib/interface.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/interface.h Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,166 ---- + #ifndef POWERUP_PPCLIB_INTERFACE_H + #define POWERUP_PPCLIB_INTERFACE_H + + #include <exec/types.h> + + /* + * Structure which is used on the PPC side to call + * AmigaOS library functions or sub routines. + * + */ + + /*****************************/ + /* About the CacheMode field */ + /*****************************/ + + /* + * For calling functions from the PPC under M68k AmigaOS or for + * calling functions on the PPC Supervisor mode you have to care + * for the cache issues. Please read the Cache chapter in the + * docs/powerup.guide about the cache problems involved. + * If you do something wrong here you can expect that you loose + * data, get wrong data or simply crash the machine. + * + * IF_CACHEFLUSHNO: + * You use this mode for the cpu if your function + * touches no memory both cpus use. + * + * Example: Close(File) + * If you call this function by the PPC there`s no need + * to flush the cache because the PPC isn`t allowed to + * touch any memory which has to do with the File BPTR. + * ATTENTION: + * The PPC MUST NOT be used to poke into AmigaOS system + * structures. + * + * IF_CACHEFLUSHALL: + * You use this mode for the cpu if your function + * touches memory both cpus use and it`s no simple memory area + * which may be flushed individually. This should be used by default. + * + * Example: OpenWindowTagList(NewWindow,TagList) + * Here you pass a complex data structure which may use + * memory areas at several different areas. + * + * IF_CACHEFLUSHAREA: + * You use this mode for the cpu if your function + * touches memory both cpus use and it`s a memory area which isn`t + * very big. It depends on the size and how many lines are dirty + * if this is faster than IF_CACHEFLUSHALL. + * With the Start and Length fields of each cpu you can define + * the area. + * + * Example: Write(File,Address,Length) + * When the PPC runs this function the PPC must make sure + * that all data in the to be written memory area is in + * in the memory and not only in the cache. + * + * IF_CACHEINVALIDAREA: (V45) + * You use this mode for the cpu if your function + * touches memory both cpus use and it`s a memory area where you + * don`t care for valid data anymore. + * With the Start and Length fields of each cpu you can define + * the area. + * + * Example: Read(File,Address,Length) + * When the PPC runs this function the PPC has no need + * anymore for anything which is in its cache for the + * area the Address and Length define, so you could + * invalidate this instead of doing a cacheflush which + * may write back dirty lines. + * Be VERY careful about this. + * + * ATTENTION! The Address must be 32Byte aligned, so you should always + * use PPCAllocMem for data which is used on the M68k and PPC + * You are NOT allowed to use normal pools for exchanging data between + * the M68k and PPC. + * + * IF_ASYNC: (V45) + * If you use this flag, the function is called asynchronous and + * the PPC doesn`t have to wait for a result. + * This flag is only checked in the M68kCacheMode field. + * This also means that the result of the PPCCall#? function + * is meaningless. + * Normally this flag doesn`t really fit into a CacheMode flag, but + * well..too bad i haven`t declared another flag field there. + */ + + struct Caos + { + union + { + int Offset; + APTR Function; + } caos_Un; + ULONG M68kCacheMode; + APTR M68kStart; + ULONG M68kLength; + ULONG PPCCacheMode; + APTR PPCStart; + ULONG PPCLength; + ULONG d0; + ULONG d1; + ULONG d2; + ULONG d3; + ULONG d4; + ULONG d5; + ULONG d6; + ULONG d7; + ULONG a0; + ULONG a1; + ULONG a2; + ULONG a3; + ULONG a4; + ULONG a5; + /* + * here you have to put the LibBasePtr if you want + * to call a Library. + */ + ULONG a6; + }; + + #define IF_CACHEFLUSHNO 0 + #define IF_CACHEFLUSHALL 1 + #define IF_CACHEFLUSHAREA 2 + #define IF_CACHEINVALIDAREA 4 + #define IF_ASYNC 0x10000 + + + + /* + * Structure which is used on the M68k side to run + * a Kernel Supervisor ElfObject. During this time + * the multitasking on the PPC stops + * PPCRunKernelModule() ONLY !!!!!!!!!!!!!!!!!!!!! + * If you set IF_CACHEASYNC in PPCCacheMode the operation + * doesn`t return a valid result as it`s asynchron. + */ + + struct ModuleArgs + { + ULONG M68kCacheMode; + APTR M68kStart; + ULONG M68kLength; + ULONG PPCCacheMode; + APTR PPCStart; + ULONG PPCLength; + + ULONG Arg1; /* GPR3=C Integer Arg1 */ + ULONG Arg2; /* GPR4=C Integer Arg2 */ + ULONG Arg3; /* GPR5=C Integer Arg3 */ + ULONG Arg4; /* GPR6=C Integer Arg4 */ + ULONG Arg5; /* GPR7=C Integer Arg5 */ + ULONG Arg6; /* GPR8=C Integer Arg6 */ + ULONG Arg7; /* GPR9=C Integer Arg7 */ + ULONG Arg8; /* GPR10=C Integer Arg8 */ + DOUBLE FArg1; /* FPR1=C FPU Arg1 */ + DOUBLE FArg2; /* FPR2=C FPU Arg2 */ + DOUBLE FArg3; /* FPR3=C FPU Arg3 */ + DOUBLE FArg4; /* FPR4=C FPU Arg4 */ + DOUBLE FArg5; /* FPR5=C FPU Arg5 */ + DOUBLE FArg6; /* FPR6=C FPU Arg6 */ + DOUBLE FArg7; /* FPR7=C FPU Arg7 */ + DOUBLE FArg8; /* FPR8=C FPU Arg8 */ + }; + + #endif diff -c2 -d -P -r include_h/powerup/ppclib/interface.i includenew/powerup/ppclib/interface.i *** include_h/powerup/ppclib/interface.i Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/interface.i Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,157 ---- + IFND POWERUP_PPCLIB_INTERFACES_I + POWERUP_PPCLIB_INTERFACES_I SET 1 + + include "exec/types.i" + + ;/* + ; * Structure which is used on the PPC side to call + ; * AmigaOS library functions or sub routines. + ; * + ; */ + + ;/*****************************/ + ;/* About the CacheMode field */ + ;/*****************************/ + + ;/* + ; * For calling functions from the PPC under M68k AmigaOS or for + ; * calling functions on the PPC Supervisor mode you have to care + ; * for the cache issues. Please read the Cache chapter in the + ; * docs/powerup.guide about the cache problems involved. + ; * If you do something wrong here you can expect that you loose + ; * data, get wrong data or simply crash the machine. + ; * + ; * IF_CACHEFLUSHNO: + ; * You use this mode for the cpu if your function + ; * touches no memory both cpus use. + ; * + ; * Example: Close(File) + ; * If you call this function by the PPC there`s no need + ; * to flush the cache because the PPC isn`t allowed to + ; * touch any memory which has to do with the File BPTR. + ; * ATTENTION: + ; * The PPC MUST NOT be used to poke into AmigaOS system + ; * structures. + ; * + ; * IF_CACHEFLUSHALL: + ; * You use this mode for the cpu if your function + ; * touches memory both cpus use and it`s no simple memory area + ; * which may be flushed individually. This should be used by default. + ; * + ; * Example: OpenWindowTagList(NewWindow,TagList) + ; * Here you pass a complex data structure which may use + ; * memory areas at several different areas. + ; * + ; * IF_CACHEFLUSHAREA: + ; * You use this mode for the cpu if your function + ; * touches memory both cpus use and it`s a memory area which isn`t + ; * very big. It depends on the size and how many lines are dirty + ; * if this is faster than IF_CACHEFLUSHALL. + ; * With the Start and Length fields of each cpu you can define + ; * the area. + ; * + ; * Example: Write(File,Address,Length) + ; * When the PPC runs this function the PPC must make sure + ; * that all data in the to be written memory area is in + ; * in the memory and not only in the cache. + ; * + ; * IF_CACHEINVALIDAREA: (V45) + ; * You use this mode for the cpu if your function + ; * touches memory both cpus use and it`s a memory area where you + ; * don`t care for valid data anymore. + ; * With the Start and Length fields of each cpu you can define + ; * the area. + ; * + ; * Example: Read(File,Address,Length) + ; * When the PPC runs this function the PPC has no need + ; * anymore for anything which is in its cache for the + ; * area the Address and Length define, so you could + ; * invalidate this instead of doing a cacheflush which + ; * may write back dirty lines. + ; * Be VERY careful about this. + ; * + ; * ATTENTION! The Address must be 32Byte aligned, so you should always + ; * use PPCAllocMem for data which is used on the M68k and PPC + ; * You are NOT allowed to use normal pools for exchanging data between + ; * the M68k and PPC. + ; * + ; * IF_ASYNC: (V45) + ; * If you use this flag, the function is called asynchronous and + ; * the PPC doesn`t have to wait for a result. + ; * This flag is only checked in the M68kCacheMode field. + ; * This also means that the result of the PPCCall#? function + ; * is meaningless. + ; * Normally this flag doesn`t really fit into a CacheMode flag, but + ; * well..too bad i haven`t declared another flag field there. + ; */ + + STRUCTURE Caos,0 + LABEL caos_Function + LONG caos_Offset + ULONG caos_M68kCacheMode; + APTR caos_M68kStart; + ULONG caos_M68kLength; + ULONG caos_PPCCacheMode; + APTR caos_PPCStart; + ULONG caos_PPCLength; + ULONG caos_d0 + ULONG caos_d1 + ULONG caos_d2 + ULONG caos_d3 + ULONG caos_d4 + ULONG caos_d5 + ULONG caos_d6 + ULONG caos_d7 + ULONG caos_a0 + ULONG caos_a1 + ULONG caos_a2 + ULONG caos_a3 + ULONG caos_a4 + ULONG caos_a5 + ULONG caos_a6 + LABEL caos_SIZE + + IF_CACHEFLUSHNO = 0 + IF_CACHEFLUSHALL = 1 + IF_CACHEFLUSHAREA = 2 + IF_CACHEINVALIDAREA = 4 + IF_ASYNC = $10000 + + ;/* + ; * Structure which is used on the M68k side to run + ; * a Kernel Supervisor ElfObject. During this time + ; * the multitasking on the PPC stop + ; * Better allocate this struct by PPCAllocMem to get + ; * a Cache Line and FPU data alignment which is an + ; * automatic effect + ; * PPCRunKernelModule() ONLY !!!!!!!!!!!!!!!!!!!!! + ; * If you set IF_CACHEASYNC in PPCCacheMode the operation + ; * doesn`t return a valid result as it`s asynchron. + ; */ + + STRUCTURE ModuleArgs,0 + ULONG ma_M68kCacheMode; + APTR ma_M68kStart; + ULONG ma_M68kLength; + ULONG ma_PPCCacheMode; + APTR ma_PPCStart; + ULONG ma_PPCLength; + ULONG ma_Arg1 ;/* Gpr3=C Arg1 */ + ULONG ma_Arg2 ;/* Gpr4=C Arg2 */ + ULONG ma_Arg3 ;/* Gpr5=C Arg3 */ + ULONG ma_Arg4 ;/* Gpr6=C Arg4 */ + ULONG ma_Arg5 ;/* Gpr7=C Arg5 */ + ULONG ma_Arg6 ;/* Gpr8=C Arg6 */ + ULONG ma_Arg7 ;/* Gpr9=C Arg7 */ + ULONG ma_Arg8 ;/* Gpr10=C Arg8 */ + DOUBLE ma_FArg1;/* FPR1=C FPU Arg1 */ + DOUBLE ma_FArg2;/* FPR2=C FPU Arg2 */ + DOUBLE ma_FArg3;/* FPR3=C FPU Arg3 */ + DOUBLE ma_FArg4;/* FPR4=C FPU Arg4 */ + DOUBLE ma_FArg5;/* FPR5=C FPU Arg5 */ + DOUBLE ma_FArg6;/* FPR6=C FPU Arg6 */ + DOUBLE ma_FArg7;/* FPR7=C FPU Arg7 */ + DOUBLE ma_FArg8;/* FPR8=C FPU Arg8 */ + LABEL ModuleArgs_SIZEOF + + ENDC diff -c2 -d -P -r include_h/powerup/ppclib/memory.h includenew/powerup/ppclib/memory.h *** include_h/powerup/ppclib/memory.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/memory.h Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,58 ---- + #ifndef POWERUP_PPCLIB_MEMORY_H + #define POWERUP_PPCLIB_MEMORY_H + + + /* Allocate Memory with the Pages marked as writethrough + on the PPC. This means the whole memory size which is allocated + is aligned to 4k pages. So you better use Pools. + */ + + #define MEMF_WRITETHROUGHPPC (1L<<22) /* WriteThrough Pools */ + + /* Allocate Memory with the Pages marked as writethrough + on the PPC. This means the whole memory size which is allocated + is aligned to 4k pages. So you better use Pools. + (V46) + */ + + #define MEMF_WRITETHROUGHM68K (1L<<23) /* WriteThrough Pools */ + + /* Allocate Memory with the Pages marked as NOCACHE (not synchronisized) + on the PPC. This means the whole memory size which is allocated + is aligned to 4k pages. So you better use Pools. + (V46) + */ + + #define MEMF_NOCACHEPPC (1L<<24) /* NoCache Pools */ + + /* Allocate Memory with the Pages marked as NOCACHE + on the M68k. This means the whole memory size which is allocated + is aligned to 4k pages. So you better use Pools. + (V46) + */ + #define MEMF_NOCACHEM68K (1L<<25) /* NoCache Pools */ + + /* Allocate Memory with the Pages marked as NOCACHE GUARD(synchronisized) + on the PPC. This means the whole memory size which is allocated + is aligned to 4k pages. So you better use Pools. + (V46) + */ + + #define MEMF_NOCACHESYNCPPC (1L<<29) /* NoCache synchronized Pools */ + + /* Allocate Memory with the Pages marked as NOCACHE synchronisized + on the M68k. This means the whole memory size which is allocated + is aligned to 4k pages. So you better use Pools. + */ + #define MEMF_NOCACHESYNCM68K (1L<<30) /* NoCache synchronized Pools */ + + + + #define MEMF_PPCMASK (MEMF_NOCACHEPPC | \ + MEMF_NOCACHEM68K | \ + MEMF_NOCACHESYNCPPC | \ + MEMF_NOCACHESYNCM68K | \ + MEMF_WRITETHROUGHPPC | \ + MEMF_WRITETHROUGHM68K) + + #endif diff -c2 -d -P -r include_h/powerup/ppclib/message.h includenew/powerup/ppclib/message.h *** include_h/powerup/ppclib/message.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/message.h Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,54 ---- + #ifndef POWERUP_PPCLIB_MESSAGE_H + #define POWERUP_PPCLIB_MESSAGE_H + + #include <utility/tagitem.h> + + /* This file should be used under SAS and GCC + */ + + #define PPCPORTTAG_Dummy (TAG_USER + 0x24000) + #define PPCPORTTAG_NAME (PPCPORTTAG_Dummy + 0) + #define PPCPORTTAG_ERROR (PPCPORTTAG_Dummy + 1) + /* + * PPCObtainPort() + */ + + /* To define a different network timeout + * if PPCPORTTAG_MACHINE is used + * Not supported yet + */ + #define PPCPORTTAG_TIMEOUT (PPCPORTTAG_Dummy + 2) + /* To define a machine in the network + * Not supported yet + */ + #define PPCPORTTAG_MACHINE (PPCPORTTAG_Dummy + 3) + /* Search port on the local processor + * Not supported yet + */ + #define PPCPORTTAG_LOCAL (PPCPORTTAG_Dummy + 4) + /* Search port on all processors + * Not supported yet + */ + #define PPCPORTTAG_GLOBAL (PPCPORTTAG_Dummy + 5) + + + #define PPCMSGTAG_Dummy (TAG_USER + 0x25000) + #define PPCMSGTAG_DATA (PPCMSGTAG_Dummy + 0) + #define PPCMSGTAG_DATALENGTH (PPCMSGTAG_Dummy + 1) + #define PPCMSGTAG_MSGID (PPCMSGTAG_Dummy + 2) + + /* Returns NT_REPLYMSG or NT_MESSAGE or NT_FREEMSG */ + #define PPCMSGTAG_MSGTYPE (PPCMSGTAG_Dummy + 3) + + #define PPCPORTERROR_OK 0 + #define PPCPORTERROR_MEMORY 1 + #define PPCPORTERROR_SIGNAL 2 + #define PPCPORTERROR_PORTEXISTS 3 + #define PPCPORTERROR_NOTFOUND 4 + #define PPCPORTERROR_TIMEOUT 5 + + #define PPCPORTLISTTAG_Dummy (TAG_USER + 0x26000) + #define PPCPORTLISTTAG_EXTENDEDSIGNALS (PPCPORTLISTTAG_Dummy + 0) + #define PPCPORTLISTTAG_RECEIVEDSIGNALS (PPCPORTLISTTAG_Dummy + 1) + + #endif diff -c2 -d -P -r include_h/powerup/ppclib/message.i includenew/powerup/ppclib/message.i *** include_h/powerup/ppclib/message.i Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/message.i Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,55 ---- + IFND POWERUP_PPCLIB_MESSAGE_I + POWERUP_PPCLIB_MESSAGE_I SET 1 + + include "utility/tagitem.i" + + ;/* This file should be used under SAS and GCC + ; */ + + PPCPORTTAG_Dummy = (TAG_USER+$24000) + PPCPORTTAG_NAME = (PPCPORTTAG_Dummy+0) + PPCPORTTAG_ERROR = (PPCPORTTAG_Dummy+1) + ;/* + ; * PPCObtainPort() + ; */ + + ;/* To define a different network timeout + ; * if PPCPORTTAG_MACHINE is used + ; * Not supported yet + ; */ + PPCPORTTAG_TIMEOUT = (PPCPORTTAG_Dummy+2) + ;/* To define a machine in the network + ; * Not supported yet + ; */ + PPCPORTTAG_MACHINE = (PPCPORTTAG_Dummy+3) + ;/* Search port on the local processor + ; * Not supported yet + ; */ + PPCPORTTAG_LOCAL = (PPCPORTTAG_Dummy+4) + ;/* Search port on all processors + ; * Not supported yet + ; */ + PPCPORTTAG_GLOBAL = (PPCPORTTAG_Dummy+5) + + + PPCMSGTAG_Dummy = (TAG_USER+$25000) + PPCMSGTAG_DATA = (PPCMSGTAG_Dummy+0) + PPCMSGTAG_DATALENGTH = (PPCMSGTAG_Dummy+1) + PPCMSGTAG_MSGID = (PPCMSGTAG_Dummy+2) + + ;/* Returns NT_REPLYMSG or NT_MESSAGE or NT_FREEMSG */ + PPCMSGTAG_MSGTYPE = (PPCMSGTAG_Dummy+3) + + PPCPORTERROR_OK = 0 + PPCPORTERROR_MEMORY = 1 + PPCPORTERROR_SIGNAL = 2 + PPCPORTERROR_PORTEXISTS = 3 + PPCPORTERROR_NOTFOUND = 4 + PPCPORTERROR_TIMEOUT = 5 + + PPCPORTLISTTAG_Dummy = (TAG_USER+$26000) + PPCPORTLISTTAG_EXTENDEDSIGNALS = (PPCPORTLISTTAG_Dummy+0) + PPCPORTLISTTAG_RECEIVEDSIGNALS = (PPCPORTLISTTAG_Dummy+1) + + ENDC + diff -c2 -d -P -r include_h/powerup/ppclib/object.h includenew/powerup/ppclib/object.h *** include_h/powerup/ppclib/object.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/object.h Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,254 ---- + #ifndef POWERUP_PPCLIB_OBJECT_H + #define POWERUP_PPCLIB_OBJECT_H + + /************************************************** + * + * + * PPCLoadElfObjectTags() + * + * + **************************************************/ + + #define PPCELFLOADOBJECTTAG_DUMMY (TAG_USER + 0x23300) + + /* pointer to a filename of the elf file */ + #define PPCELFLOADTAG_ELFNAME (PPCELFLOADOBJECTTAG_DUMMY + 0x0) + + /* pointer to the elf stream resident in memory. + * PPCELFLOADTAG_ELFNAME and PPCELFLOADTAG_ELFADDRESS + * are mutually exclusive + */ + #define PPCELFLOADTAG_ELFADDRESS (PPCELFLOADOBJECTTAG_DUMMY + 0x1) + + /* length of the elf stream. This tag is optional + */ + #define PPCELFLOADTAG_ELFLENGTH (PPCELFLOADOBJECTTAG_DUMMY + 0x2) + + /* Stream IO Hook + * so you can implement your own loader system + * BOOL CallHookPkt(hook,Handle,&Msg); + * + */ + #define PPCELFLOADTAG_HOOK (PPCELFLOADOBJECTTAG_DUMMY + 0x3) + + /* Load an ElfObject as a SharedLib Module + * BOOL + */ + #define PPCELFLOADTAG_LIBRARY (PPCELFLOADOBJECTTAG_DUMMY + 0x4) + + /* File Ptr + * BPTR + */ + #define PPCELFLOADTAG_FILE (PPCELFLOADOBJECTTAG_DUMMY + 0x5) + + /* pointer to THE name of the elf lib */ + #define PPCELFLOADTAG_ELFLIBNAME (PPCELFLOADOBJECTTAG_DUMMY + 0x6) + + /* Ask for at least version x of a SharedLib Module + * ULONG + */ + #define PPCELFLOADTAG_LIBVERSION (PPCELFLOADOBJECTTAG_DUMMY + 0x7) + + /* Ask for at least revision x of a SharedLib Module + * ULONG + */ + #define PPCELFLOADTAG_LIBREVISION (PPCELFLOADOBJECTTAG_DUMMY + 0x8) + + /* Ask for the specific version of a SharedLib Module + * BOOL + */ + #define PPCELFLOADTAG_LIBEXACTVERSION (PPCELFLOADOBJECTTAG_DUMMY + 0x9) + #define PPCELFLOADTAG_LIBEXACTREVISION (PPCELFLOADOBJECTTAG_DUMMY + 0xa) + + + + + struct ElfStreamMsg + { + ULONG Type; + ULONG Arg1; /* Open->No Meaning,Close->No Meaning,Read->Address,Seek->Offset */ + ULONG Arg2; /* Open->No Meaning,Close->No Meaning,Read->Length,Seek->Type */ + }; + + /* The Result must be a Handle */ + #define PPCELFLOADTYPE_OPEN 0 + /* The Result must be a boolean */ + #define PPCELFLOADTYPE_CLOSE 1 + /* The Result must be the read length or -1 */ + #define PPCELFLOADTYPE_READ 2 + /* The Result must be the old offset or -1 */ + #define PPCELFLOADTYPE_SEEK 3 + + /************************************************** + * + * + * PPCGetElfInfos() Tags + * + * + **************************************************/ + + #define PPCELFINFOTAG_DUMMY (TAG_USER + 0x23000) + + /* Returns the name of an elfobject */ + #define PPCELFINFOTAG_NAME (PPCELFINFOTAG_DUMMY + 0x0) + + /* Returns infos about a reloc instead of a symbol + * A special PPCSymbolStruct is passed by ti_Data + * which tells if you search for a symbol name + * or wanna find a symbol for a certain address. + * Result=TRUE if the search was successful and then + * the SymbolStruct contains other important infos + */ + #define PPCELFINFOTAG_RELOC (PPCELFINFOTAG_DUMMY + 0x1) + + + + /* Set this Boolean if you want the infos global. + Then all Elfobjects are searched. + */ + #define PPCELFINFOTAG_GLOBAL (PPCELFINFOTAG_DUMMY + 0x2) + + + /* Define this Hook if you wanna get informations about every + Symbol in a specific ElfObject or in all. + (ElfObject==NULL || PPCELFINFOTAG_GLOBAL=TRUE) + That`s the way how the PPCGetObjectInfo() calls your hook. + MyInfo contains the passed infos, so you could show all + important symbols or relocs if possible. + + CallHookPkt(ScanSymbolHook, + (APTR) ElfSubStructure, // Not really useful + (APTR) MyInfo); + + */ + #define PPCELFINFOTAG_SCANSYMBOLHOOK (PPCELFINFOTAG_DUMMY + 0x3) + + + + struct PPCObjectInfo + { + ULONG Address; + /* Name of the Object + * If this is set PPCGetElfInfo search for the Name + * Otherwise Address is used to search for an object + */ + char *Name; + /* Type of the object + */ + ULONG Type; + + /* Subtype of the object + * Symbol: + * COMMON=BSS + * FUNCTION + * ... + * Section: + * + * Reloc: + * Relocation Type + */ + ULONG SubType; + /* Symbol: + * Local,Global,Weak + * Section: + * + */ + ULONG Binding; + /* Size of the object + */ + ULONG Size; + }; + + #define PPCELFINFOTYPE_SECTION 0 + + /* A Symbol whose SubType defines the real + symbol Type and Binding contains the + state of the symbol. + */ + #define PPCELFINFOTYPE_SYMBOL 1 + + /* A common section(BSS) symbol whose SubType + defines the real symbol Type and Binding + contains the state of the symbol. + */ + #define PPCELFINFOTYPE_COMSYMBOL 2 + + /* A reloc entry is quite simular to a symbol. + It`s only useful to connect certain instruction + addresses with certain symbols where you can`t + calculate the symbol value in an easy way. + i.e 16 bit PPC addressmodes..ADDR16_HI,HA + */ + #define PPCELFINFOTYPE_RELOC 3 + + + + /*------------------------------------------------------------------------*/ + /* definition of the symbol types` */ + /*------------------------------------------------------------------------*/ + + #define STT_NOTYPE 0 + #define STT_OBJECT 1 + #define STT_FUNC 2 + #define STT_SECTION 3 + #define STT_FILE 4 + #define STT_LOPROC 13 + #define STT_HIPROC 15 + + + /*------------------------------------------------------------------------*/ + /* definition of the symbol bindings */ + /*------------------------------------------------------------------------*/ + + #define STB_LOCAL 0 + #define STB_GLOBAL 1 + #define STB_WEAK 2 + #define STB_LOPROC 13 + #define STB_HIPROC 15 + + + /*------------------------------------------------------------------------*/ + /* definition of the supported elf.rela types */ + /*------------------------------------------------------------------------*/ + + #define R_PPC_NONE 0 + #define R_PPC_ADDR32 1 + #define R_PPC_ADDR24 2 + #define R_PPC_ADDR16 3 + #define R_PPC_ADDR16_L 4 + #define R_PPC_ADDR16_HI 5 + #define R_PPC_ADDR16_HA 6 + #define R_PPC_ADDR14 7 + #define R_PPC_ADDR14_BRTAKEN 8 + #define R_PPC_ADDR14_BRNTAKEN 9 + #define R_PPC_REL24 10 + #define R_PPC_REL14 11 + #define R_PPC_REL14_BRTAKEN 12 + #define R_PPC_REL14_BRNTAKEN 13 + #define R_PPC_GOT16 14 + #define R_PPC_GOT16_LO 15 + #define R_PPC_GOT16_HI 16 + #define R_PPC_GOT16_HA 17 + #define R_PPC_PLTREL24 18 + #define R_PPC_COPY 19 + #define R_PPC_GLOB_DAT 20 + #define R_PPC_JMP_SLOT 21 + #define R_PPC_RELATIVE 22 + #define R_PPC_LOCAL24PC 23 + #define R_PPC_UADDR32 24 + #define R_PPC_UADDR16 25 + #define R_PPC_REL32 26 + #define R_PPC_PLT32 27 + #define R_PPC_PLTREL32 28 + #define R_PPC_PLT16_LO 29 + #define R_PPC_PLT16_HI 30 + #define R_PPC_PLT16_HA 31 + #define R_PPC_SDAREL16 32 + #define R_PPC_SECTOFF 33 + #define R_PPC_SECTOFF_LO 34 + #define R_PPC_SECTOFF_HI 35 + #define R_PPC_SECTOFF_HA 34 + + + + #endif diff -c2 -d -P -r include_h/powerup/ppclib/ppc.h includenew/powerup/ppclib/ppc.h *** include_h/powerup/ppclib/ppc.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/ppc.h Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,112 ---- + #ifndef POWERUP_PPCLIB_PPC_H + #define POWERUP_PPCLIB_PPC_H + + #include <utility/tagitem.h> + + /* PPCGetInfo() Tags */ + + #define PPCINFOTAG_Dummy (TAG_USER + 0x1f000) + + /* Version of the CPU + * (Get) + */ + #define PPCINFOTAG_CPU (PPCINFOTAG_Dummy + 0x1) + + /* CPU Count + * (Get) + */ + #define PPCINFOTAG_CPUCOUNT (PPCINFOTAG_Dummy + 0x2) + + /* Clock of the CPU + * (Get) + */ + #define PPCINFOTAG_CPUCLOCK (PPCINFOTAG_Dummy + 0x3) + + /* Revision of the CPU + * (Get) + */ + #define PPCINFOTAG_CPUREV (PPCINFOTAG_Dummy + 0x4) + + /* Default ExceptionHook + * If you want to install an ExceptionHook + * to catch all exceptions by a debugger for example + * (Get/Set) + */ + #define PPCINFOTAG_EXCEPTIONHOOK (PPCINFOTAG_Dummy + 0x5) + + /* Add PPCCreateTask Hook (V45) + * If you want to be notified when a new PPC Task + * is created. Usable for a debugger or a Task Viewer. + * + * BOOL CallHookPkt(YourHookHook, TaskObject, TaskHookMsg); + * + * If you want to install a new TrapHandler you can do it + * now in your Hook function. Or tell the Task to stop at the + * first instruction. + * The PPC Task is initiated after all Hook functions complete. + * The result defines if potential hooks should not be called. + * If you return TRUE no other hooks are called. + * (Set) + */ + #define PPCINFOTAG_TASKHOOK (PPCINFOTAG_Dummy + 0x6) + + /* Remove a TaskHook (V45) + * (Set) + */ + #define PPCINFOTAG_REMTASKHOOK (PPCINFOTAG_Dummy + 0x7) + + /* PLL Devider of the CPU (V45) + * (Get) + */ + #define PPCINFOTAG_CPUPLL (PPCINFOTAG_Dummy + 0x8) + + + /* BusClock of the CPU (V47) + * (Get) + */ + #define PPCINFOTAG_CPUBUSCLOCK (PPCINFOTAG_Dummy + 0x9) + + + struct TaskHookMsg_Create + { + ULONG MethodID; + ULONG Version; + void *ElfObject; + struct TagItem *Tags; + }; + + struct TaskHookMsg_Delete + { + ULONG MethodID; + ULONG Version; + }; + + struct TaskHookMsg_Get + { + ULONG MethodID; + ULONG Version; + struct TagItem *Tags; + }; + + struct TaskHookMsg_Set + { + ULONG MethodID; + ULONG Version; + struct TagItem *Tags; + }; + + #define PPCTASKHOOKMETHOD_CREATE 0 + #define PPCTASKHOOKMETHOD_DELETE 1 + #define PPCTASKHOOKMETHOD_GET 2 + #define PPCTASKHOOKMETHOD_SET 3 + + + /* Current known PowerPC CPU versions */ + #define CPU_603 3 + #define CPU_604 4 + #define CPU_602 5 + #define CPU_603e 6 + #define CPU_603p 7 + #define CPU_604e 9 + + #endif diff -c2 -d -P -r include_h/powerup/ppclib/ppc.i includenew/powerup/ppclib/ppc.i *** include_h/powerup/ppclib/ppc.i Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/ppc.i Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,108 ---- + IFND POWERUP_PPCLIB_PPC_I + POWERUP_PPCLIB_PPC_I SET 1 + + include "utility/tagitem.i" + + ;/* PPCGetInfo() Tags */ + + PPCINFOTAG_Dummy = (TAG_USER+$1f000) + + ;/* Version of the CPU + ; * (Get) + ; */ + PPCINFOTAG_CPU = (PPCINFOTAG_Dummy+$1) + + ;/* CPU Count + ; * (Get) + ; */ + PPCINFOTAG_CPUCOUNT = (PPCINFOTAG_Dummy+$2) + + ;/* Clock of the CPU + ; * (Get) + ; */ + PPCINFOTAG_CPUCLOCK = (PPCINFOTAG_Dummy+$3) + + ;/* Revision of the CPU + ; * (Get) + ; */ + PPCINFOTAG_CPUREV = (PPCINFOTAG_Dummy+$4) + + ;/* Default ExceptionHook + ; * If you want to install an ExceptionHook + ; * to catch all exceptions by a debugger for example + ; * (Get/Set) + ; */ + ; */ + PPCINFOTAG_EXCEPTIONHOOK= (PPCINFOTAG_Dummy+$5) + + ;/* Add PPCCreateTask Hook (V45) + ; * If you want to be notified when a new PPC Task + ; * is created. Usable for a debugger or a Task Viewer. + ; * + ; * BOOL CallHookPkt(DeleteTaskHook, MyTaskObject, TaskHookMsg); + ; * + ; * If you want to install a new TrapHandler you can do it + ; * now in your Hook function. Or tell the Task to stop at the + ; * first instruction. + ; * The PPC Task is initiated after all Hook functions complete. + ; * The result defines if potential hooks should not be called. + ; * If you return TRUE no other hooks are called. + ; * (Set) + ; */ + PPCINFOTAG_TASKHOOK= (PPCINFOTAG_Dummy+$6) + + ;/* Remove a TaskHook (V45) + ; * (Set) + ; */ + PPCINFOTAG_REMTASKHOOK= (PPCINFOTAG_Dummy+$7) + + ;/* PLL Devider of the CPU (V45) + ; * (Get) + ; */ + PPCINFOTAG_CPUPLL = (PPCINFOTAG_Dummy+$8) + + + ;/* BusClock of the CPU (V47) + ; * (Get) + ; */ + PPCINFOTAG_CPUBUSCLOCK = (PPCINFOTAG_Dummy + $9) + + + STRUCTURE TaskHookMsg_Create,0 + ULONG mc_MethodID + ULONG mc_Version + APTR mc_ElfObject + APTR mc_Tags + LABEL TaskHookMsg_Create_SIZEOF + + STRUCTURE TaskHookMsg_Delete,0 + ULONG md_MethodID + ULONG md_Version + LABEL TaskHookMsg_Delete_SIZEOF + + STRUCTURE TaskHookMsg_Get,0 + ULONG mg_MethodID + ULONG mg_Version + APTR mg_Tags + LABEL TaskHookMsg_Get_SIZEOF + + STRUCTURE TaskHookMsg_Set,0 + ULONG ms_MethodID + ULONG ms_Version + APTR ms_Tags + LABEL TaskHookMsg_Set_SIZEOF + + PPCTASKHOOKMETHOD_CREATE = 0 + PPCTASKHOOKMETHOD_DELETE = 1 + PPCTASKHOOKMETHOD_GET = 2 + PPCTASKHOOKMETHOD_SET = 3 + + ;/* Current known PowerPC CPU versions */ + CPU_603 = 3 + CPU_604 = 4 + CPU_602 = 5 + CPU_603e = 6 + CPU_603p = 7 + CPU_604e = 9 + + ENDC diff -c2 -d -P -r include_h/powerup/ppclib/semaphore.h includenew/powerup/ppclib/semaphore.h *** include_h/powerup/ppclib/semaphore.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/semaphore.h Wed Feb 14 02:41:22 2001 *************** *** 0 **** --- 1,23 ---- + #ifndef POWERUP_PPCLIB_SEMAPHORE_H + #define POWERUP_PPCLIB_SEMAPHORE_H + + #include <utility/tagitem.h> + + #define PPCSEMAPHORETAG_BASE (TAG_USER + 0x25000) + + /* Sets the Name for the Semaphore and automaticly adds the Semaphore to + the public List + */ + #define PPCSEMAPHORETAG_NAME (PPCSEMAPHORETAG_BASE+0) + + + #define PPCSEMAPHORETAG_ERROR (PPCSEMAPHORETAG_BASE+1) + + #define PPCSEMAPHOREERROR_OK 0 + #define PPCSEMAPHOREERROR_MEMORY 1 + #define PPCSEMAPHOREERROR_ALREDYEXISTS 2 + #define PPCSEMAPHOREERROR_NOTFOUND 3 + #define PPCSEMAPHOREERROR_OBTAINED 4 + #define PPCSEMAPHOREERROR_NONAME 5 + + #endif diff -c2 -d -P -r include_h/powerup/ppclib/semaphore.i includenew/powerup/ppclib/semaphore.i *** include_h/powerup/ppclib/semaphore.i Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/semaphore.i Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,24 ---- + IFND POWERUP_PPCLIB_SEMAPHORE_I + POWERUP_PPCLIB_SEMAPHORE_I SET 1 + + include "utility/tagitem.i" + + PPCSEMAPHORETAG_BASE = (TAG_USER+$25000) + + ;/* Sets the Name for the Semaphore and automaticly adds the Semaphore to + ; the public List + ; */ + PPCSEMAPHORETAG_NAME = (PPCSEMAPHORETAG_BASE+0) + + + PPCSEMAPHORETAG_ERROR = (PPCSEMAPHORETAG_BASE+1) + + PPCSEMAPHOREERROR_OK = 0 + PPCSEMAPHOREERROR_MEMORY = 1 + PPCSEMAPHOREERROR_ALREDYEXISTS = 2 + PPCSEMAPHOREERROR_NOTFOUND = 3 + PPCSEMAPHOREERROR_OBTAINED = 4 + PPCSEMAPHOREERROR_NONAME = 5 + + ENDC + diff -c2 -d -P -r include_h/powerup/ppclib/tasks.h includenew/powerup/ppclib/tasks.h *** include_h/powerup/ppclib/tasks.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/tasks.h Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,556 ---- + #ifndef POWERUP_PPCLIB_TASKS_H + #define POWERUP_PPCLIB_TASKS_H + + /************************************************** + * + * + * PPCCreateTask() Tags + * + * + **************************************************/ + + #define PPCTASKTAG_DUMMY (TAG_USER + 0x20000) + + /* ElfObject which discribes the PPC program + * Needed to start one. + */ + #define PPCTASKTAG_ELFOBJECT (PPCTASKTAG_DUMMY + 0x1) + + /* Name of the new Task. */ + #define PPCTASKTAG_NAME (PPCTASKTAG_DUMMY + 0x2) + + /* First Argument..gpr3 */ + #define PPCTASKTAG_ARG1 (PPCTASKTAG_DUMMY + 0x3) + + /* First Argument..gpr4 */ + #define PPCTASKTAG_ARG2 (PPCTASKTAG_DUMMY + 0x4) + + /* First Argument..gpr5 */ + #define PPCTASKTAG_ARG3 (PPCTASKTAG_DUMMY + 0x5) + + /* First Argument..gpr6 */ + #define PPCTASKTAG_ARG4 (PPCTASKTAG_DUMMY + 0x6) + + /* First Argument..gpr7 */ + #define PPCTASKTAG_ARG5 (PPCTASKTAG_DUMMY + 0x7) + + /* First Argument..gpr8 */ + #define PPCTASKTAG_ARG6 (PPCTASKTAG_DUMMY + 0x8) + + /* First Argument..gpr9 */ + #define PPCTASKTAG_ARG7 (PPCTASKTAG_DUMMY + 0x9) + + /* First Argument..gpr10 */ + #define PPCTASKTAG_ARG8 (PPCTASKTAG_DUMMY + 0xa) + + /* Default=TRUE means that the cacheflush is handled automaticly + * You need cacheflushs when you use OS functions to share data. + * If you know it better than the stupid cacheflush routine you + * can handle that yourself and optimize your routines. + */ + + #define PPCTASKTAG_CACHEFLUSH (PPCTASKTAG_DUMMY + 0xb) + + /* Ptr to an ULONG Errorfield where a better error description + * can be stored. + */ + + #define PPCTASKTAG_ERROR (PPCTASKTAG_DUMMY + 0xc) + + /* PPC Stacksize...Default 8192 + * Supported by PowerUP's PPCGetTaskAttr() (V45) + */ + #define PPCTASKTAG_STACKSIZE (PPCTASKTAG_DUMMY + 0xd) + + /* Task Priority..Default 0 */ + #define PPCTASKTAG_PRIORITY (PPCTASKTAG_DUMMY + 0xe) + + /* Input Handle..Default Open("Nil:") + * The handle is closed when the PPC task completes + */ + #define PPCTASKTAG_INPUTHANDLE (PPCTASKTAG_DUMMY + 0xf) + + /* Output Handle..Default Open("Nil:") + * The handle is closed when the PPC task completes + */ + #define PPCTASKTAG_OUTPUTHANDLE (PPCTASKTAG_DUMMY + 0x10) + + /* Error Handle..Default Open("Nil:") + * The handle is closed when the PPC task completes + */ + #define PPCTASKTAG_ERRORHANDLE (PPCTASKTAG_DUMMY + 0x11) + + /* + * When you set this Tag the Task is stopped + * before the first instruction is executed + * Only useful for debuggers + */ + #define PPCTASKTAG_STOPTASK (PPCTASKTAG_DUMMY + 0x12) + + /* ExceptionHook + * The M68k Hook is called when a PPC TaskObject gets an + * exception which can be processor or software(Kernel Msg) + * related. + * That`s the way the ppc.library calls the Hook: + * + * BOOL CallHookPkt(hook,TaskObject,ExceptionMsg); + * + * The Hook Function is NOT allowed to call PPCLibBase + * functions to avoid deadlocks. + * And after the Hook function returns the ExceptionMsg + * contents IS NOT valid anymore. + * So you should copy the ExceptionMsg contents to a private + * buffer and then signal your debugger control task about + * the event. + * The Hook return BOOL should tell the ppc.library if all + * worked fine. + */ + + #define PPCTASKTAG_EXCEPTIONHOOK (PPCTASKTAG_DUMMY + 0x13) + + + /* If you want that the PPCTask gets a MsgPort you can tell + * PPCCreateTask by a TRUE that you want one. + * I made this optional because it may cause an initial speed + * loss if you only need a ppc task for a quick run job where + * the init latency may be a serious issue. + * Supported by PowerUP's PPCGetTaskAttr() + */ + #define PPCTASKTAG_MSGPORT (PPCTASKTAG_DUMMY + 0x14) + + /* If you wanna provide the ppc a startup msg. This msg will + * be replied by the ppc.library after the PPC Task ends so + * you can use this to know that the PPCTask is gone so a + * PPCUnloadObject() is save now. + * Supported by PowerUP's PPCGetTaskAttr() + */ + #define PPCTASKTAG_STARTUP_MSG (PPCTASKTAG_DUMMY + 0x15) + + /* The Data field for the PPCMessage + * Supported by PowerUP's PPCGetTaskAttr() + */ + #define PPCTASKTAG_STARTUP_MSGDATA (PPCTASKTAG_DUMMY + 0x16) + /* The Length field for the PPCMessage + * Supported by PowerUP's PPCGetTaskAttr() + */ + #define PPCTASKTAG_STARTUP_MSGLENGTH (PPCTASKTAG_DUMMY + 0x17) + /* The MsgID field for the PPCMessage + * Supported by PowerUP's PPCGetTaskAttr() + */ + #define PPCTASKTAG_STARTUP_MSGID (PPCTASKTAG_DUMMY + 0x18) + /* The flag to activate the CTRL-C;D;E;F gateway to + * the PPC Task by PPCSignalTask(); + */ + #define PPCTASKTAG_BREAKSIGNAL (PPCTASKTAG_DUMMY + 0x19) + + + /* The CPU number the task should start on. + * This is only a hint and no gurantee. + */ + #define PPCTASKTAG_CPUHINT (PPCTASKTAG_DUMMY + 0x1a) + + /* Ptr to ixemul UserData + * ONLY supported by PowerUP's PPCGetTaskAttr(),PPCSetTaskAttr() + */ + #define PPCTASKTAG_EXTUSERDATA (PPCTASKTAG_DUMMY + 0x1b) + + + + /* Run Task Synchron Flag which means that the PPCCreateTask + * doesn`t return until the task completes and the return + * value is not the TaskObject but the Task`s return value. + * To check if the task runned correctly check out the + * PPCTASKTAG_ERROR fieldptr. + * With this Tag you can do the same what the old RunTaskObject + * does which interface is a bit limited(compatibility to the + * first ppc.library version) + */ + + #define PPCTASKTAG_WAITFINISH (PPCTASKTAG_DUMMY + 0x31) + + /* + * PPCTASKTAG_ERROR types + */ + + #define ERROR_OK 0 + #define ERROR_MEMORY 1 + #define ERROR_NOPC 2 + #define ERROR_CREATEMSGINTASK 3 + #define ERROR_INPUTHANDLE 4 + #define ERROR_OUTPUTHANDLE 5 + #define ERROR_ERRORHANDLE 6 + + + + + /************************************************** + * + * + * PPCGetTaskAttrs(), PPCSetTaskAttrs() Tags + * + * + **************************************************/ + + /* + * V45 adds the ti_Data data Set/Get passing if it`s possible + */ + + + #define PPCTASKINFOTAG_DUMMY (TAG_USER + 0x21000) + /* (Get) */ + #define PPCTASKINFOTAG_NAME (PPCTASKINFOTAG_DUMMY + 0x1) + /* (Get/Set) */ + #define PPCTASKINFOTAG_PRIORITY (PPCTASKINFOTAG_DUMMY + 0x2) + /* (Get/Set) */ + #define PPCTASKINFOTAG_CACHEFLUSH (PPCTASKINFOTAG_DUMMY + 0x3) + /* (Get) */ + #define PPCTASKINFOTAG_STACKSIZE (PPCTASKINFOTAG_DUMMY + 0x4) + /* (Get) */ + #define PPCTASKINFOTAG_STATE (PPCTASKINFOTAG_DUMMY + 0x5) + /* (Get/Set) */ + #define PPCTASKINFOTAG_TASK (PPCTASKINFOTAG_DUMMY + 0x6) + + /* This means the HOOK function is called for every Task */ + #define PPCTASKINFOTAG_ALLTASK (PPCTASKINFOTAG_DUMMY + 0x7) + + /* Hook function which is called for a task so you can ask special fields + * you may want to use. + * Msg Parameter is NULL for now. + * Object Parameter is the TaskObject + * + * HookFunc(Hook, TaskObject, NULL) + */ + #define PPCTASKINFOTAG_HOOK (PPCTASKINFOTAG_DUMMY + 0x8) + + /* (Get) */ + #define PPCTASKINFOTAG_SIGALLOC (PPCTASKINFOTAG_DUMMY + 0x9) + /* (Get) */ + #define PPCTASKINFOTAG_SIGWAIT (PPCTASKINFOTAG_DUMMY + 0xa) + /* (Get) */ + #define PPCTASKINFOTAG_SIGRECVD (PPCTASKINFOTAG_DUMMY + 0xb) + /* (Get) */ + #define PPCTASKINFOTAG_USEDSTACKSIZE (PPCTASKINFOTAG_DUMMY + 0xc) + /* (Get/Set) */ + #define PPCTASKINFOTAG_INPUTHANDLE (PPCTASKINFOTAG_DUMMY + 0xd) + /* (Get/Set) */ + #define PPCTASKINFOTAG_OUTPUTHANDLE (PPCTASKINFOTAG_DUMMY + 0xe) + /* (Get/Set) */ + #define PPCTASKINFOTAG_ERRORHANDLE (PPCTASKINFOTAG_DUMMY + 0xf) + + /* Return the ElfObject of a Task + * (Get) + * (V45) + */ + + #define PPCTASKINFOTAG_ELFOBJECT (PPCTASKINFOTAG_DUMMY + 0x10) + + /* See equal PPCTASKTAG_EXCEPTIONHOOK + * (V45) + * (Set) + */ + + #define PPCTASKINFOTAG_EXCEPTIONHOOK (PPCTASKINFOTAG_DUMMY + 0x11) + + /* Tell the task to stop at the first instruction. + * Only allowed to be used when you get a TaskHookMsg + * with the MethodID PPCTASKHOOKMETHOD_CREATE. + * It must not be called while a PPC Task runs. + * (V45) + * (Set) + */ + #define PPCTASKINFOTAG_STOPTASK (PPCTASKINFOTAG_DUMMY + 0x12) + + + /* See equal PPCTASKTAG_MSGPORT + * (V45) + */ + #define PPCTASKINFOTAG_MSGPORT (PPCTASKINFOTAG_DUMMY + 0x13) + + /* See equal PPCTASKTAG_STARTUP_MSG + * (V45) + */ + #define PPCTASKINFOTAG_STARTUP_MSG (PPCTASKINFOTAG_DUMMY + 0x14) + + /* See equal PPCTASKTAG_STARTUP_MSGDATA + * (V45) + */ + #define PPCTASKINFOTAG_STARTUP_MSGDATA (PPCTASKINFOTAG_DUMMY + 0x15) + + /* See equal PPCTASKTAG_STARTUP_MSGLENGTH + * (V45) + */ + #define PPCTASKINFOTAG_STARTUP_MSGLENGTH (PPCTASKINFOTAG_DUMMY + 0x16) + + /* See equal PPCTASKTAG_STARTUP_MSGID + * (V45) + */ + #define PPCTASKINFOTAG_STARTUP_MSGID (PPCTASKINFOTAG_DUMMY + 0x17) + + + /* + * All Register Tags only accept Ptrs at ti_Data so I don`t have to + * change the API when there`s a 64Bit PPC some time. + */ + + /* SRR0=PC + * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + * (Get/Set) + */ + #define PPCTASKINFOTAG_PC (PPCTASKINFOTAG_DUMMY + 0x20) + + /* SRR1=MSR + * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + * (Get/Set) + */ + #define PPCTASKINFOTAG_MSR (PPCTASKINFOTAG_DUMMY + 0x21) + + /* 32bit value in function Result + * Get/Set through ti_Data + * (Get/Set) + */ + #define PPCTASKINFOTAG_CR (PPCTASKINFOTAG_DUMMY + 0x22) + + /* 32bit value in function Result + * Get/Set through ti_Data + * (Get/Set) + */ + #define PPCTASKINFOTAG_XER (PPCTASKINFOTAG_DUMMY + 0x23) + + /* Result by PPCTASKINFOTAG_VALUEPTR + * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + * (Get/Set) + */ + #define PPCTASKINFOTAG_LR (PPCTASKINFOTAG_DUMMY + 0x24) + + /* Result by PPCTASKINFOTAG_VALUEPTR + * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + * (Get/Set) + */ + #define PPCTASKINFOTAG_CTR (PPCTASKINFOTAG_DUMMY + 0x25) + + /* Result by PPCTASKINFOTAG_VALUEPTR + * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + * (Get/Set) + */ + #define PPCTASKINFOTAG_FPSCR (PPCTASKINFOTAG_DUMMY + 0x26) + + /* ti_Data=Register Number + * Get/Set through PPCTASKINFOTAG_VALUEPTR + * (Get/Set) + */ + #define PPCTASKINFOTAG_GPR (PPCTASKINFOTAG_DUMMY + 0x30) + + /* ti_Data=Register Number + * Get/Set through PPCTASKINFOTAG_VALUEPTR + * (Get/Set) + */ + #define PPCTASKINFOTAG_FPR (PPCTASKINFOTAG_DUMMY + 0x31) + + /* Address where to read/write the register value from. + * I use a ptr to be size indepent with the registers + * (Get/Set) + */ + #define PPCTASKINFOTAG_VALUEPTR (PPCTASKINFOTAG_DUMMY + 0x32) + + + /* With PPCTASKINFOTAG_WAITFINISHTASK + * it returns the parent process in which you created + * a synchron PPC Task. Synchron PPC Task`s are created + * with the PPCTASKTAG_WAITINFISH,TRUE or outdated a + * PPCRunObject. + * The reason for this function is to find the shell + * task easily and check for a CTRL-C for example. + * (Get) + * (V45) + */ + #define PPCTASKINFOTAG_WAITFINISHTASK (PPCTASKTAG_DUMMY + 0x33) + + + + /************************************************** + * + * + * TaskObject ExceptionHook + * + * + **************************************************/ + + + struct ExceptionMsg + { + ULONG Version; + ULONG Type; + ULONG GPR[32]; + DOUBLE FPR[32]; + ULONG SR[16]; + ULONG CR; + DOUBLE FPSCR; + ULONG XER; + ULONG LR; + ULONG CTR; + ULONG PVR; + ULONG IBAT0U; + ULONG IBAT0L; + ULONG IBAT1U; + ULONG IBAT1L; + ULONG IBAT2U; + ULONG IBAT2L; + ULONG IBAT3U; + ULONG IBAT3L; + + ULONG DBAT0U; + ULONG DBAT0L; + ULONG DBAT1U; + ULONG DBAT1L; + ULONG DBAT2U; + ULONG DBAT2L; + ULONG DBAT3U; + ULONG DBAT3L; + + ULONG SDR1; + ULONG ASR; + + ULONG DAR; + ULONG DSISR; + ULONG SRR0; + ULONG SRR1; + + ULONG SPRG0; + ULONG SPRG1; + ULONG SPRG2; + ULONG SPRG3; + + ULONG TBL; + ULONG TBU; + ULONG DEC; + ULONG DABR; + + /* 603 special registers */ + + ULONG DMISS; + ULONG DCMP; + ULONG HASH1; + ULONG HASH2; + ULONG IMISS; + ULONG ICMP; + ULONG RPA; + + /* 604e special registers */ + + /* Version 0 ends here */ + + ULONG MSR; + + /* Version 1 ends here */ + + /* Size depends on Version */ + }; + + /* Current supported Version + */ + + #define EXCEPTIONMSG_VERSION 1 + + /* + * Current supported Types + */ + + /* + * These are the processor exceptions + */ + + #define EXCEPTION_UNKNOWN 0 /* Won`t happen */ + #define EXCEPTION_RESET 1 /* Won`t happen */ + #define EXCEPTION_MACHINECHECK 2 /* Won`t happen */ + #define EXCEPTION_DATAACCESS 3 + #define EXCEPTION_INSTRUCTIONACCESS 4 + #define EXCEPTION_EXTERNALINTERRUPT 5 /* Won`t happen */ + #define EXCEPTION_ALIGNMENT 6 + #define EXCEPTION_PROGRAM 7 + #define EXCEPTION_FPUUNAVAILABLE 8 + #define EXCEPTION_DECREMENTER 9 + #define EXCEPTION_INTERFACEERROR 10 + #define EXCEPTION_RESERVED_B 11 + #define EXCEPTION_SYSTEMCALL 12 + #define EXCEPTION_TRACE 13 + #define EXCEPTION_FPUASSIST 14 + #define EXCEPTION_RESERVED_F 15 + #define EXCEPTION_IMISS 16 + #define EXCEPTION_DLOADMISS 17 + #define EXCEPTION_DSTOREMISS 18 + #define EXCEPTION_IADDRESSBREAK 19 + #define EXCEPTION_SYSTEMMANAGEMENTINT 20 + + + /* + * These are the kernel exceptions + * to signal certain events + */ + + #define EXCEPTION_MSG 0x80000000 + + /* + * You receive this exception type + * when the Kernel could stop a Task + * successfully after a Stop or Trace + * operation. + * Look at PPCTASKTAG_STOPTASK for example + */ + + #define EXCEPTION_STOPTASK (EXCEPTION_MSG + 0x0) + + /* + * You receive this exception type + * when the task completes. + * In this case the ONLY valid fields in the + * ExceptionMsg are the Version field and the + * the Message type. + */ + + #define EXCEPTION_FINISHTASK (EXCEPTION_MSG + 0x1) + + + /************************************************** + * + * + * PPCStartTask() Tags + * + * + **************************************************/ + + #define PPCTASKSTARTTAG_DUMMY (TAG_USER + 0x22000) + + /* Just run a Task again + * ti_Data=BOOL + */ + #define PPCTASKSTARTTAG_RUN (PPCTASKSTARTTAG_DUMMY + 0x0) + + /* Single Step the next instruction + * ti_Data=BOOL + */ + #define PPCTASKSTARTTAG_TRACE (PPCTASKSTARTTAG_DUMMY + 0x1) + + /* Branch until a Trace instruction + * Processor dependent + * ti_Data=BOOL + * NOT SUPPORTED YET + */ + #define PPCTASKSTARTTAG_BRANCHTRACE (PPCTASKSTARTTAG_DUMMY + 0x2) + + /* Run until Instruction hit + * the Breakpoint Address + * Processor dependent + * ti_Data=BOOL + * NOT SUPPORTED YET + */ + #define PPCTASKSTARTTAG_IBREAK (PPCTASKSTARTTAG_DUMMY + 0x3) + + /* Run until DataAccess hit + * the Breakpoint Address + * Processor dependent + * ti_Data=BOOL + * NOT SUPPORTED YET + */ + #define PPCTASKSTARTTAG_DBREAK (PPCTASKSTARTTAG_DUMMY + 0x4) + + #endif diff -c2 -d -P -r include_h/powerup/ppclib/tasks.i includenew/powerup/ppclib/tasks.i *** include_h/powerup/ppclib/tasks.i Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/tasks.i Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,532 ---- + IFND POWERUP_PPCLIB_TASKS_I + POWERUP_PPCLIB_TASKS_I SET 1 + + ;/************************************************** + ; * + ; * + ; * PPCCreateTask() Tags + ; * + ; * + ; **************************************************/ + + PPCTASKTAG_DUMMY =(TAG_USER+$20000) + + ;/* Program Counter Start of the Task; */ + PPCTASKTAG_ELFOBJECT =(PPCTASKTAG_DUMMY+$1) + + ;/* Name of the new Task.; */ + PPCTASKTAG_NAME =(PPCTASKTAG_DUMMY+$2) + + ;/* First Argument..gpr3; */ + PPCTASKTAG_ARG1 =(PPCTASKTAG_DUMMY+$3) + + ;/* First Argument..gpr4; */ + PPCTASKTAG_ARG2 =(PPCTASKTAG_DUMMY+$4) + + ;/* First Argument..gpr5; */ + PPCTASKTAG_ARG3 =(PPCTASKTAG_DUMMY+$5) + + ;/* First Argument..gpr6; */ + PPCTASKTAG_ARG4 =(PPCTASKTAG_DUMMY+$6) + + ;/* First Argument..gpr7; */ + PPCTASKTAG_ARG5 =(PPCTASKTAG_DUMMY+$7) + + ;/* First Argument..gpr8; */ + PPCTASKTAG_ARG6 =(PPCTASKTAG_DUMMY+$8) + + ;/* First Argument..gpr9; */ + PPCTASKTAG_ARG7 =(PPCTASKTAG_DUMMY+$9) + + ;/* First Argument..gpr10; */ + PPCTASKTAG_ARG8 =(PPCTASKTAG_DUMMY+$a) + + ;/* Default=TRUE means that the cacheflush is handled automaticly + ; * You need cacheflushs when you use OS functions to share data. + ; * If you know it better than the stupid cacheflush routine you + ; * can handle that yourself and optimize your routines. + ; */ + + PPCTASKTAG_CACHEFLUSH =(PPCTASKTAG_DUMMY+$b) + + ;/* Ptr to an ULONG Errorfield where a better error description + ; * can be stored. + ; */ + + PPCTASKTAG_ERROR =(PPCTASKTAG_DUMMY+$c) + + ;/* PPC Stacksize...Default 8192; + ; * Supported by PowerUP's PPCGetTaskAttr() (V45) + ; */ + PPCTASKTAG_STACKSIZE =(PPCTASKTAG_DUMMY+$d) + + ;/* Task Priority..Default 0; */ + PPCTASKTAG_PRIORITY =(PPCTASKTAG_DUMMY+$e) + + ;/* Input Handle..Default Open("Nil:") + ; * The handle is closed when the PPC task completes + ; */ + PPCTASKTAG_INPUTHANDLE =(PPCTASKTAG_DUMMY+$f) + + ;/* Output Handle..Default Open("Nil:") + ; * The handle is closed when the PPC task completes + ; */ + PPCTASKTAG_OUTPUTHANDLE =(PPCTASKTAG_DUMMY+$10) + + ;/* Error Handle..Default Open("Nil:") + ; * The handle is closed when the PPC task completes + ; */ + PPCTASKTAG_ERRORHANDLE =(PPCTASKTAG_DUMMY+$11) + + ;/* + ; * When you set this Tag the Task is stopped + ; * before the first instruction is executed + ; * Only useful for debuggers + ; */ + PPCTASKTAG_STOPTASK =(PPCTASKTAG_DUMMY+$12) + + ;/* ExceptionHook + ; * The M68k Hook is called when a PPC TaskObject gets an + ; * exception which can be processor or software(Kernel Msg) + ; * related. + ; * That`s the way the ppc.library calls the Hook: + ; * + ; * BOOL CallHookPkt(hook,TaskObject,ExceptionMsg); + ; * + ; * The Hook Function is NOT allowed to call PPCLibBase + ; * functions to avoid deadlocks. + ; * And after the Hook function returns the ExceptionMsg + ; * contents IS NOT valid anymore. + ; * So you should copy the ExceptionMsg contents to a private + ; * buffer and then signal your debugger control task about + ; * the event. + ; * The Hook return BOOL should tell the ppc.library if all + ; * worked fine. + ; */ + + PPCTASKTAG_EXCEPTIONHOOK =(PPCTASKTAG_DUMMY+$13) + + ;/* If you want that the PPCPort gets a MsgPort you can tell + ; * PPCCreateTask by a TRUE that you want one. + ; * I made this optional because it may cause an initial speed + ; * loss if you only need a ppc task for a quick run job where + ; * the init latency may be a serious issue. + ; * Supported by PowerUP's PPCGetTaskAttr() + ; */ + PPCTASKTAG_MSGPORT =(PPCTASKTAG_DUMMY+$14) + + ;/* If you wanna provide the ppc a startup msg. This msg will + ; * be replied by the ppc.library after the PPC Task ends so + ; * you can use this to abitrate your PPCUnloadObject() + ; * Supported by PowerUP's PPCGetTaskAttr() + ; */ + PPCTASKTAG_STARTUP_MSG =(PPCTASKTAG_DUMMY+$15) + ;/* The Data field for the PPCMessage + ; * Supported by PowerUP's PPCGetTaskAttr() + ; */ + PPCTASKTAG_STARTUP_MSGDATA =(PPCTASKTAG_DUMMY+$16) + ;/* The Length field for the PPCMessage + ; * Supported by PowerUP's PPCGetTaskAttr() + ; */ + PPCTASKTAG_STARTUP_MSGLENGTH =(PPCTASKTAG_DUMMY+$17) + ;/* The MsgID field for the PPCMessage + ; * Supported by PowerUP's PPCGetTaskAttr() + ; */ + PPCTASKTAG_STARTUP_MSGID =(PPCTASKTAG_DUMMY+$18) + ;/* The flag to activate the CTRL-C;D;E;F gateway to + ; * the PPC Task by PPCSendSignal(); + ; */ + PPCTASKTAG_BREAKSIGNAL =(PPCTASKTAG_DUMMY+$19) + + ;/* The CPU number the task should start on. + ; * This is only a hint and no gurantee. + ; */ + PPCTASKTAG_CPUHINT =(PPCTASKTAG_DUMMY+$1a) + + ;/* Ptr to ixemul UserData + ; * ONLY supported by PowerUP's PPCGetTaskAttr(),PPCSetTaskAttr() + ; */ + PPCTASKTAG_EXTUSERDATA =(PPCTASKTAG_DUMMY+$1b) + + ;/* Run Task Synchron Flag which means that the PPCCreateTask + ; * doesn`t return until the task completes and the return + ; * value is not the TaskObject but the Task`s return value. + ; * To check if the task runned correctly check out the + ; * PPCTASKTAG_ERROR fieldptr. + ; * With this Tag you can do the same what the old RunTaskObject + ; * does which interface is a bit limited(compatibility to the + ; * first ppc.library version) + ; */ + + PPCTASKTAG_WAITFINISH =(PPCTASKTAG_DUMMY+$31) + + ;/* + ; * PPCTAGTAG_ERROR types + ; */ + + ERROR_OK =0 + ERROR_MEMORY =1 + ERROR_NOPC =2 + ERROR_CREATEMSGINTASK =3 + ERROR_INPUTHANDLE =4 + ERROR_OUTPUTHANDLE =5 + ERROR_ERRORHANDLE =6 + + + + + ;/************************************************** + ; * + ; * + ; * PPCGetTaskInfo() Tags + ; * + ; * + ; **************************************************/ + + ;/* + ; * V45 adds the ti_Data data Set/Get passing if it`s possible + ; */ + + PPCTASKINFOTAG_DUMMY =(TAG_USER+$21000) + PPCTASKINFOTAG_NAME =(PPCTASKINFOTAG_DUMMY+$1) + PPCTASKINFOTAG_PRIORITY =(PPCTASKINFOTAG_DUMMY+$2) + PPCTASKINFOTAG_CACHEFLUSH =(PPCTASKINFOTAG_DUMMY+$3) + PPCTASKINFOTAG_STACKSIZE =(PPCTASKINFOTAG_DUMMY+$4) + PPCTASKINFOTAG_STATE =(PPCTASKINFOTAG_DUMMY+$5) + PPCTASKINFOTAG_TASK =(PPCTASKINFOTAG_DUMMY+$6) + + ;/* This means the HOOK function is called for every Task; */ + PPCTASKINFOTAG_ALLTASK =(PPCTASKINFOTAG_DUMMY+$7) + + ;/* Hook function which is called for a task so you can ask special fields + ; * you may want to use. + ; * Msg Parameter is NULL for now. + ; * Object Parameter is the TaskObject + ; * + ; * HookFunc(Hook, TaskObject, NULL) + ; */ + PPCTASKINFOTAG_HOOK =(PPCTASKINFOTAG_DUMMY+$8) + + PPCTASKINFOTAG_SIGALLOC =(PPCTASKINFOTAG_DUMMY+$9) + PPCTASKINFOTAG_SIGWAIT =(PPCTASKINFOTAG_DUMMY+$a) + PPCTASKINFOTAG_SIGRECVD =(PPCTASKINFOTAG_DUMMY+$b) + PPCTASKINFOTAG_USEDSTACKSIZE =(PPCTASKINFOTAG_DUMMY+$c) + PPCTASKINFOTAG_INPUTHANDLE =(PPCTASKINFOTAG_DUMMY+$d) + PPCTASKINFOTAG_OUTPUTHANDLE =(PPCTASKINFOTAG_DUMMY+$e) + PPCTASKINFOTAG_ERRORHANDLE =(PPCTASKINFOTAG_DUMMY+$f) + + ;/* Return the ElfObject of a Task + ; * (Get) + ; * (V45) + ; */ + + PPCTASKINFOTAG_ELFOBJECT =(PPCTASKINFOTAG_DUMMY+$10) + + ;/* See equal PPCTASKTAG_EXCEPTIONHOOK + ; * (V45) + ; * (Set) + ; */ + + PPCTASKINFOTAG_EXCEPTIONHOOK =(PPCTASKINFOTAG_DUMMY+$11) + + ;/* Tell the task to stop at the first instruction. + ; * Only allowed to be used when you get a TaskHookMsg + ; * with the MethodID PPCTASKHOOKMETHOD_CREATE. + ; * It must not be called while a PPC Task runs. + ; * (V45) + ; * (Set) + ; */ + PPCTASKINFOTAG_STOPTASK =(PPCTASKINFOTAG_DUMMY+$12) + + + ;/* See equal PPCTASKTAG_MSGPORT + ; * (V45) + ; */ + PPCTASKINFOTAG_MSGPORT =(PPCTASKINFOTAG_DUMMY+$13) + + ;/* See equal PPCTASKTAG_STARTUP_MSG + ; * (V45) + ; */ + PPCTASKINFOTAG_STARTUP_MSG =(PPCTASKINFOTAG_DUMMY+$14) + + ;/* See equal PPCTASKTAG_STARTUP_MSGDATA + ; * (V45) + ; */ + PPCTASKINFOTAG_STARTUP_MSGDATA =(PPCTASKINFOTAG_DUMMY+$15) + + ;/* See equal PPCTASKTAG_STARTUP_MSGLENGTH + ; * (V45) + ; */ + PPCTASKINFOTAG_STARTUP_MSGLENGTH =(PPCTASKINFOTAG_DUMMY+$16) + + ;/* See equal PPCTASKTAG_STARTUP_MSGID + ; * (V45) + ; */ + PPCTASKINFOTAG_STARTUP_MSGID =(PPCTASKINFOTAG_DUMMY+$17) + + ;/* + ; * All Register Tags only accept Ptrs at ti_Data so I don`t have to + ; * change the API when there`s a 64Bit PPC some time. + ; */ + + ;/* SRR0=PC; + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + ; * (Get/Set) + ; */ + PPCTASKINFOTAG_PC =(PPCTASKINFOTAG_DUMMY+$20) + ;/* SRR1=MSR; + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + ; * (Get/Set) + ; */ + PPCTASKINFOTAG_MSR =(PPCTASKINFOTAG_DUMMY+$21) + + ;/* 32bit value in function Result; + ; * Get/Set through ti_Data + ; * (Get/Set) + ; */ + PPCTASKINFOTAG_CR =(PPCTASKINFOTAG_DUMMY+$22) + + ;/* 32bit value in function Result; + ; * Get/Set through ti_Data + ; * (Get/Set) + ; */ + PPCTASKINFOTAG_XER =(PPCTASKINFOTAG_DUMMY+$23) + + ;/* Result by PPCTASKINFOTAG_VALUEPTR; + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + ; * (Get/Set) + ; */ + PPCTASKINFOTAG_LR =(PPCTASKINFOTAG_DUMMY+$24) + + ;/* Result by PPCTASKINFOTAG_VALUEPTR; + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + ; * (Get/Set) + ; */ + + PPCTASKINFOTAG_CTR =(PPCTASKINFOTAG_DUMMY+$25) + + ;/* Result by PPCTASKINFOTAG_VALUEPTR; + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR + ; * (Get/Set) + ; */ + PPCTASKINFOTAG_FPSCR =(PPCTASKINFOTAG_DUMMY+$26) + + ;/* ti_Data=Register Number + ; * Get/Set through PPCTASKINFOTAG_VALUEPTR + ; * (Get/Set) + ; */ + PPCTASKINFOTAG_GPR =(PPCTASKINFOTAG_DUMMY+$30) + + ;/* ti_Data=Register Number + ; * Get/Set through PPCTASKINFOTAG_VALUEPTR + ; * (Get/Set) + ; */ + PPCTASKINFOTAG_FPR =(PPCTASKINFOTAG_DUMMY+$31) + + ;/* Address where to read/write the register value from. + ; * I use a ptr to be size indepent with the registers + ; */ + PPCTASKINFOTAG_VALUEPTR =(PPCTASKINFOTAG_DUMMY+$32) + + + ;/* With PPCTASKINFOTAG_WAITFINISHTASK + ; * it returns the parent process in which you created + ; * a synchron PPC Task. Synchron PPC Task`s are created + ; * with the PPCTASKTAG_WAITINFISH,TRUE or outdated a + ; * PPCRunObject. + ; * The reason for this function is to find the shell + ; * task easily and check for a CTRL-C for example. + ; * (Get) + ; * (V45) + ; */ + PPCTASKINFOTAG_WAITFINISHTASK =(PPCTASKTAG_DUMMY+$33) + + + + + ;/************************************************** + ; * + ; * + ; * TaskObject ExceptionHook + ; * + ; * + ; **************************************************/ + + + STRUCTURE ExceptionMsg,0 + ULONG Version; + ULONG Type; + STRUCT GPR,32*4; + STRUCT FPR,32*8; + STRUCT SR,16*4; + ULONG CR; + DOUBLE FPSCR; + ULONG XER; + ULONG LR; + ULONG CTR; + ULONG PVR; + ULONG IBAT0U; + ULONG IBAT0L; + ULONG IBAT1U; + ULONG IBAT1L; + ULONG IBAT2U; + ULONG IBAT2L; + ULONG IBAT3U; + ULONG IBAT3L; + + ULONG DBAT0U; + ULONG DBAT0L; + ULONG DBAT1U; + ULONG DBAT1L; + ULONG DBAT2U; + ULONG DBAT2L; + ULONG DBAT3U; + ULONG DBAT3L; + + ULONG SDR1; + ULONG ASR; + + ULONG DAR; + ULONG DSISR; + ULONG SRR0; + ULONG SRR1; + + ULONG SPRG0; + ULONG SPRG1; + ULONG SPRG2; + ULONG SPRG3; + + ULONG TBL; + ULONG TBU; + ULONG DEC; + ULONG DABR; + + ;/* 603 special registers; */ + + ULONG DMISS; + ULONG DCMP; + ULONG HASH1; + ULONG HASH2; + ULONG IMISS; + ULONG ICMP; + ULONG RPA; + + ;/* 604e special registers; */ + + ;/* Version 0 ends here; */ + + ULONG MSR; + + ;/* Version 1 ends here */ + + ;/* Size depends on Version; */ + + + ;/* Current supported Version + ; */ + + EXCEPTIONMSG_VERSION = 1 + + ;/* + ; * Current supported Types + ; */ + + ;/* + ; * These are the processor exceptions + ; */ + + EXCEPTION_UNKNOWN =0 ;/* Won`t happen; */ + EXCEPTION_RESET =1 ;/* Won`t happen; */ + EXCEPTION_MACHINECHECK =2 ;/* Won`t happen; */ + EXCEPTION_DATAACCESS =3 + EXCEPTION_INSTRUCTIONACCESS =4 + EXCEPTION_EXTERNALINTERRUPT =5 ;/* Won`t happen; */ + EXCEPTION_ALIGNMENT =6 + EXCEPTION_PROGRAM =7 + EXCEPTION_FPUUNAVAILABLE =8 + EXCEPTION_DECREMENTER =9 + EXCEPTION_INTERFACEERROR =10 + EXCEPTION_RESERVED_B =11 + EXCEPTION_SYSTEMCALL =12 + EXCEPTION_TRACE =13 + EXCEPTION_FPUASSIST =14 + EXCEPTION_RESERVED_F =15 + EXCEPTION_IMISS =16 + EXCEPTION_DLOADMISS =17 + EXCEPTION_DSTOREMISS =18 + EXCEPTION_IADDRESSBREAK =19 + EXCEPTION_SYSTEMMANAGEMENTINT =20 + + + ;/* + ; * These are the kernel exceptions + ; * to signal certain events + ; */ + + EXCEPTION_MSG =$80000000 + + ;/* + ; * You receive this exception type + ; * when the Kernel could stop a Task + ; * successfully after a Stop or Trace + ; * operation. + ; * Look at PPCTASKTAG_STOPTASK for example + ; */ + + EXCEPTION_STOPTASK =(EXCEPTION_MSG+$0) + + ;/* + ; * You receive this exception type + ; * when the task completes. + ; * In this case the ONLY valid fields in the + ; * ExceptionMsg are the Version field and the + ; * the Message type. + ; */ + + EXCEPTION_FINISHTASK =(EXCEPTION_MSG+$1) + + + ;/************************************************** + ; * + ; * + ; * PPCStartTask() Tags + ; * + ; * + ; **************************************************/ + + PPCTASKSTARTTAG_DUMMY =(TAG_USER+$22000) + + ;/* Just run a Task again + ; * ti_Data=BOOL + ; */ + PPCTASKSTARTTAG_RUN =(PPCTASKSTARTTAG_DUMMY+$0) + + ;/* Single Step the next instruction + ; * ti_Data=BOOL + ; */ + PPCTASKSTARTTAG_TRACE =(PPCTASKSTARTTAG_DUMMY+$1) + + ;/* Branch until a Trace instruction + ; * Processor dependent + ; * ti_Data=BOOL + ; * NOT SUPPORTED YET + ; */ + PPCTASKSTARTTAG_BRANCHTRACE =(PPCTASKSTARTTAG_DUMMY+$2) + + ;/* Run until Instruction hit + ; * the Breakpoint Address + ; * Processor dependent + ; * ti_Data=BOOL + ; * NOT SUPPORTED YET + ; */ + PPCTASKSTARTTAG_IBREAK =(PPCTASKSTARTTAG_DUMMY+$3) + + ;/* Run until DataAccess hit + ; * the Breakpoint Address + ; * Processor dependent + ; * ti_Data=BOOL + ; * NOT SUPPORTED YET + ; */ + PPCTASKSTARTTAG_DBREAK =(PPCTASKSTARTTAG_DUMMY+$4) + + ENDC diff -c2 -d -P -r include_h/powerup/ppclib/time.h includenew/powerup/ppclib/time.h *** include_h/powerup/ppclib/time.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppclib/time.h Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,84 ---- + #ifndef POWERUP_PPCLIB_TIME_H + #define POWERUP_PPCLIB_TIME_H + + #define PPCTIMERTAG_Dummy (TAG_USER + 0x24000) + + /* PPCCreateTimerObject Tags */ + + /* ptr to an optional error reason field + */ + #define PPCTIMERTAG_ERROR (PPCTIMERTAG_Dummy + 0x0) + + /* use the CPU timer to do simple synchron + * timer based operations + */ + #define PPCTIMERTAG_CPU (PPCTIMERTAG_Dummy + 0x1) + + /* create a job in a 50Hz timer queue + * which will send your task a signal after + * the ticks you specified run to zero. + * You specify the number of 50Hz ticks + * with the Tag. + */ + #define PPCTIMERTAG_50HZ (PPCTIMERTAG_Dummy + 0x2) + + /* The signalmask necessary for the 50Hz + * timer to signal your task + */ + #define PPCTIMERTAG_SIGNALMASK (PPCTIMERTAG_Dummy + 0x3) + + /* After the ticks ran down and the task + * is signaled the timer request is removed from the queue. + */ + #define PPCTIMERTAG_AUTOREMOVE (PPCTIMERTAG_Dummy + 0x4) + + + /* PPCSetTimerObject() Tags */ + + + /* Start Timer,Start Job(add to the joblist) or + * Start ticks for PPCGetTimerObject() + */ + #define PPCTIMERTAG_START (PPCTIMERTAG_Dummy + 0x11) + + /* Stop Timer,Stop Job(remove from the joblist) or + * Stop ticks for PPCGetTimerObject() + */ + #define PPCTIMERTAG_STOP (PPCTIMERTAG_Dummy + 0x12) + + /* PPCGetTimerObject() Tags */ + + /* Get ticks per second */ + #define PPCTIMERTAG_TICKSPERSEC (PPCTIMERTAG_Dummy + 0x13) + + /* Get current ticks */ + #define PPCTIMERTAG_CURRENTTICKS (PPCTIMERTAG_Dummy + 0x14) + + /* Get diff ticks after a start and stop */ + #define PPCTIMERTAG_DIFFTICKS (PPCTIMERTAG_Dummy + 0x15) + + /* Get diff microseconds after a start and stop */ + #define PPCTIMERTAG_DIFFMICRO (PPCTIMERTAG_Dummy + 0x16) + + /* Get diff seconds after a start and stop */ + #define PPCTIMERTAG_DIFFSECS (PPCTIMERTAG_Dummy + 0x17) + + /* Get diff minutes after a start and stop */ + #define PPCTIMERTAG_DIFFMINS (PPCTIMERTAG_Dummy + 0x18) + + /* Get diff hours after a start and stop */ + #define PPCTIMERTAG_DIFFHOURS (PPCTIMERTAG_Dummy + 0x19) + + /* Get diff days after a start and stop */ + #define PPCTIMERTAG_DIFFDAYS (PPCTIMERTAG_Dummy + 0x1a) + + + + #define PPCTIMERERROR_OK 0 + #define PPCTIMERERROR_MEMORY 1 + + + + + + #endif diff -c2 -d -P -r include_h/powerup/ppcpragmas/amigaguide_pragmas.h includenew/powerup/ppcpragmas/amigaguide_pragmas.h *** include_h/powerup/ppcpragmas/amigaguide_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/amigaguide_pragmas.h Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,405 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_AMIGAGUIDE_H + #define _PPCPRAGMA_AMIGAGUIDE_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__AMIGAGUIDE_H + #include <powerup/ppcinline/amigaguide.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef AMIGAGUIDE_BASE_NAME + #define AMIGAGUIDE_BASE_NAME AmigaGuideBase + #endif /* !AMIGAGUIDE_BASE_NAME */ + + #define AddAmigaGuideHostA(h, name, attrs) _AddAmigaGuideHostA(AMIGAGUIDE_BASE_NAME, h, name, attrs) + + static __inline APTR + _AddAmigaGuideHostA(void *AmigaGuideBase, struct Hook *h, STRPTR name, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) h; + MyCaos.d0 =(ULONG) name; + MyCaos.a1 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-138); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define AddAmigaGuideHost(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; AddAmigaGuideHostA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AmigaGuideSignal(cl) _AmigaGuideSignal(AMIGAGUIDE_BASE_NAME, cl) + + static __inline ULONG + _AmigaGuideSignal(void *AmigaGuideBase, APTR cl) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cl; + MyCaos.caos_Un.Offset = (-72); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define CloseAmigaGuide(cl) _CloseAmigaGuide(AMIGAGUIDE_BASE_NAME, cl) + + static __inline void + _CloseAmigaGuide(void *AmigaGuideBase, APTR cl) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cl; + MyCaos.caos_Un.Offset = (-66); + MyCaos.a6 =(ULONG) AmigaGuideBase; + PPCCallOS(&MyCaos); + } + + #define ExpungeXRef() _ExpungeXRef(AMIGAGUIDE_BASE_NAME) + + static __inline void + _ExpungeXRef(void *AmigaGuideBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-132); + MyCaos.a6 =(ULONG) AmigaGuideBase; + PPCCallOS(&MyCaos); + } + + #define GetAmigaGuideAttr(tag, cl, storage) _GetAmigaGuideAttr(AMIGAGUIDE_BASE_NAME, tag, cl, storage) + + static __inline LONG + _GetAmigaGuideAttr(void *AmigaGuideBase, Tag tag, APTR cl, ULONG *storage) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) tag; + MyCaos.a0 =(ULONG) cl; + MyCaos.a1 =(ULONG) storage; + MyCaos.caos_Un.Offset = (-114); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define GetAmigaGuideMsg(cl) _GetAmigaGuideMsg(AMIGAGUIDE_BASE_NAME, cl) + + static __inline struct AmigaGuideMsg * + _GetAmigaGuideMsg(void *AmigaGuideBase, APTR cl) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cl; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((struct AmigaGuideMsg *)PPCCallOS(&MyCaos)); + } + + #define GetAmigaGuideString(id) _GetAmigaGuideString(AMIGAGUIDE_BASE_NAME, id) + + static __inline STRPTR + _GetAmigaGuideString(void *AmigaGuideBase, long id) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) id; + MyCaos.caos_Un.Offset = (-210); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((STRPTR)PPCCallOS(&MyCaos)); + } + + #define LoadXRef(lock, name) _LoadXRef(AMIGAGUIDE_BASE_NAME, lock, name) + + static __inline LONG + _LoadXRef(void *AmigaGuideBase, BPTR lock, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) lock; + MyCaos.a1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-126); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define LockAmigaGuideBase(handle) _LockAmigaGuideBase(AMIGAGUIDE_BASE_NAME, handle) + + static __inline LONG + _LockAmigaGuideBase(void *AmigaGuideBase, APTR handle) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) handle; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define OpenAmigaGuideA(nag, attrs) _OpenAmigaGuideA(AMIGAGUIDE_BASE_NAME, nag, attrs) + + static __inline APTR + _OpenAmigaGuideA(void *AmigaGuideBase, struct NewAmigaGuide *nag, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) nag; + MyCaos.a1 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define OpenAmigaGuide(a0, tags...) \ + ({ULONG _tags[] = { tags }; OpenAmigaGuideA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define OpenAmigaGuideAsyncA(nag, attrs) _OpenAmigaGuideAsyncA(AMIGAGUIDE_BASE_NAME, nag, attrs) + + static __inline APTR + _OpenAmigaGuideAsyncA(void *AmigaGuideBase, struct NewAmigaGuide *nag, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) nag; + MyCaos.d0 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-60); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define OpenAmigaGuideAsync(a0, tags...) \ + ({ULONG _tags[] = { tags }; OpenAmigaGuideAsyncA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define RemoveAmigaGuideHostA(hh, attrs) _RemoveAmigaGuideHostA(AMIGAGUIDE_BASE_NAME, hh, attrs) + + static __inline LONG + _RemoveAmigaGuideHostA(void *AmigaGuideBase, APTR hh, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) hh; + MyCaos.a1 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-144); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define RemoveAmigaGuideHost(a0, tags...) \ + ({ULONG _tags[] = { tags }; RemoveAmigaGuideHostA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ReplyAmigaGuideMsg(amsg) _ReplyAmigaGuideMsg(AMIGAGUIDE_BASE_NAME, amsg) + + static __inline void + _ReplyAmigaGuideMsg(void *AmigaGuideBase, struct AmigaGuideMsg *amsg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) amsg; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) AmigaGuideBase; + PPCCallOS(&MyCaos); + } + + #define SendAmigaGuideCmdA(cl, cmd, attrs) _SendAmigaGuideCmdA(AMIGAGUIDE_BASE_NAME, cl, cmd, attrs) + + static __inline LONG + _SendAmigaGuideCmdA(void *AmigaGuideBase, APTR cl, STRPTR cmd, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cl; + MyCaos.d0 =(ULONG) cmd; + MyCaos.d1 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define SendAmigaGuideCmd(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; SendAmigaGuideCmdA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SendAmigaGuideContextA(cl, attrs) _SendAmigaGuideContextA(AMIGAGUIDE_BASE_NAME, cl, attrs) + + static __inline LONG + _SendAmigaGuideContextA(void *AmigaGuideBase, APTR cl, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cl; + MyCaos.d0 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define SendAmigaGuideContext(a0, tags...) \ + ({ULONG _tags[] = { tags }; SendAmigaGuideContextA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetAmigaGuideAttrsA(cl, attrs) _SetAmigaGuideAttrsA(AMIGAGUIDE_BASE_NAME, cl, attrs) + + static __inline LONG + _SetAmigaGuideAttrsA(void *AmigaGuideBase, APTR cl, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cl; + MyCaos.a1 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-108); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define SetAmigaGuideAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetAmigaGuideAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetAmigaGuideContextA(cl, id, attrs) _SetAmigaGuideContextA(AMIGAGUIDE_BASE_NAME, cl, id, attrs) + + static __inline LONG + _SetAmigaGuideContextA(void *AmigaGuideBase, APTR cl, unsigned long id, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cl; + MyCaos.d0 =(ULONG) id; + MyCaos.d1 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-90); + MyCaos.a6 =(ULONG) AmigaGuideBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define SetAmigaGuideContext(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; SetAmigaGuideContextA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define UnlockAmigaGuideBase(key) _UnlockAmigaGuideBase(AMIGAGUIDE_BASE_NAME, key) + + static __inline void + _UnlockAmigaGuideBase(void *AmigaGuideBase, long key) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) key; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) AmigaGuideBase; + PPCCallOS(&MyCaos); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_AMIGAGUIDE_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/asl_pragmas.h includenew/powerup/ppcpragmas/asl_pragmas.h *** include_h/powerup/ppcpragmas/asl_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/asl_pragmas.h Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,147 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_ASL_H + #define _PPCPRAGMA_ASL_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__ASL_H + #include <powerup/ppcinline/asl.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef ASL_BASE_NAME + #define ASL_BASE_NAME AslBase + #endif /* !ASL_BASE_NAME */ + + #define AllocAslRequest(reqType, tagList) _AllocAslRequest(ASL_BASE_NAME, reqType, tagList) + + static __inline APTR + _AllocAslRequest(void *AslBase, unsigned long reqType, struct TagItem *tagList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) reqType; + MyCaos.a0 =(ULONG) tagList; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) AslBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define AllocAslRequestTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; AllocAslRequest((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AllocFileRequest() _AllocFileRequest(ASL_BASE_NAME) + + static __inline struct FileRequester * + _AllocFileRequest(void *AslBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) AslBase; + return((struct FileRequester *)PPCCallOS(&MyCaos)); + } + + #define AslRequest(requester, tagList) _AslRequest(ASL_BASE_NAME, requester, tagList) + + static __inline BOOL + _AslRequest(void *AslBase, APTR requester, struct TagItem *tagList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) requester; + MyCaos.a1 =(ULONG) tagList; + MyCaos.caos_Un.Offset = (-60); + MyCaos.a6 =(ULONG) AslBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define AslRequestTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; AslRequest((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define FreeAslRequest(requester) _FreeAslRequest(ASL_BASE_NAME, requester) + + static __inline void + _FreeAslRequest(void *AslBase, APTR requester) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) requester; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) AslBase; + PPCCallOS(&MyCaos); + } + + #define FreeFileRequest(fileReq) _FreeFileRequest(ASL_BASE_NAME, fileReq) + + static __inline void + _FreeFileRequest(void *AslBase, struct FileRequester *fileReq) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) fileReq; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) AslBase; + PPCCallOS(&MyCaos); + } + + #define RequestFile(fileReq) _RequestFile(ASL_BASE_NAME, fileReq) + + static __inline BOOL + _RequestFile(void *AslBase, struct FileRequester *fileReq) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) fileReq; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) AslBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_ASL_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/battclock_pragmas.h includenew/powerup/ppcpragmas/battclock_pragmas.h *** include_h/powerup/ppcpragmas/battclock_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/battclock_pragmas.h Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,80 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_BATTCLOCK_H + #define _PPCPRAGMA_BATTCLOCK_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__BATTCLOCK_H + #include <powerup/ppcinline/battclock.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef BATTCLOCK_BASE_NAME + #define BATTCLOCK_BASE_NAME BattClockBase + #endif /* !BATTCLOCK_BASE_NAME */ + + #define ReadBattClock() _ReadBattClock(BATTCLOCK_BASE_NAME) + + static __inline ULONG + _ReadBattClock(void *BattClockBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-12); + MyCaos.a6 =(ULONG) BattClockBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define ResetBattClock() _ResetBattClock(BATTCLOCK_BASE_NAME) + + static __inline void + _ResetBattClock(void *BattClockBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-6); + MyCaos.a6 =(ULONG) BattClockBase; + PPCCallOS(&MyCaos); + } + + #define WriteBattClock(time) _WriteBattClock(BATTCLOCK_BASE_NAME, time) + + static __inline void + _WriteBattClock(void *BattClockBase, unsigned long time) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) time; + MyCaos.caos_Un.Offset = (-18); + MyCaos.a6 =(ULONG) BattClockBase; + PPCCallOS(&MyCaos); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_BATTCLOCK_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/battmem_pragmas.h includenew/powerup/ppcpragmas/battmem_pragmas.h *** include_h/powerup/ppcpragmas/battmem_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/battmem_pragmas.h Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,102 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_BATTMEM_H + #define _PPCPRAGMA_BATTMEM_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__BATTMEM_H + #include <powerup/ppcinline/battmem.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef BATTMEM_BASE_NAME + #define BATTMEM_BASE_NAME BattMemBase + #endif /* !BATTMEM_BASE_NAME */ + + #define ObtainBattSemaphore() _ObtainBattSemaphore(BATTMEM_BASE_NAME) + + static __inline void + _ObtainBattSemaphore(void *BattMemBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-6); + MyCaos.a6 =(ULONG) BattMemBase; + PPCCallOS(&MyCaos); + } + + #define ReadBattMem(buffer, offset, length) _ReadBattMem(BATTMEM_BASE_NAME, buffer, offset, length) + + static __inline ULONG + _ReadBattMem(void *BattMemBase, APTR buffer, unsigned long offset, unsigned long length) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) buffer; + MyCaos.d0 =(ULONG) offset; + MyCaos.d1 =(ULONG) length; + MyCaos.caos_Un.Offset = (-18); + MyCaos.a6 =(ULONG) BattMemBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define ReleaseBattSemaphore() _ReleaseBattSemaphore(BATTMEM_BASE_NAME) + + static __inline void + _ReleaseBattSemaphore(void *BattMemBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-12); + MyCaos.a6 =(ULONG) BattMemBase; + PPCCallOS(&MyCaos); + } + + #define WriteBattMem(buffer, offset, length) _WriteBattMem(BATTMEM_BASE_NAME, buffer, offset, length) + + static __inline ULONG + _WriteBattMem(void *BattMemBase, APTR buffer, unsigned long offset, unsigned long length) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) buffer; + MyCaos.d0 =(ULONG) offset; + MyCaos.d1 =(ULONG) length; + MyCaos.caos_Un.Offset = (-24); + MyCaos.a6 =(ULONG) BattMemBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_BATTMEM_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/bullet_pragmas.h includenew/powerup/ppcpragmas/bullet_pragmas.h *** include_h/powerup/ppcpragmas/bullet_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/bullet_pragmas.h Wed Feb 14 02:41:23 2001 *************** *** 0 **** --- 1,135 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_BULLET_H + #define _PPCPRAGMA_BULLET_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__BULLET_H + #include <powerup/ppcinline/bullet.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef BULLET_BASE_NAME + #define BULLET_BASE_NAME BulletBase + #endif /* !BULLET_BASE_NAME */ + + #define CloseEngine(glyphEngine) _CloseEngine(BULLET_BASE_NAME, glyphEngine) + + static __inline void + _CloseEngine(void *BulletBase, struct GlyphEngine *glyphEngine) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) glyphEngine; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) BulletBase; + PPCCallOS(&MyCaos); + } + + #define ObtainInfoA(glyphEngine, tagList) _ObtainInfoA(BULLET_BASE_NAME, glyphEngine, tagList) + + static __inline ULONG + _ObtainInfoA(void *BulletBase, struct GlyphEngine *glyphEngine, struct TagItem *tagList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) glyphEngine; + MyCaos.a1 =(ULONG) tagList; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) BulletBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define ObtainInfo(a0, tags...) \ + ({ULONG _tags[] = { tags }; ObtainInfoA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define OpenEngine() _OpenEngine(BULLET_BASE_NAME) + + static __inline struct GlyphEngine * + _OpenEngine(void *BulletBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) BulletBase; + return((struct GlyphEngine *)PPCCallOS(&MyCaos)); + } + + #define ReleaseInfoA(glyphEngine, tagList) _ReleaseInfoA(BULLET_BASE_NAME, glyphEngine, tagList) + + static __inline ULONG + _ReleaseInfoA(void *BulletBase, struct GlyphEngine *glyphEngine, struct TagItem *tagList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) glyphEngine; + MyCaos.a1 =(ULONG) tagList; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) BulletBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define ReleaseInfo(a0, tags...) \ + ({ULONG _tags[] = { tags }; ReleaseInfoA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define SetInfoA(glyphEngine, tagList) _SetInfoA(BULLET_BASE_NAME, glyphEngine, tagList) + + static __inline ULONG + _SetInfoA(void *BulletBase, struct GlyphEngine *glyphEngine, struct TagItem *tagList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) glyphEngine; + MyCaos.a1 =(ULONG) tagList; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) BulletBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define SetInfo(a0, tags...) \ + ({ULONG _tags[] = { tags }; SetInfoA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_BULLET_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/cardres_pragmas.h includenew/powerup/ppcpragmas/cardres_pragmas.h *** include_h/powerup/ppcpragmas/cardres_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/cardres_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,338 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_CARDRES_H + #define _PPCPRAGMA_CARDRES_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__CARDRES_H + #include <powerup/ppcinline/cardres.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef CARDRES_BASE_NAME + #define CARDRES_BASE_NAME CardResource + #endif /* !CARDRES_BASE_NAME */ + + #define BeginCardAccess(handle) _BeginCardAccess(CARDRES_BASE_NAME, handle) + + static __inline BOOL + _BeginCardAccess(void *CardResource, struct CardHandle *handle) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.caos_Un.Offset = (-24); + MyCaos.a6 =(ULONG) CardResource; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define CardAccessSpeed(handle, nanoseconds) _CardAccessSpeed(CARDRES_BASE_NAME, handle, nanoseconds) + + static __inline ULONG + _CardAccessSpeed(void *CardResource, struct CardHandle *handle, unsigned long nanoseconds) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.d0 =(ULONG) nanoseconds; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) CardResource; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define CardChangeCount() _CardChangeCount(CARDRES_BASE_NAME) + + static __inline ULONG + _CardChangeCount(void *CardResource) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) CardResource; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define CardForceChange() _CardForceChange(CARDRES_BASE_NAME) + + static __inline BOOL + _CardForceChange(void *CardResource) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-90); + MyCaos.a6 =(ULONG) CardResource; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define CardInterface() _CardInterface(CARDRES_BASE_NAME) + + static __inline ULONG + _CardInterface(void *CardResource) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) CardResource; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define CardMiscControl(handle, control_bits) _CardMiscControl(CARDRES_BASE_NAME, handle, control_bits) + + static __inline UBYTE + _CardMiscControl(void *CardResource, struct CardHandle *handle, unsigned long control_bits) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.d1 =(ULONG) control_bits; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) CardResource; + return((UBYTE)PPCCallOS(&MyCaos)); + } + + #define CardProgramVoltage(handle, voltage) _CardProgramVoltage(CARDRES_BASE_NAME, handle, voltage) + + static __inline LONG + _CardProgramVoltage(void *CardResource, struct CardHandle *handle, unsigned long voltage) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.d0 =(ULONG) voltage; + MyCaos.caos_Un.Offset = (-60); + MyCaos.a6 =(ULONG) CardResource; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define CardResetCard(handle) _CardResetCard(CARDRES_BASE_NAME, handle) + + static __inline BOOL + _CardResetCard(void *CardResource, struct CardHandle *handle) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.caos_Un.Offset = (-66); + MyCaos.a6 =(ULONG) CardResource; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define CardResetRemove(handle, flag) _CardResetRemove(CARDRES_BASE_NAME, handle, flag) + + static __inline BOOL + _CardResetRemove(void *CardResource, struct CardHandle *handle, unsigned long flag) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.d0 =(ULONG) flag; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) CardResource; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define CopyTuple(handle, buffer, tuplecode, size) _CopyTuple(CARDRES_BASE_NAME, handle, buffer, tuplecode, size) + + static __inline BOOL + _CopyTuple(void *CardResource, struct CardHandle *handle, UBYTE *buffer, unsigned long tuplecode, unsigned long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.a0 =(ULONG) buffer; + MyCaos.d1 =(ULONG) tuplecode; + MyCaos.d0 =(ULONG) size; + MyCaos.caos_Un.Offset = (-72); + MyCaos.a6 =(ULONG) CardResource; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define DeviceTuple(tuple_data, storage) _DeviceTuple(CARDRES_BASE_NAME, tuple_data, storage) + + static __inline ULONG + _DeviceTuple(void *CardResource, UBYTE *tuple_data, struct DeviceTData *storage) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) tuple_data; + MyCaos.a1 =(ULONG) storage; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) CardResource; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define EndCardAccess(handle) _EndCardAccess(CARDRES_BASE_NAME, handle) + + static __inline BOOL + _EndCardAccess(void *CardResource, struct CardHandle *handle) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) CardResource; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define GetCardMap() _GetCardMap(CARDRES_BASE_NAME) + + static __inline struct CardMemoryMap * + _GetCardMap(void *CardResource) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-18); + MyCaos.a6 =(ULONG) CardResource; + return((struct CardMemoryMap *)PPCCallOS(&MyCaos)); + } + + #define IfAmigaXIP(handle) _IfAmigaXIP(CARDRES_BASE_NAME, handle) + + static __inline struct Resident * + _IfAmigaXIP(void *CardResource, struct CardHandle *handle) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a2 =(ULONG) handle; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) CardResource; + return((struct Resident *)PPCCallOS(&MyCaos)); + } + + #define OwnCard(handle) _OwnCard(CARDRES_BASE_NAME, handle) + + static __inline struct CardHandle * + _OwnCard(void *CardResource, struct CardHandle *handle) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.caos_Un.Offset = (-6); + MyCaos.a6 =(ULONG) CardResource; + return((struct CardHandle *)PPCCallOS(&MyCaos)); + } + + #define ReadCardStatus() _ReadCardStatus(CARDRES_BASE_NAME) + + static __inline UBYTE + _ReadCardStatus(void *CardResource) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) CardResource; + return((UBYTE)PPCCallOS(&MyCaos)); + } + + #define ReleaseCard(handle, flags) _ReleaseCard(CARDRES_BASE_NAME, handle, flags) + + static __inline void + _ReleaseCard(void *CardResource, struct CardHandle *handle, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) handle; + MyCaos.d0 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-12); + MyCaos.a6 =(ULONG) CardResource; + PPCCallOS(&MyCaos); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_CARDRES_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/cia_pragmas.h includenew/powerup/ppcpragmas/cia_pragmas.h *** include_h/powerup/ppcpragmas/cia_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/cia_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,98 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_CIA_H + #define _PPCPRAGMA_CIA_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__CIA_H + #include <powerup/ppcinline/cia.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #define AbleICR(resource, mask) _AbleICR(resource, mask) + + static __inline WORD + _AbleICR(struct Library *resource, long mask) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a6 =(ULONG) resource; + MyCaos.d0 =(ULONG) mask; + MyCaos.caos_Un.Offset = (-18); + return((WORD)PPCCallOS(&MyCaos)); + } + + #define AddICRVector(resource, iCRBit, interrupt) _AddICRVector(resource, iCRBit, interrupt) + + static __inline struct Interrupt * + _AddICRVector(struct Library *resource, long iCRBit, struct Interrupt *interrupt) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a6 =(ULONG) resource; + MyCaos.d0 =(ULONG) iCRBit; + MyCaos.a1 =(ULONG) interrupt; + MyCaos.caos_Un.Offset = (-6); + return((struct Interrupt *)PPCCallOS(&MyCaos)); + } + + #define RemICRVector(resource, iCRBit, interrupt) _RemICRVector(resource, iCRBit, interrupt) + + static __inline void + _RemICRVector(struct Library *resource, long iCRBit, struct Interrupt *interrupt) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a6 =(ULONG) resource; + MyCaos.d0 =(ULONG) iCRBit; + MyCaos.a1 =(ULONG) interrupt; + MyCaos.caos_Un.Offset = (-12); + PPCCallOS(&MyCaos); + } + + #define SetICR(resource, mask) _SetICR(resource, mask) + + static __inline WORD + _SetICR(struct Library *resource, long mask) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a6 =(ULONG) resource; + MyCaos.d0 =(ULONG) mask; + MyCaos.caos_Un.Offset = (-24); + return((WORD)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_CIA_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/colorwheel_pragmas.h includenew/powerup/ppcpragmas/colorwheel_pragmas.h *** include_h/powerup/ppcpragmas/colorwheel_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/colorwheel_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,66 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_COLORWHEEL_H + #define _PPCPRAGMA_COLORWHEEL_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__COLORWHEEL_H + #include <powerup/ppcinline/colorwheel.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef COLORWHEEL_BASE_NAME + #define COLORWHEEL_BASE_NAME ColorWheelBase + #endif /* !COLORWHEEL_BASE_NAME */ + + #define ConvertHSBToRGB(hsb, rgb) _ConvertHSBToRGB(COLORWHEEL_BASE_NAME, hsb, rgb) + + static __inline void + _ConvertHSBToRGB(void *ColorWheelBase, struct ColorWheelHSB *hsb, struct ColorWheelRGB *rgb) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) hsb; + MyCaos.a1 =(ULONG) rgb; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) ColorWheelBase; + PPCCallOS(&MyCaos); + } + + #define ConvertRGBToHSB(rgb, hsb) _ConvertRGBToHSB(COLORWHEEL_BASE_NAME, rgb, hsb) + + static __inline void + _ConvertRGBToHSB(void *ColorWheelBase, struct ColorWheelRGB *rgb, struct ColorWheelHSB *hsb) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) rgb; + MyCaos.a1 =(ULONG) hsb; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) ColorWheelBase; + PPCCallOS(&MyCaos); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_COLORWHEEL_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/commodities_pragmas.h includenew/powerup/ppcpragmas/commodities_pragmas.h *** include_h/powerup/ppcpragmas/commodities_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/commodities_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,515 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_COMMODITIES_H + #define _PPCPRAGMA_COMMODITIES_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__COMMODITIES_H + #include <powerup/ppcinline/commodities.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef COMMODITIES_BASE_NAME + #define COMMODITIES_BASE_NAME CxBase + #endif /* !COMMODITIES_BASE_NAME */ + + #define ActivateCxObj(co, tf) _ActivateCxObj(COMMODITIES_BASE_NAME, co, tf) + + static __inline LONG + _ActivateCxObj(void *CxBase, CxObj *co, long tf) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) co; + MyCaos.d0 =(ULONG) tf; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) CxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AddIEvents(events) _AddIEvents(COMMODITIES_BASE_NAME, events) + + static __inline void + _AddIEvents(void *CxBase, struct InputEvent *events) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) events; + MyCaos.caos_Un.Offset = (-180); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define AttachCxObj(headObj, co) _AttachCxObj(COMMODITIES_BASE_NAME, headObj, co) + + static __inline void + _AttachCxObj(void *CxBase, CxObj *headObj, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) headObj; + MyCaos.a1 =(ULONG) co; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define ClearCxObjError(co) _ClearCxObjError(COMMODITIES_BASE_NAME, co) + + static __inline void + _ClearCxObjError(void *CxBase, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) co; + MyCaos.caos_Un.Offset = (-72); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define CreateCxObj(type, arg1, arg2) _CreateCxObj(COMMODITIES_BASE_NAME, type, arg1, arg2) + + static __inline CxObj * + _CreateCxObj(void *CxBase, unsigned long type, long arg1, long arg2) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) type; + MyCaos.a0 =(ULONG) arg1; + MyCaos.a1 =(ULONG) arg2; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) CxBase; + return((CxObj *)PPCCallOS(&MyCaos)); + } + + #define CxBroker(nb, error) _CxBroker(COMMODITIES_BASE_NAME, nb, error) + + static __inline CxObj * + _CxBroker(void *CxBase, struct NewBroker *nb, LONG *error) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) nb; + MyCaos.d0 =(ULONG) error; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) CxBase; + return((CxObj *)PPCCallOS(&MyCaos)); + } + + #define CxMsgData(cxm) _CxMsgData(COMMODITIES_BASE_NAME, cxm) + + static __inline APTR + _CxMsgData(void *CxBase, CxMsg *cxm) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cxm; + MyCaos.caos_Un.Offset = (-144); + MyCaos.a6 =(ULONG) CxBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define CxMsgID(cxm) _CxMsgID(COMMODITIES_BASE_NAME, cxm) + + static __inline LONG + _CxMsgID(void *CxBase, CxMsg *cxm) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cxm; + MyCaos.caos_Un.Offset = (-150); + MyCaos.a6 =(ULONG) CxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define CxMsgType(cxm) _CxMsgType(COMMODITIES_BASE_NAME, cxm) + + static __inline ULONG + _CxMsgType(void *CxBase, CxMsg *cxm) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cxm; + MyCaos.caos_Un.Offset = (-138); + MyCaos.a6 =(ULONG) CxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define CxObjError(co) _CxObjError(COMMODITIES_BASE_NAME, co) + + static __inline LONG + _CxObjError(void *CxBase, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) co; + MyCaos.caos_Un.Offset = (-66); + MyCaos.a6 =(ULONG) CxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define CxObjType(co) _CxObjType(COMMODITIES_BASE_NAME, co) + + static __inline ULONG + _CxObjType(void *CxBase, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) co; + MyCaos.caos_Un.Offset = (-60); + MyCaos.a6 =(ULONG) CxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define DeleteCxObj(co) _DeleteCxObj(COMMODITIES_BASE_NAME, co) + + static __inline void + _DeleteCxObj(void *CxBase, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) co; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define DeleteCxObjAll(co) _DeleteCxObjAll(COMMODITIES_BASE_NAME, co) + + static __inline void + _DeleteCxObjAll(void *CxBase, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) co; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define DisposeCxMsg(cxm) _DisposeCxMsg(COMMODITIES_BASE_NAME, cxm) + + static __inline void + _DisposeCxMsg(void *CxBase, CxMsg *cxm) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cxm; + MyCaos.caos_Un.Offset = (-168); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define DivertCxMsg(cxm, headObj, returnObj) _DivertCxMsg(COMMODITIES_BASE_NAME, cxm, headObj, returnObj) + + static __inline void + _DivertCxMsg(void *CxBase, CxMsg *cxm, CxObj *headObj, CxObj *returnObj) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cxm; + MyCaos.a1 =(ULONG) headObj; + MyCaos.a2 =(ULONG) returnObj; + MyCaos.caos_Un.Offset = (-156); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define EnqueueCxObj(headObj, co) _EnqueueCxObj(COMMODITIES_BASE_NAME, headObj, co) + + static __inline void + _EnqueueCxObj(void *CxBase, CxObj *headObj, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) headObj; + MyCaos.a1 =(ULONG) co; + MyCaos.caos_Un.Offset = (-90); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define InsertCxObj(headObj, co, pred) _InsertCxObj(COMMODITIES_BASE_NAME, headObj, co, pred) + + static __inline void + _InsertCxObj(void *CxBase, CxObj *headObj, CxObj *co, CxObj *pred) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) headObj; + MyCaos.a1 =(ULONG) co; + MyCaos.a2 =(ULONG) pred; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define InvertKeyMap(ansiCode, event, km) _InvertKeyMap(COMMODITIES_BASE_NAME, ansiCode, event, km) + + static __inline BOOL + _InvertKeyMap(void *CxBase, unsigned long ansiCode, struct InputEvent *event, struct KeyMap *km) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) ansiCode; + MyCaos.a0 =(ULONG) event; + MyCaos.a1 =(ULONG) km; + MyCaos.caos_Un.Offset = (-174); + MyCaos.a6 =(ULONG) CxBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define MatchIX(event, ix) _MatchIX(COMMODITIES_BASE_NAME, event, ix) + + static __inline BOOL + _MatchIX(void *CxBase, struct InputEvent *event, IX *ix) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) event; + MyCaos.a1 =(ULONG) ix; + MyCaos.caos_Un.Offset = (-204); + MyCaos.a6 =(ULONG) CxBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define ParseIX(description, ix) _ParseIX(COMMODITIES_BASE_NAME, description, ix) + + static __inline LONG + _ParseIX(void *CxBase, STRPTR description, IX *ix) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) description; + MyCaos.a1 =(ULONG) ix; + MyCaos.caos_Un.Offset = (-132); + MyCaos.a6 =(ULONG) CxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define RemoveCxObj(co) _RemoveCxObj(COMMODITIES_BASE_NAME, co) + + static __inline void + _RemoveCxObj(void *CxBase, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) co; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define RouteCxMsg(cxm, co) _RouteCxMsg(COMMODITIES_BASE_NAME, cxm, co) + + static __inline void + _RouteCxMsg(void *CxBase, CxMsg *cxm, CxObj *co) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cxm; + MyCaos.a1 =(ULONG) co; + MyCaos.caos_Un.Offset = (-162); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define SetCxObjPri(co, pri) _SetCxObjPri(COMMODITIES_BASE_NAME, co, pri) + + static __inline LONG + _SetCxObjPri(void *CxBase, CxObj *co, long pri) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) co; + MyCaos.d0 =(ULONG) pri; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) CxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetFilter(filter, text) _SetFilter(COMMODITIES_BASE_NAME, filter, text) + + static __inline void + _SetFilter(void *CxBase, CxObj *filter, STRPTR text) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) filter; + MyCaos.a1 =(ULONG) text; + MyCaos.caos_Un.Offset = (-120); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define SetFilterIX(filter, ix) _SetFilterIX(COMMODITIES_BASE_NAME, filter, ix) + + static __inline void + _SetFilterIX(void *CxBase, CxObj *filter, IX *ix) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) filter; + MyCaos.a1 =(ULONG) ix; + MyCaos.caos_Un.Offset = (-126); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #define SetTranslate(translator, events) _SetTranslate(COMMODITIES_BASE_NAME, translator, events) + + static __inline void + _SetTranslate(void *CxBase, CxObj *translator, struct InputEvent *events) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) translator; + MyCaos.a1 =(ULONG) events; + MyCaos.caos_Un.Offset = (-114); + MyCaos.a6 =(ULONG) CxBase; + PPCCallOS(&MyCaos); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_COMMODITIES_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/console_pragmas.h includenew/powerup/ppcpragmas/console_pragmas.h *** include_h/powerup/ppcpragmas/console_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/console_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,68 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_CONSOLE_H + #define _PPCPRAGMA_CONSOLE_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__CONSOLE_H + #include <powerup/ppcinline/console.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef CONSOLE_BASE_NAME + #define CONSOLE_BASE_NAME ConsoleDevice + #endif /* !CONSOLE_BASE_NAME */ + + #define CDInputHandler(events, consoleDevice) _CDInputHandler(CONSOLE_BASE_NAME, events, consoleDevice) + + static __inline struct InputEvent * + _CDInputHandler(void *ConsoleDevice, struct InputEvent *events, struct Library *consoleDevice) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) events; + MyCaos.a1 =(ULONG) consoleDevice; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) ConsoleDevice; + return((struct InputEvent *)PPCCallOS(&MyCaos)); + } + + #define RawKeyConvert(events, buffer, length, keyMap) _RawKeyConvert(CONSOLE_BASE_NAME, events, buffer, length, keyMap) + + static __inline LONG + _RawKeyConvert(void *ConsoleDevice, struct InputEvent *events, STRPTR buffer, long length, struct KeyMap *keyMap) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) events; + MyCaos.a1 =(ULONG) buffer; + MyCaos.d1 =(ULONG) length; + MyCaos.a2 =(ULONG) keyMap; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) ConsoleDevice; + return((LONG)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_CONSOLE_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/datatypes_pragmas.h includenew/powerup/ppcpragmas/datatypes_pragmas.h *** include_h/powerup/ppcpragmas/datatypes_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/datatypes_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,354 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_DATATYPES_H + #define _PPCPRAGMA_DATATYPES_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__DATATYPES_H + #include <powerup/ppcinline/datatypes.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef DATATYPES_BASE_NAME + #define DATATYPES_BASE_NAME DataTypesBase + #endif /* !DATATYPES_BASE_NAME */ + + #define AddDTObject(win, req, o, pos) _AddDTObject(DATATYPES_BASE_NAME, win, req, o, pos) + + static __inline LONG + _AddDTObject(void *DataTypesBase, struct Window *win, struct Requester *req, Object *o, long pos) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) win; + MyCaos.a1 =(ULONG) req; + MyCaos.a2 =(ULONG) o; + MyCaos.d0 =(ULONG) pos; + MyCaos.caos_Un.Offset = (-72); + MyCaos.a6 =(ULONG) DataTypesBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DisposeDTObject(o) _DisposeDTObject(DATATYPES_BASE_NAME, o) + + static __inline void + _DisposeDTObject(void *DataTypesBase, Object *o) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) o; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) DataTypesBase; + PPCCallOS(&MyCaos); + } + + #define DoAsyncLayout(o, gpl) _DoAsyncLayout(DATATYPES_BASE_NAME, o, gpl) + + static __inline ULONG + _DoAsyncLayout(void *DataTypesBase, Object *o, struct gpLayout *gpl) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) o; + MyCaos.a1 =(ULONG) gpl; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) DataTypesBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define DoDTMethodA(o, win, req, msg) _DoDTMethodA(DATATYPES_BASE_NAME, o, win, req, msg) + + static __inline ULONG + _DoDTMethodA(void *DataTypesBase, Object *o, struct Window *win, struct Requester *req, Msg msg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) o; + MyCaos.a1 =(ULONG) win; + MyCaos.a2 =(ULONG) req; + MyCaos.a3 =(ULONG) msg; + MyCaos.caos_Un.Offset = (-90); + MyCaos.a6 =(ULONG) DataTypesBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define DoDTMethod(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; DoDTMethodA((a0), (a1), (a2), (Msg)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetDTAttrsA(o, attrs) _GetDTAttrsA(DATATYPES_BASE_NAME, o, attrs) + + static __inline ULONG + _GetDTAttrsA(void *DataTypesBase, Object *o, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) o; + MyCaos.a2 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-66); + MyCaos.a6 =(ULONG) DataTypesBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define GetDTAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetDTAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetDTMethods(object) _GetDTMethods(DATATYPES_BASE_NAME, object) + + static __inline ULONG * + _GetDTMethods(void *DataTypesBase, Object *object) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) object; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) DataTypesBase; + return((ULONG *)PPCCallOS(&MyCaos)); + } + + #define GetDTString(id) _GetDTString(DATATYPES_BASE_NAME, id) + + static __inline STRPTR + _GetDTString(void *DataTypesBase, unsigned long id) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) id; + MyCaos.caos_Un.Offset = (-138); + MyCaos.a6 =(ULONG) DataTypesBase; + return((STRPTR)PPCCallOS(&MyCaos)); + } + + #define GetDTTriggerMethods(object) _GetDTTriggerMethods(DATATYPES_BASE_NAME, object) + + static __inline struct DTMethods * + _GetDTTriggerMethods(void *DataTypesBase, Object *object) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) object; + MyCaos.caos_Un.Offset = (-108); + MyCaos.a6 =(ULONG) DataTypesBase; + return((struct DTMethods *)PPCCallOS(&MyCaos)); + } + + #define NewDTObjectA(name, attrs) _NewDTObjectA(DATATYPES_BASE_NAME, name, attrs) + + static __inline Object * + _NewDTObjectA(void *DataTypesBase, APTR name, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) name; + MyCaos.a0 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) DataTypesBase; + return((Object *)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define NewDTObject(a0, tags...) \ + ({ULONG _tags[] = { tags }; NewDTObjectA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ObtainDataTypeA(type, handle, attrs) _ObtainDataTypeA(DATATYPES_BASE_NAME, type, handle, attrs) + + static __inline struct DataType * + _ObtainDataTypeA(void *DataTypesBase, unsigned long type, APTR handle, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) type; + MyCaos.a0 =(ULONG) handle; + MyCaos.a1 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) DataTypesBase; + return((struct DataType *)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define ObtainDataType(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; ObtainDataTypeA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define PrintDTObjectA(o, w, r, msg) _PrintDTObjectA(DATATYPES_BASE_NAME, o, w, r, msg) + + static __inline ULONG + _PrintDTObjectA(void *DataTypesBase, Object *o, struct Window *w, struct Requester *r, struct dtPrint *msg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) o; + MyCaos.a1 =(ULONG) w; + MyCaos.a2 =(ULONG) r; + MyCaos.a3 =(ULONG) msg; + MyCaos.caos_Un.Offset = (-114); + MyCaos.a6 =(ULONG) DataTypesBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define PrintDTObject(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; PrintDTObjectA((a0), (a1), (a2), (struct dtPrint *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define RefreshDTObjectA(o, win, req, attrs) _RefreshDTObjectA(DATATYPES_BASE_NAME, o, win, req, attrs) + + static __inline void + _RefreshDTObjectA(void *DataTypesBase, Object *o, struct Window *win, struct Requester *req, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) o; + MyCaos.a1 =(ULONG) win; + MyCaos.a2 =(ULONG) req; + MyCaos.a3 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) DataTypesBase; + PPCCallOS(&MyCaos); + } + + #ifndef NO_PPCINLINE_STDARG + #define RefreshDTObject(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; RefreshDTObjectA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ReleaseDataType(dt) _ReleaseDataType(DATATYPES_BASE_NAME, dt) + + static __inline void + _ReleaseDataType(void *DataTypesBase, struct DataType *dt) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) dt; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) DataTypesBase; + PPCCallOS(&MyCaos); + } + + #define RemoveDTObject(win, o) _RemoveDTObject(DATATYPES_BASE_NAME, win, o) + + static __inline LONG + _RemoveDTObject(void *DataTypesBase, struct Window *win, Object *o) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) win; + MyCaos.a1 =(ULONG) o; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) DataTypesBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetDTAttrsA(o, win, req, attrs) _SetDTAttrsA(DATATYPES_BASE_NAME, o, win, req, attrs) + + static __inline ULONG + _SetDTAttrsA(void *DataTypesBase, Object *o, struct Window *win, struct Requester *req, struct TagItem *attrs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) o; + MyCaos.a1 =(ULONG) win; + MyCaos.a2 =(ULONG) req; + MyCaos.a3 =(ULONG) attrs; + MyCaos.caos_Un.Offset = (-60); + MyCaos.a6 =(ULONG) DataTypesBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define SetDTAttrs(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; SetDTAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_DATATYPES_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/disk_pragmas.h includenew/powerup/ppcpragmas/disk_pragmas.h *** include_h/powerup/ppcpragmas/disk_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/disk_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,135 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_DISK_H + #define _PPCPRAGMA_DISK_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__DISK_H + #include <powerup/ppcinline/disk.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef DISK_BASE_NAME + #define DISK_BASE_NAME DiskBase + #endif /* !DISK_BASE_NAME */ + + #define AllocUnit(unitNum) _AllocUnit(DISK_BASE_NAME, unitNum) + + static __inline BOOL + _AllocUnit(void *DiskBase, long unitNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) unitNum; + MyCaos.caos_Un.Offset = (-6); + MyCaos.a6 =(ULONG) DiskBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define FreeUnit(unitNum) _FreeUnit(DISK_BASE_NAME, unitNum) + + static __inline void + _FreeUnit(void *DiskBase, long unitNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) unitNum; + MyCaos.caos_Un.Offset = (-12); + MyCaos.a6 =(ULONG) DiskBase; + PPCCallOS(&MyCaos); + } + + #define GetUnit(unitPointer) _GetUnit(DISK_BASE_NAME, unitPointer) + + static __inline struct DiskResourceUnit * + _GetUnit(void *DiskBase, struct DiskResourceUnit *unitPointer) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) unitPointer; + MyCaos.caos_Un.Offset = (-18); + MyCaos.a6 =(ULONG) DiskBase; + return((struct DiskResourceUnit *)PPCCallOS(&MyCaos)); + } + + #define GetUnitID(unitNum) _GetUnitID(DISK_BASE_NAME, unitNum) + + static __inline LONG + _GetUnitID(void *DiskBase, long unitNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) unitNum; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) DiskBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define GiveUnit() _GiveUnit(DISK_BASE_NAME) + + static __inline void + _GiveUnit(void *DiskBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-24); + MyCaos.a6 =(ULONG) DiskBase; + PPCCallOS(&MyCaos); + } + + #define ReadUnitID(unitNum) _ReadUnitID(DISK_BASE_NAME, unitNum) + + static __inline LONG + _ReadUnitID(void *DiskBase, long unitNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) unitNum; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) DiskBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_DISK_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/diskfont_pragmas.h includenew/powerup/ppcpragmas/diskfont_pragmas.h *** include_h/powerup/ppcpragmas/diskfont_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/diskfont_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,122 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_DISKFONT_H + #define _PPCPRAGMA_DISKFONT_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__DISKFONT_H + #include <powerup/ppcinline/diskfont.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef DISKFONT_BASE_NAME + #define DISKFONT_BASE_NAME DiskfontBase + #endif /* !DISKFONT_BASE_NAME */ + + #define AvailFonts(buffer, bufBytes, flags) _AvailFonts(DISKFONT_BASE_NAME, buffer, bufBytes, flags) + + static __inline LONG + _AvailFonts(void *DiskfontBase, STRPTR buffer, long bufBytes, long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) buffer; + MyCaos.d0 =(ULONG) bufBytes; + MyCaos.d1 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) DiskfontBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DisposeFontContents(fontContentsHeader) _DisposeFontContents(DISKFONT_BASE_NAME, fontContentsHeader) + + static __inline void + _DisposeFontContents(void *DiskfontBase, struct FontContentsHeader *fontContentsHeader) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) fontContentsHeader; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) DiskfontBase; + PPCCallOS(&MyCaos); + } + + #define NewFontContents(fontsLock, fontName) _NewFontContents(DISKFONT_BASE_NAME, fontsLock, fontName) + + static __inline struct FontContentsHeader * + _NewFontContents(void *DiskfontBase, BPTR fontsLock, STRPTR fontName) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) fontsLock; + MyCaos.a1 =(ULONG) fontName; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) DiskfontBase; + return((struct FontContentsHeader *)PPCCallOS(&MyCaos)); + } + + #define NewScaledDiskFont(sourceFont, destTextAttr) _NewScaledDiskFont(DISKFONT_BASE_NAME, sourceFont, destTextAttr) + + static __inline struct DiskFont * + _NewScaledDiskFont(void *DiskfontBase, struct TextFont *sourceFont, struct TextAttr *destTextAttr) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sourceFont; + MyCaos.a1 =(ULONG) destTextAttr; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) DiskfontBase; + return((struct DiskFont *)PPCCallOS(&MyCaos)); + } + + #define OpenDiskFont(textAttr) _OpenDiskFont(DISKFONT_BASE_NAME, textAttr) + + static __inline struct TextFont * + _OpenDiskFont(void *DiskfontBase, struct TextAttr *textAttr) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) textAttr; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) DiskfontBase; + return((struct TextFont *)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_DISKFONT_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/dos_pragmas.h includenew/powerup/ppcpragmas/dos_pragmas.h *** include_h/powerup/ppcpragmas/dos_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/dos_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,3092 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_DOS_H + #define _PPCPRAGMA_DOS_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__DOS_H + #include <powerup/ppcinline/dos.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef DOS_BASE_NAME + #define DOS_BASE_NAME DOSBase + #endif /* !DOS_BASE_NAME */ + + #define AbortPkt(port, pkt) _AbortPkt(DOS_BASE_NAME, port, pkt) + + static __inline void + _AbortPkt(void *DOSBase, struct MsgPort *port, struct DosPacket *pkt) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) port; + MyCaos.d2 =(ULONG) pkt; + MyCaos.caos_Un.Offset = (-264); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define AddBuffers(name, number) _AddBuffers(DOS_BASE_NAME, name, number) + + static __inline LONG + _AddBuffers(void *DOSBase, STRPTR name, long number) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) number; + MyCaos.caos_Un.Offset = (-732); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AddDosEntry(dlist) _AddDosEntry(DOS_BASE_NAME, dlist) + + static __inline LONG + _AddDosEntry(void *DOSBase, struct DosList *dlist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dlist; + MyCaos.caos_Un.Offset = (-678); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AddPart(dirname, filename, size) _AddPart(DOS_BASE_NAME, dirname, filename, size) + + static __inline BOOL + _AddPart(void *DOSBase, STRPTR dirname, STRPTR filename, unsigned long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dirname; + MyCaos.d2 =(ULONG) filename; + MyCaos.d3 =(ULONG) size; + MyCaos.caos_Un.Offset = (-882); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define AddSegment(name, seg, system) _AddSegment(DOS_BASE_NAME, name, seg, system) + + static __inline LONG + _AddSegment(void *DOSBase, STRPTR name, BPTR seg, long system) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) seg; + MyCaos.d3 =(ULONG) system; + MyCaos.caos_Un.Offset = (-774); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AllocDosObject(type, tags) _AllocDosObject(DOS_BASE_NAME, type, tags) + + static __inline APTR + _AllocDosObject(void *DOSBase, unsigned long type, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) type; + MyCaos.d2 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-228); + MyCaos.a6 =(ULONG) DOSBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define AllocDosObjectTagList(a0, a1) AllocDosObject ((a0), (a1)) + + #ifndef NO_PPCINLINE_STDARG + #define AllocDosObjectTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; AllocDosObject((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AssignAdd(name, lock) _AssignAdd(DOS_BASE_NAME, name, lock) + + static __inline BOOL + _AssignAdd(void *DOSBase, STRPTR name, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-630); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define AssignLate(name, path) _AssignLate(DOS_BASE_NAME, name, path) + + static __inline BOOL + _AssignLate(void *DOSBase, STRPTR name, STRPTR path) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) path; + MyCaos.caos_Un.Offset = (-618); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define AssignLock(name, lock) _AssignLock(DOS_BASE_NAME, name, lock) + + static __inline LONG + _AssignLock(void *DOSBase, STRPTR name, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-612); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AssignPath(name, path) _AssignPath(DOS_BASE_NAME, name, path) + + static __inline BOOL + _AssignPath(void *DOSBase, STRPTR name, STRPTR path) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) path; + MyCaos.caos_Un.Offset = (-624); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define AttemptLockDosList(flags) _AttemptLockDosList(DOS_BASE_NAME, flags) + + static __inline struct DosList * + _AttemptLockDosList(void *DOSBase, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-666); + MyCaos.a6 =(ULONG) DOSBase; + return((struct DosList *)PPCCallOS(&MyCaos)); + } + + #define ChangeMode(type, fh, newmode) _ChangeMode(DOS_BASE_NAME, type, fh, newmode) + + static __inline LONG + _ChangeMode(void *DOSBase, long type, BPTR fh, long newmode) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) type; + MyCaos.d2 =(ULONG) fh; + MyCaos.d3 =(ULONG) newmode; + MyCaos.caos_Un.Offset = (-450); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define CheckSignal(mask) _CheckSignal(DOS_BASE_NAME, mask) + + static __inline LONG + _CheckSignal(void *DOSBase, long mask) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) mask; + MyCaos.caos_Un.Offset = (-792); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Cli() _Cli(DOS_BASE_NAME) + + static __inline struct CommandLineInterface * + _Cli(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-492); + MyCaos.a6 =(ULONG) DOSBase; + return((struct CommandLineInterface *)PPCCallOS(&MyCaos)); + } + + #define CliInitNewcli(dp) _CliInitNewcli(DOS_BASE_NAME, dp) + + static __inline LONG + _CliInitNewcli(void *DOSBase, struct DosPacket *dp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) dp; + MyCaos.caos_Un.Offset = (-930); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define CliInitRun(dp) _CliInitRun(DOS_BASE_NAME, dp) + + static __inline LONG + _CliInitRun(void *DOSBase, struct DosPacket *dp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) dp; + MyCaos.caos_Un.Offset = (-936); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Close(file) _Close(DOS_BASE_NAME, file) + + static __inline LONG + _Close(void *DOSBase, BPTR file) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) file; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define CompareDates(date1, date2) _CompareDates(DOS_BASE_NAME, date1, date2) + + static __inline LONG + _CompareDates(void *DOSBase, struct DateStamp *date1, struct DateStamp *date2) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) date1; + MyCaos.d2 =(ULONG) date2; + MyCaos.caos_Un.Offset = (-738); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define CreateDir(name) _CreateDir(DOS_BASE_NAME, name) + + static __inline BPTR + _CreateDir(void *DOSBase, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-120); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define CreateNewProc(tags) _CreateNewProc(DOS_BASE_NAME, tags) + + static __inline struct Process * + _CreateNewProc(void *DOSBase, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-498); + MyCaos.a6 =(ULONG) DOSBase; + return((struct Process *)PPCCallOS(&MyCaos)); + } + + #define CreateNewProcTagList(a0) CreateNewProc ((a0)) + + #ifndef NO_PPCINLINE_STDARG + #define CreateNewProcTags(tags...) \ + ({ULONG _tags[] = { tags }; CreateNewProc((struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define CreateProc(name, pri, segList, stackSize) _CreateProc(DOS_BASE_NAME, name, pri, segList, stackSize) + + static __inline struct MsgPort * + _CreateProc(void *DOSBase, STRPTR name, long pri, BPTR segList, long stackSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) pri; + MyCaos.d3 =(ULONG) segList; + MyCaos.d4 =(ULONG) stackSize; + MyCaos.caos_Un.Offset = (-138); + MyCaos.a6 =(ULONG) DOSBase; + return((struct MsgPort *)PPCCallOS(&MyCaos)); + } + + #define CurrentDir(lock) _CurrentDir(DOS_BASE_NAME, lock) + + static __inline BPTR + _CurrentDir(void *DOSBase, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-126); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define DateStamp(date) _DateStamp(DOS_BASE_NAME, date) + + static __inline struct DateStamp * + _DateStamp(void *DOSBase, struct DateStamp *date) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) date; + MyCaos.caos_Un.Offset = (-192); + MyCaos.a6 =(ULONG) DOSBase; + return((struct DateStamp *)PPCCallOS(&MyCaos)); + } + + #define DateToStr(datetime) _DateToStr(DOS_BASE_NAME, datetime) + + static __inline LONG + _DateToStr(void *DOSBase, struct DateTime *datetime) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) datetime; + MyCaos.caos_Un.Offset = (-744); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Delay(timeout) _Delay(DOS_BASE_NAME, timeout) + + static __inline void + _Delay(void *DOSBase, long timeout) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) timeout; + MyCaos.caos_Un.Offset = (-198); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define DeleteFile(name) _DeleteFile(DOS_BASE_NAME, name) + + static __inline LONG + _DeleteFile(void *DOSBase, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-72); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DeleteVar(name, flags) _DeleteVar(DOS_BASE_NAME, name, flags) + + static __inline LONG + _DeleteVar(void *DOSBase, STRPTR name, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-912); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DeviceProc(name) _DeviceProc(DOS_BASE_NAME, name) + + static __inline struct MsgPort * + _DeviceProc(void *DOSBase, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-174); + MyCaos.a6 =(ULONG) DOSBase; + return((struct MsgPort *)PPCCallOS(&MyCaos)); + } + + #define DoPkt(port, action, arg1, arg2, arg3, arg4, arg5) _DoPkt(DOS_BASE_NAME, port, action, arg1, arg2, arg3, arg4, arg5) + + static __inline LONG + _DoPkt(void *DOSBase, struct MsgPort *port, long action, long arg1, long arg2, long arg3, long arg4, long arg5) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) port; + MyCaos.d2 =(ULONG) action; + MyCaos.d3 =(ULONG) arg1; + MyCaos.d4 =(ULONG) arg2; + MyCaos.d5 =(ULONG) arg3; + MyCaos.d6 =(ULONG) arg4; + MyCaos.d7 =(ULONG) arg5; + MyCaos.caos_Un.Offset = (-240); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DoPkt0(port, action) _DoPkt0(DOS_BASE_NAME, port, action) + + static __inline LONG + _DoPkt0(void *DOSBase, struct MsgPort *port, long action) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) port; + MyCaos.d2 =(ULONG) action; + MyCaos.caos_Un.Offset = (-240); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DoPkt1(port, action, arg1) _DoPkt1(DOS_BASE_NAME, port, action, arg1) + + static __inline LONG + _DoPkt1(void *DOSBase, struct MsgPort *port, long action, long arg1) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) port; + MyCaos.d2 =(ULONG) action; + MyCaos.d3 =(ULONG) arg1; + MyCaos.caos_Un.Offset = (-240); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DoPkt2(port, action, arg1, arg2) _DoPkt2(DOS_BASE_NAME, port, action, arg1, arg2) + + static __inline LONG + _DoPkt2(void *DOSBase, struct MsgPort *port, long action, long arg1, long arg2) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) port; + MyCaos.d2 =(ULONG) action; + MyCaos.d3 =(ULONG) arg1; + MyCaos.d4 =(ULONG) arg2; + MyCaos.caos_Un.Offset = (-240); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DoPkt3(port, action, arg1, arg2, arg3) _DoPkt3(DOS_BASE_NAME, port, action, arg1, arg2, arg3) + + static __inline LONG + _DoPkt3(void *DOSBase, struct MsgPort *port, long action, long arg1, long arg2, long arg3) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) port; + MyCaos.d2 =(ULONG) action; + MyCaos.d3 =(ULONG) arg1; + MyCaos.d4 =(ULONG) arg2; + MyCaos.d5 =(ULONG) arg3; + MyCaos.caos_Un.Offset = (-240); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DoPkt4(port, action, arg1, arg2, arg3, arg4) _DoPkt4(DOS_BASE_NAME, port, action, arg1, arg2, arg3, arg4) + + static __inline LONG + _DoPkt4(void *DOSBase, struct MsgPort *port, long action, long arg1, long arg2, long arg3, long arg4) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) port; + MyCaos.d2 =(ULONG) action; + MyCaos.d3 =(ULONG) arg1; + MyCaos.d4 =(ULONG) arg2; + MyCaos.d5 =(ULONG) arg3; + MyCaos.d6 =(ULONG) arg4; + MyCaos.caos_Un.Offset = (-240); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define DupLock(lock) _DupLock(DOS_BASE_NAME, lock) + + static __inline BPTR + _DupLock(void *DOSBase, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define DupLockFromFH(fh) _DupLockFromFH(DOS_BASE_NAME, fh) + + static __inline BPTR + _DupLockFromFH(void *DOSBase, BPTR fh) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.caos_Un.Offset = (-372); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define EndNotify(notify) _EndNotify(DOS_BASE_NAME, notify) + + static __inline void + _EndNotify(void *DOSBase, struct NotifyRequest *notify) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) notify; + MyCaos.caos_Un.Offset = (-894); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define ErrorReport(code, type, arg1, device) _ErrorReport(DOS_BASE_NAME, code, type, arg1, device) + + static __inline LONG + _ErrorReport(void *DOSBase, long code, long type, unsigned long arg1, struct MsgPort *device) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) code; + MyCaos.d2 =(ULONG) type; + MyCaos.d3 =(ULONG) arg1; + MyCaos.d4 =(ULONG) device; + MyCaos.caos_Un.Offset = (-480); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define ExAll(lock, buffer, size, data, control) _ExAll(DOS_BASE_NAME, lock, buffer, size, data, control) + + static __inline LONG + _ExAll(void *DOSBase, BPTR lock, struct ExAllData *buffer, long size, long data, struct ExAllControl *control) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.d2 =(ULONG) buffer; + MyCaos.d3 =(ULONG) size; + MyCaos.d4 =(ULONG) data; + MyCaos.d5 =(ULONG) control; + MyCaos.caos_Un.Offset = (-432); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define ExAllEnd(lock, buffer, size, data, control) _ExAllEnd(DOS_BASE_NAME, lock, buffer, size, data, control) + + static __inline void + _ExAllEnd(void *DOSBase, BPTR lock, struct ExAllData *buffer, long size, long data, struct ExAllControl *control) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.d2 =(ULONG) buffer; + MyCaos.d3 =(ULONG) size; + MyCaos.d4 =(ULONG) data; + MyCaos.d5 =(ULONG) control; + MyCaos.caos_Un.Offset = (-990); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define ExNext(lock, fileInfoBlock) _ExNext(DOS_BASE_NAME, lock, fileInfoBlock) + + static __inline LONG + _ExNext(void *DOSBase, BPTR lock, struct FileInfoBlock *fileInfoBlock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.d2 =(ULONG) fileInfoBlock; + MyCaos.caos_Un.Offset = (-108); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Examine(lock, fileInfoBlock) _Examine(DOS_BASE_NAME, lock, fileInfoBlock) + + static __inline LONG + _Examine(void *DOSBase, BPTR lock, struct FileInfoBlock *fileInfoBlock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.d2 =(ULONG) fileInfoBlock; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define ExamineFH(fh, fib) _ExamineFH(DOS_BASE_NAME, fh, fib) + + static __inline BOOL + _ExamineFH(void *DOSBase, BPTR fh, struct FileInfoBlock *fib) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) fib; + MyCaos.caos_Un.Offset = (-390); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define Execute(string, file, file2) _Execute(DOS_BASE_NAME, string, file, file2) + + static __inline LONG + _Execute(void *DOSBase, STRPTR string, BPTR file, BPTR file2) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) string; + MyCaos.d2 =(ULONG) file; + MyCaos.d3 =(ULONG) file2; + MyCaos.caos_Un.Offset = (-222); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Exit(returnCode) _Exit(DOS_BASE_NAME, returnCode) + + static __inline void + _Exit(void *DOSBase, long returnCode) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) returnCode; + MyCaos.caos_Un.Offset = (-144); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define FGetC(fh) _FGetC(DOS_BASE_NAME, fh) + + static __inline LONG + _FGetC(void *DOSBase, BPTR fh) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.caos_Un.Offset = (-306); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define FGets(fh, buf, buflen) _FGets(DOS_BASE_NAME, fh, buf, buflen) + + static __inline STRPTR + _FGets(void *DOSBase, BPTR fh, STRPTR buf, unsigned long buflen) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) buf; + MyCaos.d3 =(ULONG) buflen; + MyCaos.caos_Un.Offset = (-336); + MyCaos.a6 =(ULONG) DOSBase; + return((STRPTR)PPCCallOS(&MyCaos)); + } + + #define FPutC(fh, ch) _FPutC(DOS_BASE_NAME, fh, ch) + + static __inline LONG + _FPutC(void *DOSBase, BPTR fh, long ch) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) ch; + MyCaos.caos_Un.Offset = (-312); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define FPuts(fh, str) _FPuts(DOS_BASE_NAME, fh, str) + + static __inline LONG + _FPuts(void *DOSBase, BPTR fh, STRPTR str) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) str; + MyCaos.caos_Un.Offset = (-342); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define FRead(fh, block, blocklen, number) _FRead(DOS_BASE_NAME, fh, block, blocklen, number) + + static __inline LONG + _FRead(void *DOSBase, BPTR fh, APTR block, unsigned long blocklen, unsigned long number) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) block; + MyCaos.d3 =(ULONG) blocklen; + MyCaos.d4 =(ULONG) number; + MyCaos.caos_Un.Offset = (-324); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define FWrite(fh, block, blocklen, number) _FWrite(DOS_BASE_NAME, fh, block, blocklen, number) + + static __inline LONG + _FWrite(void *DOSBase, BPTR fh, APTR block, unsigned long blocklen, unsigned long number) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) block; + MyCaos.d3 =(ULONG) blocklen; + MyCaos.d4 =(ULONG) number; + MyCaos.caos_Un.Offset = (-330); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Fault(code, header, buffer, len) _Fault(DOS_BASE_NAME, code, header, buffer, len) + + static __inline BOOL + _Fault(void *DOSBase, long code, STRPTR header, STRPTR buffer, long len) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) code; + MyCaos.d2 =(ULONG) header; + MyCaos.d3 =(ULONG) buffer; + MyCaos.d4 =(ULONG) len; + MyCaos.caos_Un.Offset = (-468); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define FilePart(path) _FilePart(DOS_BASE_NAME, path) + + static __inline STRPTR + _FilePart(void *DOSBase, STRPTR path) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) path; + MyCaos.caos_Un.Offset = (-870); + MyCaos.a6 =(ULONG) DOSBase; + return((STRPTR)PPCCallOS(&MyCaos)); + } + + #define FindArg(keyword, arg_template) _FindArg(DOS_BASE_NAME, keyword, arg_template) + + static __inline LONG + _FindArg(void *DOSBase, STRPTR keyword, STRPTR arg_template) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) keyword; + MyCaos.d2 =(ULONG) arg_template; + MyCaos.caos_Un.Offset = (-804); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define FindCliProc(num) _FindCliProc(DOS_BASE_NAME, num) + + static __inline struct Process * + _FindCliProc(void *DOSBase, unsigned long num) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) num; + MyCaos.caos_Un.Offset = (-546); + MyCaos.a6 =(ULONG) DOSBase; + return((struct Process *)PPCCallOS(&MyCaos)); + } + + #define FindDosEntry(dlist, name, flags) _FindDosEntry(DOS_BASE_NAME, dlist, name, flags) + + static __inline struct DosList * + _FindDosEntry(void *DOSBase, struct DosList *dlist, STRPTR name, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dlist; + MyCaos.d2 =(ULONG) name; + MyCaos.d3 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-684); + MyCaos.a6 =(ULONG) DOSBase; + return((struct DosList *)PPCCallOS(&MyCaos)); + } + + #define FindSegment(name, seg, system) _FindSegment(DOS_BASE_NAME, name, seg, system) + + static __inline struct Segment * + _FindSegment(void *DOSBase, STRPTR name, struct Segment *seg, long system) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) seg; + MyCaos.d3 =(ULONG) system; + MyCaos.caos_Un.Offset = (-780); + MyCaos.a6 =(ULONG) DOSBase; + return((struct Segment *)PPCCallOS(&MyCaos)); + } + + #define FindVar(name, type) _FindVar(DOS_BASE_NAME, name, type) + + static __inline struct LocalVar * + _FindVar(void *DOSBase, STRPTR name, unsigned long type) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) type; + MyCaos.caos_Un.Offset = (-918); + MyCaos.a6 =(ULONG) DOSBase; + return((struct LocalVar *)PPCCallOS(&MyCaos)); + } + + #define Flush(fh) _Flush(DOS_BASE_NAME, fh) + + static __inline LONG + _Flush(void *DOSBase, BPTR fh) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.caos_Un.Offset = (-360); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Format(filesystem, volumename, dostype) _Format(DOS_BASE_NAME, filesystem, volumename, dostype) + + static __inline BOOL + _Format(void *DOSBase, STRPTR filesystem, STRPTR volumename, unsigned long dostype) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) filesystem; + MyCaos.d2 =(ULONG) volumename; + MyCaos.d3 =(ULONG) dostype; + MyCaos.caos_Un.Offset = (-714); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define FreeArgs(args) _FreeArgs(DOS_BASE_NAME, args) + + static __inline void + _FreeArgs(void *DOSBase, struct RDArgs *args) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) args; + MyCaos.caos_Un.Offset = (-858); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define FreeDeviceProc(dp) _FreeDeviceProc(DOS_BASE_NAME, dp) + + static __inline void + _FreeDeviceProc(void *DOSBase, struct DevProc *dp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dp; + MyCaos.caos_Un.Offset = (-648); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define FreeDosEntry(dlist) _FreeDosEntry(DOS_BASE_NAME, dlist) + + static __inline void + _FreeDosEntry(void *DOSBase, struct DosList *dlist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dlist; + MyCaos.caos_Un.Offset = (-702); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define FreeDosObject(type, ptr) _FreeDosObject(DOS_BASE_NAME, type, ptr) + + static __inline void + _FreeDosObject(void *DOSBase, unsigned long type, APTR ptr) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) type; + MyCaos.d2 =(ULONG) ptr; + MyCaos.caos_Un.Offset = (-234); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define GetArgStr() _GetArgStr(DOS_BASE_NAME) + + static __inline STRPTR + _GetArgStr(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-534); + MyCaos.a6 =(ULONG) DOSBase; + return((STRPTR)PPCCallOS(&MyCaos)); + } + + #define GetConsoleTask() _GetConsoleTask(DOS_BASE_NAME) + + static __inline struct MsgPort * + _GetConsoleTask(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-510); + MyCaos.a6 =(ULONG) DOSBase; + return((struct MsgPort *)PPCCallOS(&MyCaos)); + } + + #define GetCurrentDirName(buf, len) _GetCurrentDirName(DOS_BASE_NAME, buf, len) + + static __inline BOOL + _GetCurrentDirName(void *DOSBase, STRPTR buf, long len) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) buf; + MyCaos.d2 =(ULONG) len; + MyCaos.caos_Un.Offset = (-564); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define GetDeviceProc(name, dp) _GetDeviceProc(DOS_BASE_NAME, name, dp) + + static __inline struct DevProc * + _GetDeviceProc(void *DOSBase, STRPTR name, struct DevProc *dp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) dp; + MyCaos.caos_Un.Offset = (-642); + MyCaos.a6 =(ULONG) DOSBase; + return((struct DevProc *)PPCCallOS(&MyCaos)); + } + + #define GetFileSysTask() _GetFileSysTask(DOS_BASE_NAME) + + static __inline struct MsgPort * + _GetFileSysTask(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-522); + MyCaos.a6 =(ULONG) DOSBase; + return((struct MsgPort *)PPCCallOS(&MyCaos)); + } + + #define GetProgramDir() _GetProgramDir(DOS_BASE_NAME) + + static __inline BPTR + _GetProgramDir(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-600); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define GetProgramName(buf, len) _GetProgramName(DOS_BASE_NAME, buf, len) + + static __inline BOOL + _GetProgramName(void *DOSBase, STRPTR buf, long len) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) buf; + MyCaos.d2 =(ULONG) len; + MyCaos.caos_Un.Offset = (-576); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define GetPrompt(buf, len) _GetPrompt(DOS_BASE_NAME, buf, len) + + static __inline BOOL + _GetPrompt(void *DOSBase, STRPTR buf, long len) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) buf; + MyCaos.d2 =(ULONG) len; + MyCaos.caos_Un.Offset = (-588); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define GetVar(name, buffer, size, flags) _GetVar(DOS_BASE_NAME, name, buffer, size, flags) + + static __inline LONG + _GetVar(void *DOSBase, STRPTR name, STRPTR buffer, long size, long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) buffer; + MyCaos.d3 =(ULONG) size; + MyCaos.d4 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-906); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Info(lock, parameterBlock) _Info(DOS_BASE_NAME, lock, parameterBlock) + + static __inline LONG + _Info(void *DOSBase, BPTR lock, struct InfoData *parameterBlock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.d2 =(ULONG) parameterBlock; + MyCaos.caos_Un.Offset = (-114); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Inhibit(name, onoff) _Inhibit(DOS_BASE_NAME, name, onoff) + + static __inline LONG + _Inhibit(void *DOSBase, STRPTR name, long onoff) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) onoff; + MyCaos.caos_Un.Offset = (-726); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Input() _Input(DOS_BASE_NAME) + + static __inline BPTR + _Input(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define InternalLoadSeg(fh, table, funcarray, stack) _InternalLoadSeg(DOS_BASE_NAME, fh, table, funcarray, stack) + + static __inline BPTR + _InternalLoadSeg(void *DOSBase, BPTR fh, BPTR table, LONG *funcarray, LONG *stack) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) fh; + MyCaos.a0 =(ULONG) table; + MyCaos.a1 =(ULONG) funcarray; + MyCaos.a2 =(ULONG) stack; + MyCaos.caos_Un.Offset = (-756); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define InternalUnLoadSeg(seglist, freefunc) _InternalUnLoadSeg(DOS_BASE_NAME, seglist, freefunc) + + static __inline BOOL + _InternalUnLoadSeg(void *DOSBase, BPTR seglist, void (*freefunc)()) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) seglist; + MyCaos.a1 =(ULONG) freefunc; + MyCaos.caos_Un.Offset = (-762); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define IoErr() _IoErr(DOS_BASE_NAME) + + static __inline LONG + _IoErr(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-132); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define IsFileSystem(name) _IsFileSystem(DOS_BASE_NAME, name) + + static __inline BOOL + _IsFileSystem(void *DOSBase, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-708); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define IsInteractive(file) _IsInteractive(DOS_BASE_NAME, file) + + static __inline LONG + _IsInteractive(void *DOSBase, BPTR file) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) file; + MyCaos.caos_Un.Offset = (-216); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define LoadSeg(name) _LoadSeg(DOS_BASE_NAME, name) + + static __inline BPTR + _LoadSeg(void *DOSBase, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-150); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define Lock(name, type) _Lock(DOS_BASE_NAME, name, type) + + static __inline BPTR + _Lock(void *DOSBase, STRPTR name, long type) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) type; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define LockDosList(flags) _LockDosList(DOS_BASE_NAME, flags) + + static __inline struct DosList * + _LockDosList(void *DOSBase, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-654); + MyCaos.a6 =(ULONG) DOSBase; + return((struct DosList *)PPCCallOS(&MyCaos)); + } + + #define LockRecord(fh, offset, length, mode, timeout) _LockRecord(DOS_BASE_NAME, fh, offset, length, mode, timeout) + + static __inline BOOL + _LockRecord(void *DOSBase, BPTR fh, unsigned long offset, unsigned long length, unsigned long mode, unsigned long timeout) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) offset; + MyCaos.d3 =(ULONG) length; + MyCaos.d4 =(ULONG) mode; + MyCaos.d5 =(ULONG) timeout; + MyCaos.caos_Un.Offset = (-270); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define LockRecords(recArray, timeout) _LockRecords(DOS_BASE_NAME, recArray, timeout) + + static __inline BOOL + _LockRecords(void *DOSBase, struct RecordLock *recArray, unsigned long timeout) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) recArray; + MyCaos.d2 =(ULONG) timeout; + MyCaos.caos_Un.Offset = (-276); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define MakeDosEntry(name, type) _MakeDosEntry(DOS_BASE_NAME, name, type) + + static __inline struct DosList * + _MakeDosEntry(void *DOSBase, STRPTR name, long type) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) type; + MyCaos.caos_Un.Offset = (-696); + MyCaos.a6 =(ULONG) DOSBase; + return((struct DosList *)PPCCallOS(&MyCaos)); + } + + #define MakeLink(name, dest, soft) _MakeLink(DOS_BASE_NAME, name, dest, soft) + + static __inline LONG + _MakeLink(void *DOSBase, STRPTR name, long dest, long soft) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) dest; + MyCaos.d3 =(ULONG) soft; + MyCaos.caos_Un.Offset = (-444); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define MatchEnd(anchor) _MatchEnd(DOS_BASE_NAME, anchor) + + static __inline void + _MatchEnd(void *DOSBase, struct AnchorPath *anchor) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) anchor; + MyCaos.caos_Un.Offset = (-834); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define MatchFirst(pat, anchor) _MatchFirst(DOS_BASE_NAME, pat, anchor) + + static __inline LONG + _MatchFirst(void *DOSBase, STRPTR pat, struct AnchorPath *anchor) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) pat; + MyCaos.d2 =(ULONG) anchor; + MyCaos.caos_Un.Offset = (-822); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define MatchNext(anchor) _MatchNext(DOS_BASE_NAME, anchor) + + static __inline LONG + _MatchNext(void *DOSBase, struct AnchorPath *anchor) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) anchor; + MyCaos.caos_Un.Offset = (-828); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define MatchPattern(pat, str) _MatchPattern(DOS_BASE_NAME, pat, str) + + static __inline BOOL + _MatchPattern(void *DOSBase, STRPTR pat, STRPTR str) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) pat; + MyCaos.d2 =(ULONG) str; + MyCaos.caos_Un.Offset = (-846); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define MatchPatternNoCase(pat, str) _MatchPatternNoCase(DOS_BASE_NAME, pat, str) + + static __inline BOOL + _MatchPatternNoCase(void *DOSBase, STRPTR pat, STRPTR str) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) pat; + MyCaos.d2 =(ULONG) str; + MyCaos.caos_Un.Offset = (-972); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define MaxCli() _MaxCli(DOS_BASE_NAME) + + static __inline ULONG + _MaxCli(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-552); + MyCaos.a6 =(ULONG) DOSBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define NameFromFH(fh, buffer, len) _NameFromFH(DOS_BASE_NAME, fh, buffer, len) + + static __inline LONG + _NameFromFH(void *DOSBase, BPTR fh, STRPTR buffer, long len) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) buffer; + MyCaos.d3 =(ULONG) len; + MyCaos.caos_Un.Offset = (-408); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define NameFromLock(lock, buffer, len) _NameFromLock(DOS_BASE_NAME, lock, buffer, len) + + static __inline LONG + _NameFromLock(void *DOSBase, BPTR lock, STRPTR buffer, long len) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.d2 =(ULONG) buffer; + MyCaos.d3 =(ULONG) len; + MyCaos.caos_Un.Offset = (-402); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define NewLoadSeg(file, tags) _NewLoadSeg(DOS_BASE_NAME, file, tags) + + static __inline BPTR + _NewLoadSeg(void *DOSBase, STRPTR file, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) file; + MyCaos.d2 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-768); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define NewLoadSegTagList(a0, a1) NewLoadSeg ((a0), (a1)) + + #ifndef NO_PPCINLINE_STDARG + #define NewLoadSegTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; NewLoadSeg((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define NextDosEntry(dlist, flags) _NextDosEntry(DOS_BASE_NAME, dlist, flags) + + static __inline struct DosList * + _NextDosEntry(void *DOSBase, struct DosList *dlist, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dlist; + MyCaos.d2 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-690); + MyCaos.a6 =(ULONG) DOSBase; + return((struct DosList *)PPCCallOS(&MyCaos)); + } + + #define Open(name, accessMode) _Open(DOS_BASE_NAME, name, accessMode) + + static __inline BPTR + _Open(void *DOSBase, STRPTR name, long accessMode) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) accessMode; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define OpenFromLock(lock) _OpenFromLock(DOS_BASE_NAME, lock) + + static __inline BPTR + _OpenFromLock(void *DOSBase, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-378); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define Output() _Output(DOS_BASE_NAME) + + static __inline BPTR + _Output(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-60); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define ParentDir(lock) _ParentDir(DOS_BASE_NAME, lock) + + static __inline BPTR + _ParentDir(void *DOSBase, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-210); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define ParentOfFH(fh) _ParentOfFH(DOS_BASE_NAME, fh) + + static __inline BPTR + _ParentOfFH(void *DOSBase, BPTR fh) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.caos_Un.Offset = (-384); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define ParsePattern(pat, buf, buflen) _ParsePattern(DOS_BASE_NAME, pat, buf, buflen) + + static __inline LONG + _ParsePattern(void *DOSBase, STRPTR pat, STRPTR buf, long buflen) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) pat; + MyCaos.d2 =(ULONG) buf; + MyCaos.d3 =(ULONG) buflen; + MyCaos.caos_Un.Offset = (-840); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define ParsePatternNoCase(pat, buf, buflen) _ParsePatternNoCase(DOS_BASE_NAME, pat, buf, buflen) + + static __inline LONG + _ParsePatternNoCase(void *DOSBase, STRPTR pat, STRPTR buf, long buflen) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) pat; + MyCaos.d2 =(ULONG) buf; + MyCaos.d3 =(ULONG) buflen; + MyCaos.caos_Un.Offset = (-966); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define PathPart(path) _PathPart(DOS_BASE_NAME, path) + + static __inline STRPTR + _PathPart(void *DOSBase, STRPTR path) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) path; + MyCaos.caos_Un.Offset = (-876); + MyCaos.a6 =(ULONG) DOSBase; + return((STRPTR)PPCCallOS(&MyCaos)); + } + + #define PrintFault(code, header) _PrintFault(DOS_BASE_NAME, code, header) + + static __inline BOOL + _PrintFault(void *DOSBase, long code, STRPTR header) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) code; + MyCaos.d2 =(ULONG) header; + MyCaos.caos_Un.Offset = (-474); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define PutStr(str) _PutStr(DOS_BASE_NAME, str) + + static __inline LONG + _PutStr(void *DOSBase, STRPTR str) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) str; + MyCaos.caos_Un.Offset = (-948); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Read(file, buffer, length) _Read(DOS_BASE_NAME, file, buffer, length) + + static __inline LONG + _Read(void *DOSBase, BPTR file, APTR buffer, long length) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) file; + MyCaos.d2 =(ULONG) buffer; + MyCaos.d3 =(ULONG) length; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define ReadArgs(arg_template, array, args) _ReadArgs(DOS_BASE_NAME, arg_template, array, args) + + static __inline struct RDArgs * + _ReadArgs(void *DOSBase, STRPTR arg_template, LONG *array, struct RDArgs *args) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) arg_template; + MyCaos.d2 =(ULONG) array; + MyCaos.d3 =(ULONG) args; + MyCaos.caos_Un.Offset = (-798); + MyCaos.a6 =(ULONG) DOSBase; + return((struct RDArgs *)PPCCallOS(&MyCaos)); + } + + #define ReadItem(name, maxchars, cSource) _ReadItem(DOS_BASE_NAME, name, maxchars, cSource) + + static __inline LONG + _ReadItem(void *DOSBase, STRPTR name, long maxchars, struct CSource *cSource) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) maxchars; + MyCaos.d3 =(ULONG) cSource; + MyCaos.caos_Un.Offset = (-810); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define ReadLink(port, lock, path, buffer, size) _ReadLink(DOS_BASE_NAME, port, lock, path, buffer, size) + + static __inline LONG + _ReadLink(void *DOSBase, struct MsgPort *port, BPTR lock, STRPTR path, STRPTR buffer, unsigned long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) port; + MyCaos.d2 =(ULONG) lock; + MyCaos.d3 =(ULONG) path; + MyCaos.d4 =(ULONG) buffer; + MyCaos.d5 =(ULONG) size; + MyCaos.caos_Un.Offset = (-438); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Relabel(drive, newname) _Relabel(DOS_BASE_NAME, drive, newname) + + static __inline LONG + _Relabel(void *DOSBase, STRPTR drive, STRPTR newname) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) drive; + MyCaos.d2 =(ULONG) newname; + MyCaos.caos_Un.Offset = (-720); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define RemAssignList(name, lock) _RemAssignList(DOS_BASE_NAME, name, lock) + + static __inline LONG + _RemAssignList(void *DOSBase, STRPTR name, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-636); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define RemDosEntry(dlist) _RemDosEntry(DOS_BASE_NAME, dlist) + + static __inline BOOL + _RemDosEntry(void *DOSBase, struct DosList *dlist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dlist; + MyCaos.caos_Un.Offset = (-672); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define RemSegment(seg) _RemSegment(DOS_BASE_NAME, seg) + + static __inline LONG + _RemSegment(void *DOSBase, struct Segment *seg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) seg; + MyCaos.caos_Un.Offset = (-786); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Rename(oldName, newName) _Rename(DOS_BASE_NAME, oldName, newName) + + static __inline LONG + _Rename(void *DOSBase, STRPTR oldName, STRPTR newName) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) oldName; + MyCaos.d2 =(ULONG) newName; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define ReplyPkt(dp, res1, res2) _ReplyPkt(DOS_BASE_NAME, dp, res1, res2) + + static __inline void + _ReplyPkt(void *DOSBase, struct DosPacket *dp, long res1, long res2) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dp; + MyCaos.d2 =(ULONG) res1; + MyCaos.d3 =(ULONG) res2; + MyCaos.caos_Un.Offset = (-258); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define RunCommand(seg, stack, paramptr, paramlen) _RunCommand(DOS_BASE_NAME, seg, stack, paramptr, paramlen) + + static __inline LONG + _RunCommand(void *DOSBase, BPTR seg, long stack, STRPTR paramptr, long paramlen) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) seg; + MyCaos.d2 =(ULONG) stack; + MyCaos.d3 =(ULONG) paramptr; + MyCaos.d4 =(ULONG) paramlen; + MyCaos.caos_Un.Offset = (-504); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SameDevice(lock1, lock2) _SameDevice(DOS_BASE_NAME, lock1, lock2) + + static __inline BOOL + _SameDevice(void *DOSBase, BPTR lock1, BPTR lock2) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock1; + MyCaos.d2 =(ULONG) lock2; + MyCaos.caos_Un.Offset = (-984); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define SameLock(lock1, lock2) _SameLock(DOS_BASE_NAME, lock1, lock2) + + static __inline LONG + _SameLock(void *DOSBase, BPTR lock1, BPTR lock2) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock1; + MyCaos.d2 =(ULONG) lock2; + MyCaos.caos_Un.Offset = (-420); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Seek(file, position, offset) _Seek(DOS_BASE_NAME, file, position, offset) + + static __inline LONG + _Seek(void *DOSBase, BPTR file, long position, long offset) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) file; + MyCaos.d2 =(ULONG) position; + MyCaos.d3 =(ULONG) offset; + MyCaos.caos_Un.Offset = (-66); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SelectInput(fh) _SelectInput(DOS_BASE_NAME, fh) + + static __inline BPTR + _SelectInput(void *DOSBase, BPTR fh) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.caos_Un.Offset = (-294); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define SelectOutput(fh) _SelectOutput(DOS_BASE_NAME, fh) + + static __inline BPTR + _SelectOutput(void *DOSBase, BPTR fh) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.caos_Un.Offset = (-300); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define SendPkt(dp, port, replyport) _SendPkt(DOS_BASE_NAME, dp, port, replyport) + + static __inline void + _SendPkt(void *DOSBase, struct DosPacket *dp, struct MsgPort *port, struct MsgPort *replyport) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) dp; + MyCaos.d2 =(ULONG) port; + MyCaos.d3 =(ULONG) replyport; + MyCaos.caos_Un.Offset = (-246); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define SetArgStr(string) _SetArgStr(DOS_BASE_NAME, string) + + static __inline BOOL + _SetArgStr(void *DOSBase, STRPTR string) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) string; + MyCaos.caos_Un.Offset = (-540); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define SetComment(name, comment) _SetComment(DOS_BASE_NAME, name, comment) + + static __inline LONG + _SetComment(void *DOSBase, STRPTR name, STRPTR comment) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) comment; + MyCaos.caos_Un.Offset = (-180); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetConsoleTask(task) _SetConsoleTask(DOS_BASE_NAME, task) + + static __inline struct MsgPort * + _SetConsoleTask(void *DOSBase, struct MsgPort *task) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) task; + MyCaos.caos_Un.Offset = (-516); + MyCaos.a6 =(ULONG) DOSBase; + return((struct MsgPort *)PPCCallOS(&MyCaos)); + } + + #define SetCurrentDirName(name) _SetCurrentDirName(DOS_BASE_NAME, name) + + static __inline BOOL + _SetCurrentDirName(void *DOSBase, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-558); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define SetFileDate(name, date) _SetFileDate(DOS_BASE_NAME, name, date) + + static __inline LONG + _SetFileDate(void *DOSBase, STRPTR name, struct DateStamp *date) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) date; + MyCaos.caos_Un.Offset = (-396); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetFileSize(fh, pos, mode) _SetFileSize(DOS_BASE_NAME, fh, pos, mode) + + static __inline LONG + _SetFileSize(void *DOSBase, BPTR fh, long pos, long mode) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) pos; + MyCaos.d3 =(ULONG) mode; + MyCaos.caos_Un.Offset = (-456); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetFileSysTask(task) _SetFileSysTask(DOS_BASE_NAME, task) + + static __inline struct MsgPort * + _SetFileSysTask(void *DOSBase, struct MsgPort *task) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) task; + MyCaos.caos_Un.Offset = (-528); + MyCaos.a6 =(ULONG) DOSBase; + return((struct MsgPort *)PPCCallOS(&MyCaos)); + } + + #define SetIoErr(result) _SetIoErr(DOS_BASE_NAME, result) + + static __inline LONG + _SetIoErr(void *DOSBase, long result) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) result; + MyCaos.caos_Un.Offset = (-462); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetMode(fh, mode) _SetMode(DOS_BASE_NAME, fh, mode) + + static __inline LONG + _SetMode(void *DOSBase, BPTR fh, long mode) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) mode; + MyCaos.caos_Un.Offset = (-426); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetOwner(name, owner_info) _SetOwner(DOS_BASE_NAME, name, owner_info) + + static __inline BOOL + _SetOwner(void *DOSBase, STRPTR name, long owner_info) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) owner_info; + MyCaos.caos_Un.Offset = (-996); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define SetProgramDir(lock) _SetProgramDir(DOS_BASE_NAME, lock) + + static __inline BPTR + _SetProgramDir(void *DOSBase, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-594); + MyCaos.a6 =(ULONG) DOSBase; + return((BPTR)PPCCallOS(&MyCaos)); + } + + #define SetProgramName(name) _SetProgramName(DOS_BASE_NAME, name) + + static __inline BOOL + _SetProgramName(void *DOSBase, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-570); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define SetPrompt(name) _SetPrompt(DOS_BASE_NAME, name) + + static __inline BOOL + _SetPrompt(void *DOSBase, STRPTR name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-582); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define SetProtection(name, protect) _SetProtection(DOS_BASE_NAME, name, protect) + + static __inline LONG + _SetProtection(void *DOSBase, STRPTR name, long protect) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) protect; + MyCaos.caos_Un.Offset = (-186); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetVBuf(fh, buff, type, size) _SetVBuf(DOS_BASE_NAME, fh, buff, type, size) + + static __inline LONG + _SetVBuf(void *DOSBase, BPTR fh, STRPTR buff, long type, long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) buff; + MyCaos.d3 =(ULONG) type; + MyCaos.d4 =(ULONG) size; + MyCaos.caos_Un.Offset = (-366); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SetVar(name, buffer, size, flags) _SetVar(DOS_BASE_NAME, name, buffer, size, flags) + + static __inline BOOL + _SetVar(void *DOSBase, STRPTR name, STRPTR buffer, long size, long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) buffer; + MyCaos.d3 =(ULONG) size; + MyCaos.d4 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-900); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define SplitName(name, seperator, buf, oldpos, size) _SplitName(DOS_BASE_NAME, name, seperator, buf, oldpos, size) + + static __inline WORD + _SplitName(void *DOSBase, STRPTR name, unsigned long seperator, STRPTR buf, long oldpos, long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) name; + MyCaos.d2 =(ULONG) seperator; + MyCaos.d3 =(ULONG) buf; + MyCaos.d4 =(ULONG) oldpos; + MyCaos.d5 =(ULONG) size; + MyCaos.caos_Un.Offset = (-414); + MyCaos.a6 =(ULONG) DOSBase; + return((WORD)PPCCallOS(&MyCaos)); + } + + #define StartNotify(notify) _StartNotify(DOS_BASE_NAME, notify) + + static __inline BOOL + _StartNotify(void *DOSBase, struct NotifyRequest *notify) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) notify; + MyCaos.caos_Un.Offset = (-888); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define StrToDate(datetime) _StrToDate(DOS_BASE_NAME, datetime) + + static __inline LONG + _StrToDate(void *DOSBase, struct DateTime *datetime) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) datetime; + MyCaos.caos_Un.Offset = (-750); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define StrToLong(string, value) _StrToLong(DOS_BASE_NAME, string, value) + + static __inline LONG + _StrToLong(void *DOSBase, STRPTR string, LONG *value) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) string; + MyCaos.d2 =(ULONG) value; + MyCaos.caos_Un.Offset = (-816); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define SystemTagList(command, tags) _SystemTagList(DOS_BASE_NAME, command, tags) + + static __inline LONG + _SystemTagList(void *DOSBase, STRPTR command, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) command; + MyCaos.d2 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-606); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define System(a0, a1) SystemTagList ((a0), (a1)) + + #ifndef NO_PPCINLINE_STDARG + #define SystemTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; SystemTagList((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define UnGetC(fh, character) _UnGetC(DOS_BASE_NAME, fh, character) + + static __inline LONG + _UnGetC(void *DOSBase, BPTR fh, long character) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) character; + MyCaos.caos_Un.Offset = (-318); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define UnLoadSeg(seglist) _UnLoadSeg(DOS_BASE_NAME, seglist) + + static __inline void + _UnLoadSeg(void *DOSBase, BPTR seglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) seglist; + MyCaos.caos_Un.Offset = (-156); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define UnLock(lock) _UnLock(DOS_BASE_NAME, lock) + + static __inline void + _UnLock(void *DOSBase, BPTR lock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) lock; + MyCaos.caos_Un.Offset = (-90); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define UnLockDosList(flags) _UnLockDosList(DOS_BASE_NAME, flags) + + static __inline void + _UnLockDosList(void *DOSBase, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-660); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #define UnLockRecord(fh, offset, length) _UnLockRecord(DOS_BASE_NAME, fh, offset, length) + + static __inline BOOL + _UnLockRecord(void *DOSBase, BPTR fh, unsigned long offset, unsigned long length) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) offset; + MyCaos.d3 =(ULONG) length; + MyCaos.caos_Un.Offset = (-282); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define UnLockRecords(recArray) _UnLockRecords(DOS_BASE_NAME, recArray) + + static __inline BOOL + _UnLockRecords(void *DOSBase, struct RecordLock *recArray) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) recArray; + MyCaos.caos_Un.Offset = (-288); + MyCaos.a6 =(ULONG) DOSBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define VFPrintf(fh, format, argarray) _VFPrintf(DOS_BASE_NAME, fh, format, argarray) + + static __inline LONG + _VFPrintf(void *DOSBase, BPTR fh, STRPTR format, APTR argarray) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) format; + MyCaos.d3 =(ULONG) argarray; + MyCaos.caos_Un.Offset = (-354); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define FPrintf(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; VFPrintf((a0), (a1), (APTR)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define VFWritef(fh, format, argarray) _VFWritef(DOS_BASE_NAME, fh, format, argarray) + + static __inline void + _VFWritef(void *DOSBase, BPTR fh, STRPTR format, LONG *argarray) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) fh; + MyCaos.d2 =(ULONG) format; + MyCaos.d3 =(ULONG) argarray; + MyCaos.caos_Un.Offset = (-348); + MyCaos.a6 =(ULONG) DOSBase; + PPCCallOS(&MyCaos); + } + + #ifndef NO_PPCINLINE_STDARG + #define FWritef(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; VFWritef((a0), (a1), (LONG *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define VPrintf(format, argarray) _VPrintf(DOS_BASE_NAME, format, argarray) + + static __inline LONG + _VPrintf(void *DOSBase, STRPTR format, APTR argarray) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) format; + MyCaos.d2 =(ULONG) argarray; + MyCaos.caos_Un.Offset = (-954); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define Printf(a0, tags...) \ + ({ULONG _tags[] = { tags }; VPrintf((a0), (APTR)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define WaitForChar(file, timeout) _WaitForChar(DOS_BASE_NAME, file, timeout) + + static __inline LONG + _WaitForChar(void *DOSBase, BPTR file, long timeout) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) file; + MyCaos.d2 =(ULONG) timeout; + MyCaos.caos_Un.Offset = (-204); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define WaitPkt() _WaitPkt(DOS_BASE_NAME) + + static __inline struct DosPacket * + _WaitPkt(void *DOSBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-252); + MyCaos.a6 =(ULONG) DOSBase; + return((struct DosPacket *)PPCCallOS(&MyCaos)); + } + + #define Write(file, buffer, length) _Write(DOS_BASE_NAME, file, buffer, length) + + static __inline LONG + _Write(void *DOSBase, BPTR file, APTR buffer, long length) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) file; + MyCaos.d2 =(ULONG) buffer; + MyCaos.d3 =(ULONG) length; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define WriteChars(buf, buflen) _WriteChars(DOS_BASE_NAME, buf, buflen) + + static __inline LONG + _WriteChars(void *DOSBase, STRPTR buf, unsigned long buflen) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) buf; + MyCaos.d2 =(ULONG) buflen; + MyCaos.caos_Un.Offset = (-942); + MyCaos.a6 =(ULONG) DOSBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_DOS_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/dtclass_pragmas.h includenew/powerup/ppcpragmas/dtclass_pragmas.h *** include_h/powerup/ppcpragmas/dtclass_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/dtclass_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,45 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_DTCLASS_H + #define _PPCPRAGMA_DTCLASS_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__DTCLASS_H + #include <powerup/ppcinline/dtclass.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef DTCLASS_BASE_NAME + #define DTCLASS_BASE_NAME DTClassBase + #endif /* !DTCLASS_BASE_NAME */ + + #define ObtainEngine() _ObtainEngine(DTCLASS_BASE_NAME) + + static __inline Class * + _ObtainEngine(void *DTClassBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) DTClassBase; + return((Class *)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_DTCLASS_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/exec_pragmas.h includenew/powerup/ppcpragmas/exec_pragmas.h *** include_h/powerup/ppcpragmas/exec_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/exec_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,2208 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_EXEC_H + #define _PPCPRAGMA_EXEC_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__EXEC_H + #include <powerup/ppcinline/exec.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef EXEC_BASE_NAME + #define EXEC_BASE_NAME SysBase + #endif /* !EXEC_BASE_NAME */ + + #define AbortIO(ioRequest) _AbortIO(EXEC_BASE_NAME, ioRequest) + + static __inline void + _AbortIO(void *SysBase, struct IORequest *ioRequest) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) ioRequest; + MyCaos.caos_Un.Offset = (-480); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddDevice(device) _AddDevice(EXEC_BASE_NAME, device) + + static __inline void + _AddDevice(void *SysBase, struct Device *device) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) device; + MyCaos.caos_Un.Offset = (-432); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddHead(list, node) _AddHead(EXEC_BASE_NAME, list, node) + + static __inline void + _AddHead(void *SysBase, struct List *list, struct Node *node) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) list; + MyCaos.a1 =(ULONG) node; + MyCaos.caos_Un.Offset = (-240); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddIntServer(intNumber, interrupt) _AddIntServer(EXEC_BASE_NAME, intNumber, interrupt) + + static __inline void + _AddIntServer(void *SysBase, long intNumber, struct Interrupt *interrupt) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) intNumber; + MyCaos.a1 =(ULONG) interrupt; + MyCaos.caos_Un.Offset = (-168); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddLibrary(library) _AddLibrary(EXEC_BASE_NAME, library) + + static __inline void + _AddLibrary(void *SysBase, struct Library *library) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) library; + MyCaos.caos_Un.Offset = (-396); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddMemHandler(memhand) _AddMemHandler(EXEC_BASE_NAME, memhand) + + static __inline void + _AddMemHandler(void *SysBase, struct Interrupt *memhand) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) memhand; + MyCaos.caos_Un.Offset = (-774); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddMemList(size, attributes, pri, base, name) _AddMemList(EXEC_BASE_NAME, size, attributes, pri, base, name) + + static __inline void + _AddMemList(void *SysBase, unsigned long size, unsigned long attributes, long pri, APTR base, UBYTE *name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) size; + MyCaos.d1 =(ULONG) attributes; + MyCaos.d2 =(ULONG) pri; + MyCaos.a0 =(ULONG) base; + MyCaos.a1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-618); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddPort(port) _AddPort(EXEC_BASE_NAME, port) + + static __inline void + _AddPort(void *SysBase, struct MsgPort *port) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) port; + MyCaos.caos_Un.Offset = (-354); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddResource(resource) _AddResource(EXEC_BASE_NAME, resource) + + static __inline void + _AddResource(void *SysBase, APTR resource) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) resource; + MyCaos.caos_Un.Offset = (-486); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddSemaphore(sigSem) _AddSemaphore(EXEC_BASE_NAME, sigSem) + + static __inline void + _AddSemaphore(void *SysBase, struct SignalSemaphore *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-600); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddTail(list, node) _AddTail(EXEC_BASE_NAME, list, node) + + static __inline void + _AddTail(void *SysBase, struct List *list, struct Node *node) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) list; + MyCaos.a1 =(ULONG) node; + MyCaos.caos_Un.Offset = (-246); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AddTask(task, initPC, finalPC) _AddTask(EXEC_BASE_NAME, task, initPC, finalPC) + + static __inline APTR + _AddTask(void *SysBase, struct Task *task, APTR initPC, APTR finalPC) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) task; + MyCaos.a2 =(ULONG) initPC; + MyCaos.a3 =(ULONG) finalPC; + MyCaos.caos_Un.Offset = (-282); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define Alert(alertNum) _Alert(EXEC_BASE_NAME, alertNum) + + static __inline void + _Alert(void *SysBase, unsigned long alertNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d7 =(ULONG) alertNum; + MyCaos.caos_Un.Offset = (-108); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define AllocAbs(byteSize, location) _AllocAbs(EXEC_BASE_NAME, byteSize, location) + + static __inline APTR + _AllocAbs(void *SysBase, unsigned long byteSize, APTR location) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) byteSize; + MyCaos.a1 =(ULONG) location; + MyCaos.caos_Un.Offset = (-204); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define AllocEntry(entry) _AllocEntry(EXEC_BASE_NAME, entry) + + static __inline struct MemList * + _AllocEntry(void *SysBase, struct MemList *entry) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) entry; + MyCaos.caos_Un.Offset = (-222); + MyCaos.a6 =(ULONG) SysBase; + return((struct MemList *)PPCCallOS(&MyCaos)); + } + + #define AllocMem(byteSize, requirements) _AllocMem(EXEC_BASE_NAME, byteSize, requirements) + + static __inline APTR + _AllocMem(void *SysBase, unsigned long byteSize, unsigned long requirements) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) byteSize; + MyCaos.d1 =(ULONG) requirements; + MyCaos.caos_Un.Offset = (-198); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define AllocPooled(poolHeader, memSize) _AllocPooled(EXEC_BASE_NAME, poolHeader, memSize) + + static __inline APTR + _AllocPooled(void *SysBase, APTR poolHeader, unsigned long memSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) poolHeader; + MyCaos.d0 =(ULONG) memSize; + MyCaos.caos_Un.Offset = (-708); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define AllocSignal(signalNum) _AllocSignal(EXEC_BASE_NAME, signalNum) + + static __inline BYTE + _AllocSignal(void *SysBase, long signalNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) signalNum; + MyCaos.caos_Un.Offset = (-330); + MyCaos.a6 =(ULONG) SysBase; + return((BYTE)PPCCallOS(&MyCaos)); + } + + #define AllocTrap(trapNum) _AllocTrap(EXEC_BASE_NAME, trapNum) + + static __inline LONG + _AllocTrap(void *SysBase, long trapNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) trapNum; + MyCaos.caos_Un.Offset = (-342); + MyCaos.a6 =(ULONG) SysBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AllocVec(byteSize, requirements) _AllocVec(EXEC_BASE_NAME, byteSize, requirements) + + static __inline APTR + _AllocVec(void *SysBase, unsigned long byteSize, unsigned long requirements) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) byteSize; + MyCaos.d1 =(ULONG) requirements; + MyCaos.caos_Un.Offset = (-684); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define Allocate(freeList, byteSize) _Allocate(EXEC_BASE_NAME, freeList, byteSize) + + static __inline APTR + _Allocate(void *SysBase, struct MemHeader *freeList, unsigned long byteSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) freeList; + MyCaos.d0 =(ULONG) byteSize; + MyCaos.caos_Un.Offset = (-186); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define AttemptSemaphore(sigSem) _AttemptSemaphore(EXEC_BASE_NAME, sigSem) + + static __inline ULONG + _AttemptSemaphore(void *SysBase, struct SignalSemaphore *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-576); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define AttemptSemaphoreShared(sigSem) _AttemptSemaphoreShared(EXEC_BASE_NAME, sigSem) + + static __inline ULONG + _AttemptSemaphoreShared(void *SysBase, struct SignalSemaphore *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-720); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define AvailMem(requirements) _AvailMem(EXEC_BASE_NAME, requirements) + + static __inline ULONG + _AvailMem(void *SysBase, unsigned long requirements) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d1 =(ULONG) requirements; + MyCaos.caos_Un.Offset = (-216); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define CacheClearE(address, length, caches) _CacheClearE(EXEC_BASE_NAME, address, length, caches) + + static __inline void + _CacheClearE(void *SysBase, APTR address, unsigned long length, unsigned long caches) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) address; + MyCaos.d0 =(ULONG) length; + MyCaos.d1 =(ULONG) caches; + MyCaos.caos_Un.Offset = (-642); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CacheClearU() _CacheClearU(EXEC_BASE_NAME) + + static __inline void + _CacheClearU(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-636); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CacheControl(cacheBits, cacheMask) _CacheControl(EXEC_BASE_NAME, cacheBits, cacheMask) + + static __inline ULONG + _CacheControl(void *SysBase, unsigned long cacheBits, unsigned long cacheMask) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) cacheBits; + MyCaos.d1 =(ULONG) cacheMask; + MyCaos.caos_Un.Offset = (-648); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define CachePostDMA(address, length, flags) _CachePostDMA(EXEC_BASE_NAME, address, length, flags) + + static __inline void + _CachePostDMA(void *SysBase, APTR address, ULONG *length, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) address; + MyCaos.a1 =(ULONG) length; + MyCaos.d0 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-768); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CachePreDMA(address, length, flags) _CachePreDMA(EXEC_BASE_NAME, address, length, flags) + + static __inline APTR + _CachePreDMA(void *SysBase, APTR address, ULONG *length, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) address; + MyCaos.a1 =(ULONG) length; + MyCaos.d0 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-762); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define Cause(interrupt) _Cause(EXEC_BASE_NAME, interrupt) + + static __inline void + _Cause(void *SysBase, struct Interrupt *interrupt) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) interrupt; + MyCaos.caos_Un.Offset = (-180); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CheckIO(ioRequest) _CheckIO(EXEC_BASE_NAME, ioRequest) + + static __inline struct IORequest * + _CheckIO(void *SysBase, struct IORequest *ioRequest) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) ioRequest; + MyCaos.caos_Un.Offset = (-468); + MyCaos.a6 =(ULONG) SysBase; + return((struct IORequest *)PPCCallOS(&MyCaos)); + } + + #define ChildFree(tid) _ChildFree(EXEC_BASE_NAME, tid) + + static __inline void + _ChildFree(void *SysBase, APTR tid) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) tid; + MyCaos.caos_Un.Offset = (-738); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define ChildOrphan(tid) _ChildOrphan(EXEC_BASE_NAME, tid) + + static __inline void + _ChildOrphan(void *SysBase, APTR tid) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) tid; + MyCaos.caos_Un.Offset = (-744); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define ChildStatus(tid) _ChildStatus(EXEC_BASE_NAME, tid) + + static __inline void + _ChildStatus(void *SysBase, APTR tid) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) tid; + MyCaos.caos_Un.Offset = (-750); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define ChildWait(tid) _ChildWait(EXEC_BASE_NAME, tid) + + static __inline void + _ChildWait(void *SysBase, APTR tid) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) tid; + MyCaos.caos_Un.Offset = (-756); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CloseDevice(ioRequest) _CloseDevice(EXEC_BASE_NAME, ioRequest) + + static __inline void + _CloseDevice(void *SysBase, struct IORequest *ioRequest) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) ioRequest; + MyCaos.caos_Un.Offset = (-450); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CloseLibrary(library) _CloseLibrary(EXEC_BASE_NAME, library) + + static __inline void + _CloseLibrary(void *SysBase, struct Library *library) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) library; + MyCaos.caos_Un.Offset = (-414); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define ColdReboot() _ColdReboot(EXEC_BASE_NAME) + + static __inline void + _ColdReboot(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-726); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CopyMem(source, dest, size) _CopyMem(EXEC_BASE_NAME, source, dest, size) + + static __inline void + _CopyMem(void *SysBase, APTR source, APTR dest, unsigned long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) source; + MyCaos.a1 =(ULONG) dest; + MyCaos.d0 =(ULONG) size; + MyCaos.caos_Un.Offset = (-624); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CopyMemQuick(source, dest, size) _CopyMemQuick(EXEC_BASE_NAME, source, dest, size) + + static __inline void + _CopyMemQuick(void *SysBase, APTR source, APTR dest, unsigned long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) source; + MyCaos.a1 =(ULONG) dest; + MyCaos.d0 =(ULONG) size; + MyCaos.caos_Un.Offset = (-630); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define CreateIORequest(port, size) _CreateIORequest(EXEC_BASE_NAME, port, size) + + static __inline APTR + _CreateIORequest(void *SysBase, struct MsgPort *port, unsigned long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) port; + MyCaos.d0 =(ULONG) size; + MyCaos.caos_Un.Offset = (-654); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define CreateMsgPort() _CreateMsgPort(EXEC_BASE_NAME) + + static __inline struct MsgPort * + _CreateMsgPort(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-666); + MyCaos.a6 =(ULONG) SysBase; + return((struct MsgPort *)PPCCallOS(&MyCaos)); + } + + #define CreatePool(requirements, puddleSize, threshSize) _CreatePool(EXEC_BASE_NAME, requirements, puddleSize, threshSize) + + static __inline APTR + _CreatePool(void *SysBase, unsigned long requirements, unsigned long puddleSize, unsigned long threshSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) requirements; + MyCaos.d1 =(ULONG) puddleSize; + MyCaos.d2 =(ULONG) threshSize; + MyCaos.caos_Un.Offset = (-696); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define Deallocate(freeList, memoryBlock, byteSize) _Deallocate(EXEC_BASE_NAME, freeList, memoryBlock, byteSize) + + static __inline void + _Deallocate(void *SysBase, struct MemHeader *freeList, APTR memoryBlock, unsigned long byteSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) freeList; + MyCaos.a1 =(ULONG) memoryBlock; + MyCaos.d0 =(ULONG) byteSize; + MyCaos.caos_Un.Offset = (-192); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define Debug(flags) _Debug(EXEC_BASE_NAME, flags) + + static __inline void + _Debug(void *SysBase, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-114); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define DeleteIORequest(iorequest) _DeleteIORequest(EXEC_BASE_NAME, iorequest) + + static __inline void + _DeleteIORequest(void *SysBase, APTR iorequest) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) iorequest; + MyCaos.caos_Un.Offset = (-660); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define DeleteMsgPort(port) _DeleteMsgPort(EXEC_BASE_NAME, port) + + static __inline void + _DeleteMsgPort(void *SysBase, struct MsgPort *port) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) port; + MyCaos.caos_Un.Offset = (-672); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define DeletePool(poolHeader) _DeletePool(EXEC_BASE_NAME, poolHeader) + + static __inline void + _DeletePool(void *SysBase, APTR poolHeader) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) poolHeader; + MyCaos.caos_Un.Offset = (-702); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define Disable() _Disable(EXEC_BASE_NAME) + + static __inline void + _Disable(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-120); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define DoIO(ioRequest) _DoIO(EXEC_BASE_NAME, ioRequest) + + static __inline BYTE + _DoIO(void *SysBase, struct IORequest *ioRequest) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) ioRequest; + MyCaos.caos_Un.Offset = (-456); + MyCaos.a6 =(ULONG) SysBase; + return((BYTE)PPCCallOS(&MyCaos)); + } + + #define Enable() _Enable(EXEC_BASE_NAME) + + static __inline void + _Enable(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-126); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define Enqueue(list, node) _Enqueue(EXEC_BASE_NAME, list, node) + + static __inline void + _Enqueue(void *SysBase, struct List *list, struct Node *node) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) list; + MyCaos.a1 =(ULONG) node; + MyCaos.caos_Un.Offset = (-270); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define FindName(list, name) _FindName(EXEC_BASE_NAME, list, name) + + static __inline struct Node * + _FindName(void *SysBase, struct List *list, UBYTE *name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) list; + MyCaos.a1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-276); + MyCaos.a6 =(ULONG) SysBase; + return((struct Node *)PPCCallOS(&MyCaos)); + } + + #define FindPort(name) _FindPort(EXEC_BASE_NAME, name) + + static __inline struct MsgPort * + _FindPort(void *SysBase, UBYTE *name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-390); + MyCaos.a6 =(ULONG) SysBase; + return((struct MsgPort *)PPCCallOS(&MyCaos)); + } + + #define FindResident(name) _FindResident(EXEC_BASE_NAME, name) + + static __inline struct Resident * + _FindResident(void *SysBase, UBYTE *name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) SysBase; + return((struct Resident *)PPCCallOS(&MyCaos)); + } + + #define FindSemaphore(sigSem) _FindSemaphore(EXEC_BASE_NAME, sigSem) + + static __inline struct SignalSemaphore * + _FindSemaphore(void *SysBase, UBYTE *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-594); + MyCaos.a6 =(ULONG) SysBase; + return((struct SignalSemaphore *)PPCCallOS(&MyCaos)); + } + + #define FindTask(name) _FindTask(EXEC_BASE_NAME, name) + + static __inline struct Task * + _FindTask(void *SysBase, UBYTE *name) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) name; + MyCaos.caos_Un.Offset = (-294); + MyCaos.a6 =(ULONG) SysBase; + return((struct Task *)PPCCallOS(&MyCaos)); + } + + #define Forbid() _Forbid(EXEC_BASE_NAME) + + static __inline void + _Forbid(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-132); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define FreeEntry(entry) _FreeEntry(EXEC_BASE_NAME, entry) + + static __inline void + _FreeEntry(void *SysBase, struct MemList *entry) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) entry; + MyCaos.caos_Un.Offset = (-228); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define FreeMem(memoryBlock, byteSize) _FreeMem(EXEC_BASE_NAME, memoryBlock, byteSize) + + static __inline void + _FreeMem(void *SysBase, APTR memoryBlock, unsigned long byteSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) memoryBlock; + MyCaos.d0 =(ULONG) byteSize; + MyCaos.caos_Un.Offset = (-210); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define FreePooled(poolHeader, memory, memSize) _FreePooled(EXEC_BASE_NAME, poolHeader, memory, memSize) + + static __inline void + _FreePooled(void *SysBase, APTR poolHeader, APTR memory, unsigned long memSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) poolHeader; + MyCaos.a1 =(ULONG) memory; + MyCaos.d0 =(ULONG) memSize; + MyCaos.caos_Un.Offset = (-714); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define FreeSignal(signalNum) _FreeSignal(EXEC_BASE_NAME, signalNum) + + static __inline void + _FreeSignal(void *SysBase, long signalNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) signalNum; + MyCaos.caos_Un.Offset = (-336); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define FreeTrap(trapNum) _FreeTrap(EXEC_BASE_NAME, trapNum) + + static __inline void + _FreeTrap(void *SysBase, long trapNum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) trapNum; + MyCaos.caos_Un.Offset = (-348); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define FreeVec(memoryBlock) _FreeVec(EXEC_BASE_NAME, memoryBlock) + + static __inline void + _FreeVec(void *SysBase, APTR memoryBlock) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) memoryBlock; + MyCaos.caos_Un.Offset = (-690); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define GetCC() _GetCC(EXEC_BASE_NAME) + + static __inline ULONG + _GetCC(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-528); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define GetMsg(port) _GetMsg(EXEC_BASE_NAME, port) + + static __inline struct Message * + _GetMsg(void *SysBase, struct MsgPort *port) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) port; + MyCaos.caos_Un.Offset = (-372); + MyCaos.a6 =(ULONG) SysBase; + return((struct Message *)PPCCallOS(&MyCaos)); + } + + #define InitCode(startClass, version) _InitCode(EXEC_BASE_NAME, startClass, version) + + static __inline void + _InitCode(void *SysBase, unsigned long startClass, unsigned long version) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) startClass; + MyCaos.d1 =(ULONG) version; + MyCaos.caos_Un.Offset = (-72); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define InitResident(resident, segList) _InitResident(EXEC_BASE_NAME, resident, segList) + + static __inline APTR + _InitResident(void *SysBase, struct Resident *resident, unsigned long segList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) resident; + MyCaos.d1 =(ULONG) segList; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define InitSemaphore(sigSem) _InitSemaphore(EXEC_BASE_NAME, sigSem) + + static __inline void + _InitSemaphore(void *SysBase, struct SignalSemaphore *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-558); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define InitStruct(initTable, memory, size) _InitStruct(EXEC_BASE_NAME, initTable, memory, size) + + static __inline void + _InitStruct(void *SysBase, APTR initTable, APTR memory, unsigned long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) initTable; + MyCaos.a2 =(ULONG) memory; + MyCaos.d0 =(ULONG) size; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define Insert(list, node, pred) _Insert(EXEC_BASE_NAME, list, node, pred) + + static __inline void + _Insert(void *SysBase, struct List *list, struct Node *node, struct Node *pred) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) list; + MyCaos.a1 =(ULONG) node; + MyCaos.a2 =(ULONG) pred; + MyCaos.caos_Un.Offset = (-234); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define MakeFunctions(target, functionArray, funcDispBase) _MakeFunctions(EXEC_BASE_NAME, target, functionArray, funcDispBase) + + static __inline void + _MakeFunctions(void *SysBase, APTR target, APTR functionArray, unsigned long funcDispBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) target; + MyCaos.a1 =(ULONG) functionArray; + MyCaos.a2 =(ULONG) funcDispBase; + MyCaos.caos_Un.Offset = (-90); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define MakeLibrary(funcInit, structInit, libInit, dataSize, segList) _MakeLibrary(EXEC_BASE_NAME, funcInit, structInit, libInit, dataSize, segList) + + static __inline struct Library * + _MakeLibrary(void *SysBase, APTR funcInit, APTR structInit, unsigned long (*libInit)(), unsigned long dataSize, unsigned long segList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) funcInit; + MyCaos.a1 =(ULONG) structInit; + MyCaos.a2 =(ULONG) libInit; + MyCaos.d0 =(ULONG) dataSize; + MyCaos.d1 =(ULONG) segList; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) SysBase; + return((struct Library *)PPCCallOS(&MyCaos)); + } + + #define ObtainQuickVector(interruptCode) _ObtainQuickVector(EXEC_BASE_NAME, interruptCode) + + static __inline ULONG + _ObtainQuickVector(void *SysBase, APTR interruptCode) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) interruptCode; + MyCaos.caos_Un.Offset = (-786); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define ObtainSemaphore(sigSem) _ObtainSemaphore(EXEC_BASE_NAME, sigSem) + + static __inline void + _ObtainSemaphore(void *SysBase, struct SignalSemaphore *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-564); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define ObtainSemaphoreList(sigSem) _ObtainSemaphoreList(EXEC_BASE_NAME, sigSem) + + static __inline void + _ObtainSemaphoreList(void *SysBase, struct List *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-582); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define ObtainSemaphoreShared(sigSem) _ObtainSemaphoreShared(EXEC_BASE_NAME, sigSem) + + static __inline void + _ObtainSemaphoreShared(void *SysBase, struct SignalSemaphore *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-678); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define OldOpenLibrary(libName) _OldOpenLibrary(EXEC_BASE_NAME, libName) + + static __inline struct Library * + _OldOpenLibrary(void *SysBase, UBYTE *libName) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) libName; + MyCaos.caos_Un.Offset = (-408); + MyCaos.a6 =(ULONG) SysBase; + return((struct Library *)PPCCallOS(&MyCaos)); + } + + #define OpenDevice(devName, unit, ioRequest, flags) _OpenDevice(EXEC_BASE_NAME, devName, unit, ioRequest, flags) + + static __inline BYTE + _OpenDevice(void *SysBase, UBYTE *devName, unsigned long unit, struct IORequest *ioRequest, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) devName; + MyCaos.d0 =(ULONG) unit; + MyCaos.a1 =(ULONG) ioRequest; + MyCaos.d1 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-444); + MyCaos.a6 =(ULONG) SysBase; + return((BYTE)PPCCallOS(&MyCaos)); + } + + #define OpenLibrary(libName, version) _OpenLibrary(EXEC_BASE_NAME, libName, version) + + static __inline struct Library * + _OpenLibrary(void *SysBase, UBYTE *libName, unsigned long version) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) libName; + MyCaos.d0 =(ULONG) version; + MyCaos.caos_Un.Offset = (-552); + MyCaos.a6 =(ULONG) SysBase; + return((struct Library *)PPCCallOS(&MyCaos)); + } + + #define OpenResource(resName) _OpenResource(EXEC_BASE_NAME, resName) + + static __inline APTR + _OpenResource(void *SysBase, UBYTE *resName) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) resName; + MyCaos.caos_Un.Offset = (-498); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define Permit() _Permit(EXEC_BASE_NAME) + + static __inline void + _Permit(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-138); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define Procure(sigSem, bidMsg) _Procure(EXEC_BASE_NAME, sigSem, bidMsg) + + static __inline ULONG + _Procure(void *SysBase, struct SignalSemaphore *sigSem, struct SemaphoreMessage *bidMsg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.a1 =(ULONG) bidMsg; + MyCaos.caos_Un.Offset = (-540); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define PutMsg(port, message) _PutMsg(EXEC_BASE_NAME, port, message) + + static __inline void + _PutMsg(void *SysBase, struct MsgPort *port, struct Message *message) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) port; + MyCaos.a1 =(ULONG) message; + MyCaos.caos_Un.Offset = (-366); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RawDoFmt(formatString, dataStream, putChProc, putChData) _RawDoFmt(EXEC_BASE_NAME, formatString, dataStream, putChProc, putChData) + + static __inline APTR + _RawDoFmt(void *SysBase, UBYTE *formatString, APTR dataStream, void (*putChProc)(), APTR putChData) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) formatString; + MyCaos.a1 =(ULONG) dataStream; + MyCaos.a2 =(ULONG) putChProc; + MyCaos.a3 =(ULONG) putChData; + MyCaos.caos_Un.Offset = (-522); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define ReleaseSemaphore(sigSem) _ReleaseSemaphore(EXEC_BASE_NAME, sigSem) + + static __inline void + _ReleaseSemaphore(void *SysBase, struct SignalSemaphore *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-570); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define ReleaseSemaphoreList(sigSem) _ReleaseSemaphoreList(EXEC_BASE_NAME, sigSem) + + static __inline void + _ReleaseSemaphoreList(void *SysBase, struct List *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-588); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RemDevice(device) _RemDevice(EXEC_BASE_NAME, device) + + static __inline void + _RemDevice(void *SysBase, struct Device *device) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) device; + MyCaos.caos_Un.Offset = (-438); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RemHead(list) _RemHead(EXEC_BASE_NAME, list) + + static __inline struct Node * + _RemHead(void *SysBase, struct List *list) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) list; + MyCaos.caos_Un.Offset = (-258); + MyCaos.a6 =(ULONG) SysBase; + return((struct Node *)PPCCallOS(&MyCaos)); + } + + #define RemIntServer(intNumber, interrupt) _RemIntServer(EXEC_BASE_NAME, intNumber, interrupt) + + static __inline void + _RemIntServer(void *SysBase, long intNumber, struct Interrupt *interrupt) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) intNumber; + MyCaos.a1 =(ULONG) interrupt; + MyCaos.caos_Un.Offset = (-174); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RemLibrary(library) _RemLibrary(EXEC_BASE_NAME, library) + + static __inline void + _RemLibrary(void *SysBase, struct Library *library) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) library; + MyCaos.caos_Un.Offset = (-402); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RemMemHandler(memhand) _RemMemHandler(EXEC_BASE_NAME, memhand) + + static __inline void + _RemMemHandler(void *SysBase, struct Interrupt *memhand) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) memhand; + MyCaos.caos_Un.Offset = (-780); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RemPort(port) _RemPort(EXEC_BASE_NAME, port) + + static __inline void + _RemPort(void *SysBase, struct MsgPort *port) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) port; + MyCaos.caos_Un.Offset = (-360); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RemResource(resource) _RemResource(EXEC_BASE_NAME, resource) + + static __inline void + _RemResource(void *SysBase, APTR resource) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) resource; + MyCaos.caos_Un.Offset = (-492); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RemSemaphore(sigSem) _RemSemaphore(EXEC_BASE_NAME, sigSem) + + static __inline void + _RemSemaphore(void *SysBase, struct SignalSemaphore *sigSem) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) sigSem; + MyCaos.caos_Un.Offset = (-606); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define RemTail(list) _RemTail(EXEC_BASE_NAME, list) + + static __inline struct Node * + _RemTail(void *SysBase, struct List *list) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) list; + MyCaos.caos_Un.Offset = (-264); + MyCaos.a6 =(ULONG) SysBase; + return((struct Node *)PPCCallOS(&MyCaos)); + } + + #define RemTask(task) _RemTask(EXEC_BASE_NAME, task) + + static __inline void + _RemTask(void *SysBase, struct Task *task) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) task; + MyCaos.caos_Un.Offset = (-288); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define Remove(node) _Remove(EXEC_BASE_NAME, node) + + static __inline void + _Remove(void *SysBase, struct Node *node) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) node; + MyCaos.caos_Un.Offset = (-252); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define ReplyMsg(message) _ReplyMsg(EXEC_BASE_NAME, message) + + static __inline void + _ReplyMsg(void *SysBase, struct Message *message) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) message; + MyCaos.caos_Un.Offset = (-378); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define SendIO(ioRequest) _SendIO(EXEC_BASE_NAME, ioRequest) + + static __inline void + _SendIO(void *SysBase, struct IORequest *ioRequest) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) ioRequest; + MyCaos.caos_Un.Offset = (-462); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define SetExcept(newSignals, signalSet) _SetExcept(EXEC_BASE_NAME, newSignals, signalSet) + + static __inline ULONG + _SetExcept(void *SysBase, unsigned long newSignals, unsigned long signalSet) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) newSignals; + MyCaos.d1 =(ULONG) signalSet; + MyCaos.caos_Un.Offset = (-312); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define SetFunction(library, funcOffset, newFunction) _SetFunction(EXEC_BASE_NAME, library, funcOffset, newFunction) + + static __inline APTR + _SetFunction(void *SysBase, struct Library *library, long funcOffset, unsigned long (*newFunction)()) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) library; + MyCaos.a0 =(ULONG) funcOffset; + MyCaos.d0 =(ULONG) newFunction; + MyCaos.caos_Un.Offset = (-420); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define SetIntVector(intNumber, interrupt) _SetIntVector(EXEC_BASE_NAME, intNumber, interrupt) + + static __inline struct Interrupt * + _SetIntVector(void *SysBase, long intNumber, struct Interrupt *interrupt) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) intNumber; + MyCaos.a1 =(ULONG) interrupt; + MyCaos.caos_Un.Offset = (-162); + MyCaos.a6 =(ULONG) SysBase; + return((struct Interrupt *)PPCCallOS(&MyCaos)); + } + + #define SetSR(newSR, mask) _SetSR(EXEC_BASE_NAME, newSR, mask) + + static __inline ULONG + _SetSR(void *SysBase, unsigned long newSR, unsigned long mask) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) newSR; + MyCaos.d1 =(ULONG) mask; + MyCaos.caos_Un.Offset = (-144); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define SetSignal(newSignals, signalSet) _SetSignal(EXEC_BASE_NAME, newSignals, signalSet) + + static __inline ULONG + _SetSignal(void *SysBase, unsigned long newSignals, unsigned long signalSet) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) newSignals; + MyCaos.d1 =(ULONG) signalSet; + MyCaos.caos_Un.Offset = (-306); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define SetTaskPri(task, priority) _SetTaskPri(EXEC_BASE_NAME, task, priority) + + static __inline BYTE + _SetTaskPri(void *SysBase, struct Task *task, long priority) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) task; + MyCaos.d0 =(ULONG) priority; + MyCaos.caos_Un.Offset = (-300); + MyCaos.a6 =(ULONG) SysBase; + return((BYTE)PPCCallOS(&MyCaos)); + } + + #define Signal(task, signalSet) _Signal(EXEC_BASE_NAME, task, signalSet) + + static __inline void + _Signal(void *SysBase, struct Task *task, unsigned long signalSet) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) task; + MyCaos.d0 =(ULONG) signalSet; + MyCaos.caos_Un.Offset = (-324); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define StackSwap(newStack) _StackSwap(EXEC_BASE_NAME, newStack) + + static __inline void + _StackSwap(void *SysBase, struct StackSwapStruct *newStack) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) newStack; + MyCaos.caos_Un.Offset = (-732); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define SumKickData() _SumKickData(EXEC_BASE_NAME) + + static __inline ULONG + _SumKickData(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-612); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define SumLibrary(library) _SumLibrary(EXEC_BASE_NAME, library) + + static __inline void + _SumLibrary(void *SysBase, struct Library *library) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) library; + MyCaos.caos_Un.Offset = (-426); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define SuperState() _SuperState(EXEC_BASE_NAME) + + static __inline APTR + _SuperState(void *SysBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-150); + MyCaos.a6 =(ULONG) SysBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define Supervisor(userFunction) _Supervisor(EXEC_BASE_NAME, userFunction) + + static __inline ULONG + _Supervisor(void *SysBase, unsigned long (*userFunction)()) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a5 =(ULONG) userFunction; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define TypeOfMem(address) _TypeOfMem(EXEC_BASE_NAME, address) + + static __inline ULONG + _TypeOfMem(void *SysBase, APTR address) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) address; + MyCaos.caos_Un.Offset = (-534); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define UserState(sysStack) _UserState(EXEC_BASE_NAME, sysStack) + + static __inline void + _UserState(void *SysBase, APTR sysStack) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) sysStack; + MyCaos.caos_Un.Offset = (-156); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define Vacate(sigSem, bidMsg) _Vacate(EXEC_BASE_NAME, sigSem, bidMsg) + + static __inline void + _Vacate(void *SysBase, struct SignalSemaphore *sigSem, struct SemaphoreMessage *bidMsg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sigSem; + MyCaos.a1 =(ULONG) bidMsg; + MyCaos.caos_Un.Offset = (-546); + MyCaos.a6 =(ULONG) SysBase; + PPCCallOS(&MyCaos); + } + + #define Wait(signalSet) _Wait(EXEC_BASE_NAME, signalSet) + + static __inline ULONG + _Wait(void *SysBase, unsigned long signalSet) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) signalSet; + MyCaos.caos_Un.Offset = (-318); + MyCaos.a6 =(ULONG) SysBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define WaitIO(ioRequest) _WaitIO(EXEC_BASE_NAME, ioRequest) + + static __inline BYTE + _WaitIO(void *SysBase, struct IORequest *ioRequest) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) ioRequest; + MyCaos.caos_Un.Offset = (-474); + MyCaos.a6 =(ULONG) SysBase; + return((BYTE)PPCCallOS(&MyCaos)); + } + + #define WaitPort(port) _WaitPort(EXEC_BASE_NAME, port) + + static __inline struct Message * + _WaitPort(void *SysBase, struct MsgPort *port) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) port; + MyCaos.caos_Un.Offset = (-384); + MyCaos.a6 =(ULONG) SysBase; + return((struct Message *)PPCCallOS(&MyCaos)); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_EXEC_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/expansion_pragmas.h includenew/powerup/ppcpragmas/expansion_pragmas.h *** include_h/powerup/ppcpragmas/expansion_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/expansion_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,420 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_EXPANSION_H + #define _PPCPRAGMA_EXPANSION_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__EXPANSION_H + #include <powerup/ppcinline/expansion.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef EXPANSION_BASE_NAME + #define EXPANSION_BASE_NAME ExpansionBase + #endif /* !EXPANSION_BASE_NAME */ + + #define AddBootNode(bootPri, flags, deviceNode, configDev) _AddBootNode(EXPANSION_BASE_NAME, bootPri, flags, deviceNode, configDev) + + static __inline BOOL + _AddBootNode(void *ExpansionBase, long bootPri, unsigned long flags, struct DeviceNode *deviceNode, struct ConfigDev *configDev) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) bootPri; + MyCaos.d1 =(ULONG) flags; + MyCaos.a0 =(ULONG) deviceNode; + MyCaos.a1 =(ULONG) configDev; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) ExpansionBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define AddConfigDev(configDev) _AddConfigDev(EXPANSION_BASE_NAME, configDev) + + static __inline void + _AddConfigDev(void *ExpansionBase, struct ConfigDev *configDev) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) configDev; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define AddDosNode(bootPri, flags, deviceNode) _AddDosNode(EXPANSION_BASE_NAME, bootPri, flags, deviceNode) + + static __inline BOOL + _AddDosNode(void *ExpansionBase, long bootPri, unsigned long flags, struct DeviceNode *deviceNode) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) bootPri; + MyCaos.d1 =(ULONG) flags; + MyCaos.a0 =(ULONG) deviceNode; + MyCaos.caos_Un.Offset = (-150); + MyCaos.a6 =(ULONG) ExpansionBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define AllocBoardMem(slotSpec) _AllocBoardMem(EXPANSION_BASE_NAME, slotSpec) + + static __inline void + _AllocBoardMem(void *ExpansionBase, unsigned long slotSpec) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) slotSpec; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define AllocConfigDev() _AllocConfigDev(EXPANSION_BASE_NAME) + + static __inline struct ConfigDev * + _AllocConfigDev(void *ExpansionBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) ExpansionBase; + return((struct ConfigDev *)PPCCallOS(&MyCaos)); + } + + #define AllocExpansionMem(numSlots, slotAlign) _AllocExpansionMem(EXPANSION_BASE_NAME, numSlots, slotAlign) + + static __inline APTR + _AllocExpansionMem(void *ExpansionBase, unsigned long numSlots, unsigned long slotAlign) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) numSlots; + MyCaos.d1 =(ULONG) slotAlign; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) ExpansionBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define ConfigBoard(board, configDev) _ConfigBoard(EXPANSION_BASE_NAME, board, configDev) + + static __inline void + _ConfigBoard(void *ExpansionBase, APTR board, struct ConfigDev *configDev) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) board; + MyCaos.a1 =(ULONG) configDev; + MyCaos.caos_Un.Offset = (-60); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define ConfigChain(baseAddr) _ConfigChain(EXPANSION_BASE_NAME, baseAddr) + + static __inline void + _ConfigChain(void *ExpansionBase, APTR baseAddr) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) baseAddr; + MyCaos.caos_Un.Offset = (-66); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define FindConfigDev(oldConfigDev, manufacturer, product) _FindConfigDev(EXPANSION_BASE_NAME, oldConfigDev, manufacturer, product) + + static __inline struct ConfigDev * + _FindConfigDev(void *ExpansionBase, struct ConfigDev *oldConfigDev, long manufacturer, long product) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) oldConfigDev; + MyCaos.d0 =(ULONG) manufacturer; + MyCaos.d1 =(ULONG) product; + MyCaos.caos_Un.Offset = (-72); + MyCaos.a6 =(ULONG) ExpansionBase; + return((struct ConfigDev *)PPCCallOS(&MyCaos)); + } + + #define FreeBoardMem(startSlot, slotSpec) _FreeBoardMem(EXPANSION_BASE_NAME, startSlot, slotSpec) + + static __inline void + _FreeBoardMem(void *ExpansionBase, unsigned long startSlot, unsigned long slotSpec) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) startSlot; + MyCaos.d1 =(ULONG) slotSpec; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define FreeConfigDev(configDev) _FreeConfigDev(EXPANSION_BASE_NAME, configDev) + + static __inline void + _FreeConfigDev(void *ExpansionBase, struct ConfigDev *configDev) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) configDev; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define FreeExpansionMem(startSlot, numSlots) _FreeExpansionMem(EXPANSION_BASE_NAME, startSlot, numSlots) + + static __inline void + _FreeExpansionMem(void *ExpansionBase, unsigned long startSlot, unsigned long numSlots) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) startSlot; + MyCaos.d1 =(ULONG) numSlots; + MyCaos.caos_Un.Offset = (-90); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define GetCurrentBinding(currentBinding, bindingSize) _GetCurrentBinding(EXPANSION_BASE_NAME, currentBinding, bindingSize) + + static __inline ULONG + _GetCurrentBinding(void *ExpansionBase, struct CurrentBinding *currentBinding, unsigned long bindingSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) currentBinding; + MyCaos.d0 =(ULONG) bindingSize; + MyCaos.caos_Un.Offset = (-138); + MyCaos.a6 =(ULONG) ExpansionBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define MakeDosNode(parmPacket) _MakeDosNode(EXPANSION_BASE_NAME, parmPacket) + + static __inline struct DeviceNode * + _MakeDosNode(void *ExpansionBase, APTR parmPacket) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) parmPacket; + MyCaos.caos_Un.Offset = (-144); + MyCaos.a6 =(ULONG) ExpansionBase; + return((struct DeviceNode *)PPCCallOS(&MyCaos)); + } + + #define ObtainConfigBinding() _ObtainConfigBinding(EXPANSION_BASE_NAME) + + static __inline void + _ObtainConfigBinding(void *ExpansionBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-120); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define ReadExpansionByte(board, offset) _ReadExpansionByte(EXPANSION_BASE_NAME, board, offset) + + static __inline UBYTE + _ReadExpansionByte(void *ExpansionBase, APTR board, unsigned long offset) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) board; + MyCaos.d0 =(ULONG) offset; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) ExpansionBase; + return((UBYTE)PPCCallOS(&MyCaos)); + } + + #define ReadExpansionRom(board, configDev) _ReadExpansionRom(EXPANSION_BASE_NAME, board, configDev) + + static __inline void + _ReadExpansionRom(void *ExpansionBase, APTR board, struct ConfigDev *configDev) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) board; + MyCaos.a1 =(ULONG) configDev; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define ReleaseConfigBinding() _ReleaseConfigBinding(EXPANSION_BASE_NAME) + + static __inline void + _ReleaseConfigBinding(void *ExpansionBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-126); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define RemConfigDev(configDev) _RemConfigDev(EXPANSION_BASE_NAME, configDev) + + static __inline void + _RemConfigDev(void *ExpansionBase, struct ConfigDev *configDev) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) configDev; + MyCaos.caos_Un.Offset = (-108); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define SetCurrentBinding(currentBinding, bindingSize) _SetCurrentBinding(EXPANSION_BASE_NAME, currentBinding, bindingSize) + + static __inline void + _SetCurrentBinding(void *ExpansionBase, struct CurrentBinding *currentBinding, unsigned long bindingSize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) currentBinding; + MyCaos.d0 =(ULONG) bindingSize; + MyCaos.caos_Un.Offset = (-132); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #define WriteExpansionByte(board, offset, byte) _WriteExpansionByte(EXPANSION_BASE_NAME, board, offset, byte) + + static __inline void + _WriteExpansionByte(void *ExpansionBase, APTR board, unsigned long offset, unsigned long byte) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) board; + MyCaos.d0 =(ULONG) offset; + MyCaos.d1 =(ULONG) byte; + MyCaos.caos_Un.Offset = (-114); + MyCaos.a6 =(ULONG) ExpansionBase; + PPCCallOS(&MyCaos); + } + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_EXPANSION_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/gadtools_pragmas.h includenew/powerup/ppcpragmas/gadtools_pragmas.h *** include_h/powerup/ppcpragmas/gadtools_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/gadtools_pragmas.h Wed Feb 14 02:41:24 2001 *************** *** 0 **** --- 1,432 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_GADTOOLS_H + #define _PPCPRAGMA_GADTOOLS_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__GADTOOLS_H + #include <powerup/ppcinline/gadtools.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef GADTOOLS_BASE_NAME + #define GADTOOLS_BASE_NAME GadToolsBase + #endif /* !GADTOOLS_BASE_NAME */ + + #define CreateContext(glistptr) _CreateContext(GADTOOLS_BASE_NAME, glistptr) + + static __inline struct Gadget * + _CreateContext(void *GadToolsBase, struct Gadget **glistptr) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) glistptr; + MyCaos.caos_Un.Offset = (-114); + MyCaos.a6 =(ULONG) GadToolsBase; + return((struct Gadget *)PPCCallOS(&MyCaos)); + } + + #define CreateGadgetA(kind, gad, ng, taglist) _CreateGadgetA(GADTOOLS_BASE_NAME, kind, gad, ng, taglist) + + static __inline struct Gadget * + _CreateGadgetA(void *GadToolsBase, unsigned long kind, struct Gadget *gad, struct NewGadget *ng, struct TagItem *taglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) kind; + MyCaos.a0 =(ULONG) gad; + MyCaos.a1 =(ULONG) ng; + MyCaos.a2 =(ULONG) taglist; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) GadToolsBase; + return((struct Gadget *)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define CreateGadget(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; CreateGadgetA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define CreateMenusA(newmenu, taglist) _CreateMenusA(GADTOOLS_BASE_NAME, newmenu, taglist) + + static __inline struct Menu * + _CreateMenusA(void *GadToolsBase, struct NewMenu *newmenu, struct TagItem *taglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) newmenu; + MyCaos.a1 =(ULONG) taglist; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) GadToolsBase; + return((struct Menu *)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define CreateMenus(a0, tags...) \ + ({ULONG _tags[] = { tags }; CreateMenusA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define DrawBevelBoxA(rport, left, top, width, height, taglist) _DrawBevelBoxA(GADTOOLS_BASE_NAME, rport, left, top, width, height, taglist) + + static __inline void + _DrawBevelBoxA(void *GadToolsBase, struct RastPort *rport, long left, long top, long width, long height, struct TagItem *taglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) rport; + MyCaos.d0 =(ULONG) left; + MyCaos.d1 =(ULONG) top; + MyCaos.d2 =(ULONG) width; + MyCaos.d3 =(ULONG) height; + MyCaos.a1 =(ULONG) taglist; + MyCaos.caos_Un.Offset = (-120); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #ifndef NO_PPCINLINE_STDARG + #define DrawBevelBox(a0, a1, a2, a3, a4, tags...) \ + ({ULONG _tags[] = { tags }; DrawBevelBoxA((a0), (a1), (a2), (a3), (a4), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define FreeGadgets(gad) _FreeGadgets(GADTOOLS_BASE_NAME, gad) + + static __inline void + _FreeGadgets(void *GadToolsBase, struct Gadget *gad) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) gad; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #define FreeMenus(menu) _FreeMenus(GADTOOLS_BASE_NAME, menu) + + static __inline void + _FreeMenus(void *GadToolsBase, struct Menu *menu) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) menu; + MyCaos.caos_Un.Offset = (-54); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #define FreeVisualInfo(vi) _FreeVisualInfo(GADTOOLS_BASE_NAME, vi) + + static __inline void + _FreeVisualInfo(void *GadToolsBase, APTR vi) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vi; + MyCaos.caos_Un.Offset = (-132); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #define GT_BeginRefresh(win) _GT_BeginRefresh(GADTOOLS_BASE_NAME, win) + + static __inline void + _GT_BeginRefresh(void *GadToolsBase, struct Window *win) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) win; + MyCaos.caos_Un.Offset = (-90); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #define GT_EndRefresh(win, complete) _GT_EndRefresh(GADTOOLS_BASE_NAME, win, complete) + + static __inline void + _GT_EndRefresh(void *GadToolsBase, struct Window *win, long complete) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) win; + MyCaos.d0 =(ULONG) complete; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #define GT_FilterIMsg(imsg) _GT_FilterIMsg(GADTOOLS_BASE_NAME, imsg) + + static __inline struct IntuiMessage * + _GT_FilterIMsg(void *GadToolsBase, struct IntuiMessage *imsg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) imsg; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) GadToolsBase; + return((struct IntuiMessage *)PPCCallOS(&MyCaos)); + } + + #define GT_GetGadgetAttrsA(gad, win, req, taglist) _GT_GetGadgetAttrsA(GADTOOLS_BASE_NAME, gad, win, req, taglist) + + static __inline LONG + _GT_GetGadgetAttrsA(void *GadToolsBase, struct Gadget *gad, struct Window *win, struct Requester *req, struct TagItem *taglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) gad; + MyCaos.a1 =(ULONG) win; + MyCaos.a2 =(ULONG) req; + MyCaos.a3 =(ULONG) taglist; + MyCaos.caos_Un.Offset = (-174); + MyCaos.a6 =(ULONG) GadToolsBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define GT_GetGadgetAttrs(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; GT_GetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GT_GetIMsg(iport) _GT_GetIMsg(GADTOOLS_BASE_NAME, iport) + + static __inline struct IntuiMessage * + _GT_GetIMsg(void *GadToolsBase, struct MsgPort *iport) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) iport; + MyCaos.caos_Un.Offset = (-72); + MyCaos.a6 =(ULONG) GadToolsBase; + return((struct IntuiMessage *)PPCCallOS(&MyCaos)); + } + + #define GT_PostFilterIMsg(imsg) _GT_PostFilterIMsg(GADTOOLS_BASE_NAME, imsg) + + static __inline struct IntuiMessage * + _GT_PostFilterIMsg(void *GadToolsBase, struct IntuiMessage *imsg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) imsg; + MyCaos.caos_Un.Offset = (-108); + MyCaos.a6 =(ULONG) GadToolsBase; + return((struct IntuiMessage *)PPCCallOS(&MyCaos)); + } + + #define GT_RefreshWindow(win, req) _GT_RefreshWindow(GADTOOLS_BASE_NAME, win, req) + + static __inline void + _GT_RefreshWindow(void *GadToolsBase, struct Window *win, struct Requester *req) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) win; + MyCaos.a1 =(ULONG) req; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #define GT_ReplyIMsg(imsg) _GT_ReplyIMsg(GADTOOLS_BASE_NAME, imsg) + + static __inline void + _GT_ReplyIMsg(void *GadToolsBase, struct IntuiMessage *imsg) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) imsg; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #define GT_SetGadgetAttrsA(gad, win, req, taglist) _GT_SetGadgetAttrsA(GADTOOLS_BASE_NAME, gad, win, req, taglist) + + static __inline void + _GT_SetGadgetAttrsA(void *GadToolsBase, struct Gadget *gad, struct Window *win, struct Requester *req, struct TagItem *taglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) gad; + MyCaos.a1 =(ULONG) win; + MyCaos.a2 =(ULONG) req; + MyCaos.a3 =(ULONG) taglist; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) GadToolsBase; + PPCCallOS(&MyCaos); + } + + #ifndef NO_PPCINLINE_STDARG + #define GT_SetGadgetAttrs(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; GT_SetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetVisualInfoA(screen, taglist) _GetVisualInfoA(GADTOOLS_BASE_NAME, screen, taglist) + + static __inline APTR + _GetVisualInfoA(void *GadToolsBase, struct Screen *screen, struct TagItem *taglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) screen; + MyCaos.a1 =(ULONG) taglist; + MyCaos.caos_Un.Offset = (-126); + MyCaos.a6 =(ULONG) GadToolsBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define GetVisualInfo(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetVisualInfoA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define LayoutMenuItemsA(firstitem, vi, taglist) _LayoutMenuItemsA(GADTOOLS_BASE_NAME, firstitem, vi, taglist) + + static __inline BOOL + _LayoutMenuItemsA(void *GadToolsBase, struct MenuItem *firstitem, APTR vi, struct TagItem *taglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) firstitem; + MyCaos.a1 =(ULONG) vi; + MyCaos.a2 =(ULONG) taglist; + MyCaos.caos_Un.Offset = (-60); + MyCaos.a6 =(ULONG) GadToolsBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define LayoutMenuItems(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; LayoutMenuItemsA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define LayoutMenusA(firstmenu, vi, taglist) _LayoutMenusA(GADTOOLS_BASE_NAME, firstmenu, vi, taglist) + + static __inline BOOL + _LayoutMenusA(void *GadToolsBase, struct Menu *firstmenu, APTR vi, struct TagItem *taglist) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) firstmenu; + MyCaos.a1 =(ULONG) vi; + MyCaos.a2 =(ULONG) taglist; + MyCaos.caos_Un.Offset = (-66); + MyCaos.a6 =(ULONG) GadToolsBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define LayoutMenus(a0, a1, tags...) \ + ({ULONG _tags[] = { tags }; LayoutMenusA((a0), (a1), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #endif /* SASC Pragmas */ + #endif /* !_PPCPRAGMA_GADTOOLS_H */ diff -c2 -d -P -r include_h/powerup/ppcpragmas/graphics_pragmas.h includenew/powerup/ppcpragmas/graphics_pragmas.h *** include_h/powerup/ppcpragmas/graphics_pragmas.h Thu Jan 1 00:00:00 1970 --- includenew/powerup/ppcpragmas/graphics_pragmas.h Wed Feb 14 02:41:25 2001 *************** *** 0 **** --- 1,3270 ---- + /* Automatically generated header! Do not edit! */ + + #ifndef _PPCPRAGMA_GRAPHICS_H + #define _PPCPRAGMA_GRAPHICS_H + #ifdef __GNUC__ + #ifndef _PPCINLINE__GRAPHICS_H + #include <powerup/ppcinline/graphics.h> + #endif + #else + + #ifndef POWERUP_PPCLIB_INTERFACE_H + #include <powerup/ppclib/interface.h> + #endif + + #ifndef POWERUP_GCCLIB_PROTOS_H + #include <powerup/gcclib/powerup_protos.h> + #endif + + #ifndef NO_PPCINLINE_STDARG + #define NO_PPCINLINE_STDARG + #endif/* SAS C PPC inlines */ + + #ifndef GRAPHICS_BASE_NAME + #define GRAPHICS_BASE_NAME GfxBase + #endif /* !GRAPHICS_BASE_NAME */ + + #define AddAnimOb(anOb, anKey, rp) _AddAnimOb(GRAPHICS_BASE_NAME, anOb, anKey, rp) + + static __inline void + _AddAnimOb(void *GfxBase, struct AnimOb *anOb, struct AnimOb **anKey, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) anOb; + MyCaos.a1 =(ULONG) anKey; + MyCaos.a2 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-156); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define AddBob(bob, rp) _AddBob(GRAPHICS_BASE_NAME, bob, rp) + + static __inline void + _AddBob(void *GfxBase, struct Bob *bob, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) bob; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-96); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define AddFont(textFont) _AddFont(GRAPHICS_BASE_NAME, textFont) + + static __inline void + _AddFont(void *GfxBase, struct TextFont *textFont) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) textFont; + MyCaos.caos_Un.Offset = (-480); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define AddVSprite(vSprite, rp) _AddVSprite(GRAPHICS_BASE_NAME, vSprite, rp) + + static __inline void + _AddVSprite(void *GfxBase, struct VSprite *vSprite, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vSprite; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-102); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define AllocBitMap(sizex, sizey, depth, flags, friend_bitmap) _AllocBitMap(GRAPHICS_BASE_NAME, sizex, sizey, depth, flags, friend_bitmap) + + static __inline struct BitMap * + _AllocBitMap(void *GfxBase, unsigned long sizex, unsigned long sizey, unsigned long depth, unsigned long flags, struct BitMap *friend_bitmap) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) sizex; + MyCaos.d1 =(ULONG) sizey; + MyCaos.d2 =(ULONG) depth; + MyCaos.d3 =(ULONG) flags; + MyCaos.a0 =(ULONG) friend_bitmap; + MyCaos.caos_Un.Offset = (-918); + MyCaos.a6 =(ULONG) GfxBase; + return((struct BitMap *)PPCCallOS(&MyCaos)); + } + + #define AllocDBufInfo(vp) _AllocDBufInfo(GRAPHICS_BASE_NAME, vp) + + static __inline struct DBufInfo * + _AllocDBufInfo(void *GfxBase, struct ViewPort *vp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.caos_Un.Offset = (-966); + MyCaos.a6 =(ULONG) GfxBase; + return((struct DBufInfo *)PPCCallOS(&MyCaos)); + } + + #define AllocRaster(width, height) _AllocRaster(GRAPHICS_BASE_NAME, width, height) + + static __inline PLANEPTR + _AllocRaster(void *GfxBase, unsigned long width, unsigned long height) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) width; + MyCaos.d1 =(ULONG) height; + MyCaos.caos_Un.Offset = (-492); + MyCaos.a6 =(ULONG) GfxBase; + return((PLANEPTR)PPCCallOS(&MyCaos)); + } + + #define AllocSpriteDataA(bm, tags) _AllocSpriteDataA(GRAPHICS_BASE_NAME, bm, tags) + + static __inline struct ExtSprite * + _AllocSpriteDataA(void *GfxBase, struct BitMap *bm, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a2 =(ULONG) bm; + MyCaos.a1 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-1020); + MyCaos.a6 =(ULONG) GfxBase; + return((struct ExtSprite *)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define AllocSpriteData(a0, tags...) \ + ({ULONG _tags[] = { tags }; AllocSpriteDataA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define AndRectRegion(region, rectangle) _AndRectRegion(GRAPHICS_BASE_NAME, region, rectangle) + + static __inline void + _AndRectRegion(void *GfxBase, struct Region *region, struct Rectangle *rectangle) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) region; + MyCaos.a1 =(ULONG) rectangle; + MyCaos.caos_Un.Offset = (-504); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define AndRegionRegion(srcRegion, destRegion) _AndRegionRegion(GRAPHICS_BASE_NAME, srcRegion, destRegion) + + static __inline BOOL + _AndRegionRegion(void *GfxBase, struct Region *srcRegion, struct Region *destRegion) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) srcRegion; + MyCaos.a1 =(ULONG) destRegion; + MyCaos.caos_Un.Offset = (-624); + MyCaos.a6 =(ULONG) GfxBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define Animate(anKey, rp) _Animate(GRAPHICS_BASE_NAME, anKey, rp) + + static __inline void + _Animate(void *GfxBase, struct AnimOb **anKey, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) anKey; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-162); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define AreaDraw(rp, x, y) _AreaDraw(GRAPHICS_BASE_NAME, rp, x, y) + + static __inline LONG + _AreaDraw(void *GfxBase, struct RastPort *rp, long x, long y) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) x; + MyCaos.d1 =(ULONG) y; + MyCaos.caos_Un.Offset = (-258); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AreaEllipse(rp, xCenter, yCenter, a, b) _AreaEllipse(GRAPHICS_BASE_NAME, rp, xCenter, yCenter, a, b) + + static __inline LONG + _AreaEllipse(void *GfxBase, struct RastPort *rp, long xCenter, long yCenter, long a, long b) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) xCenter; + MyCaos.d1 =(ULONG) yCenter; + MyCaos.d2 =(ULONG) a; + MyCaos.d3 =(ULONG) b; + MyCaos.caos_Un.Offset = (-186); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AreaEnd(rp) _AreaEnd(GRAPHICS_BASE_NAME, rp) + + static __inline LONG + _AreaEnd(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-264); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AreaMove(rp, x, y) _AreaMove(GRAPHICS_BASE_NAME, rp, x, y) + + static __inline LONG + _AreaMove(void *GfxBase, struct RastPort *rp, long x, long y) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) x; + MyCaos.d1 =(ULONG) y; + MyCaos.caos_Un.Offset = (-252); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AskFont(rp, textAttr) _AskFont(GRAPHICS_BASE_NAME, rp, textAttr) + + static __inline void + _AskFont(void *GfxBase, struct RastPort *rp, struct TextAttr *textAttr) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.a0 =(ULONG) textAttr; + MyCaos.caos_Un.Offset = (-474); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define AskSoftStyle(rp) _AskSoftStyle(GRAPHICS_BASE_NAME, rp) + + static __inline ULONG + _AskSoftStyle(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-84); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define AttachPalExtra(cm, vp) _AttachPalExtra(GRAPHICS_BASE_NAME, cm, vp) + + static __inline LONG + _AttachPalExtra(void *GfxBase, struct ColorMap *cm, struct ViewPort *vp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cm; + MyCaos.a1 =(ULONG) vp; + MyCaos.caos_Un.Offset = (-834); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define AttemptLockLayerRom(layer) _AttemptLockLayerRom(GRAPHICS_BASE_NAME, layer) + + static __inline BOOL + _AttemptLockLayerRom(void *GfxBase, struct Layer *layer) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a5 =(ULONG) layer; + MyCaos.caos_Un.Offset = (-654); + MyCaos.a6 =(ULONG) GfxBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define BestModeIDA(tags) _BestModeIDA(GRAPHICS_BASE_NAME, tags) + + static __inline ULONG + _BestModeIDA(void *GfxBase, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-1050); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define BestModeID(tags...) \ + ({ULONG _tags[] = { tags }; BestModeIDA((struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define BitMapScale(bitScaleArgs) _BitMapScale(GRAPHICS_BASE_NAME, bitScaleArgs) + + static __inline void + _BitMapScale(void *GfxBase, struct BitScaleArgs *bitScaleArgs) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) bitScaleArgs; + MyCaos.caos_Un.Offset = (-678); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define BltBitMap(srcBitMap, xSrc, ySrc, destBitMap, xDest, yDest, xSize, ySize, minterm, mask, tempA) _BltBitMap(GRAPHICS_BASE_NAME, srcBitMap, xSrc, ySrc, destBitMap, xDest, yDest, xSize, ySize, minterm, mask, tempA) + + static __inline LONG + _BltBitMap(void *GfxBase, struct BitMap *srcBitMap, long xSrc, long ySrc, struct BitMap *destBitMap, long xDest, long yDest, long xSize, long ySize, unsigned long minterm, unsigned long mask, PLANEPTR tempA) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) srcBitMap; + MyCaos.d0 =(ULONG) xSrc; + MyCaos.d1 =(ULONG) ySrc; + MyCaos.a1 =(ULONG) destBitMap; + MyCaos.d2 =(ULONG) xDest; + MyCaos.d3 =(ULONG) yDest; + MyCaos.d4 =(ULONG) xSize; + MyCaos.d5 =(ULONG) ySize; + MyCaos.d6 =(ULONG) minterm; + MyCaos.d7 =(ULONG) mask; + MyCaos.a2 =(ULONG) tempA; + MyCaos.caos_Un.Offset = (-30); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define BltBitMapRastPort(srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm) _BltBitMapRastPort(GRAPHICS_BASE_NAME, srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm) + + static __inline void + _BltBitMapRastPort(void *GfxBase, struct BitMap *srcBitMap, long xSrc, long ySrc, struct RastPort *destRP, long xDest, long yDest, long xSize, long ySize, unsigned long minterm) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) srcBitMap; + MyCaos.d0 =(ULONG) xSrc; + MyCaos.d1 =(ULONG) ySrc; + MyCaos.a1 =(ULONG) destRP; + MyCaos.d2 =(ULONG) xDest; + MyCaos.d3 =(ULONG) yDest; + MyCaos.d4 =(ULONG) xSize; + MyCaos.d5 =(ULONG) ySize; + MyCaos.d6 =(ULONG) minterm; + MyCaos.caos_Un.Offset = (-606); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define BltClear(memBlock, byteCount, flags) _BltClear(GRAPHICS_BASE_NAME, memBlock, byteCount, flags) + + static __inline void + _BltClear(void *GfxBase, PLANEPTR memBlock, unsigned long byteCount, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) memBlock; + MyCaos.d0 =(ULONG) byteCount; + MyCaos.d1 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-300); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define BltMaskBitMapRastPort(srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm, bltMask) _BltMaskBitMapRastPort(GRAPHICS_BASE_NAME, srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm, bltMask) + + static __inline void + _BltMaskBitMapRastPort(void *GfxBase, struct BitMap *srcBitMap, long xSrc, long ySrc, struct RastPort *destRP, long xDest, long yDest, long xSize, long ySize, unsigned long minterm, PLANEPTR bltMask) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) srcBitMap; + MyCaos.d0 =(ULONG) xSrc; + MyCaos.d1 =(ULONG) ySrc; + MyCaos.a1 =(ULONG) destRP; + MyCaos.d2 =(ULONG) xDest; + MyCaos.d3 =(ULONG) yDest; + MyCaos.d4 =(ULONG) xSize; + MyCaos.d5 =(ULONG) ySize; + MyCaos.d6 =(ULONG) minterm; + MyCaos.a2 =(ULONG) bltMask; + MyCaos.caos_Un.Offset = (-636); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define BltPattern(rp, mask, xMin, yMin, xMax, yMax, maskBPR) _BltPattern(GRAPHICS_BASE_NAME, rp, mask, xMin, yMin, xMax, yMax, maskBPR) + + static __inline void + _BltPattern(void *GfxBase, struct RastPort *rp, PLANEPTR mask, long xMin, long yMin, long xMax, long yMax, unsigned long maskBPR) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.a0 =(ULONG) mask; + MyCaos.d0 =(ULONG) xMin; + MyCaos.d1 =(ULONG) yMin; + MyCaos.d2 =(ULONG) xMax; + MyCaos.d3 =(ULONG) yMax; + MyCaos.d4 =(ULONG) maskBPR; + MyCaos.caos_Un.Offset = (-312); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define BltTemplate(source, xSrc, srcMod, destRP, xDest, yDest, xSize, ySize) _BltTemplate(GRAPHICS_BASE_NAME, source, xSrc, srcMod, destRP, xDest, yDest, xSize, ySize) + + static __inline void + _BltTemplate(void *GfxBase, PLANEPTR source, long xSrc, long srcMod, struct RastPort *destRP, long xDest, long yDest, long xSize, long ySize) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) source; + MyCaos.d0 =(ULONG) xSrc; + MyCaos.d1 =(ULONG) srcMod; + MyCaos.a1 =(ULONG) destRP; + MyCaos.d2 =(ULONG) xDest; + MyCaos.d3 =(ULONG) yDest; + MyCaos.d4 =(ULONG) xSize; + MyCaos.d5 =(ULONG) ySize; + MyCaos.caos_Un.Offset = (-36); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define CBump(copList) _CBump(GRAPHICS_BASE_NAME, copList) + + static __inline void + _CBump(void *GfxBase, struct UCopList *copList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) copList; + MyCaos.caos_Un.Offset = (-366); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define CMove(copList, destination, data) _CMove(GRAPHICS_BASE_NAME, copList, destination, data) + + static __inline void + _CMove(void *GfxBase, struct UCopList *copList, APTR destination, long data) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) copList; + MyCaos.d0 =(ULONG) destination; + MyCaos.d1 =(ULONG) data; + MyCaos.caos_Un.Offset = (-372); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define CWait(copList, v, h) _CWait(GRAPHICS_BASE_NAME, copList, v, h) + + static __inline void + _CWait(void *GfxBase, struct UCopList *copList, long v, long h) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) copList; + MyCaos.d0 =(ULONG) v; + MyCaos.d1 =(ULONG) h; + MyCaos.caos_Un.Offset = (-378); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define CalcIVG(v, vp) _CalcIVG(GRAPHICS_BASE_NAME, v, vp) + + static __inline UWORD + _CalcIVG(void *GfxBase, struct View *v, struct ViewPort *vp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) v; + MyCaos.a1 =(ULONG) vp; + MyCaos.caos_Un.Offset = (-828); + MyCaos.a6 =(ULONG) GfxBase; + return((UWORD)PPCCallOS(&MyCaos)); + } + + #define ChangeExtSpriteA(vp, oldsprite, newsprite, tags) _ChangeExtSpriteA(GRAPHICS_BASE_NAME, vp, oldsprite, newsprite, tags) + + static __inline LONG + _ChangeExtSpriteA(void *GfxBase, struct ViewPort *vp, struct ExtSprite *oldsprite, struct ExtSprite *newsprite, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.a1 =(ULONG) oldsprite; + MyCaos.a2 =(ULONG) newsprite; + MyCaos.a3 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-1026); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define ChangeExtSprite(a0, a1, a2, tags...) \ + ({ULONG _tags[] = { tags }; ChangeExtSpriteA((a0), (a1), (a2), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define ChangeSprite(vp, sprite, newData) _ChangeSprite(GRAPHICS_BASE_NAME, vp, sprite, newData) + + static __inline void + _ChangeSprite(void *GfxBase, struct ViewPort *vp, struct SimpleSprite *sprite, PLANEPTR newData) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.a1 =(ULONG) sprite; + MyCaos.a2 =(ULONG) newData; + MyCaos.caos_Un.Offset = (-420); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define ChangeVPBitMap(vp, bm, db) _ChangeVPBitMap(GRAPHICS_BASE_NAME, vp, bm, db) + + static __inline void + _ChangeVPBitMap(void *GfxBase, struct ViewPort *vp, struct BitMap *bm, struct DBufInfo *db) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.a1 =(ULONG) bm; + MyCaos.a2 =(ULONG) db; + MyCaos.caos_Un.Offset = (-942); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define ClearEOL(rp) _ClearEOL(GRAPHICS_BASE_NAME, rp) + + static __inline void + _ClearEOL(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-42); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define ClearRectRegion(region, rectangle) _ClearRectRegion(GRAPHICS_BASE_NAME, region, rectangle) + + static __inline BOOL + _ClearRectRegion(void *GfxBase, struct Region *region, struct Rectangle *rectangle) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) region; + MyCaos.a1 =(ULONG) rectangle; + MyCaos.caos_Un.Offset = (-522); + MyCaos.a6 =(ULONG) GfxBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define ClearRegion(region) _ClearRegion(GRAPHICS_BASE_NAME, region) + + static __inline void + _ClearRegion(void *GfxBase, struct Region *region) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) region; + MyCaos.caos_Un.Offset = (-528); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define ClearScreen(rp) _ClearScreen(GRAPHICS_BASE_NAME, rp) + + static __inline void + _ClearScreen(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-48); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define ClipBlit(srcRP, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm) _ClipBlit(GRAPHICS_BASE_NAME, srcRP, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm) + + static __inline void + _ClipBlit(void *GfxBase, struct RastPort *srcRP, long xSrc, long ySrc, struct RastPort *destRP, long xDest, long yDest, long xSize, long ySize, unsigned long minterm) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) srcRP; + MyCaos.d0 =(ULONG) xSrc; + MyCaos.d1 =(ULONG) ySrc; + MyCaos.a1 =(ULONG) destRP; + MyCaos.d2 =(ULONG) xDest; + MyCaos.d3 =(ULONG) yDest; + MyCaos.d4 =(ULONG) xSize; + MyCaos.d5 =(ULONG) ySize; + MyCaos.d6 =(ULONG) minterm; + MyCaos.caos_Un.Offset = (-552); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define CloseFont(textFont) _CloseFont(GRAPHICS_BASE_NAME, textFont) + + static __inline void + _CloseFont(void *GfxBase, struct TextFont *textFont) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) textFont; + MyCaos.caos_Un.Offset = (-78); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define CloseMonitor(monitorSpec) _CloseMonitor(GRAPHICS_BASE_NAME, monitorSpec) + + static __inline BOOL + _CloseMonitor(void *GfxBase, struct MonitorSpec *monitorSpec) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) monitorSpec; + MyCaos.caos_Un.Offset = (-720); + MyCaos.a6 =(ULONG) GfxBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define CoerceMode(vp, monitorid, flags) _CoerceMode(GRAPHICS_BASE_NAME, vp, monitorid, flags) + + static __inline ULONG + _CoerceMode(void *GfxBase, struct ViewPort *vp, unsigned long monitorid, unsigned long flags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.d0 =(ULONG) monitorid; + MyCaos.d1 =(ULONG) flags; + MyCaos.caos_Un.Offset = (-936); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define CopySBitMap(layer) _CopySBitMap(GRAPHICS_BASE_NAME, layer) + + static __inline void + _CopySBitMap(void *GfxBase, struct Layer *layer) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) layer; + MyCaos.caos_Un.Offset = (-450); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define DisownBlitter() _DisownBlitter(GRAPHICS_BASE_NAME) + + static __inline void + _DisownBlitter(void *GfxBase) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.caos_Un.Offset = (-462); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define DisposeRegion(region) _DisposeRegion(GRAPHICS_BASE_NAME, region) + + static __inline void + _DisposeRegion(void *GfxBase, struct Region *region) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) region; + MyCaos.caos_Un.Offset = (-534); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define DoCollision(rp) _DoCollision(GRAPHICS_BASE_NAME, rp) + + static __inline void + _DoCollision(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-108); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define Draw(rp, x, y) _Draw(GRAPHICS_BASE_NAME, rp, x, y) + + static __inline void + _Draw(void *GfxBase, struct RastPort *rp, long x, long y) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) x; + MyCaos.d1 =(ULONG) y; + MyCaos.caos_Un.Offset = (-246); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define DrawEllipse(rp, xCenter, yCenter, a, b) _DrawEllipse(GRAPHICS_BASE_NAME, rp, xCenter, yCenter, a, b) + + static __inline void + _DrawEllipse(void *GfxBase, struct RastPort *rp, long xCenter, long yCenter, long a, long b) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) xCenter; + MyCaos.d1 =(ULONG) yCenter; + MyCaos.d2 =(ULONG) a; + MyCaos.d3 =(ULONG) b; + MyCaos.caos_Un.Offset = (-180); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define DrawGList(rp, vp) _DrawGList(GRAPHICS_BASE_NAME, rp, vp) + + static __inline void + _DrawGList(void *GfxBase, struct RastPort *rp, struct ViewPort *vp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.a0 =(ULONG) vp; + MyCaos.caos_Un.Offset = (-114); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define EraseRect(rp, xMin, yMin, xMax, yMax) _EraseRect(GRAPHICS_BASE_NAME, rp, xMin, yMin, xMax, yMax) + + static __inline void + _EraseRect(void *GfxBase, struct RastPort *rp, long xMin, long yMin, long xMax, long yMax) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) xMin; + MyCaos.d1 =(ULONG) yMin; + MyCaos.d2 =(ULONG) xMax; + MyCaos.d3 =(ULONG) yMax; + MyCaos.caos_Un.Offset = (-810); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define ExtendFont(font, fontTags) _ExtendFont(GRAPHICS_BASE_NAME, font, fontTags) + + static __inline ULONG + _ExtendFont(void *GfxBase, struct TextFont *font, struct TagItem *fontTags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) font; + MyCaos.a1 =(ULONG) fontTags; + MyCaos.caos_Un.Offset = (-816); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define ExtendFontTags(a0, tags...) \ + ({ULONG _tags[] = { tags }; ExtendFont((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define FindColor(cm, r, g, b, maxcolor) _FindColor(GRAPHICS_BASE_NAME, cm, r, g, b, maxcolor) + + static __inline LONG + _FindColor(void *GfxBase, struct ColorMap *cm, unsigned long r, unsigned long g, unsigned long b, long maxcolor) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a3 =(ULONG) cm; + MyCaos.d1 =(ULONG) r; + MyCaos.d2 =(ULONG) g; + MyCaos.d3 =(ULONG) b; + MyCaos.d4 =(ULONG) maxcolor; + MyCaos.caos_Un.Offset = (-1008); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define FindDisplayInfo(displayID) _FindDisplayInfo(GRAPHICS_BASE_NAME, displayID) + + static __inline DisplayInfoHandle + _FindDisplayInfo(void *GfxBase, unsigned long displayID) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) displayID; + MyCaos.caos_Un.Offset = (-726); + MyCaos.a6 =(ULONG) GfxBase; + return((DisplayInfoHandle)PPCCallOS(&MyCaos)); + } + + #define Flood(rp, mode, x, y) _Flood(GRAPHICS_BASE_NAME, rp, mode, x, y) + + static __inline BOOL + _Flood(void *GfxBase, struct RastPort *rp, unsigned long mode, long x, long y) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.d2 =(ULONG) mode; + MyCaos.d0 =(ULONG) x; + MyCaos.d1 =(ULONG) y; + MyCaos.caos_Un.Offset = (-330); + MyCaos.a6 =(ULONG) GfxBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define FontExtent(font, fontExtent) _FontExtent(GRAPHICS_BASE_NAME, font, fontExtent) + + static __inline void + _FontExtent(void *GfxBase, struct TextFont *font, struct TextExtent *fontExtent) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) font; + MyCaos.a1 =(ULONG) fontExtent; + MyCaos.caos_Un.Offset = (-762); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeBitMap(bm) _FreeBitMap(GRAPHICS_BASE_NAME, bm) + + static __inline void + _FreeBitMap(void *GfxBase, struct BitMap *bm) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) bm; + MyCaos.caos_Un.Offset = (-924); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeColorMap(colorMap) _FreeColorMap(GRAPHICS_BASE_NAME, colorMap) + + static __inline void + _FreeColorMap(void *GfxBase, struct ColorMap *colorMap) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) colorMap; + MyCaos.caos_Un.Offset = (-576); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeCopList(copList) _FreeCopList(GRAPHICS_BASE_NAME, copList) + + static __inline void + _FreeCopList(void *GfxBase, struct CopList *copList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) copList; + MyCaos.caos_Un.Offset = (-546); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeCprList(cprList) _FreeCprList(GRAPHICS_BASE_NAME, cprList) + + static __inline void + _FreeCprList(void *GfxBase, struct cprlist *cprList) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cprList; + MyCaos.caos_Un.Offset = (-564); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeDBufInfo(dbi) _FreeDBufInfo(GRAPHICS_BASE_NAME, dbi) + + static __inline void + _FreeDBufInfo(void *GfxBase, struct DBufInfo *dbi) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) dbi; + MyCaos.caos_Un.Offset = (-972); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeGBuffers(anOb, rp, flag) _FreeGBuffers(GRAPHICS_BASE_NAME, anOb, rp, flag) + + static __inline void + _FreeGBuffers(void *GfxBase, struct AnimOb *anOb, struct RastPort *rp, long flag) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) anOb; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) flag; + MyCaos.caos_Un.Offset = (-600); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeRaster(p, width, height) _FreeRaster(GRAPHICS_BASE_NAME, p, width, height) + + static __inline void + _FreeRaster(void *GfxBase, PLANEPTR p, unsigned long width, unsigned long height) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) p; + MyCaos.d0 =(ULONG) width; + MyCaos.d1 =(ULONG) height; + MyCaos.caos_Un.Offset = (-498); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeSprite(num) _FreeSprite(GRAPHICS_BASE_NAME, num) + + static __inline void + _FreeSprite(void *GfxBase, long num) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) num; + MyCaos.caos_Un.Offset = (-414); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeSpriteData(sp) _FreeSpriteData(GRAPHICS_BASE_NAME, sp) + + static __inline void + _FreeSpriteData(void *GfxBase, struct ExtSprite *sp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a2 =(ULONG) sp; + MyCaos.caos_Un.Offset = (-1032); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define FreeVPortCopLists(vp) _FreeVPortCopLists(GRAPHICS_BASE_NAME, vp) + + static __inline void + _FreeVPortCopLists(void *GfxBase, struct ViewPort *vp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.caos_Un.Offset = (-540); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define GetAPen(rp) _GetAPen(GRAPHICS_BASE_NAME, rp) + + static __inline ULONG + _GetAPen(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-858); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define GetBPen(rp) _GetBPen(GRAPHICS_BASE_NAME, rp) + + static __inline ULONG + _GetBPen(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-864); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define GetBitMapAttr(bm, attrnum) _GetBitMapAttr(GRAPHICS_BASE_NAME, bm, attrnum) + + static __inline ULONG + _GetBitMapAttr(void *GfxBase, struct BitMap *bm, unsigned long attrnum) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) bm; + MyCaos.d1 =(ULONG) attrnum; + MyCaos.caos_Un.Offset = (-960); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define GetColorMap(entries) _GetColorMap(GRAPHICS_BASE_NAME, entries) + + static __inline struct ColorMap * + _GetColorMap(void *GfxBase, long entries) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) entries; + MyCaos.caos_Un.Offset = (-570); + MyCaos.a6 =(ULONG) GfxBase; + return((struct ColorMap *)PPCCallOS(&MyCaos)); + } + + #define GetDisplayInfoData(handle, buf, size, tagID, displayID) _GetDisplayInfoData(GRAPHICS_BASE_NAME, handle, buf, size, tagID, displayID) + + static __inline ULONG + _GetDisplayInfoData(void *GfxBase, DisplayInfoHandle handle, UBYTE *buf, unsigned long size, unsigned long tagID, unsigned long displayID) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) handle; + MyCaos.a1 =(ULONG) buf; + MyCaos.d0 =(ULONG) size; + MyCaos.d1 =(ULONG) tagID; + MyCaos.d2 =(ULONG) displayID; + MyCaos.caos_Un.Offset = (-756); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define GetDrMd(rp) _GetDrMd(GRAPHICS_BASE_NAME, rp) + + static __inline ULONG + _GetDrMd(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-870); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define GetExtSpriteA(ss, tags) _GetExtSpriteA(GRAPHICS_BASE_NAME, ss, tags) + + static __inline LONG + _GetExtSpriteA(void *GfxBase, struct ExtSprite *ss, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a2 =(ULONG) ss; + MyCaos.a1 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-930); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #ifndef NO_PPCINLINE_STDARG + #define GetExtSprite(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetExtSpriteA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetGBuffers(anOb, rp, flag) _GetGBuffers(GRAPHICS_BASE_NAME, anOb, rp, flag) + + static __inline BOOL + _GetGBuffers(void *GfxBase, struct AnimOb *anOb, struct RastPort *rp, long flag) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) anOb; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) flag; + MyCaos.caos_Un.Offset = (-168); + MyCaos.a6 =(ULONG) GfxBase; + return((BOOL)PPCCallOS(&MyCaos)); + } + + #define GetOutlinePen(rp) _GetOutlinePen(GRAPHICS_BASE_NAME, rp) + + static __inline ULONG + _GetOutlinePen(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-876); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define GetRGB32(cm, firstcolor, ncolors, table) _GetRGB32(GRAPHICS_BASE_NAME, cm, firstcolor, ncolors, table) + + static __inline void + _GetRGB32(void *GfxBase, struct ColorMap *cm, unsigned long firstcolor, unsigned long ncolors, ULONG *table) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) cm; + MyCaos.d0 =(ULONG) firstcolor; + MyCaos.d1 =(ULONG) ncolors; + MyCaos.a1 =(ULONG) table; + MyCaos.caos_Un.Offset = (-900); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define GetRGB4(colorMap, entry) _GetRGB4(GRAPHICS_BASE_NAME, colorMap, entry) + + static __inline ULONG + _GetRGB4(void *GfxBase, struct ColorMap *colorMap, long entry) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) colorMap; + MyCaos.d0 =(ULONG) entry; + MyCaos.caos_Un.Offset = (-582); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define GetRPAttrsA(rp, tags) _GetRPAttrsA(GRAPHICS_BASE_NAME, rp, tags) + + static __inline void + _GetRPAttrsA(void *GfxBase, struct RastPort *rp, struct TagItem *tags) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) rp; + MyCaos.a1 =(ULONG) tags; + MyCaos.caos_Un.Offset = (-1044); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #ifndef NO_PPCINLINE_STDARG + #define GetRPAttrs(a0, tags...) \ + ({ULONG _tags[] = { tags }; GetRPAttrsA((a0), (struct TagItem *)_tags);}) + #endif /* !NO_PPCINLINE_STDARG */ + + #define GetSprite(sprite, num) _GetSprite(GRAPHICS_BASE_NAME, sprite, num) + + static __inline WORD + _GetSprite(void *GfxBase, struct SimpleSprite *sprite, long num) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) sprite; + MyCaos.d0 =(ULONG) num; + MyCaos.caos_Un.Offset = (-408); + MyCaos.a6 =(ULONG) GfxBase; + return((WORD)PPCCallOS(&MyCaos)); + } + + #define GetVPModeID(vp) _GetVPModeID(GRAPHICS_BASE_NAME, vp) + + static __inline LONG + _GetVPModeID(void *GfxBase, struct ViewPort *vp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.caos_Un.Offset = (-792); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define GfxAssociate(associateNode, gfxNodePtr) _GfxAssociate(GRAPHICS_BASE_NAME, associateNode, gfxNodePtr) + + static __inline void + _GfxAssociate(void *GfxBase, APTR associateNode, APTR gfxNodePtr) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) associateNode; + MyCaos.a1 =(ULONG) gfxNodePtr; + MyCaos.caos_Un.Offset = (-672); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define GfxFree(gfxNodePtr) _GfxFree(GRAPHICS_BASE_NAME, gfxNodePtr) + + static __inline void + _GfxFree(void *GfxBase, APTR gfxNodePtr) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) gfxNodePtr; + MyCaos.caos_Un.Offset = (-666); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define GfxLookUp(associateNode) _GfxLookUp(GRAPHICS_BASE_NAME, associateNode) + + static __inline APTR + _GfxLookUp(void *GfxBase, APTR associateNode) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) associateNode; + MyCaos.caos_Un.Offset = (-702); + MyCaos.a6 =(ULONG) GfxBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define GfxNew(gfxNodeType) _GfxNew(GRAPHICS_BASE_NAME, gfxNodeType) + + static __inline APTR + _GfxNew(void *GfxBase, unsigned long gfxNodeType) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) gfxNodeType; + MyCaos.caos_Un.Offset = (-660); + MyCaos.a6 =(ULONG) GfxBase; + return((APTR)PPCCallOS(&MyCaos)); + } + + #define InitArea(areaInfo, vectorBuffer, maxVectors) _InitArea(GRAPHICS_BASE_NAME, areaInfo, vectorBuffer, maxVectors) + + static __inline void + _InitArea(void *GfxBase, struct AreaInfo *areaInfo, APTR vectorBuffer, long maxVectors) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) areaInfo; + MyCaos.a1 =(ULONG) vectorBuffer; + MyCaos.d0 =(ULONG) maxVectors; + MyCaos.caos_Un.Offset = (-282); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define InitBitMap(bitMap, depth, width, height) _InitBitMap(GRAPHICS_BASE_NAME, bitMap, depth, width, height) + + static __inline void + _InitBitMap(void *GfxBase, struct BitMap *bitMap, long depth, long width, long height) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) bitMap; + MyCaos.d0 =(ULONG) depth; + MyCaos.d1 =(ULONG) width; + MyCaos.d2 =(ULONG) height; + MyCaos.caos_Un.Offset = (-390); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define InitGMasks(anOb) _InitGMasks(GRAPHICS_BASE_NAME, anOb) + + static __inline void + _InitGMasks(void *GfxBase, struct AnimOb *anOb) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) anOb; + MyCaos.caos_Un.Offset = (-174); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define InitGels(head, tail, gelsInfo) _InitGels(GRAPHICS_BASE_NAME, head, tail, gelsInfo) + + static __inline void + _InitGels(void *GfxBase, struct VSprite *head, struct VSprite *tail, struct GelsInfo *gelsInfo) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) head; + MyCaos.a1 =(ULONG) tail; + MyCaos.a2 =(ULONG) gelsInfo; + MyCaos.caos_Un.Offset = (-120); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define InitMasks(vSprite) _InitMasks(GRAPHICS_BASE_NAME, vSprite) + + static __inline void + _InitMasks(void *GfxBase, struct VSprite *vSprite) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vSprite; + MyCaos.caos_Un.Offset = (-126); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define InitRastPort(rp) _InitRastPort(GRAPHICS_BASE_NAME, rp) + + static __inline void + _InitRastPort(void *GfxBase, struct RastPort *rp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.caos_Un.Offset = (-198); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define InitTmpRas(tmpRas, buffer, size) _InitTmpRas(GRAPHICS_BASE_NAME, tmpRas, buffer, size) + + static __inline struct TmpRas * + _InitTmpRas(void *GfxBase, struct TmpRas *tmpRas, PLANEPTR buffer, long size) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) tmpRas; + MyCaos.a1 =(ULONG) buffer; + MyCaos.d0 =(ULONG) size; + MyCaos.caos_Un.Offset = (-468); + MyCaos.a6 =(ULONG) GfxBase; + return((struct TmpRas *)PPCCallOS(&MyCaos)); + } + + #define InitVPort(vp) _InitVPort(GRAPHICS_BASE_NAME, vp) + + static __inline void + _InitVPort(void *GfxBase, struct ViewPort *vp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.caos_Un.Offset = (-204); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define InitView(view) _InitView(GRAPHICS_BASE_NAME, view) + + static __inline void + _InitView(void *GfxBase, struct View *view) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) view; + MyCaos.caos_Un.Offset = (-360); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define LoadRGB32(vp, table) _LoadRGB32(GRAPHICS_BASE_NAME, vp, table) + + static __inline void + _LoadRGB32(void *GfxBase, struct ViewPort *vp, ULONG *table) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.a1 =(ULONG) table; + MyCaos.caos_Un.Offset = (-882); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define LoadRGB4(vp, colors, count) _LoadRGB4(GRAPHICS_BASE_NAME, vp, colors, count) + + static __inline void + _LoadRGB4(void *GfxBase, struct ViewPort *vp, UWORD *colors, long count) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.a1 =(ULONG) colors; + MyCaos.d0 =(ULONG) count; + MyCaos.caos_Un.Offset = (-192); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define LoadView(view) _LoadView(GRAPHICS_BASE_NAME, view) + + static __inline void + _LoadView(void *GfxBase, struct View *view) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) view; + MyCaos.caos_Un.Offset = (-222); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define LockLayerRom(layer) _LockLayerRom(GRAPHICS_BASE_NAME, layer) + + static __inline void + _LockLayerRom(void *GfxBase, struct Layer *layer) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a5 =(ULONG) layer; + MyCaos.caos_Un.Offset = (-432); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define MakeVPort(view, vp) _MakeVPort(GRAPHICS_BASE_NAME, view, vp) + + static __inline ULONG + _MakeVPort(void *GfxBase, struct View *view, struct ViewPort *vp) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) view; + MyCaos.a1 =(ULONG) vp; + MyCaos.caos_Un.Offset = (-216); + MyCaos.a6 =(ULONG) GfxBase; + return((ULONG)PPCCallOS(&MyCaos)); + } + + #define ModeNotAvailable(modeID) _ModeNotAvailable(GRAPHICS_BASE_NAME, modeID) + + static __inline LONG + _ModeNotAvailable(void *GfxBase, unsigned long modeID) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.d0 =(ULONG) modeID; + MyCaos.caos_Un.Offset = (-798); + MyCaos.a6 =(ULONG) GfxBase; + return((LONG)PPCCallOS(&MyCaos)); + } + + #define Move(rp, x, y) _Move(GRAPHICS_BASE_NAME, rp, x, y) + + static __inline void + _Move(void *GfxBase, struct RastPort *rp, long x, long y) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a1 =(ULONG) rp; + MyCaos.d0 =(ULONG) x; + MyCaos.d1 =(ULONG) y; + MyCaos.caos_Un.Offset = (-240); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define MoveSprite(vp, sprite, x, y) _MoveSprite(GRAPHICS_BASE_NAME, vp, sprite, x, y) + + static __inline void + _MoveSprite(void *GfxBase, struct ViewPort *vp, struct SimpleSprite *sprite, long x, long y) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStart = NULL; + // MyCaos.PPCSize = 0; + MyCaos.a0 =(ULONG) vp; + MyCaos.a1 =(ULONG) sprite; + MyCaos.d0 =(ULONG) x; + MyCaos.d1 =(ULONG) y; + MyCaos.caos_Un.Offset = (-426); + MyCaos.a6 =(ULONG) GfxBase; + PPCCallOS(&MyCaos); + } + + #define MrgCop(view) _MrgCop(GRAPHICS_BASE_NAME, view) + + static __inline ULONG + _MrgCop(void *GfxBase, struct View *view) + { + struct Caos MyCaos; + MyCaos.M68kCacheMode = IF_CACHEFLUSHALL; + // MyCaos.M68kStart = NULL; + // MyCaos.M68kSize = 0; + MyCaos.PPCCacheMode = IF_CACHEFLUSHALL; + // MyCaos.PPCStar