home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / System / MorphOS / Developer / emulinclude / includenew.diffs < prev    next >
Encoding:
Text File  |  2000-11-02  |  1.6 MB  |  48,007 lines

Text Truncated. Only the first 1MB is shown below. Download the file for the complete contents.
  1. Only in include_h/clib: alib_protos.h
  2. Only in include_h/clib: alib_stdio_protos.h
  3. Only in include_h/clib: all_protos.h
  4. Only in include_h/clib: amigaguide_protos.h
  5. diff -c2 -d -P -r include_h/clib/amigaguide_varprotos.h includenew/clib/amigaguide_varprotos.h
  6. *** include_h/clib/amigaguide_varprotos.h    Thu Jan  1 00:00:00 1970
  7. --- includenew/clib/amigaguide_varprotos.h    Thu Nov  2 22:27:26 2000
  8. ***************
  9. *** 0 ****
  10. --- 1,13 ----
  11. + #ifndef  CLIB_AMIGAGUIDE_VARPROTOS_H
  12. + #define  CLIB_AMIGAGUIDE_VARPROTOS_H
  13. + APTR OpenAmigaGuide( struct NewAmigaGuide *nag, Tag tag1, ... );
  14. + APTR OpenAmigaGuideAsync( struct NewAmigaGuide *nag, Tag tag1, ... );
  15. + LONG SetAmigaGuideContext( APTR cl, unsigned long id, Tag tag1, ... );
  16. + LONG SendAmigaGuideContext( APTR cl, Tag tag1, ... );
  17. + LONG SendAmigaGuideCmd( APTR cl, STRPTR cmd, Tag tag1, ... );
  18. + LONG SetAmigaGuideAttrs( APTR cl, Tag tag1, ... );
  19. + APTR AddAmigaGuideHost( struct Hook *h, STRPTR name, Tag tag1, ... );
  20. + LONG RemoveAmigaGuideHost( APTR hh, Tag tag1, ... );
  21. + #endif
  22. Only in include_h/clib: asl_protos.h
  23. diff -c2 -d -P -r include_h/clib/asl_varprotos.h includenew/clib/asl_varprotos.h
  24. *** include_h/clib/asl_varprotos.h    Thu Jan  1 00:00:00 1970
  25. --- includenew/clib/asl_varprotos.h    Thu Nov  2 22:27:26 2000
  26. ***************
  27. *** 0 ****
  28. --- 1,7 ----
  29. + #ifndef  CLIB_ASL_VARPROTOS_H
  30. + #define  CLIB_ASL_VARPROTOS_H
  31. + APTR AllocAslRequestTags( unsigned long reqType, Tag Tag1, ... );
  32. + BOOL AslRequestTags( APTR requester, Tag Tag1, ... );
  33. + #endif
  34. Only in include_h/clib: battclock_protos.h
  35. Only in include_h/clib: battmem_protos.h
  36. Only in include_h/clib: bullet_protos.h
  37. diff -c2 -d -P -r include_h/clib/bullet_varprotos.h includenew/clib/bullet_varprotos.h
  38. *** include_h/clib/bullet_varprotos.h    Thu Jan  1 00:00:00 1970
  39. --- includenew/clib/bullet_varprotos.h    Thu Nov  2 22:27:26 2000
  40. ***************
  41. *** 0 ****
  42. --- 1,15 ----
  43. + #ifndef  CLIB_BULLET_PROTOS_H
  44. + #define  CLIB_BULLET_PROTOS_H
  45. + #ifndef  UTILITY_TAGITEM_H
  46. + #include <utility/tagitem.h>
  47. + #endif
  48. + #ifndef  DISKFONT_GLYPH_H
  49. + #include <diskfont/glyph.h>
  50. + #endif
  51. + ULONG SetInfo( struct GlyphEngine *glyphEngine, Tag tag1, ... );
  52. + ULONG ObtainInfo( struct GlyphEngine *glyphEngine, Tag tag1, ... );
  53. + ULONG ReleaseInfo( struct GlyphEngine *glyphEngine, Tag tag1, ... );
  54. + #endif
  55. Only in include_h/clib: cardres_protos.h
  56. diff -c2 -d -P -r include_h/clib/cgxdither_protos.h includenew/clib/cgxdither_protos.h
  57. *** include_h/clib/cgxdither_protos.h    Thu Jan  1 00:00:00 1970
  58. --- includenew/clib/cgxdither_protos.h    Thu Nov  2 22:27:26 2000
  59. ***************
  60. *** 0 ****
  61. --- 1,43 ----
  62. + #include    <exec/types.h>
  63. + typedef    APTR    DITHERINFO;
  64. + DITHERINFO    CreateDitherInfo(struct ViewPort    *vp,
  65. +                                  struct RastPort    *rp,
  66. +                                  ULONG            *RGBCM,
  67. +                                  LONG            Size,
  68. +                                  BOOL            SharePens,
  69. +                                  BOOL            UseColour);
  70. + VOID DeleteDitherInfo(DITHERINFO    di);
  71. + BOOL SetDitherMode(DITHERINFO di,
  72. +            ULONG mode);
  73. + BOOL ConvertMap(struct BitMap    *SourceBitMap,
  74. +                 struct BitMap    *DestBitMap,
  75. +                 long  left,
  76. +                 long  top,
  77. +                 long  width,
  78. +                 long  height,
  79. +         unsigned long flags);
  80. + BOOL    DitherMap(struct BitMap    *SourceBitMap,
  81. +                   struct BitMap    *DestBitMap,
  82. +                   DITHERINFO di);
  83. + void    MapHistogram(struct BitMap    *BitMap,
  84. +              ULONG        *HistogramArray);
  85. + ULONG RemapMapColours(struct BitMap    *sBitMap,
  86. +                       struct BitMap    *dBitMap,
  87. +               UBYTE        *RemapPenArray1,
  88. +               UBYTE        *RemapPenArray2,
  89. +                   struct ColorMap    *RemapColorMap,
  90. +               ULONG        Flags);
  91. + struct BitMap *CreateMapMask(struct BitMap    *sBitMap,
  92. +                 ULONG    transColour,
  93. +                   ULONG        Flags);
  94. + void    FreeMapMask(struct BitMap    *maskBitMap);
  95. diff -c2 -d -P -r include_h/clib/cgxsystem_protos.h includenew/clib/cgxsystem_protos.h
  96. *** include_h/clib/cgxsystem_protos.h    Thu Jan  1 00:00:00 1970
  97. --- includenew/clib/cgxsystem_protos.h    Thu Nov  2 22:27:26 2000
  98. ***************
  99. *** 0 ****
  100. --- 1,12 ----
  101. + typedef APTR SLayer;
  102. + struct Region *InstallTransparentRegion(SLayer,
  103. +                                         struct Region *);
  104. + struct Hook *InstallTransparentRegionHook(SLayer,
  105. +                                           struct Hook *);
  106. + ULONG   ShowWindow(struct Window *);
  107. + ULONG   HideWindow(struct Window *);
  108. diff -c2 -d -P -r include_h/clib/cgxvideo_protos.h includenew/clib/cgxvideo_protos.h
  109. *** include_h/clib/cgxvideo_protos.h    Thu Jan  1 00:00:00 1970
  110. --- includenew/clib/cgxvideo_protos.h    Thu Nov  2 22:27:26 2000
  111. ***************
  112. *** 0 ****
  113. --- 1,31 ----
  114. + #ifndef CLIB_CGXVIDEO_H
  115. + #define CLIB_CGXVIDEO_H
  116. + #ifndef UTILITY_TAGITEM_H
  117. + #include <utility/tagitem.h>
  118. + #endif
  119. + struct VLayerHandle *CreateVLayerHandleTagList(struct Screen *,struct TagItem *);
  120. + ULONG DeleteVLayerHandle(struct VLayerHandle *);
  121. + ULONG AttachVLayerTagList(struct VLayerHandle *,struct Window *,struct TagItem *);
  122. + ULONG DetachVLayer(struct VLayerHandle *);
  123. + ULONG GetVLayerAttr(struct VLayerHandle *,ULONG AttrID);
  124. + ULONG UnlockVLayer(struct VLayerHandle *);
  125. + ULONG LockVLayer(struct VLayerHandle *);
  126. + void SetVLayerAttrTagList(struct VLayerHandle *,struct TagItem *);
  127. + ULONG AttachVLayerTags(struct VLayerHandle *,struct Window *,Tag, ...);
  128. + struct VLayerHandle *CreateVLayerHandleTags(struct Screen *,Tag, ...);
  129. + void SetVLayerAttrTags(struct VLayerHandle *,Tag, ...);
  130. + #endif
  131. Only in include_h/clib: cia_protos.h
  132. Only in include_h/clib: colorwheel_protos.h
  133. Only in include_h/clib: commodities_protos.h
  134. Only in include_h/clib: console_protos.h
  135. diff -c2 -d -P -r include_h/clib/cybergraphics_protos.h includenew/clib/cybergraphics_protos.h
  136. *** include_h/clib/cybergraphics_protos.h    Thu Jan  1 00:00:00 1970
  137. --- includenew/clib/cybergraphics_protos.h    Thu Nov  2 22:27:26 2000
  138. ***************
  139. *** 0 ****
  140. --- 1,55 ----
  141. + /*
  142. + **    $VER: cybergraphics_protos.h 41.18 (21.02.1998)
  143. + **
  144. + **    C prototypes for cybergraphics.library
  145. + **
  146. + **    Copyright © 1996-1998 by phase5 digital products
  147. + **      All Rights reserved.
  148. + **
  149. + */
  150. + #ifndef CLIB_CYBERGRAPHICS_H
  151. + #define CLIB_CYBERGRAPHICS_H 1
  152. + #ifndef UTILITY_TAGITEM_H
  153. + #include <utility/tagitem.h>
  154. + #endif
  155. + struct List *AllocCModeListTagList(struct TagItem *);
  156. + struct List *AllocCModeListTags(Tag, ...);
  157. + ULONG        BestCModeIDTagList(struct TagItem *);
  158. + ULONG        BestCModeIDTags(Tag, ...);
  159. + ULONG        CModeRequestTagList(APTR, struct TagItem *);
  160. + ULONG        CModeRequestTags(APTR, Tag, ...);
  161. + void         CVideoCtrlTagList(struct ViewPort *, struct TagItem *);
  162. + void         CVideoCtrlTags(struct ViewPort *, Tag tag1, ...);
  163. + void         DoCDrawMethodTagList(struct Hook *, struct RastPort *, struct TagItem *);
  164. + void         DoCDrawMethodTags(struct Hook *, struct RastPort *, Tag, ...);
  165. + ULONG         ExtractColor(struct RastPort *,struct BitMap *,ULONG,ULONG,ULONG,ULONG,ULONG);
  166. + ULONG        FillPixelArray(struct RastPort *, UWORD, UWORD, UWORD, UWORD, ULONG);
  167. + void         FreeCModeList(struct List *);
  168. + ULONG        GetCyberIDAttr(ULONG, ULONG);
  169. + ULONG        GetCyberMapAttr(struct BitMap *, ULONG);
  170. + ULONG        InvertPixelArray(struct RastPort *, UWORD, UWORD, UWORD, UWORD);
  171. + BOOL         IsCyberModeID(ULONG);
  172. + APTR         LockBitMapTagList(APTR,struct TagItem *);
  173. + APTR         LockBitMapTags(APTR, Tag, ...);
  174. + ULONG        MovePixelArray(UWORD, UWORD, struct RastPort *, UWORD, UWORD, UWORD,
  175. +                             UWORD);
  176. + ULONG        ReadPixelArray(APTR, UWORD, UWORD, UWORD, struct RastPort *, UWORD,
  177. +                             UWORD, UWORD, UWORD, UBYTE);
  178. + ULONG        ReadRGBPixel(struct RastPort *, UWORD, UWORD);
  179. + LONG         ScalePixelArray(APTR,UWORD,UWORD,UWORD,struct RastPort *,UWORD,
  180. +                  UWORD,UWORD,UWORD,UBYTE);
  181. + void         UnLockBitMap(APTR);
  182. + ULONG        WritePixelArray(APTR, UWORD, UWORD, UWORD, struct RastPort *, UWORD,
  183. +                              UWORD, UWORD, UWORD, UBYTE);
  184. + ULONG        WriteLUTPixelArray(APTR, UWORD, UWORD, UWORD, struct RastPort *, APTR,
  185. +                     UWORD, UWORD, UWORD, UWORD, UBYTE);
  186. + LONG         WriteRGBPixel(struct RastPort *, UWORD, UWORD, ULONG);
  187. + void         UnLockBitMapTagList(APTR, struct TagItem *);
  188. + void         UnLockBitMapTags(APTR, Tag, ...);
  189. + void         NewOwnCyberMap(APTR);
  190. + void         NewDisOwnCyberMap(APTR);
  191. + #endif /* !CLIB_CYBERGRAPHICS_H */
  192. Only in include_h/clib: datatypes_protos.h
  193. diff -c2 -d -P -r include_h/clib/datatypes_varprotos.h includenew/clib/datatypes_varprotos.h
  194. *** include_h/clib/datatypes_varprotos.h    Thu Jan  1 00:00:00 1970
  195. --- includenew/clib/datatypes_varprotos.h    Thu Nov  2 22:27:26 2000
  196. ***************
  197. *** 0 ****
  198. --- 1,17 ----
  199. + #ifndef  CLIB_DATATYPES_VARPROTOS_H
  200. + #define  CLIB_DATATYPES_VARPROTOS_H
  201. + struct DataType *ObtainDataType( unsigned long type, APTR handle, Tag Tag1,
  202. +     ... );
  203. + Object *NewDTObject( APTR name, Tag Tag1, ... );
  204. + ULONG SetDTAttrs( Object *o, struct Window *win, struct Requester *req,
  205. +     Tag Tag1, ... );
  206. + ULONG GetDTAttrs( Object *o, Tag Tag1, ... );
  207. + void RefreshDTObjects( Object *o, struct Window *win, struct Requester *req,
  208. +     Tag Tag1, ... );
  209. + ULONG DoDTMethod( Object *o, struct Window *win, struct Requester *req,
  210. +     unsigned long data, ... );
  211. + ULONG PrintDTObject( Object *o, struct Window *w, struct Requester *r,
  212. +     unsigned long data, ... );
  213. + #endif
  214. Only in include_h/clib: disk_protos.h
  215. Only in include_h/clib: diskfont_protos.h
  216. Only in include_h/clib: dos_protos.h
  217. diff -c2 -d -P -r include_h/clib/dos_varprotos.h includenew/clib/dos_varprotos.h
  218. *** include_h/clib/dos_varprotos.h    Thu Jan  1 00:00:00 1970
  219. --- includenew/clib/dos_varprotos.h    Thu Nov  2 22:27:26 2000
  220. ***************
  221. *** 0 ****
  222. --- 1,9 ----
  223. + #ifndef  CLIB_DOS_VARPROTOS_H
  224. + #define  CLIB_DOS_VARPROTOS_H
  225. + APTR AllocDosObjectTags( unsigned long type, unsigned long tag1type, ... );
  226. + struct Process *CreateNewProcTags( unsigned long tag1type, ... );
  227. + LONG SystemTags( STRPTR command, unsigned long tag1type, ... );
  228. + BPTR NewLoadSegTags( STRPTR file, unsigned long tag1type, ... );
  229. + #endif
  230. Only in include_h/clib: dtclass_protos.h
  231. diff -c2 -d -P -r include_h/clib/exec_protos.h includenew/clib/exec_protos.h
  232. *** include_h/clib/exec_protos.h    Thu Nov  2 22:27:42 2000
  233. --- includenew/clib/exec_protos.h    Thu Nov  2 22:27:27 2000
  234. ***************
  235. *** 3,8 ****
  236.   
  237.   /*
  238. ! **    $VER: exec_protos.h 39.15 (1.10.93)
  239. ! **    Includes Release 40.15
  240.   **
  241.   **    C prototypes. For use with 32 bit integers only.
  242. --- 3,8 ----
  243.   
  244.   /*
  245. ! **    $VER: exec_protos.h 39.14 (15.2.93)
  246. ! **    Includes Release 40.13
  247.   **
  248.   **    C prototypes. For use with 32 bit integers only.
  249. ***************
  250. *** 18,23 ****
  251.   #include <exec/tasks.h>
  252.   #endif
  253.   /*------ misc ---------------------------------------------------------*/
  254. ! ULONG Supervisor( unsigned long (*userFunction)() );
  255.   /*------ special patchable hooks to internal exec activity ------------*/
  256.   /*------ module creation ----------------------------------------------*/
  257. --- 18,24 ----
  258.   #include <exec/tasks.h>
  259.   #endif
  260. + #include <stdarg.h>
  261.   /*------ misc ---------------------------------------------------------*/
  262. ! ULONG Supervisor( unsigned long (*userFunction)(void) );
  263.   /*------ special patchable hooks to internal exec activity ------------*/
  264.   /*------ module creation ----------------------------------------------*/
  265. ***************
  266. *** 25,29 ****
  267.   void InitStruct( APTR initTable, APTR memory, unsigned long size );
  268.   struct Library *MakeLibrary( APTR funcInit, APTR structInit,
  269. !     unsigned long (*libInit)(), unsigned long dataSize,
  270.       unsigned long segList );
  271.   void MakeFunctions( APTR target, APTR functionArray,
  272. --- 26,30 ----
  273.   void InitStruct( APTR initTable, APTR memory, unsigned long size );
  274.   struct Library *MakeLibrary( APTR funcInit, APTR structInit,
  275. !     unsigned long (*libInit)(void), unsigned long dataSize,
  276.       unsigned long segList );
  277.   void MakeFunctions( APTR target, APTR functionArray,
  278. ***************
  279. *** 92,96 ****
  280.   void CloseLibrary( struct Library *library );
  281.   APTR SetFunction( struct Library *library, long funcOffset,
  282. !     unsigned long (*newFunction)() );
  283.   void SumLibrary( struct Library *library );
  284.   /*------ devices ------------------------------------------------------*/
  285. --- 93,97 ----
  286.   void CloseLibrary( struct Library *library );
  287.   APTR SetFunction( struct Library *library, long funcOffset,
  288. !     unsigned long (*newFunction)(void) );
  289.   void SumLibrary( struct Library *library );
  290.   /*------ devices ------------------------------------------------------*/
  291. ***************
  292. *** 111,116 ****
  293.   /*------ private diagnostic support -----------------------------------*/
  294.   /*------ misc ---------------------------------------------------------*/
  295. ! APTR RawDoFmt( UBYTE *formatString, APTR dataStream, void (*putChProc)(),
  296. !     APTR putChData );
  297.   ULONG GetCC( void );
  298.   ULONG TypeOfMem( APTR address );
  299. --- 112,120 ----
  300.   /*------ private diagnostic support -----------------------------------*/
  301.   /*------ misc ---------------------------------------------------------*/
  302. ! void    RawIOInit(void);
  303. ! UBYTE    RawMayGetChar(void);
  304. ! APTR    RawDoFmt( UBYTE *formatString, APTR dataStream, void (*putChProc)(void),APTR putChData );
  305. ! void    RawPutChar(UBYTE MyChar);
  306.   ULONG GetCC( void );
  307.   ULONG TypeOfMem( APTR address );
  308. ***************
  309. *** 162,168 ****
  310.   void ColdReboot( void );
  311.   void StackSwap( struct StackSwapStruct *newStack );
  312.   /*------ task trees ---------------------------------------------------*/
  313. - void ChildFree( APTR tid );
  314. - void ChildOrphan( APTR tid );
  315.   void ChildStatus( APTR tid );
  316.   void ChildWait( APTR tid );
  317. --- 166,175 ----
  318.   void ColdReboot( void );
  319.   void StackSwap( struct StackSwapStruct *newStack );
  320. + /*------ New, for PPC --------*/
  321. + ULONG NewGetTaskAttrsA(struct Task*,void*,ULONG,ULONG,struct TagItem*);
  322. + ULONG NewGetTaskAttrs(struct Task*,void*,ULONG,ULONG,...);
  323. + ULONG NewSetTaskAttrsA(struct Task*,void*,ULONG,ULONG,struct TagItem*);
  324. + ULONG NewSetTaskAttrs(struct Task*,void*,ULONG,ULONG,...);
  325.   /*------ task trees ---------------------------------------------------*/
  326.   void ChildStatus( APTR tid );
  327.   void ChildWait( APTR tid );
  328. ***************
  329. *** 177,179 ****
  330. --- 184,193 ----
  331.   /*------ Function to attempt to obtain a Quick Interrupt Vector...*/
  332.   ULONG ObtainQuickVector( APTR interruptCode );
  333. + /*------ New, for PPC --------*/
  334. + struct Library*    NewCreateLibrary(struct TagItem* Tags);
  335. + APTR    NewSetFunction(struct Library* MyLibrary,void* MyFunction,LONG Offset,struct TagItem* Tags);
  336. + ULONG    NewPPCStackSwap(struct StackSwapStruct *newStack,void* MyFunction,struct PPCStackSwapArgs *Args);
  337. + void    *TaggedOpenLibrary(LONG Tag);
  338. + /* PPC only */
  339. + void*    NewRawDoFmt(char    *FmtString,void*    PutChProc,char    *PutChData,va_list    args);
  340.   #endif     /* CLIB_EXEC_PROTOS_H */
  341. Only in include_h/clib: expansion_protos.h
  342. Only in include_h/clib: gadtools_protos.h
  343. diff -c2 -d -P -r include_h/clib/gadtools_varprotos.h includenew/clib/gadtools_varprotos.h
  344. *** include_h/clib/gadtools_varprotos.h    Thu Jan  1 00:00:00 1970
  345. --- includenew/clib/gadtools_varprotos.h    Thu Nov  2 22:27:26 2000
  346. ***************
  347. *** 0 ****
  348. --- 1,30 ----
  349. + #ifndef  CLIB_GADTOOLS_VARPROTOS_H
  350. + #define  CLIB_GADTOOLS_VARPROTOS_H
  351. + #ifndef  EXEC_TYPES_H
  352. + #include <exec/types.h>
  353. + #endif
  354. + #ifndef  INTUITION_INTUITION_H
  355. + #include <intuition/intuition.h>
  356. + #endif
  357. + #ifndef  UTILITY_TAGITEM_H
  358. + #include <utility/tagitem.h>
  359. + #endif
  360. + #ifndef  LIBRARIES_GADTOOLS_H
  361. + #include <libraries/gadtools.h>
  362. + #endif
  363. + struct Gadget *CreateGadget( unsigned long kind, struct Gadget *gad,
  364. +     struct NewGadget *ng, Tag tag1, ... );
  365. + void GT_SetGadgetAttrs( struct Gadget *gad, struct Window *win,
  366. +     struct Requester *req, Tag tag1, ... );
  367. + struct Menu *CreateMenus( struct NewMenu *newmenu, Tag tag1, ... );
  368. + BOOL LayoutMenuItems( struct MenuItem *firstitem, APTR vi, Tag tag1, ... );
  369. + BOOL LayoutMenus( struct Menu *firstmenu, APTR vi, Tag tag1, ... );
  370. + void DrawBevelBox( struct RastPort *rport, long left, long top, long width,
  371. +     long height, Tag tag1, ... );
  372. + APTR GetVisualInfo( struct Screen *screen, Tag tag1, ... );
  373. + LONG GT_GetGadgetAttrs( struct Gadget *gad, struct Window *win,
  374. +     struct Requester *req, Tag tag1, ... );
  375. + #endif
  376. Only in include_h/clib: graphics_protos.h
  377. diff -c2 -d -P -r include_h/clib/graphics_varprotos.h includenew/clib/graphics_varprotos.h
  378. *** include_h/clib/graphics_varprotos.h    Thu Jan  1 00:00:00 1970
  379. --- includenew/clib/graphics_varprotos.h    Thu Nov  2 22:27:26 2000
  380. ***************
  381. *** 0 ****
  382. --- 1,25 ----
  383. + #ifndef  CLIB_GRAPHICS_VARPROTOS_H
  384. + #define  CLIB_GRAPHICS_VARPROTOS_H
  385. + #define AllocSpriteData(a0, tags...) \
  386. +     ({ULONG _tags[] = { tags }; AllocSpriteDataA((a0), (struct TagItem *)_tags);})
  387. + #define BestModeID(tags...) \
  388. +     ({ULONG _tags[] = { tags }; BestModeIDA((struct TagItem *)_tags);})
  389. + #define ChangeExtSprite(a0, a1, a2, tags...) \
  390. +     ({ULONG _tags[] = { tags }; ChangeExtSpriteA((a0), (a1), (a2), (struct TagItem *)_tags);})
  391. + #define ExtendFontTags(a0, tags...) \
  392. +     ({ULONG _tags[] = { tags }; ExtendFont((a0), (struct TagItem *)_tags);})
  393. + #define GetExtSprite(a0, tags...) \
  394. +     ({ULONG _tags[] = { tags }; GetExtSpriteA((a0), (struct TagItem *)_tags);})
  395. + #define GetRPAttrs(a0, tags...) \
  396. +     ({ULONG _tags[] = { tags }; GetRPAttrsA((a0), (struct TagItem *)_tags);})
  397. + #define ObtainBestPen(a0, a1, a2, a3, tags...) \
  398. +     ({ULONG _tags[] = { tags }; ObtainBestPenA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);})
  399. + #define SetRPAttrs(a0, tags...) \
  400. +     ({ULONG _tags[] = { tags }; SetRPAttrsA((a0), (struct TagItem *)_tags);})
  401. + #define VideoControlTags(a0, tags...) \
  402. +     ({ULONG _tags[] = { tags }; VideoControl((a0), (struct TagItem *)_tags);})
  403. + #define WeighTAMatchTags(a0, a1, tags...) \
  404. +     ({ULONG _tags[] = { tags }; WeighTAMatch((a0), (a1), (struct TagItem *)_tags);})
  405. + #endif
  406. Only in include_h/clib: icon_protos.h
  407. Only in include_h/clib: iffparse_protos.h
  408. Only in include_h/clib: input_protos.h
  409. Only in include_h/clib: intuition_protos.h
  410. diff -c2 -d -P -r include_h/clib/intuition_varprotos.h includenew/clib/intuition_varprotos.h
  411. *** include_h/clib/intuition_varprotos.h    Thu Jan  1 00:00:00 1970
  412. --- includenew/clib/intuition_varprotos.h    Thu Nov  2 22:27:26 2000
  413. ***************
  414. *** 0 ****
  415. --- 1,23 ----
  416. + #ifndef  CLIB_INTUITION_VARPROTOS_H
  417. + #define  CLIB_INTUITION_VARPROTOS_H
  418. + LONG EasyRequest( struct Window *window, struct EasyStruct *easyStruct,
  419. +     ULONG *idcmpPtr, ... );
  420. + struct Window *BuildEasyRequest( struct Window *window,
  421. +     struct EasyStruct *easyStruct, unsigned long idcmp, ... );
  422. + struct Window *OpenWindowTags( struct NewWindow *newWindow,
  423. +     unsigned long tag1Type, ... );
  424. + struct Screen *OpenScreenTags( struct NewScreen *newScreen,
  425. +     unsigned long tag1Type, ... );
  426. + APTR NewObject( struct IClass *classPtr, UBYTE *classID, unsigned long tag1,
  427. +     ... );
  428. + #ifndef SetAttrs
  429. + ULONG SetAttrs( APTR object, unsigned long tag1, ... );
  430. + #endif
  431. + ULONG SetGadgetAttrs( struct Gadget *gadget, struct Window *window,
  432. +     struct Requester *requester, unsigned long tag1, ... );
  433. + ULONG DoGadgetMethod( struct Gadget *gad, struct Window *win,
  434. +     struct Requester *req, unsigned long MethodID, ... );
  435. + void SetWindowPointer( struct Window *win, unsigned long tag1, ... );
  436. + #endif
  437. Only in include_h/clib: keymap_protos.h
  438. Only in include_h/clib: layers_protos.h
  439. Only in include_h/clib: locale_protos.h
  440. diff -c2 -d -P -r include_h/clib/locale_varprotos.h includenew/clib/locale_varprotos.h
  441. *** include_h/clib/locale_varprotos.h    Thu Jan  1 00:00:00 1970
  442. --- includenew/clib/locale_varprotos.h    Thu Nov  2 22:27:26 2000
  443. ***************
  444. *** 0 ****
  445. --- 1,7 ----
  446. + #ifndef  CLIB_LOCALE_VARPROTOS_H
  447. + #define  CLIB_LOCALE_VARPROTOS_H
  448. + #define OpenCatalog(a0, a1, tags...) \
  449. +     ({ULONG _tags[] = { tags }; OpenCatalogA((a0), (a1), (struct TagItem *)_tags);})
  450. + #endif
  451. Only in include_h/clib: lowlevel_protos.h
  452. Only in include_h/clib: macros.h
  453. Only in include_h/clib: mathffp_protos.h
  454. Only in include_h/clib: mathieeedoubbas_protos.h
  455. Only in include_h/clib: mathieeedoubtrans_protos.h
  456. Only in include_h/clib: mathieeesingbas_protos.h
  457. Only in include_h/clib: mathieeesingtrans_protos.h
  458. Only in include_h/clib: mathtrans_protos.h
  459. Only in include_h/clib: misc_protos.h
  460. diff -c2 -d -P -r include_h/clib/muimaster_varprotos.h includenew/clib/muimaster_varprotos.h
  461. *** include_h/clib/muimaster_varprotos.h    Thu Jan  1 00:00:00 1970
  462. --- includenew/clib/muimaster_varprotos.h    Thu Nov  2 22:27:26 2000
  463. ***************
  464. *** 0 ****
  465. --- 1,12 ----
  466. + #ifndef  CLIB_MUIMASTER_VARPROTOS_H
  467. + #define  CLIB_MUIMASTER_VARPROTOS_H
  468. + Object *MUI_NewObject          (char *classname,Tag tag1,...);
  469. + Object *MUI_MakeObject         (LONG type,...);
  470. + LONG    MUI_Request            (APTR app,APTR win,ULONG flags,char *title,char *gadgets,char *format,...);
  471. + APTR    MUI_AllocAslRequestTags(unsigned long reqType, Tag Tag1, ...);
  472. + BOOL    MUI_AslRequestTags     (APTR requester, Tag Tag1, ...);
  473. + APTR MUIP_listCreate(LONG tag, ...);
  474. + LONG MUIP_listSetup(struct MagicList *ml, LONG tag, ...);
  475. + #endif
  476. Only in include_h/clib: nonvolatile_protos.h
  477. Only in include_h/clib: potgo_protos.h
  478. diff -c2 -d -P -r include_h/clib/ppc_protos.h includenew/clib/ppc_protos.h
  479. *** include_h/clib/ppc_protos.h    Thu Jan  1 00:00:00 1970
  480. --- includenew/clib/ppc_protos.h    Thu Nov  2 22:27:26 2000
  481. ***************
  482. *** 0 ****
  483. --- 1,138 ----
  484. + #ifndef POWERUP_PPCLIB_PROTOS_H
  485. + #define POWERUP_PPCLIB_PROTOS_H
  486. + void*    PPCLoadObject(char*);
  487. + void    PPCUnLoadObject(void*);
  488. + ULONG    PPCRunObject(void*,void*);
  489. + void*    PPCAllocMem(ULONG,ULONG);
  490. + void    PPCFreeMem(void*,ULONG);
  491. + void*    PPCAllocVec(ULONG,ULONG);
  492. + void*    PPCFreeVec(void*);
  493. + void    *PPCCreateTask(void*,
  494. +                                struct TagItem*);
  495. + void    *PPCCreateTaskTags(void*,
  496. +                                    unsigned long tag1Type, ... );
  497. + BOOL    PPCDeleteTask(void*);
  498. + void    PPCSignalTask(void*,ULONG);
  499. + void    *PPCFindTask(char    *);
  500. + ULONG    PPCRunKernelObject(void*,
  501. +                                    struct ModuleArgs*);
  502. + DOUBLE    PPCRunKernelObjectFPU(void*,
  503. +                                       struct ModuleArgs*);
  504. + ULONG    PPCGetTaskAttrs(void*,
  505. +                                 struct TagItem*);
  506. + ULONG    PPCGetTaskAttrsTags(void*,
  507. +                                     unsigned long tag1Type,
  508. +                                     ...);
  509. + ULONG    PPCGetAttrs(struct TagItem*);
  510. + ULONG    PPCGetAttrsTags(unsigned long tag1Type,
  511. +                                 ...);
  512. + void    *PPCFindTaskObject(void*);
  513. + ULONG    PPCReadLong(ULONG*);
  514. + void    PPCWriteLong(ULONG*,ULONG);
  515. + BOOL    PPCStartTask(void*,
  516. +                              struct TagItem*);
  517. + BOOL    PPCStartTaskTags(void*,
  518. +                                  unsigned long tag1Type, ... );
  519. + BOOL    PPCStopTask(void*,
  520. +                             struct TagItem*);
  521. + BOOL    PPCStopTaskTags(void*,
  522. +                                 unsigned long tag1Type, ... );
  523. + ULONG    PPCSetTaskAttrs(void*,
  524. +                                 struct TagItem*);
  525. + ULONG    PPCSetTaskAttrsTags(void*,
  526. +                                     unsigned long tag1Type,
  527. +                                     ...);
  528. + ULONG    PPCGetObjectAttrs(void*,
  529. +                                   struct PPCObjectInfo*,
  530. +                                   struct TagItem*);
  531. + ULONG    PPCGetObjectAttrsTags(void*,
  532. +                                       struct PPCObjectInfo*,
  533. +                                       unsigned long tag1Type,
  534. +                                       ... );
  535. + void    PPCWriteLongFlush(ULONG*,ULONG);
  536. + UWORD    PPCReadWord(UWORD*);
  537. + void    PPCWriteWord(UWORD*,UWORD);
  538. + UBYTE    PPCReadByte(UBYTE*);
  539. + void    PPCWriteByte(UBYTE*,UBYTE);
  540. + void*    PPCCreatePool(ULONG        MemFlags,
  541. +                               ULONG        PuddleSize,
  542. +                               ULONG        ThreshSize);
  543. + BOOL    PPCDeletePool(void*);
  544. + void*    PPCAllocPooled(void*,
  545. +                                ULONG);
  546. + void    PPCFreePooled(void*,
  547. +                               void*,
  548. +                               ULONG);
  549. + void    PPCFreeVecPooled(void*,
  550. +                                  void*);
  551. + void*    PPCAllocVecPooled(void*,
  552. +                                   ULONG);
  553. + void*    PPCCreatePort(struct TagItem*);
  554. + void*    PPCCreatePortTags(unsigned long tag1Type, ... );
  555. + BOOL    PPCDeletePort(void*);
  556. + void*    PPCObtainPort(struct TagItem*);
  557. + void*    PPCObtainPortTags(unsigned long tag1Type, ... );
  558. + BOOL    PPCReleasePort(void*);
  559. + void*    PPCCreateMessage(void*,
  560. +                                  ULONG);
  561. + void    PPCDeleteMessage(void*);
  562. + ULONG    PPCGetMessageAttr(void*,
  563. +                                   ULONG);
  564. + void*    PPCGetMessage(void*);
  565. + BOOL    PPCReplyMessage(void*);
  566. + BOOL    PPCSendMessage(void*,
  567. +                                void*,
  568. +                                void*,
  569. +                                ULONG,
  570. +                                ULONG);
  571. + void*    PPCWaitPort(void*);
  572. + void    PPCCacheClearE(void*,
  573. +                                ULONG,
  574. +                                ULONG);
  575. + void    PPCCacheInvalidE(void*,
  576. +                                  ULONG,
  577. +                                  ULONG);
  578. + void*    PPCCreatePortList(void**,ULONG);
  579. + void    PPCDeletePortList(void*);
  580. + BOOL    PPCAddPortList(void*,
  581. +                                void*);
  582. + void    PPCRemPortList(void*,
  583. +                                void*);
  584. + void*    PPCWaitPortList(void*);
  585. + ULONG    PPCGetPortListAttr(void*,
  586. +                                    ULONG);
  587. + void    PPCSetPortListAttr(void*,
  588. +                                    ULONG,
  589. +                                    ULONG);
  590. + void*    PPCLoadObjectTags(unsigned long tag1Type, ... );
  591. + void*    PPCLoadObjectTagList(struct TagItem*);
  592. + BOOL    PPCSetAttrs(struct TagItem*);
  593. + BOOL    PPCSetAttrsTags(unsigned long tag1Type, ... );
  594. + void    PPCCacheTrashE(void*,
  595. +                                ULONG,
  596. +                                ULONG);
  597. + void    *PPCOpenLibrary(char*,
  598. +                                 struct TagItem*);
  599. + void    PPCCloseLibrary(void*);
  600. + void    *PPCGetLibSymbol(void*,
  601. +                                  char*);
  602. + #endif
  603. diff -c2 -d -P -r include_h/clib/ppcdiss_protos.h includenew/clib/ppcdiss_protos.h
  604. *** include_h/clib/ppcdiss_protos.h    Thu Jan  1 00:00:00 1970
  605. --- includenew/clib/ppcdiss_protos.h    Thu Nov  2 22:27:27 2000
  606. ***************
  607. *** 0 ****
  608. --- 1,15 ----
  609. + #ifndef POWERUP_PPCLIB_PPCDISS_PROTOS_H
  610. + #define POWERUP_PPCLIB_PPCDISS_PROTOS_H
  611. + APTR    CreateDisAssHandleTagList(struct  TagItem *);
  612. + void    DeleteDisAssHandle(APTR);
  613. + ULONG    DisAssTagList(APTR,
  614. +                       struct TagItem *);
  615. + #ifdef __SASC_60
  616. + APTR    CreateDisAssHandleTags(Tag, ...);
  617. + ULONG    DisAssTags(APTR,
  618. +                    Tag, ...);
  619. + #endif
  620. + #endif
  621. Only in include_h/clib: ramdrive_protos.h
  622. Only in include_h/clib: realtime_protos.h
  623. Only in include_h/clib: rexxsyslib_protos.h
  624. Only in include_h/clib: timer_protos.h
  625. Only in include_h/clib: translator_protos.h
  626. Only in include_h/clib: utility_protos.h
  627. Only in include_h/clib: wb_protos.h
  628. diff -c2 -d -P -r include_h/clib/wb_varprotos.h includenew/clib/wb_varprotos.h
  629. *** include_h/clib/wb_varprotos.h    Thu Jan  1 00:00:00 1970
  630. --- includenew/clib/wb_varprotos.h    Thu Nov  2 22:27:26 2000
  631. ***************
  632. *** 0 ****
  633. --- 1,28 ----
  634. + #ifndef  CLIB_WB_VARPROTOS_H
  635. + #define  CLIB_WB_VARPROTOS_H
  636. + #ifndef  EXEC_TYPES_H
  637. + #include <exec/types.h>
  638. + #endif
  639. + #ifndef  DOS_DOS_H
  640. + #include <dos/dos.h>
  641. + #endif
  642. + #ifndef  WORKBENCH_WORKBENCH_H
  643. + #include <workbench/workbench.h>
  644. + #endif
  645. + #ifndef  INTUITION_INTUITION_H
  646. + #include <intuition/intuition.h>
  647. + #endif
  648. + #ifndef  UTILITY_TAGITEM_H
  649. + #include <utility/tagitem.h>
  650. + #endif
  651. + struct AppWindow *AddAppWindow( unsigned long id, unsigned long userdata,
  652. +     struct Window *window, struct MsgPort *msgport, Tag tag1, ... );
  653. + struct AppIcon *AddAppIcon( unsigned long id, unsigned long userdata,
  654. +     UBYTE *text, struct MsgPort *msgport, struct FileLock *lock,
  655. +     struct DiskObject *diskobj, Tag tag1, ... );
  656. + struct AppMenuItem *AddAppMenuItem( unsigned long id, unsigned long userdata,
  657. +     UBYTE *text, struct MsgPort *msgport, Tag tag1, ... );
  658. + #endif
  659. diff -c2 -d -P -r include_h/cybergraphics/cybergraphics.h includenew/cybergraphics/cybergraphics.h
  660. *** include_h/cybergraphics/cybergraphics.h    Thu Jan  1 00:00:00 1970
  661. --- includenew/cybergraphics/cybergraphics.h    Thu Nov  2 22:27:25 2000
  662. ***************
  663. *** 0 ****
  664. --- 1,202 ----
  665. + /*
  666. + **    $VER: cybergraphics.h 41.18 (21.02.1998)
  667. + **
  668. + **    include file for cybergraphics.library
  669. + **
  670. + **    Copyright © 1996-1998 by phase5 digital products
  671. + **      All Rights reserved.
  672. + **
  673. + */
  674. + #ifndef CYBERGRAPHX_CYBERGRAPHICS_H
  675. + #define CYBERGRAPHX_CYBERGRAPHICS_H 1
  676. + #ifndef UTILITY_TAGITEM_H
  677. + #include <utility/tagitem.h>
  678. + #endif
  679. + #ifndef GRAPHICS_DISPLAYINFO_H
  680. + #include <graphics/displayinfo.h>
  681. + #endif
  682. + #define CYBERGFXNAME    "cybergraphics.library"
  683. + #define CYBERGFX_INCLUDE_VERSION  (41UL)
  684. + /*                                                          *
  685. +  *  Definition of CyberModeNode (Returned in AllocModeList) *
  686. +  *                                                          */
  687. + struct CyberModeNode
  688. +  {
  689. +   struct Node Node;
  690. +   char   ModeText[DISPLAYNAMELEN];    /* name for this mode */
  691. +   ULONG  DisplayID;            /* display id associated with the node */
  692. +   UWORD  Width;                /* visible width */
  693. +   UWORD  Height;            /* visible height */
  694. +   UWORD  Depth;                /* display depth */
  695. +   struct TagItem *DisplayTagList;    /* taglist with extended ModeID information */
  696. +  };
  697. + /*                                  *
  698. +  * Parameters for GetCyberMapAttr() *
  699. +  *                                  */
  700. + #define CYBRMATTR_XMOD        (0x80000001) /* function returns BytesPerRow if its called with this parameter */
  701. + #define CYBRMATTR_BPPIX       (0x80000002) /* BytesPerPixel shall be returned */
  702. + #define CYBRMATTR_DISPADR     (0x80000003) /* do not use this ! private tag */
  703. + #define CYBRMATTR_PIXFMT      (0x80000004) /* the pixel format is returned */
  704. + #define CYBRMATTR_WIDTH       (0x80000005) /* returns width in pixels */
  705. + #define CYBRMATTR_HEIGHT      (0x80000006) /* returns height in lines */
  706. + #define CYBRMATTR_DEPTH       (0x80000007) /* returns bits per pixel */
  707. + #define CYBRMATTR_ISCYBERGFX  (0x80000008) /* returns -1 if supplied bitmap is a cybergfx one */
  708. + #define CYBRMATTR_ISLINEARMEM (0x80000009) /* returns -1 if supplied bitmap is linear accessable */
  709. + /*                                 *
  710. +  * Parameters for GetCyberIDAttr() *
  711. +  *                                 */
  712. + #define CYBRIDATTR_PIXFMT (0x80000001) /* the pixel format is returned */
  713. + #define CYBRIDATTR_WIDTH  (0x80000002) /* returns visible width in pixels */
  714. + #define CYBRIDATTR_HEIGHT (0x80000003) /* returns visible height in lines */
  715. + #define CYBRIDATTR_DEPTH  (0x80000004) /* returns bits per pixel */
  716. + #define CYBRIDATTR_BPPIX  (0x80000005) /* BytesPerPixel shall be returned */
  717. + /*                              *
  718. +  * Tags for CyberModeRequest()  *
  719. +  *                              */
  720. + #define CYBRMREQ_TB          (TAG_USER+0x40000)
  721. + /*            *
  722. +  * FilterTags *
  723. +  *            */
  724. + #define CYBRMREQ_MinDepth    (CYBRMREQ_TB+0)  /* Minimum depth for displayed screenmode */
  725. + #define CYBRMREQ_MaxDepth    (CYBRMREQ_TB+1)  /* Maximum depth  "       "        " */
  726. + #define CYBRMREQ_MinWidth    (CYBRMREQ_TB+2)  /* Minumum width  "       "        " */
  727. + #define CYBRMREQ_MaxWidth    (CYBRMREQ_TB+3)  /* Maximum width  "       "        " */
  728. + #define CYBRMREQ_MinHeight   (CYBRMREQ_TB+4)  /* Minumum height "       "        " */
  729. + #define CYBRMREQ_MaxHeight   (CYBRMREQ_TB+5)  /* Minumum height "       "        " */
  730. + #define CYBRMREQ_CModelArray (CYBRMREQ_TB+6)
  731. + #define CYBRMREQ_WinTitle    (CYBRMREQ_TB+20)
  732. + #define CYBRMREQ_OKText      (CYBRMREQ_TB+21)
  733. + #define CYBRMREQ_CancelText  (CYBRMREQ_TB+22)
  734. + #define CYBRMREQ_Screen      (CYBRMREQ_TB+30)  /* Screen you wish the Requester to open on */
  735. + /*                            *
  736. +  * Tags for BestCyberModeID() *
  737. +  *                            */
  738. + #define CYBRBIDTG_TB  (TAG_USER+0x50000)
  739. + /* FilterTags */
  740. + #define CYBRBIDTG_Depth         (CYBRBIDTG_TB+0)
  741. + #define CYBRBIDTG_NominalWidth  (CYBRBIDTG_TB+1)
  742. + #define CYBRBIDTG_NominalHeight (CYBRBIDTG_TB+2)
  743. + #define CYBRBIDTG_MonitorID     (CYBRBIDTG_TB+3)
  744. + #define CYBRBIDTG_BoardName     (CYBRBIDTG_TB+5)
  745. + /*                                    *
  746. +  * definition of divers pixel formats *
  747. +  *                                    */
  748. + #define PIXFMT_LUT8    (0UL)
  749. + #define PIXFMT_RGB15    (1UL)
  750. + #define PIXFMT_BGR15    (2UL)
  751. + #define PIXFMT_RGB15PC    (3UL)
  752. + #define PIXFMT_BGR15PC    (4UL)
  753. + #define PIXFMT_RGB16    (5UL)
  754. + #define PIXFMT_BGR16    (6UL)
  755. + #define PIXFMT_RGB16PC    (7UL)
  756. + #define PIXFMT_BGR16PC    (8UL)
  757. + #define PIXFMT_RGB24    (9UL)
  758. + #define PIXFMT_BGR24    (10UL)
  759. + #define PIXFMT_ARGB32    (11UL)
  760. + #define PIXFMT_BGRA32    (12UL)
  761. + #define PIXFMT_RGBA32    (13UL)
  762. + /*                                                        *
  763. +  * SrcRectangle formats defines for xxxPixelArray calls() * 
  764. +  *                                                        */
  765. + #define RECTFMT_RGB    (0UL)
  766. + #define RECTFMT_RGBA    (1UL)
  767. + #define RECTFMT_ARGB    (2UL)
  768. + #define RECTFMT_LUT8    (3UL)
  769. + #define RECTFMT_GREY8    (4UL)
  770. + /*                                    *
  771. +  * Parameters for CVideoCtrlTagList() *
  772. +  *                                    */
  773. + #define SETVC_DPMSLevel  (0x88002001)
  774. + #define DPMS_ON      (0UL)   /* Full operation                             */
  775. + #define DPMS_STANDBY (1UL)   /* Optional state of minimal power reduction  */
  776. + #define DPMS_SUSPEND (2UL)   /* Significant reduction of power consumption */
  777. + #define DPMS_OFF     (3UL)   /* Lowest level of power consumption          */
  778. + /*                              *
  779. +  * Tags for LockBitMapTagList() *
  780. +  *                              */
  781. + #define LBMI_WIDTH       (0x84001001)
  782. + #define LBMI_HEIGHT      (0x84001002)
  783. + #define LBMI_DEPTH       (0x84001003)
  784. + #define LBMI_PIXFMT      (0x84001004)
  785. + #define LBMI_BYTESPERPIX (0x84001005)
  786. + #define LBMI_BYTESPERROW (0x84001006)
  787. + #define LBMI_BASEADDRESS (0x84001007)
  788. + /*                                *
  789. +  * Tags for UnLockBitMapTagList() *
  790. +  *                                */
  791. + #define    UBMI_UPDATERECTS    (0x85001001)
  792. + #define    UBMI_REALLYUNLOCK    (0x85001002)
  793. + /*                                *
  794. +  * Message passed to the DoCDrawMethodTagList() hook function    *
  795. +  *                                */
  796. + struct  CDrawMsg
  797. + {
  798. +         APTR    cdm_MemPtr;
  799. +         ULONG   cdm_offx;
  800. +         ULONG   cdm_offy;
  801. +         ULONG   cdm_xsize;
  802. +         ULONG   cdm_ysize;
  803. +         UWORD   cdm_BytesPerRow;
  804. +         UWORD   cdm_BytesPerPix;
  805. +         UWORD   cdm_ColorModel;
  806. + };
  807. + /*                            *
  808. +  * Colour Table source formats for WriteLUTPixelArray()    *
  809. +  *                            */
  810. + #define CTABFMT_XRGB8    (0UL)    /* ULONG [] table */
  811. + /*                            *
  812. +  *    graphics.library/AllocBitMap() extended flags    *
  813. +  *                            */
  814. + #ifndef BMB_SPECIALFMT
  815. + #define BMB_SPECIALFMT (7UL)
  816. + #define BMF_SPECIALFMT (1UL << BMB_SPECIALFMT)
  817. + #endif /* BMB_SPECIALFMT */
  818. + #define SHIFT_PIXFMT( fmt ) (((ULONG)(fmt)) << 24UL)
  819. + #endif  /* !CYBERGRAPHX_CYBERGRAPHICS_H */
  820. diff -c2 -d -P -r include_h/cybergraphics/cybergraphics.i includenew/cybergraphics/cybergraphics.i
  821. *** include_h/cybergraphics/cybergraphics.i    Thu Jan  1 00:00:00 1970
  822. --- includenew/cybergraphics/cybergraphics.i    Thu Nov  2 22:27:25 2000
  823. ***************
  824. *** 0 ****
  825. --- 1,189 ----
  826. + ;*
  827. + ;*    $VER: cybergraphics.i 41.18 (21.02.1998)
  828. + ;*
  829. + ;*    include file for cybergraphics.library
  830. + ;*
  831. + ;*    Copyright © 1996-1998 by phase5 digital products
  832. + ;*      All Rights reserved.
  833. + ;*
  834. + ;*
  835. +             IFND    CYBERGRAPHX_CYBERGRAPHICS_I
  836. + CYBERGRAPHX_CYBERGRAPHICS_I    SET    1
  837. +             INCLUDE "exec/nodes.i"
  838. +             INCLUDE "utility/tagitem.i"
  839. +             INCLUDE    "graphics/displayinfo.i"
  840. + ;
  841. + ; Definition of CyberModeNode (Returned in AllocModeList)
  842. + ;
  843. +             STRUCTURE    CyberModeNode,0
  844. +             STRUCT    cmn_Node,LN_SIZE
  845. +             STRUCT    cmn_ModeText,DISPLAYNAMELEN    ; name for this mode
  846. +             ULONG    cmn_DisplayID            ; display id associated with the node
  847. +             UWORD    cmn_Width            ; visible width
  848. +             UWORD    cmn_Height            ; visible height
  849. +             UWORD    cmn_Depth            ; display depth
  850. +             APTR    cmn_DisplayTagList        ; taglist with extended ModeID information
  851. +             LABEL    cmn_SIZEOF
  852. +         
  853. + ;
  854. + ; Parameters for GetCyberMapAttr()
  855. + ;
  856. + CYBRMATTR_XMOD        EQU    ($80000001)    ; function returns BytesPerRow if its called with this parameter
  857. + CYBRMATTR_BPPIX        EQU    ($80000002)    ; BytesPerPixel shall be returned
  858. + CYBRMATTR_DISPADR    EQU    ($80000003)    ; do not use this ! private tag
  859. + CYBRMATTR_PIXFMT    EQU    ($80000004)    ; the pixel format is returned
  860. + CYBRMATTR_WIDTH        EQU    ($80000005)    ; returns width in pixels
  861. + CYBRMATTR_HEIGHT    EQU    ($80000006)    ; returns height in lines
  862. + CYBRMATTR_DEPTH        EQU    ($80000007)    ; returns bits per pixel
  863. + CYBRMATTR_ISCYBERGFX    EQU    ($80000008)    ; returns if supplied bitmap is a cybergfx one
  864. + CYBRMATTR_ISLINEARMEM    EQU    ($80000009)    ; returns -1 if supplied bitmap is linear accessable
  865. + ;
  866. + ; Parameters for GetCyberIDAttr()
  867. + ;
  868. + CYBRIDATTR_PIXFMT    EQU    ($80000001)    ; the pixel format is returned
  869. + CYBRIDATTR_WIDTH    EQU    ($80000002)    ; returns visible width in pixels
  870. + CYBRIDATTR_HEIGHT    EQU    ($80000003)    ; returns visible height in lines
  871. + CYBRIDATTR_DEPTH    EQU    ($80000004)    ; returns bits per pixel
  872. + CYBRIDATTR_BPPIX    EQU    ($80000005)    ; BytesPerPixel shall be returned
  873. + ;
  874. + ; Tags for CModeRequestTagList()
  875. + ;
  876. + CYBRMREQ_TB        EQU    (TAG_USER+$40000)
  877. + ;
  878. + ; FilterTags
  879. + ;
  880. + CYBRMREQ_MinDepth    EQU    (CYBRMREQ_TB+0)        ; Minimum depth for displayed screenmode
  881. + CYBRMREQ_MaxDepth    EQU    (CYBRMREQ_TB+1)        ; Maximum depth  "       "        "
  882. + CYBRMREQ_MinWidth    EQU    (CYBRMREQ_TB+2)        ; Minumum width  "       "        "
  883. + CYBRMREQ_MaxWidth    EQU    (CYBRMREQ_TB+3)        ; Maximum width  "       "        "
  884. + CYBRMREQ_MinHeight    EQU    (CYBRMREQ_TB+4)        ; Minumum height "       "        "
  885. + CYBRMREQ_MaxHeight    EQU    (CYBRMREQ_TB+5)        ; Minumum height "       "        "
  886. + CYBRMREQ_CModelArray    EQU    (CYBRMREQ_TB+6)        ; Filters certain color models
  887. + CYBRMREQ_WinTitle    EQU    (CYBRMREQ_TB+20
  888. + CYBRMREQ_OKText        EQU    (CYBRMREQ_TB+21
  889. + CYBRMREQ_CancelText    EQU    (CYBRMREQ_TB+22
  890. + CYBRMREQ_Screen        EQU    (CYBRMREQ_TB+30        ; Screen you wish the Requester to opened on
  891. + ;
  892. + ; Tags for BestCyberModeID()
  893. + ;
  894. + CYBRBIDTG_TB        EQU    (TAG_USER+$50000)
  895. + ;
  896. + ; FilterTags
  897. + ;
  898. + CYBRBIDTG_Depth        EQU    (CYBRBIDTG_TB+0)
  899. + CYBRBIDTG_NominalWidth    EQU    (CYBRBIDTG_TB+1)
  900. + CYBRBIDTG_NominalHeight    EQU    (CYBRBIDTG_TB+2)
  901. + CYBRBIDTG_MonitorID    EQU    (CYBRBIDTG_TB+3)
  902. + CYBRBIDTG_BoardName    EQU    (CYBRBIDTG_TB+5)
  903. + PIXFMT_LUT8        EQU    (0)
  904. + PIXFMT_RGB15        EQU    (1)
  905. + PIXFMT_BGR15        EQU    (2)
  906. + PIXFMT_RGB15PC        EQU    (3)
  907. + PIXFMT_BGR15PC        EQU    (4)
  908. + PIXFMT_RGB16        EQU    (5)
  909. + PIXFMT_BGR16        EQU    (6)
  910. + PIXFMT_RGB16PC        EQU    (7)
  911. + PIXFMT_BGR16PC        EQU    (8)
  912. + PIXFMT_RGB24        EQU    (9)
  913. + PIXFMT_BGR24        EQU    (10)
  914. + PIXFMT_ARGB32        EQU    (11)
  915. + PIXFMT_BGRA32        EQU    (12)
  916. + PIXFMT_RGBA32        EQU    (13)
  917. + PIXFMT_CNT        EQU    (14)
  918. + ;
  919. + ; SrcRectangle formats defines for xxxPixelArray() calls
  920. + ;
  921. + RECTFMT_RGB        EQU    (0)
  922. + RECTFMT_RGBA        EQU    (1)
  923. + RECTFMT_ARGB        EQU    (2)
  924. + RECTFMT_LUT8        EQU    (3)
  925. + RECTFMT_GREY8        EQU    (4)
  926. + ;
  927. + ; Parameters for CVideoCtrlTagList()
  928. + ;
  929. + SETVC_DPMSLevel        EQU    ($88002001)
  930. + DPMS_ON            EQU    (0)    ; Full operation
  931. + DPMS_STANDBY        EQU    (1)    ; Optional state of minimal power reduction
  932. + DPMS_SUSPEND        EQU    (2)    ; Significant reduction of power consumption
  933. + DPMS_OFF        EQU    (3)    ; Lowest level of power consumption
  934. + ;
  935. + ; Parameters for LockBitMapTagList()
  936. + ;
  937. + LBMI_WIDTH        EQU    ($84001001)
  938. + LBMI_HEIGHT        EQU    ($84001002)
  939. + LBMI_DEPTH        EQU    ($84001003)
  940. + LBMI_PIXFMT        EQU    ($84001004)
  941. + LBMI_BYTESPERPIX    EQU    ($84001005)
  942. + LBMI_BYTESPERROW    EQU    ($84001006)
  943. + LBMI_BASEADDRESS    EQU    ($84001007)
  944. + ;
  945. + ; Parameters for UnLockBitMapTagList()
  946. + ;
  947. + UBMI_UPDATERECTS    EQU    ($85001001)
  948. + UBMI_REALLYUNLOCK    EQU    ($85001002)
  949. + ;                              
  950. + ; Message passed to the DoCDrawMethodTagList()
  951. + ; hook function
  952. + ;                              
  953. +     STRUCTURE    CDrawMsg,0
  954. +             APTR    cdm_MemPtr
  955. +             ULONG   cdm_offx
  956. +             ULONG   cdm_offy
  957. +             ULONG   cdm_xsize
  958. +             ULONG   cdm_ysize
  959. +             UWORD   cdm_BytesPerRow
  960. +             UWORD   cdm_BytesPerPix
  961. +             UWORD   cdm_ColorModel
  962. +         LABEL    cdm_SIZEOF
  963. + ;
  964. + ; Colour Table source formats for WriteLUTPixelArray()
  965. + ;
  966. + CTABFMT_XRGB8    EQU    (0)    ; ULONG [] table
  967. +                 ; X,R,G,B order, 8-bits-per-gun
  968. + ;
  969. + ; graphics.library/AllocBitmap() extended flags
  970. + ;
  971. + BMB_SPECIALFMT    EQU    (7)
  972. + BMF_SPECIALFMT    EQU    (0x80)
  973. +             ENDC
  974. diff -c2 -d -P -r include_h/cybergraphx/cgxvideo.h includenew/cybergraphx/cgxvideo.h
  975. *** include_h/cybergraphx/cgxvideo.h    Thu Jan  1 00:00:00 1970
  976. --- includenew/cybergraphx/cgxvideo.h    Thu Nov  2 22:27:27 2000
  977. ***************
  978. *** 0 ****
  979. --- 1,55 ----
  980. + /*
  981. + **    $VER: cgxvideo.h 41.10 (06.10.1997)
  982. + **
  983. + **    include file for cgxvideo.library
  984. + **
  985. + **    Copyright © 1996-1998 by phase5 digital products
  986. + **      All Rights reserved.
  987. + **
  988. + */
  989. + #ifndef LIBRARIES_CGXVIDEO_H
  990. + #define LIBRARIES_CGXVIDEO_H
  991. + #include <exec/types.h>
  992. + typedef APTR    VLayerHandle;
  993. + #define VOA_LeftIndent    0x88000001
  994. + #define VOA_RightIndent   0x88000002
  995. + #define VOA_TopIndent     0x88000003
  996. + #define VOA_BottomIndent  0x88000004
  997. + #define VOA_SrcType     0x88000005
  998. + #define VOA_SrcWidth    0x88000006
  999. + #define VOA_SrcHeight   0x88000007
  1000. + #define VOA_Error       0x88000008
  1001. + #define VOA_UseColorKey    0x88000009
  1002. + #define VOA_UseBackfill 0x8800000a
  1003. + #define VOA_BaseAddress 0x88000030
  1004. + #define VOA_ColorKeyPen 0x88000031
  1005. + #define VOA_ColorKey    0x88000032
  1006. + /* possible errors returned with VOA_Error tag */
  1007. + #define VOERR_OK                0       /* No error */
  1008. + #define VOERR_INVSCRMODE        1       /* video overlay not possible for that mode */
  1009. + #define VOERR_NOOVLMEMORY       2       /* No memory for video overlay */
  1010. + #define VOERR_INVSRCFMT         3       /* Source format not supported */
  1011. + #define VOERR_NOMEMORY          4       /* Not enough memory */
  1012. + /* Source data types              */
  1013. + /* see cgxvideo.doc for more info */
  1014. + #define SRCFMT_YUV16    0
  1015. + #define SRCFMT_YCbCr16  1
  1016. + #define SRCFMT_RGB15    2
  1017. + #define SRCFMT_RGB16    3
  1018. + #endif
  1019. Only in include_h/datatypes: animationclass.h
  1020. Only in include_h/datatypes: datatypes.h
  1021. Only in include_h/datatypes: datatypesclass.h
  1022. Only in include_h/datatypes: pictureclass.h
  1023. diff -c2 -d -P -r include_h/datatypes/pictureclassext.h includenew/datatypes/pictureclassext.h
  1024. *** include_h/datatypes/pictureclassext.h    Thu Jan  1 00:00:00 1970
  1025. --- includenew/datatypes/pictureclassext.h    Thu Nov  2 22:27:18 2000
  1026. ***************
  1027. *** 0 ****
  1028. --- 1,51 ----
  1029. + #ifndef    DATATYPES_PICTURECLASSEXT_H
  1030. + #define    DATATYPES_PICTURECLASSEXT_H
  1031. + #include <datatypes/datatypesclass.h>
  1032. + #define    DTM_WRITEPIXELARRAY    (DTM_Dummy+0x60)    /*Datatypesclass.h*/
  1033. + #define    DTM_READPIXELARRAY    (DTM_Dummy+0x61)    /*Datatypesclass.h*/
  1034. + #define    DTM_CREATEPIXMAPDIR    (DTM_Dummy+0x62)    /*Datatypesclass.h*/
  1035. + #define    DTM_FIRSTPIXMAPDIR    (DTM_Dummy+0x63)    /*Datatypesclass.h*/
  1036. + #define    DTM_NEXTPIXMAPDIR    (DTM_Dummy+0x64)    /*Datatypesclass.h*/
  1037. + #define    DTM_PREVPIXMAPDIR    (DTM_Dummy+0x65)    /*Datatypesclass.h*/
  1038. + #define    DTM_BESTPIXMAPDIR    (DTM_Dummy+0x66)    /*Datatypesclass.h*/
  1039. + /* DTM_BLITPIXELARRAY    */
  1040. + struct gpBlitPixelArray
  1041. + {
  1042. +     ULONG        MethodID;        /* DTM_BLITPIXELARRAY id */
  1043. +     UBYTE        *PixelArray;        /* Source PixelArray */
  1044. +     ULONG        PixelArrayMode;        /* Format Mode of the Source PixelArray..see cybergraphics.h */
  1045. +     ULONG        PixelArrayMod;        /* Bytes to add to the next line in the Source PixelArray */
  1046. +     ULONG        LeftEdge;        /* XStart of the Dest */
  1047. +     ULONG        TopEdge;        /* YStart of the Dest */
  1048. +     ULONG        Width;            /* Width of the Source PixelArray */
  1049. +     ULONG        Height;            /* Height of the Source PixelArray */
  1050. + };
  1051. + #define    PDTA_SourceMode        (DTA_Dummy + 250)    /* Used to set the sub datatype interface */
  1052. + #define    PDTA_DestMode        (DTA_Dummy + 251)    /* Used to set the app datatype interface */
  1053. + #define    PDTA_PixelFormat    (DTA_Dummy + 252)    /* private..DON'T touch */
  1054. + #define    PDTA_TransRemapPen    (DTA_Dummy + 253)    /* Optional transparent remap pen */
  1055. + #define    PDTA_NumPixMapDir    (DTA_Dummy + 254)    /* Count of the Object's PixMapDirs..default=1 */
  1056. + #define PDTA_UseFriendBitMap    (DTA_Dummy + 255)    /* Converts the result bitmap into a friendbitmap */
  1057. + #define PDTA_AlphaChannel    (DTA_Dummy + 256)    /* Alphachannel input */
  1058. + #define PDTA_MultiRemap        (DTA_Dummy + 257)    /* Tells the picture.datatype NOT to keep control */
  1059. +                                                         /* over DestBitmap and Pens...these are now*/
  1060. +                                                         /* controlled by the appliction. TM mode*/
  1061. + #define    PDTA_MaskPlane        (DTA_Dummy + 258)    /* NULL or MaskPlane for BltMaskBitMapRastPort() */
  1062. +                                                         /* This mask is generated when the transparent flag is set*/
  1063. +                                                         /* or an Alphachannel exists */
  1064. + /* PDTA_SourceMode,PDTA_DestMode */
  1065. + #define    MODE_V42        0
  1066. + #define    MODE_V43        1
  1067. + #endif
  1068. Only in include_h/datatypes: soundclass.h
  1069. Only in include_h/datatypes: textclass.h
  1070. Only in include_h: devices
  1071. Only in include_h: diskfont
  1072. Only in include_h: dos
  1073. diff -c2 -d -P -r include_h/emul/emulinterface.h includenew/emul/emulinterface.h
  1074. *** include_h/emul/emulinterface.h    Thu Jan  1 00:00:00 1970
  1075. --- includenew/emul/emulinterface.h    Thu Nov  2 22:27:25 2000
  1076. ***************
  1077. *** 0 ****
  1078. --- 1,398 ----
  1079. + #ifndef    EMUL_EMULINTERFACE_H
  1080. + #define    EMUL_EMULINTERFACE_H
  1081. + #define    TRAP_MASK        0x00ff
  1082. + #define    TRAP_AREA_START        0xff00    /* 0xff00 .. 0xffff area */
  1083. + /***********************************************************************************
  1084. +  *      Trap: EmulLibEntry.Trap == TRAP_LIB
  1085. +  *    Result: D0
  1086. +  *  Function: Call a PPC Function with std SystemV4 register layout.
  1087. +  *            The 68k frame is saved in the EmulHandle which
  1088. +  *            is passed in gpr2 and MUST not be changed.
  1089. +  *            The Result is passed in gpr3 and then moved to REG_D0.
  1090. +  * Emulation: PC      = *REG_A7
  1091. +  *            REG_A7 += 4;
  1092. +  *      Note: Should be used with complex PPC functions
  1093. +  */
  1094. + #define    TRAP_LIB        0xff00
  1095. + /***********************************************************************************
  1096. +  *      Trap: EmulLibEntry.Trap == TRAP_LIB_QUICK
  1097. +  *    Result: D0
  1098. +  *  Function: Call a PPC Function with 68k emulation register layout.
  1099. +  *            See emulregs.h.
  1100. +  *            You must not kill the REG_SR register.
  1101. +  *            Only A7 and SR is saved to the EmulHandle because
  1102. +  *            they may be needed for Emulation Calls out of the PPC.
  1103. +  *            EmulHandle is passed in gpr2 and MUST not be changed
  1104. +  *            The Result is passed in gpr3 and then moved to REG_D0.
  1105. +  * Emulation: PC      = *REG_A7
  1106. +  *            REG_A7 += 4;
  1107. +  *      Note: Should be used with simple/quick PPC function which don`t
  1108. +  *            require many registers.
  1109. +  */
  1110. + #define    TRAP_LIB_QUICK        0xff01
  1111. + /***********************************************************************************
  1112. +  *      Trap: TRAP_END
  1113. +  *  Function: to return from an emulated routine back into the PPC Function
  1114. +  *      Note: **PRIVATE**
  1115. +  */
  1116. + #define    TRAP_END        0xff02
  1117. + /***********************************************************************************
  1118. +  *      Trap: TRAP_FATALEXCEPTION
  1119. +  *  Function: Capture a fatal kickstart exception
  1120. +  *      Note: **PRIVATE**
  1121. +  */
  1122. + #define    TRAP_FATALEXCEPTION    0xff03
  1123. + /***********************************************************************************
  1124. +  *      Trap: TRAP_ALERT
  1125. +  *  Function: to capture an Alert before the execppc alert replacement is installed
  1126. +  *      Note: **PRIVATE**
  1127. +  */
  1128. + #define    TRAP_ALERT        0xff04
  1129. + /***********************************************************************************
  1130. +  *      Trap: EmulLibEntry.Trap == TRAP_LIBNR
  1131. +  *    Result: None
  1132. +  *  Function: Call a PPC Function with std SystemV4 register layout.
  1133. +  *            The 68k frame is saved in the EmulHandle which
  1134. +  *            is passed in gpr2 and MUST not be changed
  1135. +  *            The PPC function doesn`t return any result.
  1136. +  * Emulation: PC      = *REG_A7
  1137. +  *            REG_A7 += 4;
  1138. +  *      Note: Should be used with complex PPC functions
  1139. +  */
  1140. + #define    TRAP_LIBNR        0xff05
  1141. + /***********************************************************************************
  1142. +  *      Trap: EmulLibEntry.Trap == TRAP_LIBNR_QUICK
  1143. +  *    Result: None
  1144. +  *  Function: Call a PPC Function with 68k emulation register layout.
  1145. +  *            See emulregs.h.
  1146. +  *            You must not change the emul regs.
  1147. +  *            Only A7 and SR is saved to the EmulHandle because
  1148. +  *            they may be needed for Emulation Calls out of the PPC.
  1149. +  *            EmulHandle is passed in gpr2 and MUST not be changed
  1150. +  *            The PPC function doesn`t return any result.
  1151. +  * Emulation: PC      = *REG_A7
  1152. +  *            REG_A7 += 4;
  1153. +  *      Note: Should be used with simple/quick PPC function which don`t
  1154. +  *            require many registers.
  1155. +  */
  1156. + #define    TRAP_LIBNR_QUICK    0xff06
  1157. + /***********************************************************************************
  1158. +  *      Trap: TRAP_EXCEPT
  1159. +  *  Function: Exec Task Exception
  1160. +  *      Note: **PRIVATE**
  1161. +  */
  1162. + #define    TRAP_EXCEPT        0xff07
  1163. + /***********************************************************************************
  1164. +  *      Trap: TRAP_LAUNCH
  1165. +  *  Function: Exec Task Launch
  1166. +  *      Note: **PRIVATE**
  1167. +  */
  1168. + #define    TRAP_LAUNCH        0xff08
  1169. + /***********************************************************************************
  1170. +  *      Trap: TRAP_DISPATCH
  1171. +  *  Function: Exec Task Dispatch
  1172. +  *      Note: **PRIVATE**
  1173. +  */
  1174. + #define    TRAP_DISPATCH        0xff09
  1175. + /***********************************************************************************
  1176. +  *      Trap: TRAP_SWITCH
  1177. +  *  Function: Exec Task Switch
  1178. +  *      Note: **PRIVATE**
  1179. +  */
  1180. + #define    TRAP_SWITCH        0xff0a
  1181. + /***********************************************************************************
  1182. +  *      Trap: TRAP_SCHEDULE
  1183. +  *  Function: Exec Task Schedule
  1184. +  *      Note: **PRIVATE**
  1185. +  */
  1186. + #define    TRAP_SCHEDULE        0xff0b
  1187. + #define    TRAP_EMULGETATTR    0xff0c    /* D0=Tag D0=Result..it only skips the cmd */
  1188. + #define    TRAP_EMULSETATTR    0xff0d    /* D0=Tag D1=Value..it only skips the cmd */
  1189. + /***********************************************************************************
  1190. +  *
  1191. +  *      Trap: TRAP_FUNC
  1192. +  *  Function: This function MUST be *called* as a subroutine
  1193. +  *            as it takes the PC from the stack.
  1194. +  * Emulation:  o Loads a new stack if necessary
  1195. +  *             o Put Arg1..Arg8 into the System V4 calling registers(gpr3..gpr11)
  1196. +  *             o Call PPC Function at Address
  1197. +  *             o PC == REG_A7[0];
  1198. +  *             o REG_A7 += 4;
  1199. +  */
  1200. + #define    TRAP_FUNC        0xff0e
  1201. + /***********************************************************************************
  1202. +  *      Trap: TRAP_ISYNC
  1203. +  *  Function: Synchronize the instruction stream of the CPU.
  1204. +  *            PPC`s "isync".
  1205. +  * Emulation: PC+=2
  1206. +  */
  1207. + #define    TRAP_ISYNC        0xff0f
  1208. + /***********************************************************************************
  1209. +  *      Trap: TRAP_SYNC
  1210. +  *  Function: Synchronize the instruction stream of the CPU.
  1211. +  *            PPC`s "sync".
  1212. +  * Emulation: PC+=2
  1213. +  */
  1214. + #define    TRAP_SYNC        0xff10
  1215. + /***********************************************************************************
  1216. +  *      Trap: TRAP_EIEIO
  1217. +  *  Function: Orders the instruction stream of the CPU.
  1218. +  *            PPC`s "eieio".
  1219. +  * Emulation: PC+=2
  1220. +  */
  1221. + #define    TRAP_EIEIO        0xff11
  1222. + /***********************************************************************************
  1223. +  *      Trap: EmulLibEntry.Trap == TRAP_LIBSR
  1224. +  *    Result: D0 , REG_SR <- MyEmulHandle->SR
  1225. +  *  Function: Call a PPC Function with std SystemV4 register layout.
  1226. +  *            The 68k frame is saved in the EmulHandle which
  1227. +  *            is passed in gpr2 and MUST not be changed
  1228. +  *            The Result is passed in gpr3 and then moved to REG_D0.
  1229. +  *            REG_SR is updated with MyEmulHandle->SR so you`re able
  1230. +  *            to change it which may be useful for wrongly used
  1231. +  *            exec memory functions where the result SR may be
  1232. +  *            important.
  1233. +  * Emulation: PC      = *REG_A7
  1234. +  *            REG_A7 += 4;
  1235. +  *      Note: Should be used with complex PPC functions
  1236. +  */
  1237. + #define    TRAP_LIBSR        0xff12
  1238. + /***********************************************************************************
  1239. +  *      Trap: EmulLibEntry.Trap == TRAP_LIBSRNR
  1240. +  *    Result: REG_SR <- MyEmulHandle->SR
  1241. +  *  Function: Call a PPC Function with std SystemV4 register layout.
  1242. +  *            The 68k frame is saved in the EmulHandle which
  1243. +  *            is passed in gpr2 and MUST not be changed
  1244. +  *            The PPC function doesn`t return any result.
  1245. +  *            REG_SR is updated with MyEmulHandle->SR so you`re able
  1246. +  *            to change it which may be useful for wrongly used
  1247. +  *            exec memory functions where the result SR may be
  1248. +  *            important.
  1249. +  * Emulation: PC      = *REG_A7
  1250. +  *            REG_A7 += 4;
  1251. +  *      Note: Should be used with complex PPC functions
  1252. +  */
  1253. + #define    TRAP_LIBSRNR        0xff13
  1254. + /***********************************************************************************
  1255. +  *      Trap: EmulLibEntry.Trap == TRAP_LIBD0_D1
  1256. +  *    Result: D0 , REG_D1 <- MyEmulHandle->Dn[1]
  1257. +  *  Function: Call a PPC Function with std SystemV4 register layout.
  1258. +  *            The 68k frame is saved in the EmulHandle which
  1259. +  *            is passed in gpr2 and MUST not be changed
  1260. +  *            The Result is passed in gpr3 and then moved to REG_D0.
  1261. +  *            REG_D1 is updated with MyEmulHandle->Dn[1] so you`re able
  1262. +  *            to change it which is needed for braindead LoadSeg
  1263. +  *            and software using *Overlays*
  1264. +  * Emulation: PC      = *REG_A7
  1265. +  *            REG_A7 += 4;
  1266. +  *      Note: Should be used with complex PPC functions
  1267. +  */
  1268. + #define    TRAP_LIBD0_D1        0xff14
  1269. + /***********************************************************************************
  1270. +  *      Trap: EmulLibEntry.Trap == TRAP_LIBRESTORE
  1271. +  *    Result: None
  1272. +  *  Function: Call a PPC Function with std SystemV4 register layout.
  1273. +  *            The 68k frame is saved in the EmulHandle which
  1274. +  *            is passed in gpr2 and MUST not be changed
  1275. +  *            The function copies the emulation context registers
  1276. +  *            with the functions inside the EmulHandle.
  1277. +  * Emulation: PC      = *REG_A7
  1278. +  *            REG_A7 += 4;
  1279. +  *      Note: Should only be used in special code. Setjmp/GetA4 inside PPC code.
  1280. +  */
  1281. + #define    TRAP_LIBRESTORE        0xff15
  1282. + /***********************************************************************************
  1283. +  *      Trap: TRAP_SUPERVISOR
  1284. +  *  Function: Exec Supervisor Switch
  1285. +  *      Note: **PRIVATE**
  1286. +  */
  1287. + #define    TRAP_SUPERVISOR        0xff16
  1288. + /***********************************************************************************
  1289. +  *      Trap: TRAP_PPCTASK
  1290. +  *  Function: Not a valid call trap.
  1291. +  *            Only used to signal exec that the PC
  1292. +  *            points to a TaskInitExtension structure.
  1293. +  *      Note: **PRIVATE**
  1294. +  */
  1295. + #define    TRAP_PPCTASK        0xfff0
  1296. + #define    EMULTAG_NAME        0x0    /* Gives back a Name Ptr */
  1297. + #define    EMULTAG_VERSION        0x1    /* Gives back a Version */
  1298. + #define    EMULTAG_REVISION    0x2    /* Gives back a Revision */
  1299. + #define    EMULTAG_OPCODETABLE    0x3    /* Gives back the 16 Bit Opcodetable Ptr or NULL */
  1300. + #define    EMULTAG_TYPE        0x4    /* Gives back the emulation type */
  1301. + #define    EMULTAG_EMULHANDLE    0x5    /* Gives back the EmulHandle Ptr */
  1302. + #define    EMULTAG_EMULHANDLESIZE    0x6    /* Gives back the EmulHandle Size */
  1303. + #define    EMULTAG_SUPERHANDLE    0x7    /* Gives back the SuperHandle Ptr */
  1304. + #define    EMULTAG_SUPERHANDLESIZE    0x8    /* Gives back the SuperHandle Size */
  1305. + struct EmulCaos
  1306. + {
  1307. +     union
  1308. +     {
  1309. +         int    Offset;
  1310. +         APTR    Function;
  1311. +     } caos_Un;
  1312. +     ULONG    reg_d0;
  1313. +     ULONG    reg_d1;
  1314. +     ULONG    reg_d2;
  1315. +     ULONG    reg_d3;
  1316. +     ULONG    reg_d4;
  1317. +     ULONG    reg_d5;
  1318. +     ULONG    reg_d6;
  1319. +     ULONG    reg_d7;
  1320. +     ULONG    reg_a0;
  1321. +     ULONG    reg_a1;
  1322. +     ULONG    reg_a2;
  1323. +     ULONG    reg_a3;
  1324. +     ULONG    reg_a4;
  1325. +     ULONG    reg_a5;
  1326. + /*
  1327. +  * here you have to put the LibBasePtr if you want
  1328. +  * to call a Library.
  1329. +  */
  1330. +     ULONG    reg_a6;
  1331. + };
  1332. + struct EmulLibEntry
  1333. + {
  1334. +     UWORD        Trap;
  1335. +     UWORD        Extension;        /* MUST be set to 0 if you create it by hand */
  1336. +     void        (*Func)(void);
  1337. + };
  1338. + struct EmulFunc
  1339. + {
  1340. +     UWORD    Trap;            /* TRAP_FUNC */
  1341. +     UWORD    Extension;
  1342. +     ULONG    Address;
  1343. +     /* Size 0 for no new Stack
  1344. +      */
  1345. +     ULONG    StackSize;
  1346. +     ULONG    Arg1;
  1347. +     ULONG    Arg2;
  1348. +     ULONG    Arg3;
  1349. +     ULONG    Arg4;
  1350. +     ULONG    Arg5;
  1351. +     ULONG    Arg6;
  1352. +     ULONG    Arg7;
  1353. +     ULONG    Arg8;
  1354. + };
  1355. + #define    GETEMULHANDLE    register struct EmulHandle *MyEmulHandle __asm("r2");
  1356. + #ifndef ROMEMUL
  1357. + struct    SuperHandle
  1358. + {
  1359. +     ULONG    USP;                    /* Userstack */
  1360. +     ULONG    SSP;                    /* Supervisor Stack */
  1361. +     ULONG    VBR;                    /* Exception Base Register */
  1362. +     ULONG    SFC;                    /* SFC Register ...not really used */
  1363. +     ULONG    DFC;                    /* DFC Register ...not really used */
  1364. +     ULONG    CACR;                    /* Cache Control Register ...not really used */
  1365. +     ULONG    TC;
  1366. +     ULONG    ITT0;
  1367. +     ULONG    ITT1;
  1368. +     ULONG    DTT0;
  1369. +     ULONG    DTT1;
  1370. +     ULONG    URP;
  1371. +     ULONG    SRP;
  1372. +     ULONG    BUSCR;
  1373. +     ULONG    PCR;
  1374. +     ULONG    Type;                    /* SuperHandle Type..not used yet */
  1375. + /********************************************************************************************
  1376. +  * Private
  1377. +  * Don`t touch
  1378. +  */
  1379. + };
  1380. + struct    Float96
  1381. + {
  1382. +     ULONG    Data[3];
  1383. + };
  1384. + struct    EmulHandle
  1385. + {
  1386. +     ULONG            Dn[8];                            /* 0x00 */
  1387. +     ULONG            An[8];                            /* 0x20 */
  1388. +     ULONG            *PC;                            /* 0x40 Current PC */
  1389. +     ULONG            SR;                            /* 0x44 Statusregister */
  1390. +     struct SuperHandle    *SuperHandle;                        /* 0x48 Ptr to SuperHandle */
  1391. +     ULONG            Type;                            /* 0x4c EmulHandle Type */
  1392. +     ULONG            Flags;                            /* 0x50 Flags */
  1393. +     void            (*EmulFunc)(void);                    /* 0x54 Here is the direct Emulation Jump..you have to setup the regframes*/
  1394. +     ULONG            (*EmulCallOS)(struct EmulCaos*);            /* 0x58 Here is the Emulation Jump for an 68k OSLib Function*/
  1395. +     ULONG            (*EmulCall68k)(struct EmulCaos*);            /* 0x5c Here is the Emulation Jump for an 68k Function*/
  1396. +     ULONG            (*EmulCallQuick68k)(struct EmulCaos*);            /* 0x60 Here is the Emulation Quick Jump for an 68k Function..r13..r31 are not saved!*/
  1397. +     ULONG            Pad1;                            /* 0x64 */
  1398. +     ULONG            Pad2;                            /* 0x68 */
  1399. +     ULONG            Pad3;                            /* 0x6c */
  1400. +     struct Float96        FPU[8];                            /* 0x70 Not yet used...*/
  1401. +     ULONG            FPCR;                            /* 0xd0 Not yet used...*/
  1402. +     ULONG            FPSR;                            /* 0xd4 Not yet used...*/
  1403. +     ULONG            FPIAR;                            /* 0xd8 Not yet used...*/
  1404. +     ULONG            Pad4;                            /* 0xdc */
  1405. + /********************************************************************************************
  1406. +  * Private
  1407. +  * Don`t touch
  1408. +  * 0xe0
  1409. +  */
  1410. + };
  1411. + #define    EMULFLAGSF_PPC        0x1    /* Set when the emulation runs in full native code */
  1412. + #define    EMULFLAGSF_QUICK    0x2    /* Set when the emulation runs quick native code..
  1413. +                                          * which is basicly still the emul reg layout
  1414. +                                          */
  1415. + #define    EMULFLAGSF_INTERRUPT    0x4    /* Set when the emulation runs in interrupt mode
  1416. +                                          */
  1417. + #endif
  1418. + #endif
  1419. diff -c2 -d -P -r include_h/emul/emulregs.h includenew/emul/emulregs.h
  1420. *** include_h/emul/emulregs.h    Thu Jan  1 00:00:00 1970
  1421. --- includenew/emul/emulregs.h    Thu Nov  2 22:27:25 2000
  1422. ***************
  1423. *** 0 ****
  1424. --- 1,55 ----
  1425. + #ifndef    EMUL_EMULREGS_H
  1426. + #define    EMUL_EMULREGS_H
  1427. + #ifndef    EMUL_EMULINTERFACE_H
  1428. + #include <emul/emulinterface.h>
  1429. + #endif
  1430. + register struct EmulHandle *MyEmulHandle __asm("r2");
  1431. + #ifdef EMUL_QUICKMODE
  1432. + register ULONG*    REG_PC __asm("r13");
  1433. + register UWORD    REG_SR __asm("r14");
  1434. + register void (**OPCODETABLE)(void)    __asm("r15");
  1435. + register ULONG    REG_D0 __asm("r16");
  1436. + register ULONG    REG_D1 __asm("r17");
  1437. + register ULONG    REG_D2 __asm("r18");
  1438. + register ULONG    REG_D3 __asm("r19");
  1439. + register ULONG    REG_D4 __asm("r20");
  1440. + register ULONG    REG_D5 __asm("r21");
  1441. + register ULONG    REG_D6 __asm("r22");
  1442. + register ULONG    REG_D7 __asm("r23");
  1443. + register ULONG    REG_A0 __asm("r24");
  1444. + register ULONG    REG_A1 __asm("r25");
  1445. + register ULONG    REG_A2 __asm("r26");
  1446. + register ULONG    REG_A3 __asm("r27");
  1447. + register ULONG    REG_A4 __asm("r28");
  1448. + register ULONG    REG_A5 __asm("r29");
  1449. + register ULONG    REG_A6 __asm("r30");
  1450. + register ULONG    REG_A7 __asm("r31");
  1451. + #else
  1452. + #define    REG_PC    (MyEmulHandle->PC)
  1453. + #define    REG_SR    (MyEmulHandle->SR)
  1454. + #define    REG_D0    (MyEmulHandle->Dn[0])
  1455. + #define    REG_D1    (MyEmulHandle->Dn[1])
  1456. + #define    REG_D2    (MyEmulHandle->Dn[2])
  1457. + #define    REG_D3    (MyEmulHandle->Dn[3])
  1458. + #define    REG_D4    (MyEmulHandle->Dn[4])
  1459. + #define    REG_D5    (MyEmulHandle->Dn[5])
  1460. + #define    REG_D6    (MyEmulHandle->Dn[6])
  1461. + #define    REG_D7    (MyEmulHandle->Dn[7])
  1462. + #define    REG_A0    (MyEmulHandle->An[0])
  1463. + #define    REG_A1    (MyEmulHandle->An[1])
  1464. + #define    REG_A2    (MyEmulHandle->An[2])
  1465. + #define    REG_A3    (MyEmulHandle->An[3])
  1466. + #define    REG_A4    (MyEmulHandle->An[4])
  1467. + #define    REG_A5    (MyEmulHandle->An[5])
  1468. + #define    REG_A6    (MyEmulHandle->An[6])
  1469. + #define    REG_A7    (MyEmulHandle->An[7])
  1470. + #endif
  1471. + #endif
  1472. Only in include_h/exec: alerts.h
  1473. Only in include_h/exec: devices.h
  1474. Only in include_h/exec: errors.h
  1475. Only in include_h/exec: exec.h
  1476. diff -c2 -d -P -r include_h/exec/execbase.h includenew/exec/execbase.h
  1477. *** include_h/exec/execbase.h    Thu Nov  2 22:27:36 2000
  1478. --- includenew/exec/execbase.h    Thu Nov  2 22:27:25 2000
  1479. ***************
  1480. *** 3,7 ****
  1481.   /*
  1482.   **    $VER: execbase.h 39.6 (18.1.93)
  1483. ! **    Includes Release 40.15
  1484.   **
  1485.   **    Definition of the exec.library base structure.
  1486. --- 3,7 ----
  1487.   /*
  1488.   **    $VER: execbase.h 39.6 (18.1.93)
  1489. ! **    Includes Release 40.13
  1490.   **
  1491.   **    Definition of the exec.library base structure.
  1492. ***************
  1493. *** 61,75 ****
  1494.       struct    Task *ThisTask; /* pointer to current task (readable) */
  1495.   
  1496. !     ULONG    IdleCount;    /* idle counter */
  1497.       ULONG    DispCount;    /* dispatch counter */
  1498.       UWORD    Quantum;    /* time slice quantum */
  1499.       UWORD    Elapsed;    /* current quantum ticks */
  1500. !     UWORD    SysFlags;    /* misc internal system flags */
  1501. !     BYTE    IDNestCnt;    /* interrupt disable nesting count */
  1502. !     BYTE    TDNestCnt;    /* task disable nesting count */
  1503.   
  1504.       UWORD    AttnFlags;    /* special attention flags (readable) */
  1505.   
  1506. !     UWORD    AttnResched;    /* rescheduling attention */
  1507.       APTR    ResModules;    /* resident module array pointer */
  1508.       APTR    TaskTrapCode;
  1509. --- 61,75 ----
  1510.       struct    Task *ThisTask; /* pointer to current task (readable) */
  1511.   
  1512. !     volatile    ULONG    IdleCount;    /* idle counter */
  1513.       ULONG    DispCount;    /* dispatch counter */
  1514.       UWORD    Quantum;    /* time slice quantum */
  1515.       UWORD    Elapsed;    /* current quantum ticks */
  1516. !     volatile    UWORD    SysFlags;    /* misc internal system flags */
  1517. !     volatile    BYTE    IDNestCnt;    /* interrupt disable nesting count */
  1518. !     volatile    BYTE    TDNestCnt;    /* task disable nesting count */
  1519.   
  1520.       UWORD    AttnFlags;    /* special attention flags (readable) */
  1521.   
  1522. !     volatile    UWORD    AttnResched;    /* rescheduling attention */
  1523.       APTR    ResModules;    /* resident module array pointer */
  1524.       APTR    TaskTrapCode;
  1525. ***************
  1526. *** 124,129 ****
  1527.   /****** V36 Exec additions start here **************************************/
  1528.   
  1529. !     UWORD    ex_Pad0;        /* Private internal use */
  1530. !     ULONG    ex_LaunchPoint;        /* Private to Launch/Switch */
  1531.       APTR    ex_RamLibPrivate;
  1532.       /* The next ULONG contains the system "E" clock frequency,
  1533. --- 124,129 ----
  1534.   /****** V36 Exec additions start here **************************************/
  1535.   
  1536. !     UWORD    ex_Pad0;                /* Private internal use */
  1537. !     ULONG    ex_LaunchPoint;                /* Private to Launch/Switch */
  1538.       APTR    ex_RamLibPrivate;
  1539.       /* The next ULONG contains the system "E" clock frequency,
  1540. ***************
  1541. *** 132,144 ****
  1542.       ** Typical values are 715909 for NTSC, or 709379 for PAL.
  1543.       */
  1544. !     ULONG    ex_EClockFrequency;    /* (readable) */
  1545. !     ULONG    ex_CacheControl;    /* Private to CacheControl calls */
  1546. !     ULONG    ex_TaskID;        /* Next available task ID */
  1547.   
  1548. !     ULONG    ex_Reserved1[5];
  1549.   
  1550. !     APTR    ex_MMULock;        /* private */
  1551.   
  1552. !     ULONG    ex_Reserved2[3];
  1553.   
  1554.   /****** V39 Exec additions start here **************************************/
  1555. --- 132,149 ----
  1556.       ** Typical values are 715909 for NTSC, or 709379 for PAL.
  1557.       */
  1558. !     ULONG        ex_EClockFrequency;        /* (readable) */
  1559. !     ULONG        ex_CacheControl;        /* Private to CacheControl calls */
  1560. !     ULONG        ex_TaskID;            /* Next available task ID */
  1561.   
  1562. !     ULONG        ex_EmulHandleSize;        /* PPC EmulHandleSize..*private* */
  1563. !     struct MsgPort    *ex_PPCTrapMsgPort;        /* PPC AmigaOS Exception MsgPort..*private* */
  1564. !     ULONG        ex_Reserved1[3];
  1565.   
  1566. !     APTR        ex_MMULock;            /* private */
  1567.   
  1568. ! /* New AmigaBox Emulation Entries */
  1569. !         APTR        ex_PatchPool;            /* PatchPool Ptr needed by SetFunction..*private* */
  1570. !     APTR        ex_PPCTaskExitCode;        /* PPC Task exit function */
  1571. !     ULONG        ex_DebugFlags;            /* Exec Debug Flags..*private* */
  1572.   
  1573.   /****** V39 Exec additions start here **************************************/
  1574. ***************
  1575. *** 147,152 ****
  1576.        * for V39 exec's low memory handler...
  1577.        */
  1578. !     struct    MinList    ex_MemHandlers;    /* The handler list */
  1579. !     APTR    ex_MemHandler;        /* Private! handler pointer */
  1580.   };
  1581.   
  1582. --- 152,157 ----
  1583.        * for V39 exec's low memory handler...
  1584.        */
  1585. !     struct    MinList    ex_MemHandlers;            /* The handler list */
  1586. !     APTR        ex_MemHandler;            /* Private! handler pointer */
  1587.   };
  1588.   
  1589. ***************
  1590. *** 162,165 ****
  1591. --- 167,171 ----
  1592.   #define AFB_68882    5
  1593.   #define    AFB_FPU40    6    /* Set if 68040 FPU */
  1594. + #define AFB_68060    7
  1595.   /*
  1596.    * The AFB_FPU40 bit is set when a working 68040 FPU
  1597. ***************
  1598. *** 180,183 ****
  1599. --- 186,190 ----
  1600.   #define AFF_68882    (1L<<5)
  1601.   #define    AFF_FPU40    (1L<<6)
  1602. + #define    AFF_68060    (1L<<7)
  1603.   
  1604.   #define AFF_PRIVATE    (1L<<15)
  1605. ***************
  1606. *** 211,214 ****
  1607. --- 218,279 ----
  1608.   #define    DMA_ReadFromRAM     (1L<<3)  /* Set if DMA goes *FROM* RAM to device */
  1609.   
  1610. + #define    SB_SAR    15    /* scheduling attention required (TOP BIT) */
  1611. + #define    SB_TQE    14    /* time quantum expended -- time to resche */
  1612. + #define    SB_SINT    13
  1613. + #define    SF_SAR    (1<<SB_SAR)
  1614. + #define    SF_TQE    (1<<SB_TQE)
  1615. + #define    SF_SINT    (1<<SB_SINT)
  1616. + /****** Debug Flags...(don`t depend on them) **********/
  1617. + #define    EXECDEBUGF_INITRESIDENT        0x1UL
  1618. + #define    EXECDEBUGF_INITCODE        0x2UL
  1619. + #define    EXECDEBUGF_FINDRESIDENT        0x4UL
  1620. + #define    EXECDEBUGF_CREATELIBRARY    0x10UL
  1621. + #define    EXECDEBUGF_SETFUNCTION        0x20UL
  1622. + #define    EXECDEBUGF_NEWSETFUNCTION    0x40UL
  1623. + #define    EXECDEBUGF_ADDTASK        0x100UL
  1624. + #define    EXECDEBUGF_REMTASK        0x200UL
  1625. + #define    EXECDEBUGF_GETTASKATTR        0x400UL
  1626. + #define    EXECDEBUGF_SETTASKATTR        0x800UL
  1627. + #define    EXECDEBUGF_EXCEPTHANDLER    0x1000UL
  1628. + #define    EXECDEBUGF_NOLOGSERVER        0x10000UL
  1629. + #define    EXECDEBUGF_NOLOGWINDOW        0x20000UL
  1630. + /*
  1631. +  * "env:MorphOS/LogPath" contains the logfile path,
  1632. +  * If not specified it`s using "ram:.morphoslog"
  1633. +  */
  1634. + #define    EXECDEBUGF_LOGFILE        0x40000UL
  1635. + #define    EXECDEBUGF_LOGKPRINTF        0x80000UL
  1636. + /* PPCLib Flags
  1637. +  */
  1638. + #define    EXECDEBUGF_LOADSEG        0x01000000UL
  1639. + #define    EXECDEBUGF_UNLOADSEG        0x02000000UL
  1640. + #define    EXECDEBUGF_PPCSTART        0x04000000UL
  1641. + /* UserFlags
  1642. +  */
  1643. + /*
  1644. +  * Should be used to control user LibInit/DevInit Debug output
  1645. +  */
  1646. + #define    EXECDEBUGF_INIT            0x40000000UL
  1647. + /*
  1648. +  * Should be used to control logging
  1649. +  */
  1650. + #define    EXECDEBUGF_LOG            0x80000000UL
  1651.   
  1652.   #endif    /* EXEC_EXECBASE_H */
  1653. Only in include_h/exec: initializers.h
  1654. diff -c2 -d -P -r include_h/exec/interrupts.h includenew/exec/interrupts.h
  1655. *** include_h/exec/interrupts.h    Thu Nov  2 22:27:36 2000
  1656. --- includenew/exec/interrupts.h    Thu Nov  2 22:27:24 2000
  1657. ***************
  1658. *** 3,7 ****
  1659.   /*
  1660.   **    $VER: interrupts.h 39.1 (18.9.92)
  1661. ! **    Includes Release 40.15
  1662.   **
  1663.   **    Callback structures used by hardware & software interrupts
  1664. --- 3,7 ----
  1665.   /*
  1666.   **    $VER: interrupts.h 39.1 (18.9.92)
  1667. ! **    Includes Release 40.13
  1668.   **
  1669.   **    Callback structures used by hardware & software interrupts
  1670. ***************
  1671. *** 23,27 ****
  1672.       struct  Node is_Node;
  1673.       APTR    is_Data;            /* server data segment  */
  1674. !     VOID    (*is_Code)();        /* server code entry    */
  1675.   };
  1676.   
  1677. --- 23,27 ----
  1678.       struct  Node is_Node;
  1679.       APTR    is_Data;            /* server data segment  */
  1680. !     VOID    (*is_Code)(void);        /* server code entry    */
  1681.   };
  1682.   
  1683. ***************
  1684. *** 29,33 ****
  1685.   struct IntVector {        /* For EXEC use ONLY! */
  1686.       APTR    iv_Data;
  1687. !     VOID    (*iv_Code)();
  1688.       struct  Node *iv_Node;
  1689.   };
  1690. --- 29,33 ----
  1691.   struct IntVector {        /* For EXEC use ONLY! */
  1692.       APTR    iv_Data;
  1693. !     VOID    (*iv_Code)(void);
  1694.       struct  Node *iv_Node;
  1695.   };
  1696. Only in include_h/exec: io.h
  1697. diff -c2 -d -P -r include_h/exec/libraries.h includenew/exec/libraries.h
  1698. *** include_h/exec/libraries.h    Thu Nov  2 22:27:36 2000
  1699. --- includenew/exec/libraries.h    Thu Nov  2 22:27:24 2000
  1700. ***************
  1701. *** 3,7 ****
  1702.   /*
  1703.   **    $VER: libraries.h 39.2 (10.4.92)
  1704. ! **    Includes Release 40.15
  1705.   **
  1706.   **    Definitions for use when creating or using Exec libraries
  1707. --- 3,7 ----
  1708.   /*
  1709.   **    $VER: libraries.h 39.2 (10.4.92)
  1710. ! **    Includes Release 40.13
  1711.   **
  1712.   **    Definitions for use when creating or using Exec libraries
  1713. ***************
  1714. *** 15,18 ****
  1715. --- 15,30 ----
  1716.   #endif /* EXEC_NODES_H */
  1717.   
  1718. + #ifndef EXEC_MACHINE_H
  1719. + #include "exec/machine.h"
  1720. + #endif /* EXEC_MACHINE_H */
  1721. + #ifndef UTILITY_TAGITEM_H
  1722. + #include "utility/tagitem.h"
  1723. + #endif /* UTILITY_TAGITEM_H */
  1724. + #ifndef EMUL_EMULINTERFACE_H
  1725. + #include "emul/emulinterface.h"
  1726. + #endif /* EMUL_EMULINTERFACE_H */
  1727.   
  1728.   /*------ Special Constants ---------------------------------------*/
  1729. ***************
  1730. *** 63,66 ****
  1731. --- 75,333 ----
  1732.   #define lh_Sum        lib_Sum
  1733.   #define lh_OpenCnt    lib_OpenCnt
  1734. + /* NewSetFunction extensions
  1735. +  */
  1736. + #define    SETFUNCTAG_Dummy    (TAG_USER +0x01000000)
  1737. + /* Set the machine type of the function
  1738. +  * Default is 68k
  1739. +  */
  1740. + #define    SETFUNCTAG_MACHINE    (SETFUNCTAG_Dummy + 0x1)
  1741. + /* Function type specifier
  1742. +  */
  1743. + #define    SETFUNCTAG_TYPE        (SETFUNCTAG_Dummy + 0x2)
  1744. + /* ID String
  1745. +  */
  1746. + #define    SETFUNCTAG_IDNAME    (SETFUNCTAG_Dummy + 0x3)
  1747. + /*
  1748. +  * Set to TRUE if the replaced function will never be used
  1749. +  * again.
  1750. +  */
  1751. + #define    SETFUNCTAG_DELETE    (SETFUNCTAG_Dummy + 0x4)
  1752. + /* See emul/emulinterface.h for more informations
  1753. +  */
  1754. + /* Save Emulation PPC Registers
  1755. +  * Call Function
  1756. +  * Restore Emulation PPC Registers
  1757. +  * REG_D0 = Result
  1758. +  */
  1759. + #define SETFUNCTYPE_NORMAL    0
  1760. + /* Call Function
  1761. +  * Must use the global register settings of the emulation
  1762. +  * REG_D0 = Result
  1763. +  */
  1764. + #define SETFUNCTYPE_QUICK    1
  1765. + /* Save Emulation PPC Registers
  1766. +  * Call Function
  1767. +  * Restore Emulation PPC Registers
  1768. +  * No Result
  1769. +  * Needed to replace functions like
  1770. +  * forbid,obtainsemaphores which are
  1771. +  * defined as trashing no registers
  1772. +  */
  1773. + #define SETFUNCTYPE_NORMALNR    2
  1774. + /* Call Function
  1775. +  * Must use the global register settings of the emulation
  1776. +  * No Result
  1777. +  * Needed to replace functions like
  1778. +  * forbid,obtainsemaphores which are
  1779. +  * defined as trashing no registers
  1780. +  */
  1781. + #define SETFUNCTYPE_QUICKNR    3
  1782. + #define SETFUNCTYPE_NORMALSR    4
  1783. + #define SETFUNCTYPE_NORMALSRNR    5
  1784. + #define SETFUNCTYPE_NORMALD0_D1    6
  1785. + #define SETFUNCTYPE_NORMALRESTORE    7
  1786. + /* CreateLibrary extensions
  1787. +  */
  1788. + #define    LIBTAG_BASE        (TAG_USER + 0x01000100)
  1789. + /*
  1790. +  * Function/Vector Array
  1791. +  */
  1792. + #define    LIBTAG_FUNCTIONINIT    (LIBTAG_BASE+0x0)
  1793. + /*
  1794. +  * Struct Init
  1795. +  */
  1796. + #define    LIBTAG_STRUCTINIT    (LIBTAG_BASE+0x1)
  1797. + /*
  1798. +  * Library Init
  1799. +  */
  1800. + #define    LIBTAG_LIBRARYINIT    (LIBTAG_BASE+0x2)
  1801. + /*
  1802. +  * Init Code Type
  1803. +  */
  1804. + #define    LIBTAG_MACHINE        (LIBTAG_BASE+0x3)
  1805. + /*
  1806. +  * Library Base Size
  1807. +  */
  1808. + #define    LIBTAG_BASESIZE        (LIBTAG_BASE+0x4)
  1809. + /*
  1810. +  * SegList Ptr
  1811. +  */
  1812. + #define    LIBTAG_SEGLIST        (LIBTAG_BASE+0x5)
  1813. + /*
  1814. +  * Library Priority
  1815. +  */
  1816. + #define    LIBTAG_PRI        (LIBTAG_BASE+0x6)
  1817. + /*
  1818. +  * Library Type..Library,Device,Resource,whatever
  1819. +  */
  1820. + #define    LIBTAG_TYPE        (LIBTAG_BASE+0x7)
  1821. + /*
  1822. +  * Library Version
  1823. +  */
  1824. + #define    LIBTAG_VERSION        (LIBTAG_BASE+0x8)
  1825. + /*
  1826. +  * Library Flags
  1827. +  */
  1828. + #define    LIBTAG_FLAGS        (LIBTAG_BASE+0x9)
  1829. + /*
  1830. +  * Library Name
  1831. +  */
  1832. + #define    LIBTAG_NAME        (LIBTAG_BASE+0xa)
  1833. + /*
  1834. +  * Library IDString
  1835. +  */
  1836. + #define    LIBTAG_IDSTRING        (LIBTAG_BASE+0xb)
  1837. + /*
  1838. +  * AddDevice(),AddLibrary(),AddResource()..
  1839. +  * depends on LIBTAG_TYPE
  1840. +  */
  1841. + #define    LIBTAG_PUBLIC        (LIBTAG_BASE+0xc)
  1842. +                                                    
  1843. + /* Private
  1844. +  * don`t touch...floating design
  1845. +  */
  1846. + struct    FuncEntry
  1847. + {
  1848. +     struct EmulLibEntry    EmulLibEntry;
  1849. +     void            *OldFunction;        /* Needed for bookkeeping */
  1850. + };
  1851. + struct    FuncOldEntry
  1852. + {
  1853. +     UWORD            Command;
  1854. +     struct FuncEntry    *FuncEntry;
  1855. + };
  1856. + /*
  1857. +  * EmulLibEntry.Extension
  1858. +  */
  1859. + #define    FUNCENTRYEXTF_LIBRARY    0x1            /* Entry created by the OS */
  1860. + /*
  1861. +  * Functionarray first ULONG ID defines the format
  1862. +  * of the functionarray for MakeFunctions()/MakeLibrary().
  1863. +  *
  1864. +  * If there`s not such id the functionarray is a
  1865. +  * 32Bit 68k function ptr array.
  1866. +  * (ULONG) 0xffffffff stops it
  1867. +  */
  1868. + /* 68k 16bit relative functionarray ptrs
  1869. +  * (UWORD) 0xffff stops it
  1870. +  */
  1871. + #define    FUNCARRAY_16BIT_OLD    0xffffffff
  1872. + /* PPC 32bit functionarray ptrs 
  1873. +  * (ULONG) 0xffffffff stops it
  1874. +  */
  1875. + #define    FUNCARRAY_32BIT_NATIVE    0xfffefffe
  1876. + /* Starts a functionarray block.
  1877. +  * This way it`s possible to mix 68k and PPC
  1878. +  * function definitions.
  1879. +  * BASE:
  1880. +  *  FUNCTIONARRAY_BEGIN
  1881. +  *   FUNCARRAY_32BIT_NATIVE
  1882. +  *    FUNC0
  1883. +  *    FUNC1
  1884. +  *    .
  1885. +  *    FUNCn
  1886. +  *    0xffffffff
  1887. +  *   FUNCn+1  (No ID->32Bit 68k)
  1888. +  *    FUNCn+2
  1889. +  *    .
  1890. +  *    FUNCm
  1891. +  *    0xffffffff
  1892. +  *   FUNCARRAY_16BIT_OLD
  1893. +  *    FUNCm+1-BASE
  1894. +  *    FUNCm+2-BASE
  1895. +  *    .
  1896. +  *    FUNCo-BASE
  1897. +  *    0xffff
  1898. +  *  FUNCTIONARRAY_END
  1899. +  */
  1900. + #define    FUNCARRAY_BEGIN        0xfffdfffd
  1901. + /* Ends a functionarray block.
  1902. +  */
  1903. + #define    FUNCARRAY_END        0xfffcfffc
  1904. + /* PPC 32bit Quick functionarray ptrs
  1905. +  * (ULONG) 0xffffffff stops it
  1906. +  */
  1907. + #define    FUNCARRAY_32BIT_QUICK_NATIVE    0xfffbfffb
  1908. + /* PPC 32bit QuickNR(No Result) functionarray ptrs
  1909. +  * (ULONG) 0xffffffff stops it
  1910. +  */
  1911. + #define    FUNCARRAY_32BIT_QUICKNR_NATIVE    0xfffafffa
  1912. + /* PPC 32bit no result functionarray ptrs
  1913. +  * (ULONG) 0xffffffff stops it
  1914. +  */
  1915. + #define    FUNCARRAY_32BIT_NR_NATIVE    0xfff9fff9
  1916. + /* PPC 32bit SR functionarray ptrs
  1917. +  * (ULONG) 0xffffffff stops it
  1918. +  */
  1919. + #define    FUNCARRAY_32BIT_SR_NATIVE    0xfff8fff8
  1920. + /* PPC 32bit SR(no result) functionarray ptrs
  1921. +  * (ULONG) 0xffffffff stops it
  1922. +  */
  1923. + #define    FUNCARRAY_32BIT_SRNR_NATIVE    0xfff7fff7
  1924. + /* PPC 32bit D0_D1 functionarray ptrs
  1925. +  * (ULONG) 0xffffffff stops it
  1926. +  */
  1927. + #define    FUNCARRAY_32BIT_D0D1_NATIVE    0xfff6fff6
  1928. + /* PPC 32bit Restore1 functionarray ptrs
  1929. +  * (ULONG) 0xffffffff stops it
  1930. +  */
  1931. + #define    FUNCARRAY_32BIT_RESTORE_NATIVE    0xfff5fff5
  1932.   
  1933.   #endif    /* EXEC_LIBRARIES_H */
  1934. Only in include_h/exec: lists.h
  1935. diff -c2 -d -P -r include_h/exec/machine.h includenew/exec/machine.h
  1936. *** include_h/exec/machine.h    Thu Jan  1 00:00:00 1970
  1937. --- includenew/exec/machine.h    Thu Nov  2 22:27:25 2000
  1938. ***************
  1939. *** 0 ****
  1940. --- 1,11 ----
  1941. + #ifndef EXEC_MACHINE_H
  1942. + #define EXEC_MACHINE_H
  1943. + /*  $Id: */
  1944. + /* $Log: */
  1945. + #define    MACHINE_M68k            0x0
  1946. + #define    MACHINE_PPC            0x1
  1947. + #define    MACHINE_NO            0xffffffff
  1948. + #endif    /* EXEC_MACHINE_H */
  1949. Only in include_h/exec: memory.h
  1950. Only in include_h/exec: nodes.h
  1951. diff -c2 -d -P -r include_h/exec/ports.h includenew/exec/ports.h
  1952. *** include_h/exec/ports.h    Thu Nov  2 22:27:36 2000
  1953. --- includenew/exec/ports.h    Thu Nov  2 22:27:24 2000
  1954. ***************
  1955. *** 3,7 ****
  1956.   /*
  1957.   **    $VER: ports.h 39.0 (15.10.91)
  1958. ! **    Includes Release 40.15
  1959.   **
  1960.   **    Message ports and Messages.
  1961. --- 3,7 ----
  1962.   /*
  1963.   **    $VER: ports.h 39.0 (15.10.91)
  1964. ! **    Includes Release 40.13
  1965.   **
  1966.   **    Message ports and Messages.
  1967. ***************
  1968. *** 19,27 ****
  1969.   #endif /* EXEC_LISTS_H */
  1970.   
  1971. - #ifndef EXEC_TASKS_H
  1972. - #include "exec/tasks.h"
  1973. - #endif /* EXEC_TASKS_H */
  1974.   /****** MsgPort *****************************************************/
  1975.   
  1976. --- 19,22 ----
  1977. ***************
  1978. *** 52,55 ****
  1979. --- 47,54 ----
  1980.                       /* structure in the length) */
  1981.   };
  1982. + #ifndef EXEC_TASKS_H
  1983. + #include "exec/tasks.h"
  1984. + #endif /* EXEC_TASKS_H */
  1985.   
  1986.   #endif    /* EXEC_PORTS_H */
  1987. diff -c2 -d -P -r include_h/exec/resident.h includenew/exec/resident.h
  1988. *** include_h/exec/resident.h    Thu Nov  2 22:27:36 2000
  1989. --- includenew/exec/resident.h    Thu Nov  2 22:27:24 2000
  1990. ***************
  1991. *** 3,7 ****
  1992.   /*
  1993.   **    $VER: resident.h 39.0 (15.10.91)
  1994. ! **    Includes Release 40.15
  1995.   **
  1996.   **    Resident/ROMTag stuff.    Used to identify and initialize code modules.
  1997. --- 3,7 ----
  1998.   /*
  1999.   **    $VER: resident.h 39.0 (15.10.91)
  2000. ! **    Includes Release 40.13
  2001.   **
  2002.   **    Resident/ROMTag stuff.    Used to identify and initialize code modules.
  2003. ***************
  2004. *** 17,38 ****
  2005.   
  2006.   struct Resident {
  2007. !     UWORD rt_MatchWord;    /* word to match on (ILLEGAL)    */
  2008. !     struct Resident *rt_MatchTag; /* pointer to the above    */
  2009. !     APTR  rt_EndSkip;        /* address to continue scan    */
  2010. !     UBYTE rt_Flags;        /* various tag flags        */
  2011. !     UBYTE rt_Version;        /* release version number    */
  2012. !     UBYTE rt_Type;        /* type of module (NT_XXXXXX)    */
  2013. !     BYTE  rt_Pri;        /* initialization priority */
  2014. !     char  *rt_Name;        /* pointer to node name    */
  2015. !     char  *rt_IdString;    /* pointer to identification string */
  2016. !     APTR  rt_Init;        /* pointer to init code    */
  2017.   };
  2018.   
  2019.   #define RTC_MATCHWORD    0x4AFC    /* The 68000 "ILLEGAL" instruction */
  2020.   
  2021. ! #define RTF_AUTOINIT    (1<<7)    /* rt_Init points to data structure */
  2022. ! #define RTF_AFTERDOS    (1<<2)
  2023. ! #define RTF_SINGLETASK    (1<<1)
  2024. ! #define RTF_COLDSTART    (1<<0)
  2025.   
  2026.   /* Compatibility: (obsolete) */
  2027. --- 17,45 ----
  2028.   
  2029.   struct Resident {
  2030. !     UWORD        rt_MatchWord;        /* word to match on (ILLEGAL)    */
  2031. !     struct Resident    *rt_MatchTag;        /* pointer to the above    */
  2032. !     APTR        rt_EndSkip;        /* address to continue scan    */
  2033. !     UBYTE        rt_Flags;        /* various tag flags        */
  2034. !     UBYTE        rt_Version;        /* release version number    */
  2035. !     UBYTE        rt_Type;        /* type of module (NT_XXXXXX)    */
  2036. !     BYTE        rt_Pri;            /* initialization priority */
  2037. !     char        *rt_Name;        /* pointer to node name    */
  2038. !     char        *rt_IdString;        /* pointer to identification string */
  2039. !     APTR        rt_Init;        /* pointer to init code    */
  2040.   };
  2041.   
  2042.   #define RTC_MATCHWORD    0x4AFC    /* The 68000 "ILLEGAL" instruction */
  2043.   
  2044. ! #define RTF_AUTOINIT        (1<<7)    /* rt_Init points to data structure */
  2045. ! #define RTF_EXTENSION        (1<<6)    /* rt_Init points to an extension structure */
  2046. ! #define RTF_PPC            (1<<3)    /* rt_Init points to a PPC function which must be defined as
  2047. !                                          *
  2048. !                                          * struct Library* LIB_Init(struct Library    *MyLibBase,
  2049. !                                          *                          BPTR        SegList,
  2050. !                                          *                          struct ExecBase    *SysBase)
  2051. !                                          */
  2052. ! #define RTF_AFTERDOS        (1<<2)
  2053. ! #define RTF_SINGLETASK        (1<<1)
  2054. ! #define RTF_COLDSTART        (1<<0)
  2055.   
  2056.   /* Compatibility: (obsolete) */
  2057. ***************
  2058. *** 40,43 ****
  2059. --- 47,82 ----
  2060.   #define RTW_NEVER    0
  2061.   #define RTW_COLDSTART    1
  2062. + /* Patch Unit Modules come after the ResidentExtension
  2063. +  */
  2064. + #define    RTETYPE_PATCH    0
  2065. + struct PatchEntry
  2066. + {
  2067. +     LONG        Offset;
  2068. +     void        *Function;
  2069. +     struct TagItem    *Tags;
  2070. + };
  2071. + struct PatchUnit
  2072. + {
  2073. +     char            *Name;
  2074. +     ULONG            Type;
  2075. +     ULONG            Version;
  2076. +     ULONG            Flags;
  2077. +     void            *Extension;
  2078. +     struct PatchEntry    *Table;
  2079. + };
  2080. + #define    RTPUFLAGF_NOCLOSE    0x1    /* For an OpenLibrary TYPE..don't close the library afterwards so it can`t be kicked off anymore */
  2081. + struct ResidentExtension
  2082. + {
  2083. +     ULONG            Type;
  2084. +     ULONG            Flags;
  2085. +     struct PatchUnit    *Unit;
  2086. + };
  2087.   
  2088.   #endif    /* EXEC_RESIDENT_H */
  2089. diff -c2 -d -P -r include_h/exec/semaphores.h includenew/exec/semaphores.h
  2090. *** include_h/exec/semaphores.h    Thu Nov  2 22:27:35 2000
  2091. --- includenew/exec/semaphores.h    Thu Nov  2 22:27:24 2000
  2092. ***************
  2093. *** 3,7 ****
  2094.   /*
  2095.   **    $VER: semaphores.h 39.1 (7.2.92)
  2096. ! **    Includes Release 40.15
  2097.   **
  2098.   **    Definitions for locking functions.
  2099. --- 3,7 ----
  2100.   /*
  2101.   **    $VER: semaphores.h 39.1 (7.2.92)
  2102. ! **    Includes Release 40.13
  2103.   **
  2104.   **    Definitions for locking functions.
  2105. ***************
  2106. *** 19,29 ****
  2107.   #endif /* EXEC_LISTS_H */
  2108.   
  2109.   #ifndef EXEC_PORTS_H
  2110.   #include "exec/ports.h"
  2111.   #endif /* EXEC_PORTS_H */
  2112.   
  2113. - #ifndef EXEC_TASKS_H
  2114. - #include "exec/tasks.h"
  2115. - #endif /* EXEC_TASKS_H */
  2116.   
  2117.   
  2118. --- 19,30 ----
  2119.   #endif /* EXEC_LISTS_H */
  2120.   
  2121. + #ifndef EXEC_TASKS_H
  2122. + #include "exec/tasks.h"
  2123. + #endif /* EXEC_TASKS_H */
  2124.   #ifndef EXEC_PORTS_H
  2125.   #include "exec/ports.h"
  2126.   #endif /* EXEC_PORTS_H */
  2127.   
  2128.   
  2129.   
  2130. diff -c2 -d -P -r include_h/exec/tasks.h includenew/exec/tasks.h
  2131. *** include_h/exec/tasks.h    Thu Nov  2 22:27:35 2000
  2132. --- includenew/exec/tasks.h    Thu Nov  2 22:27:24 2000
  2133. ***************
  2134. *** 3,7 ****
  2135.   /*
  2136.   **    $VER: tasks.h 39.3 (18.9.92)
  2137. ! **    Includes Release 40.15
  2138.   **
  2139.   **    Task Control Block, Singals, and Task flags.
  2140. --- 3,7 ----
  2141.   /*
  2142.   **    $VER: tasks.h 39.3 (18.9.92)
  2143. ! **    Includes Release 40.13
  2144.   **
  2145.   **    Task Control Block, Singals, and Task flags.
  2146. ***************
  2147. *** 19,22 ****
  2148. --- 19,26 ----
  2149.   #endif /* EXEC_LISTS_H */
  2150.   
  2151. + #ifndef EXEC_PORTS_H
  2152. + #include "exec/ports.h"
  2153. + #endif /* EXEC_PORTS_H */
  2154.   
  2155.   /* Please use Exec functions to modify task structure fields, where available.
  2156. ***************
  2157. *** 32,37 ****
  2158. --- 36,45 ----
  2159.       ULONG   tc_SigRecvd;        /* sigs we have received */
  2160.       ULONG   tc_SigExcept;        /* sigs we will take excepts for */
  2161. + #if 0
  2162.       UWORD   tc_TrapAlloc;        /* traps allocated */
  2163.       UWORD   tc_TrapAble;        /* traps enabled */
  2164. + #else
  2165. +     struct ETask    *tc_ETask;
  2166. + #endif
  2167.       APTR    tc_ExceptData;        /* points to except data */
  2168.       APTR    tc_ExceptCode;        /* points to except code */
  2169. ***************
  2170. *** 39,52 ****
  2171.       APTR    tc_TrapCode;        /* points to trap code */
  2172.       APTR    tc_SPReg;            /* stack pointer        */
  2173. !     APTR    tc_SPLower;        /* stack lower bound    */
  2174. !     APTR    tc_SPUpper;        /* stack upper bound + 2*/
  2175. !     VOID    (*tc_Switch)();        /* task losing CPU      */
  2176. !     VOID    (*tc_Launch)();        /* task getting CPU  */
  2177.       struct  List tc_MemEntry;        /* Allocated memory. Freed by RemTask() */
  2178.       APTR    tc_UserData;        /* For use by the task; no restrictions! */
  2179.   };
  2180.   
  2181.   /*
  2182. !  * Stack swap structure as passed to StackSwap()
  2183.    */
  2184.   struct    StackSwapStruct {
  2185. --- 47,213 ----
  2186.       APTR    tc_TrapCode;        /* points to trap code */
  2187.       APTR    tc_SPReg;            /* stack pointer        */
  2188. !     APTR    tc_SPLower;                /* stack lower bound    */
  2189. !     APTR    tc_SPUpper;                /* stack upper bound + 2*/
  2190. !     VOID    (*tc_Switch)(void);        /* task losing CPU      */
  2191. !     VOID    (*tc_Launch)(void);        /* task getting CPU  */
  2192.       struct  List tc_MemEntry;        /* Allocated memory. Freed by RemTask() */
  2193.       APTR    tc_UserData;        /* For use by the task; no restrictions! */
  2194.   };
  2195.   
  2196. + struct TaskTrapMessage
  2197. + {
  2198. +     struct Message    Message;    /* Message Header */
  2199. +     struct Task    *Task;        /* connected Task */
  2200. +     ULONG        Version;    /* version of the structure */
  2201. +     ULONG        Type;        /* Exception Type */
  2202. +     ULONG        DAR;        /* Exception Address Register */
  2203. +     ULONG        DSISR;        /* Exception DSISR Reg */
  2204. +     /* This is undiscovered land...
  2205. +          * never assume a size of this structure
  2206. +          */
  2207. + };
  2208. + #define    VERSION_TASKTRAPMESSAGE    0x0
  2209. + struct ETask
  2210. + {
  2211. +     struct Message        Message;
  2212. +     struct Task        *Parent;
  2213. +     ULONG            UniqueID;
  2214. +     struct MinList        Children;
  2215. +     UWORD            TrapAlloc;
  2216. +     UWORD            TrapAble;
  2217. +     ULONG            Result1;
  2218. +     void            *Result2;
  2219. +     struct MsgPort        MsgPort;
  2220. +     /* Don't touch!!!!!!!!!..there`ll be an interface
  2221. +      * sooner than later.
  2222. +      * New Entries...most of the above entries
  2223. +      * are only their for structure compatability.
  2224. +      * They have no meaning as the OS never supported
  2225. +      * them.
  2226. +      */
  2227. +     /* A Task Pool for the task.
  2228. +      */
  2229. +     void            *MemPool;
  2230. +     /* PPC`s Stack Lower Ptr
  2231. +      * The initial stack is allocated through
  2232. +      * AllocVec, so a FreeVec(ETask->PPCSPLower);
  2233. +      * would work.
  2234. +      * If you use PPCStackSwap you must allocate
  2235. +      * your stack block with AllocVec();
  2236. +      */
  2237. +     void            *PPCSPLower;
  2238. +     /* PPC`s Stack Upper Ptr
  2239. +      */
  2240. +     void            *PPCSPUpper;
  2241. +     void            *PPCRegFrame;
  2242. +     void            *PPCLibData;
  2243. +     /* On a PPC exception this msgport
  2244. +      * is sent an exception msg....
  2245. +      * the task is stopped until somebody
  2246. +      * wakes it up again.
  2247. +      * (asynchron exception interface)
  2248. +          * If this Port is NULL the message is
  2249. +          * sent to SysBase->ex_PPCTrapMsgPort.
  2250. +      */
  2251. +     struct MsgPort        *PPCTrapMsgPort;
  2252. +     struct TaskTrapMessage    *PPCTrapMessage;
  2253. +     /* This is undiscovered land...
  2254. +          * never assume a size of this structure
  2255. +          */
  2256. + };
  2257. + struct TaskInitExtension
  2258. + {
  2259. +     /* Must be filled with TRAP_PPCTASK
  2260. +          */
  2261. +     UWORD        Trap;
  2262. +     UWORD        Extension;        /* Must be set to 0 */
  2263. +     struct TagItem    *Tags;
  2264. + };
  2265. + #define    TASKTAG_DUMMY    (TAG_USER + 0x100000)
  2266. + /* Ptr to an ULONG Errorfield where a better error description
  2267. +  * can be stored.
  2268. +  */
  2269. + #define    TASKTAG_ERROR            (TASKTAG_DUMMY + 0x0)
  2270. + /* Code type
  2271. +  * can be stored.
  2272. +  */
  2273. + #define    TASKTAG_CODETYPE        (TASKTAG_DUMMY + 0x1)
  2274. + /* Start PC
  2275. +  * code must be of TASKTAG_CODETYPE
  2276. +  */
  2277. + #define    TASKTAG_PC            (TASKTAG_DUMMY + 0x2)
  2278. + /* Final PC
  2279. +  * code must be of TASKTAG_CODETYPE
  2280. +  */
  2281. + #define    TASKTAG_FINALPC            (TASKTAG_DUMMY + 0x3)
  2282. + /* Stacksize...Default 8192
  2283. +  */
  2284. + #define    TASKTAG_STACKSIZE        (TASKTAG_DUMMY + 0x4)
  2285. + /* Std Stacksize...
  2286. +  * Default(use the stack defined by tc_SPLower..tc_SPUpper)
  2287. +  */
  2288. + #define    TASKTAG_STDSTACKSIZE        (TASKTAG_DUMMY + 0x5)
  2289. + /* PPC First Argument..gpr3
  2290. +  */
  2291. + #define    TASKTAG_PPC_ARG1        (TASKTAG_DUMMY + 0x10)
  2292. + /* PPC First Argument..gpr4
  2293. +  */
  2294. + #define    TASKTAG_PPC_ARG2        (TASKTAG_DUMMY + 0x11)
  2295. + /* PPC First Argument..gpr5
  2296. +  */
  2297. + #define    TASKTAG_PPC_ARG3        (TASKTAG_DUMMY + 0x12)
  2298. + /* PPC First Argument..gpr6
  2299. +  */
  2300. + #define    TASKTAG_PPC_ARG4        (TASKTAG_DUMMY + 0x13)
  2301. + /* PPC First Argument..gpr7
  2302. +  */
  2303. + #define    TASKTAG_PPC_ARG5        (TASKTAG_DUMMY + 0x14)
  2304. + /* PPC First Argument..gpr8
  2305. +  */
  2306. + #define    TASKTAG_PPC_ARG6        (TASKTAG_DUMMY + 0x15)
  2307. + /* PPC First Argument..gpr9
  2308. +  */
  2309. + #define    TASKTAG_PPC_ARG7        (TASKTAG_DUMMY + 0x16)
  2310. + /* PPC First Argument..gpr10
  2311. +  */
  2312. + #define    TASKTAG_PPC_ARG8        (TASKTAG_DUMMY + 0x17)
  2313. + #define    CODETYPE_M68K    0x0
  2314.   /*
  2315. !  * System V4 ABI
  2316. !  */
  2317. ! #define    CODETYPE_PPC    0x1
  2318. ! /*
  2319. !  * Stack swap structure as passed to StackSwap() and PPCStackSwap()
  2320.    */
  2321.   struct    StackSwapStruct {
  2322. ***************
  2323. *** 56,59 ****
  2324. --- 217,307 ----
  2325.   };
  2326.   
  2327. + struct PPCStackSwapArgs
  2328. + {
  2329. +     ULONG    Arg1;
  2330. +     ULONG    Arg2;
  2331. +     ULONG    Arg3;
  2332. +     ULONG    Arg4;
  2333. +     ULONG    Arg5;
  2334. +     ULONG    Arg6;
  2335. +     ULONG    Arg7;
  2336. +     ULONG    Arg8;
  2337. + };
  2338. + /*
  2339. +  * NewGetTaskAttrsA(),  NewSetTaskAttrsA() tags
  2340. +  */
  2341. + #define    TASKINFOTYPE_ALLTASK        (0x0)
  2342. + #define    TASKINFOTYPE_NAME        (0x1)
  2343. + #define    TASKINFOTYPE_PRI        (0x2)
  2344. + #define    TASKINFOTYPE_TYPE        (0x3)
  2345. + #define    TASKINFOTYPE_STATE        (0x4)
  2346. + #define    TASKINFOTYPE_FLAGS        (0x5)
  2347. + #define    TASKINFOTYPE_SIGALLOC        (0x6)
  2348. + #define    TASKINFOTYPE_SIGWAIT        (0x7)
  2349. + #define    TASKINFOTYPE_SIGRECVD        (0x8)
  2350. + #define    TASKINFOTYPE_SIGEXCEPT        (0x9)
  2351. + #define    TASKINFOTYPE_EXCEPTDATA        (0xa)
  2352. + #define    TASKINFOTYPE_EXCEPTCODE        (0xb)
  2353. + #define    TASKINFOTYPE_TRAPDATA        (0xc)
  2354. + #define    TASKINFOTYPE_TRAPCODE        (0xd)
  2355. + #define    TASKINFOTYPE_STACKSIZE_M68K    (0xe)
  2356. + #define    TASKINFOTYPE_STACKSIZE        (0xf)
  2357. + #define    TASKINFOTYPE_USEDSTACKSIZE_M68K    (0x10)
  2358. + #define    TASKINFOTYPE_USEDSTACKSIZE    (0x11)
  2359. + #define    TASKINFOTYPE_TRAPMSGPORT    (0x12)
  2360. + #define    TASKINFOTYPE_68K_NEWFRAME    (0x50)
  2361. + #define    TASKINFOTYPE_PPC_SRR0        (0x100)
  2362. + #define    TASKINFOTYPE_PPC_SRR1        (0x101)
  2363. + #define    TASKINFOTYPE_PPC_LR        (0x102)
  2364. + #define    TASKINFOTYPE_PPC_CTR        (0x103)
  2365. + #define    TASKINFOTYPE_PPC_CR        (0x104)
  2366. + #define    TASKINFOTYPE_PPC_XER        (0x105)
  2367. + #define    TASKINFOTYPE_PPC_GPR        (0x106)
  2368. + #define    TASKINFOTYPE_PPC_FPR        (0x107)
  2369. + #define    TASKINFOTYPE_PPC_FPSCR        (0x108)
  2370. + #define    TASKINFOTYPE_PPC_VSCR        (0x109)
  2371. + #define    TASKINFOTYPE_PPC_VMX        (0x10a)
  2372. + #define    TASKINFOTYPE_PPC_VSAVE        (0x10b)
  2373. + #define    TASKINFOTYPE_PPC_FRAME        (0x10c)
  2374. + #define    TASKINFOTYPE_PPC_FRAMESIZE    (0x10d)
  2375. + #define    TASKINFOTYPE_PPC_NEWFRAME    (0x10e)
  2376. + #define    TASKINFOTAG_DUMMY        (TAG_USER + 0x110000)
  2377. + /* Used with TASKINFOTYPE_ALLTASK
  2378. +  */
  2379. + #define    TASKINFOTAG_HOOK        (TASKINFOTAG_DUMMY + 0x0)
  2380. + /* Used with TASKINFOTYPE_PPC_GPR,TASKINFOTYPE_PPC_FPR,TASKINFOTYPE_PPC_VMX
  2381. +  * to define the copy area
  2382. +  */
  2383. + #define    TASKINFOTAG_REGSTART        (TASKINFOTAG_DUMMY + 0x1)
  2384. + /* Used with TASKINFOTYPE_PPC_GPR,TASKINFOTYPE_PPC_FPR,TASKINFOTYPE_PPC_VMX
  2385. +  * to define the copy area
  2386. +  */
  2387. + #define    TASKINFOTAG_REGCOUNT        (TASKINFOTAG_DUMMY + 0x2)
  2388. + /*
  2389. +  * NewSetTaskAttrsA(..,&TaskFrame68k,sizeof(struct TaskFrame68k),TASKINFOTYPE_68K_NEWFRAME,...);
  2390. +  *
  2391. +  */
  2392. + struct TaskFrame68k
  2393. + {
  2394. +     void    *PC;
  2395. +     UWORD    SR;
  2396. +     ULONG    Xn[15];
  2397. + };
  2398.   /*----- Flag Bits ------------------------------------------*/
  2399.   #define TB_PROCTIME    0
  2400. ***************
  2401. *** 96,99 ****
  2402. --- 344,350 ----
  2403.   #define    SIGF_NET    (1L<<7)
  2404.   #define SIGF_DOS    (1L<<8)
  2405. + #define    DEFAULT_PPCSTACKSIZE    16384
  2406.   
  2407.   #endif    /* EXEC_TASKS_H */
  2408. Only in include_h/exec: types.h
  2409. Only in include_h/fd: amigaguide_lib.fd
  2410. Only in include_h/fd: amigaguide_lib.fd.info
  2411. Only in include_h/fd: asl_lib.fd
  2412. Only in include_h/fd: asl_lib.fd.info
  2413. Only in include_h/fd: battclock_lib.fd
  2414. Only in include_h/fd: battclock_lib.fd.info
  2415. Only in include_h/fd: battmem_lib.fd
  2416. Only in include_h/fd: battmem_lib.fd.info
  2417. Only in include_h/fd: bullet_lib.fd
  2418. Only in include_h/fd: bullet_lib.fd.info
  2419. Only in include_h/fd: cardres_lib.fd
  2420. Only in include_h/fd: cardres_lib.fd.info
  2421. diff -c2 -d -P -r include_h/fd/cgxdither_lib.fd includenew/fd/cgxdither_lib.fd
  2422. *** include_h/fd/cgxdither_lib.fd    Thu Jan  1 00:00:00 1970
  2423. --- includenew/fd/cgxdither_lib.fd    Thu Nov  2 22:27:24 2000
  2424. ***************
  2425. *** 0 ****
  2426. --- 1,13 ----
  2427. + ##base _CGXDitherBase
  2428. + ##bias 30
  2429. + ##public
  2430. + CreateDitherInfo(vp,rp,rgbcm,size,sharepens,usecolour)(a0,a1,a2,d0,d1,d2)
  2431. + DeleteDitherInfo(ditherinfo)(a0)
  2432. + SetDitherMode(ditherinfo,mode)(a0,d0)
  2433. + DitherMap(sbm,dbm,ditherinfo)(a0,a1,a2)
  2434. + ConvertMap(sbm,dbm,left,top,width,height,flags)(a0,a1,d0,d1,d2,d3,d4)
  2435. + MapHistogram(bm,histogram)(a0,a1)
  2436. + RemapMapColours(sbm,dbm,remaparr1,remaparr2,remapcm,flags)(a0,a1,a2,a3,a4,d0)
  2437. + CreateMapMask(sbm,transcol,flags)(a0,d0,d1)
  2438. + FreeMapMask(maskbm)(a0)
  2439. diff -c2 -d -P -r include_h/fd/cgxsystem_lib.fd includenew/fd/cgxsystem_lib.fd
  2440. *** include_h/fd/cgxsystem_lib.fd    Thu Jan  1 00:00:00 1970
  2441. --- includenew/fd/cgxsystem_lib.fd    Thu Nov  2 22:27:23 2000
  2442. ***************
  2443. *** 0 ****
  2444. --- 1,17 ----
  2445. + ##bias 30
  2446. + ##private
  2447. + private()()
  2448. + private()()
  2449. + private()()
  2450. + private()()
  2451. + private()()
  2452. + private()()
  2453. + private()()
  2454. + private()()
  2455. + private()()
  2456. + ##public
  2457. + InstallTransparentRegion(SLayer,Region)(a0,a1)
  2458. + InstallTransparentRegionHook(SLayer,Hook)(a0,a1)
  2459. + HideWindow(Window)(a0)
  2460. + ShowWindow(Window)(a0)
  2461. + ##end
  2462. diff -c2 -d -P -r include_h/fd/cgxvideo_lib.fd includenew/fd/cgxvideo_lib.fd
  2463. *** include_h/fd/cgxvideo_lib.fd    Thu Jan  1 00:00:00 1970
  2464. --- includenew/fd/cgxvideo_lib.fd    Thu Nov  2 22:27:23 2000
  2465. ***************
  2466. *** 0 ****
  2467. --- 1,12 ----
  2468. + ##base _CGXVideoBase
  2469. + ##bias 30
  2470. + ##public
  2471. + CreateVLayerHandleTagList(Screen,Tags)(A0,A1)
  2472. + DeleteVLayerHandle(VLayerHandle)(A0)
  2473. + AttachVLayerTagList(VLayerHandle,Window,Tags)(A0,A1,A2)
  2474. + DetachVLayer(VLayerHandle)(A0)
  2475. + GetVLayerAttr(VLayerHandle,AttrID)(A0,D0)
  2476. + LockVLayer(VLayerHandle)(A0)
  2477. + UnlockVLayer(VLayerHandle)(A0)
  2478. + SetVLayerAttrTagList(VLayerHandle,Tags)(A0,A1)
  2479. + ##end
  2480. Only in include_h/fd: cia_lib.fd
  2481. Only in include_h/fd: cia_lib.fd.info
  2482. Only in include_h/fd: colorwheel_lib.fd
  2483. Only in include_h/fd: colorwheel_lib.fd.info
  2484. Only in include_h/fd: commodities_lib.fd
  2485. Only in include_h/fd: commodities_lib.fd.info
  2486. Only in include_h/fd: console_lib.fd
  2487. Only in include_h/fd: console_lib.fd.info
  2488. diff -c2 -d -P -r include_h/fd/cybergraphics_lib.fd includenew/fd/cybergraphics_lib.fd
  2489. *** include_h/fd/cybergraphics_lib.fd    Thu Jan  1 00:00:00 1970
  2490. --- includenew/fd/cybergraphics_lib.fd    Thu Nov  2 22:27:23 2000
  2491. ***************
  2492. *** 0 ****
  2493. --- 1,72 ----
  2494. + ##base _CyberGfxBase
  2495. + ##bias 30
  2496. + *--- functions in V40 or higher (Release 40.40) ---
  2497. + ##private
  2498. + cgfxPrivate1()()
  2499. + cgfxPrivate2()()
  2500. + cgfxPrivate3()()
  2501. + cgfxPrivate4()()
  2502. + ##public
  2503. + *
  2504. + IsCyberModeID(displayID)(d0)
  2505. + *
  2506. + BestCModeIDTagList(BestModeIDTags)(a0)
  2507. + *
  2508. + CModeRequestTagList(ModeRequest,ModeRequestTags)(a0,a1)
  2509. + *
  2510. + AllocCModeListTagList(ModeListTags)(a1)
  2511. + *
  2512. + FreeCModeList(ModeList)(a0)
  2513. + *
  2514. + ##private
  2515. + cgfxPrivate5()()
  2516. + ##public
  2517. + *
  2518. + ScalePixelArray(srcRect,SrcW,SrcH,SrcMod,RastPort,DestX,DestY,DestW,DestH,SrcFormat)(a0,d0,d1,d2,a1,d3,d4,d5,d6,d7)
  2519. + *
  2520. + GetCyberMapAttr(CyberGfxBitmap,CyberAttrTag)(a0,d0)
  2521. + *
  2522. + GetCyberIDAttr(CyberIDAttr,CyberDisplayModeID)(d0,d1)
  2523. + *
  2524. + ReadRGBPixel(RastPort,x,y)(a1,d0,d1)
  2525. + *
  2526. + WriteRGBPixel(RastPort,x,y,argb)(a1,d0,d1,d2)
  2527. + *
  2528. + ReadPixelArray(destRect,destX,destY,destMod,RastPort,SrcX,SrcY,SizeX,SizeY,DestFormat)(a0,d0,d1,d2,a1,d3,d4,d5,d6,d7)
  2529. + *
  2530. + WritePixelArray(srcRect,SrcX,SrcY,SrcMod,RastPort,DestX,DestY,SizeX,SizeY,SrcFormat)(a0,d0,d1,d2,a1,d3,d4,d5,d6,d7)
  2531. + *
  2532. + MovePixelArray(SrcX,SrcY,RastPort,DestX,DestY,SizeX,SizeY)(d0,d1,a1,d2,d3,d4,d5)
  2533. + *
  2534. + ##private
  2535. + cgfxPrivate6()()
  2536. + ##public
  2537. + *
  2538. + InvertPixelArray(RastPort,DestX,DestY,SizeX,SizeY)(a1,d0,d1,d2,d3)
  2539. + *
  2540. + FillPixelArray(RastPort,DestX,DestY,SizeX,SizeY,ARGB)(a1,d0,d1,d2,d3,d4)
  2541. + *
  2542. + DoCDrawMethodTagList(Hook,RastPort,TagList)(a0,a1,a2)
  2543. + *
  2544. + CVideoCtrlTagList(ViewPort,TagList)(a0,a1)
  2545. + *
  2546. + *--- functions in V40 or higher (Release 40.60) ---
  2547. + *
  2548. + LockBitMapTagList(BitMap,TagList)(a0,a1)
  2549. + *
  2550. + UnLockBitMap(Handle)(a0)
  2551. + *
  2552. + UnLockBitMapTagList(Handle,TagList)(a0,a1)
  2553. + *
  2554. + *--- functions in V41 or higher ---
  2555. + *
  2556. + ExtractColor(RastPort,BitMap,Colour,SrcX,SrcY,Width,Height)(A0,A1,D0,D1,D2,D3,D4)
  2557. + *
  2558. + ##private
  2559. + cgfxPrivate7()()
  2560. + ##public
  2561. + *
  2562. + WriteLUTPixelArray(srcRect,SrcX,SrcY,SrcMod,RastPort,ColorTab,DestX,DestY,SizeX,SizeY,CTFormat)(a0,d0,d1,d2,a1,a2,d3,d4,d5,d6,d7)
  2563. + NewOwnCyberMap(BitmapInfo)(a0)
  2564. + NewDisOwnCyberMap(BitmapInfo)(a0)
  2565. + ##end
  2566. Only in include_h/fd: datatypes_lib.fd
  2567. Only in include_h/fd: datatypes_lib.fd.info
  2568. Only in include_h/fd: disk_lib.fd
  2569. Only in include_h/fd: disk_lib.fd.info
  2570. Only in include_h/fd: diskfont_lib.fd
  2571. Only in include_h/fd: diskfont_lib.fd.info
  2572. Only in include_h/fd: dos_lib.fd
  2573. Only in include_h/fd: dos_lib.fd.info
  2574. Only in include_h/fd: dtclass_lib.fd
  2575. Only in include_h/fd: dtclass_lib.fd.info
  2576. diff -c2 -d -P -r include_h/fd/exec_lib.fd includenew/fd/exec_lib.fd
  2577. *** include_h/fd/exec_lib.fd    Thu Nov  2 22:27:47 2000
  2578. --- includenew/fd/exec_lib.fd    Thu Nov  2 22:27:24 2000
  2579. ***************
  2580. *** 1,2 ****
  2581. --- 1,3 ----
  2582. + * "exec.library"
  2583.   ##base _SysBase
  2584.   ##bias 30
  2585. ***************
  2586. *** 6,15 ****
  2587.   *------ special patchable hooks to internal exec activity ------------
  2588.   ##private
  2589. ! execPrivate1()()
  2590. ! execPrivate2()()
  2591. ! execPrivate3()()
  2592. ! execPrivate4()()
  2593. ! execPrivate5()()
  2594. ! execPrivate6()()
  2595.   ##public
  2596.   *------ module creation ----------------------------------------------
  2597. --- 7,16 ----
  2598.   *------ special patchable hooks to internal exec activity ------------
  2599.   ##private
  2600. ! ExitIntr()()
  2601. ! Schedule()()
  2602. ! Reschedule()()
  2603. ! Switch000()()
  2604. ! Dispatch()()
  2605. ! Exception()()
  2606.   ##public
  2607.   *------ module creation ----------------------------------------------
  2608. ***************
  2609. *** 96,104 ****
  2610.   OpenResource(resName)(a1)
  2611.   *------ private diagnostic support -----------------------------------
  2612. ! ##private
  2613. ! execPrivate7()()
  2614. ! execPrivate8()()
  2615. ! execPrivate9()()
  2616. ! ##public
  2617.   *------ misc ---------------------------------------------------------
  2618.   RawDoFmt(formatString,dataStream,putChProc,putChData)(a0/a1/a2/a3)
  2619. --- 97,105 ----
  2620.   OpenResource(resName)(a1)
  2621.   *------ private diagnostic support -----------------------------------
  2622. ! * ##private
  2623. ! RawIOInit()()
  2624. ! RawMayGetChar()()
  2625. ! RawPutChar(Char)(d0)
  2626. ! * ##public
  2627.   *------ misc ---------------------------------------------------------
  2628.   RawDoFmt(formatString,dataStream,putChProc,putChData)(a0/a1/a2/a3)
  2629. ***************
  2630. *** 148,154 ****
  2631.   ColdReboot()()
  2632.   StackSwap(newStack)(a0)
  2633.   *------ task trees ---------------------------------------------------
  2634. - ChildFree(tid)(d0)
  2635. - ChildOrphan(tid)(d0)
  2636.   ChildStatus(tid)(d0)
  2637.   ChildWait(tid)(d0)
  2638. --- 149,156 ----
  2639.   ColdReboot()()
  2640.   StackSwap(newStack)(a0)
  2641. + *------ New PPC extension functions ----------------------------------
  2642. + NewGetTaskAttrsA(Task,Data,DataSize,Type,Tags)(a0,a1,d0,d1,a2)
  2643. + NewSetTaskAttrsA(Task,Data,DataSize,Type,Tags)(a0,a1,d0,d1,a2)
  2644.   *------ task trees ---------------------------------------------------
  2645.   ChildStatus(tid)(d0)
  2646.   ChildWait(tid)(d0)
  2647. ***************
  2648. *** 163,173 ****
  2649.   *------ Function to attempt to obtain a Quick Interrupt Vector...
  2650.   ObtainQuickVector(interruptCode)(a0)
  2651.   ##private
  2652. ! execPrivate10()()
  2653. ! execPrivate11()()
  2654. ! execPrivate12()()
  2655. ! execPrivate13()()
  2656. ! execPrivate14()()
  2657. ! execPrivate15()()
  2658.   ##public
  2659.   ##end
  2660. --- 165,177 ----
  2661.   *------ Function to attempt to obtain a Quick Interrupt Vector...
  2662.   ObtainQuickVector(interruptCode)(a0)
  2663. + *------ New PPC extension functions ----------------------------------
  2664. + NewSetFunction(library,function,offset,tags)(a0,a1,d0,a2)
  2665. + NewCreateLibrary(tags)(a0)
  2666. + NewPPCStackSwap(newStack,function,args)(a0,a1,a2)
  2667. + TaggedOpenLibrary(Tag)(d0)
  2668.   ##private
  2669. ! ReadGayle()()
  2670.   ##public
  2671. + * Native specific function..as args is always a va_list.
  2672. + NewRawDoFmt(FmtString,PutChProc,PutChData,args)(a0,a1,a2,a3)
  2673.   ##end
  2674. Only in include_h/fd: exec_lib.fd.info
  2675. Only in include_h/fd: expansion_lib.fd
  2676. Only in include_h/fd: expansion_lib.fd.info
  2677. Only in include_h/fd: gadtools_lib.fd
  2678. Only in include_h/fd: gadtools_lib.fd.info
  2679. Only in include_h/fd: graphics_lib.fd
  2680. Only in include_h/fd: graphics_lib.fd.info
  2681. Only in include_h/fd: icon_lib.fd
  2682. Only in include_h/fd: icon_lib.fd.info
  2683. Only in include_h/fd: iffparse_lib.fd
  2684. Only in include_h/fd: iffparse_lib.fd.info
  2685. Only in include_h/fd: input_lib.fd
  2686. Only in include_h/fd: input_lib.fd.info
  2687. Only in include_h/fd: intuition_lib.fd
  2688. Only in include_h/fd: intuition_lib.fd.info
  2689. Only in include_h/fd: keymap_lib.fd
  2690. Only in include_h/fd: keymap_lib.fd.info
  2691. Only in include_h/fd: layers_lib.fd
  2692. Only in include_h/fd: layers_lib.fd.info
  2693. Only in include_h/fd: locale_lib.fd
  2694. Only in include_h/fd: locale_lib.fd.info
  2695. Only in include_h/fd: lowlevel_lib.fd
  2696. Only in include_h/fd: lowlevel_lib.fd.info
  2697. Only in include_h/fd: mathffp_lib.fd
  2698. Only in include_h/fd: mathffp_lib.fd.info
  2699. Only in include_h/fd: mathieeedoubbas_lib.fd
  2700. Only in include_h/fd: mathieeedoubbas_lib.fd.info
  2701. Only in include_h/fd: mathieeedoubtrans_lib.fd
  2702. Only in include_h/fd: mathieeedoubtrans_lib.fd.info
  2703. Only in include_h/fd: mathieeesingbas_lib.fd
  2704. Only in include_h/fd: mathieeesingbas_lib.fd.info
  2705. Only in include_h/fd: mathieeesingtrans_lib.fd
  2706. Only in include_h/fd: mathieeesingtrans_lib.fd.info
  2707. Only in include_h/fd: mathtrans_lib.fd
  2708. Only in include_h/fd: mathtrans_lib.fd.info
  2709. Only in include_h/fd: misc_lib.fd
  2710. Only in include_h/fd: misc_lib.fd.info
  2711. Only in include_h/fd: nonvolatile_lib.fd
  2712. Only in include_h/fd: nonvolatile_lib.fd.info
  2713. Only in include_h/fd: potgo_lib.fd
  2714. Only in include_h/fd: potgo_lib.fd.info
  2715. diff -c2 -d -P -r include_h/fd/ppc_lib.fd includenew/fd/ppc_lib.fd
  2716. *** include_h/fd/ppc_lib.fd    Thu Jan  1 00:00:00 1970
  2717. --- includenew/fd/ppc_lib.fd    Thu Nov  2 22:27:23 2000
  2718. ***************
  2719. *** 0 ****
  2720. --- 1,92 ----
  2721. + * "ppc.library"
  2722. + ##base _PPCLibBase
  2723. + ##bias 30
  2724. + ##public
  2725. + PPCLoadObject(Name)(a0)
  2726. + PPCUnLoadObject(Object)(a0)
  2727. + PPCRunObject(ElfObject,Argument)(a0/a1)
  2728. + PPCAllocMem(size,attributes)(d0/d1)
  2729. + PPCFreeMem(Memory,size)(a1,d0)
  2730. + PPCAllocVec(byteSize,attributes)(d0/d1)
  2731. + PPCFreeVec(memoryBlock)(a1)
  2732. + ##private
  2733. + PPCPrivate0()()
  2734. + PPCPrivate0a()()
  2735. + ##public
  2736. + PPCCreateTask(ElfObject,Tags)(a0/a1)
  2737. + PPCDeleteTask(TaskObject)(a0)
  2738. + PPCSignalTask(TaskObject,SignalMask)(a0,d0)
  2739. + PPCFindTask(Name)(a0)
  2740. + ##private
  2741. + PPCPrivate1()()
  2742. + ##public
  2743. + PPCRunKernelObject(a,b)(a0/a1)
  2744. + ##private
  2745. + PPCPrivate2()()
  2746. + PPCPrivate3()()
  2747. + ##public
  2748. + PPCGetTaskAttrs(TaskObject,Tags)(a0/a1)
  2749. + PPCGetAttrs(Tags)(a0)
  2750. + PPCFindTaskObject(TaskObject)(a0)
  2751. + PPCRunKernelObjectFPU()()
  2752. + PPCReadLong(Address)(a0)
  2753. + PPCWriteLong(Address,Value)(a0,d0)
  2754. + ##private
  2755. + PPCPrivate4()()
  2756. + PPCPrivate5()()
  2757. + ##public
  2758. + PPCStartTask(TaskObject,Tags)(a0/a1)
  2759. + PPCStopTask(TaskObject,Tags)(a0/a1)
  2760. + PPCSetTaskAttrs(TaskObject,Tags)(a0/a1)
  2761. + PPCGetObjectAttrs(ElfObject,PPCObjectInfo,Tags)(a0/a1/a2)
  2762. + PPCWriteLongFlush(Address,Value)(a0,d0)
  2763. + PPCReadWord(Address)(a0)    
  2764. + PPCWriteWord(Address,Value)(a0,d0)
  2765. + PPCReadByte(Address)(a0)
  2766. + PPCWriteByte(Address,Value)(a0,d0)
  2767. + PPCCreatePool(memFlags,puddleSize,threshSize)(d0/d1/d2)
  2768. + PPCDeletePool(poolHeader)(a0)
  2769. + PPCAllocPooled(poolHeader,memSize)(a0,d0)
  2770. + PPCFreePooled(poolHeader,memory,memSize)(a0/a1,d0)
  2771. + PPCAllocVecPooled(Pool,byteSize)(a0,d0)
  2772. + PPCFreeVecPooled(Pool,memoryBlock)(a0/a1)
  2773. + PPCCreatePort(Tags)(a0)
  2774. + PPCDeletePort(PPCPort)(a0)
  2775. + PPCObtainPort(Tags)(a0)
  2776. + PPCReleasePort(PPCPort)(a0)
  2777. + PPCCreateMessage(PPCPort,Length)(a0,d0)
  2778. + PPCDeleteMessage(PPCMessage)(a0)
  2779. + PPCGetMessageAttr(PPCMessage,Attr)(a0,d0)
  2780. + PPCGetMessage(PPCPort)(a0)
  2781. + ##private
  2782. + PPCPrivate6()()
  2783. + ##public
  2784. + PPCReplyMessage(PPCMessage)(a0)
  2785. + PPCSendMessage(PPCPort,PPCMessage,Data,Length,MsgID)(a0/a1/a2,d0/d1)
  2786. + PPCWaitPort(PPCPort)(a0)
  2787. + PPCCacheClearE(address,length,caches)(a0,d0/d1)
  2788. + PPCCacheInvalidE(address,length,caches)(a0,d0/d1)
  2789. + ##private
  2790. + PPCPrivate7()()
  2791. + PPCPrivate8()()
  2792. + ##public
  2793. + PPCCreatePortList(PPCPortArray,ExtSignals)(a0,d0)
  2794. + PPCDeletePortList(PPCPortList)(a0)
  2795. + PPCAddPortList(PPCPortList,PPCPort)(a0/a1)
  2796. + PPCRemPortList(PPCPortList,PPCPort)(a0/a1)
  2797. + PPCWaitPortList(PPCPortList)(a0)
  2798. + PPCGetPortListAttr(PPCPortList,Attr)(a0,d0)
  2799. + PPCSetPortListAttr(PPCPortList,Attr,a)(a0,d0)
  2800. + PPCLoadObjectTagList(Tags)(a0)
  2801. + PPCSetAttrs(Tags)(a0)
  2802. + ##private
  2803. + PPCPrivate9()()
  2804. + PPCPrivate10()()
  2805. + ##public
  2806. + PPCCacheTrashE(address,length,caches)(a0,d0/d1)
  2807. + PPCOpenLibrary(Name,Tags)(a0,a1)
  2808. + PPCCloseLibrary(Library)(a0)
  2809. + PPCGetLibSymbol(Library,Name)(a0,a1)
  2810. + ##private
  2811. + PPCPrivate14()()
  2812. + ##end
  2813. diff -c2 -d -P -r include_h/fd/ppcdiss_lib.fd includenew/fd/ppcdiss_lib.fd
  2814. *** include_h/fd/ppcdiss_lib.fd    Thu Jan  1 00:00:00 1970
  2815. --- includenew/fd/ppcdiss_lib.fd    Thu Nov  2 22:27:23 2000
  2816. ***************
  2817. *** 0 ****
  2818. --- 1,9 ----
  2819. + * "ppcdiss.library"
  2820. + ##base _PPCDissBase
  2821. + ##bias 30
  2822. + ##public
  2823. + CreateDisAssHandleTagList(TagList)(a0)
  2824. + DeleteDisAssHandle(DissHandle)(a0)
  2825. + DisAssTagList(DissHandle,TagList)(a0,a1)
  2826. + ##end
  2827. Only in include_h/fd: ramdrive_lib.fd
  2828. Only in include_h/fd: ramdrive_lib.fd.info
  2829. Only in include_h/fd: realtime_lib.fd
  2830. Only in include_h/fd: realtime_lib.fd.info
  2831. Only in include_h/fd: rexxsyslib_lib.fd
  2832. Only in include_h/fd: rexxsyslib_lib.fd.info
  2833. Only in include_h/fd: timer_lib.fd
  2834. Only in include_h/fd: timer_lib.fd.info
  2835. Only in include_h/fd: translator_lib.fd
  2836. Only in include_h/fd: translator_lib.fd.info
  2837. Only in include_h/fd: utility_lib.fd
  2838. Only in include_h/fd: utility_lib.fd.info
  2839. Only in include_h/fd: wb_lib.fd
  2840. Only in include_h/fd: wb_lib.fd.info
  2841. Only in include_h: gadgets
  2842. Only in include_h: graphics
  2843. Only in include_h: hardware
  2844. Only in include_h: intuition
  2845. Only in include_h: libraries
  2846. diff -c2 -d -P -r include_h/lvo/exec_lvo.h includenew/lvo/exec_lvo.h
  2847. *** include_h/lvo/exec_lvo.h    Thu Jan  1 00:00:00 1970
  2848. --- includenew/lvo/exec_lvo.h    Thu Nov  2 22:27:23 2000
  2849. ***************
  2850. *** 0 ****
  2851. --- 1,151 ----
  2852. + #ifndef _LVO_EXEC_LIB_H
  2853. + #define _LVO_EXEC_LIB_H
  2854. + /*
  2855. +  *  $VER: exec_lvolib.h (08/03/97)
  2856. +  *
  2857. +  */
  2858. + #define    LVO_OPEN        (-6)
  2859. + #define    LVO_CLOSE        (-12)
  2860. + #define    LVO_EXPUNGE        (-18)
  2861. + #define    LVO_EXTFUNC        (-24)
  2862. + #define    LVO_BEGINIO        (-30)
  2863. + #define    LVO_ABORTIO        (-36)
  2864. + #define    LVO_Supervisor    (-0x1E)
  2865. + #define    LVO_ExitIntr    (-0x24)
  2866. + #define    LVO_Schedule    (-0x2A)
  2867. + #define    LVO_Reschedule    (-0x30)
  2868. + #define    LVO_Switch    (-0x36)
  2869. + #define    LVO_Dispatch    (-0x3C)
  2870. + #define    LVO_Exception    (-0x42)
  2871. + #define    LVO_InitCode    (-0x48)
  2872. + #define    LVO_InitStruct    (-0x4E)
  2873. + #define    LVO_MakeLibrary    (-0x54)
  2874. + #define    LVO_MakeFunctions    (-0x5A)
  2875. + #define    LVO_FindResident    (-0x60)
  2876. + #define    LVO_InitResident    (-0x66)
  2877. + #define    LVO_Alert    (-0x6C)
  2878. + #define    LVO_Debug    (-0x72)
  2879. + #define    LVO_Disable    (-0x78)
  2880. + #define    LVO_Enable    (-0x7E)
  2881. + #define    LVO_Forbid    (-0x84)
  2882. + #define    LVO_Permit    (-0x8A)
  2883. + #define    LVO_SetSR    (-0x90)
  2884. + #define    LVO_SuperState    (-0x96)
  2885. + #define    LVO_UserState    (-0x9C)
  2886. + #define    LVO_SetIntVector    (-0xA2)
  2887. + #define    LVO_AddIntServer    (-0xA8)
  2888. + #define    LVO_RemIntServer    (-0xAE)
  2889. + #define    LVO_Cause    (-0xB4)
  2890. + #define    LVO_Allocate    (-0xBA)
  2891. + #define    LVO_Deallocate    (-0xC0)
  2892. + #define    LVO_AllocMem    (-0xC6)
  2893. + #define    LVO_AllocAbs    (-0xCC)
  2894. + #define    LVO_FreeMem    (-0xD2)
  2895. + #define    LVO_AvailMem    (-0xD8)
  2896. + #define    LVO_AllocEntry    (-0xDE)
  2897. + #define    LVO_FreeEntry    (-0xE4)
  2898. + #define    LVO_Insert    (-0xEA)
  2899. + #define    LVO_AddHead    (-0xF0)
  2900. + #define    LVO_AddTail    (-0xF6)
  2901. + #define    LVO_Remove    (-0xFC)
  2902. + #define    LVO_RemHead    (-0x102)
  2903. + #define    LVO_RemTail    (-0x108)
  2904. + #define    LVO_Enqueue    (-0x10E)
  2905. + #define    LVO_FindName    (-0x114)
  2906. + #define    LVO_AddTask    (-0x11A)
  2907. + #define    LVO_RemTask    (-0x120)
  2908. + #define    LVO_FindTask    (-0x126)
  2909. + #define    LVO_SetTaskPri    (-0x12C)
  2910. + #define    LVO_SetSignal    (-0x132)
  2911. + #define    LVO_SetExcept    (-0x138)
  2912. + #define    LVO_Wait    (-0x13E)
  2913. + #define    LVO_Signal    (-0x144)
  2914. + #define    LVO_AllocSignal    (-0x14A)
  2915. + #define    LVO_FreeSignal    (-0x150)
  2916. + #define    LVO_AllocTrap    (-0x156)
  2917. + #define    LVO_FreeTrap    (-0x15C)
  2918. + #define    LVO_AddPort    (-0x162)
  2919. + #define    LVO_RemPort    (-0x168)
  2920. + #define    LVO_PutMsg    (-0x16E)
  2921. + #define    LVO_GetMsg    (-0x174)
  2922. + #define    LVO_ReplyMsg    (-0x17A)
  2923. + #define    LVO_WaitPort    (-0x180)
  2924. + #define    LVO_FindPort    (-0x186)
  2925. + #define    LVO_AddLibrary    (-0x18C)
  2926. + #define    LVO_RemLibrary    (-0x192)
  2927. + #define    LVO_OldOpenLibrary    (-0x198)
  2928. + #define    LVO_CloseLibrary    (-0x19E)
  2929. + #define    LVO_SetFunction    (-0x1A4)
  2930. + #define    LVO_SumLibrary    (-0x1AA)
  2931. + #define    LVO_AddDevice    (-0x1B0)
  2932. + #define    LVO_RemDevice    (-0x1B6)
  2933. + #define    LVO_OpenDevice    (-0x1BC)
  2934. + #define    LVO_CloseDevice    (-0x1C2)
  2935. + #define    LVO_DoIO    (-0x1C8)
  2936. + #define    LVO_SendIO    (-0x1CE)
  2937. + #define    LVO_CheckIO    (-0x1D4)
  2938. + #define    LVO_WaitIO    (-0x1DA)
  2939. + #define    LVO_AbortIO    (-0x1E0)
  2940. + #define    LVO_AddResource    (-0x1E6)
  2941. + #define    LVO_RemResource    (-0x1EC)
  2942. + #define    LVO_OpenResource    (-0x1F2)
  2943. + #define    LVO_RawIOInit        (-0x1F8)
  2944. + #define    LVO_RawMayGetChar    (-0x1FE)
  2945. + #define    LVO_RawPutChar        (-0x204)
  2946. + #define    LVO_RawDoFmt    (-0x20A)
  2947. + #define    LVO_GetCC    (-0x210)
  2948. + #define    LVO_TypeOfMem    (-0x216)
  2949. + #define    LVO_Procure    (-0x21C)
  2950. + #define    LVO_Vacate    (-0x222)
  2951. + #define    LVO_OpenLibrary    (-0x228)
  2952. + #define    LVO_InitSemaphore    (-0x22E)
  2953. + #define    LVO_ObtainSemaphore    (-0x234)
  2954. + #define    LVO_ReleaseSemaphore    (-0x23A)
  2955. + #define    LVO_AttemptSemaphore    (-0x240)
  2956. + #define    LVO_ObtainSemaphoreList    (-0x246)
  2957. + #define    LVO_ReleaseSemaphoreList    (-0x24C)
  2958. + #define    LVO_FindSemaphore    (-0x252)
  2959. + #define    LVO_AddSemaphore    (-0x258)
  2960. + #define    LVO_RemSemaphore    (-0x25E)
  2961. + #define    LVO_SumKickData    (-0x264)
  2962. + #define    LVO_AddMemList    (-0x26A)
  2963. + #define    LVO_CopyMem    (-0x270)
  2964. + #define    LVO_CopyMemQuick    (-0x276)
  2965. + #define    LVO_CacheClearU    (-0x27C)
  2966. + #define    LVO_CacheClearE    (-0x282)
  2967. + #define    LVO_CacheControl    (-0x288)
  2968. + #define    LVO_CreateIORequest    (-0x28E)
  2969. + #define    LVO_DeleteIORequest    (-0x294)
  2970. + #define    LVO_CreateMsgPort    (-0x29A)
  2971. + #define    LVO_DeleteMsgPort    (-0x2A0)
  2972. + #define    LVO_ObtainSemaphoreShared    (-0x2A6)
  2973. + #define    LVO_AllocVec    (-0x2AC)
  2974. + #define    LVO_FreeVec    (-0x2B2)
  2975. + #define    LVO_CreatePool    (-0x2B8)
  2976. + #define    LVO_DeletePool    (-0x2BE)
  2977. + #define    LVO_AllocPooled    (-0x2C4)
  2978. + #define    LVO_FreePooled    (-0x2CA)
  2979. + #define    LVO_AttemptSemaphoreShared    (-0x2D0)
  2980. + #define    LVO_ColdReboot        (-0x2D6)
  2981. + #define    LVO_StackSwap        (-0x2DC)
  2982. + #define    LVO_NewGetTaskAttrsA    (-0x2E2)
  2983. + #define    LVO_NewSetTaskAttrsA    (-0x2E8)
  2984. + #define    LVO_ChildStatus        (-0x2EE)
  2985. + #define    LVO_ChildWait        (-0x2F4)
  2986. + #define    LVO_CachePreDMA        (-0x2FA)
  2987. + #define    LVO_CachePostDMA    (-0x300)
  2988. + #define    LVO_AddMemHandler    (-0x306)
  2989. + #define    LVO_RemMemHandler    (-0x30C)
  2990. + #define    LVO_ObtainQuickVector    (-0x312)
  2991. + #define    LVO_NewSetFunction    (-0x318)
  2992. + #define    LVO_NewCreateLibrary    (-0x31E)
  2993. + #define    LVO_NewPPCStackSwap    (-0x324)
  2994. + #define    LVO_TaggedOpenLibrary    (-0x32A)
  2995. + #define    LVO_ReadGayle        (-0x330)
  2996. + #define    LVO_NewRawDoFmt        (-0x336)
  2997. + #endif
  2998. diff -c2 -d -P -r include_h/powerup/clib/ppc_protos.h includenew/powerup/clib/ppc_protos.h
  2999. *** include_h/powerup/clib/ppc_protos.h    Thu Jan  1 00:00:00 1970
  3000. --- includenew/powerup/clib/ppc_protos.h    Thu Nov  2 22:27:03 2000
  3001. ***************
  3002. *** 0 ****
  3003. --- 1,131 ----
  3004. + #ifndef POWERUP_PPCLIB_PROTOS_H
  3005. + #define POWERUP_PPCLIB_PROTOS_H
  3006. + void*    PPCLoadObject(char*);
  3007. + void    PPCUnLoadObject(void*);
  3008. + ULONG    PPCRunObject(void*,void*);
  3009. + void*    PPCAllocMem(ULONG,ULONG);
  3010. + void    PPCFreeMem(void*,ULONG);
  3011. + void*    PPCAllocVec(ULONG,ULONG);
  3012. + void*    PPCFreeVec(void*);
  3013. + void    *PPCCreateTask(void*,
  3014. +                         struct TagItem*);
  3015. + void    *PPCCreateTaskTags(void*,
  3016. +                             unsigned long tag1Type, ... );
  3017. + BOOL    PPCDeleteTask(void*);
  3018. + void    PPCSignalTask(void*,ULONG);
  3019. + void    *PPCFindTask(char    *);
  3020. + ULONG    PPCRunKernelObject(void*,
  3021. +                             struct ModuleArgs*);
  3022. + DOUBLE    PPCRunKernelObjectFPU(void*,
  3023. +                                struct ModuleArgs*);
  3024. + ULONG    PPCGetTaskAttrs(void*,
  3025. +                          struct TagItem*);
  3026. + ULONG    PPCGetTaskAttrsTags(void*,
  3027. +                              unsigned long tag1Type,
  3028. +                              ...);
  3029. + ULONG    PPCGetAttrs(struct TagItem*);
  3030. + ULONG    PPCGetAttrsTags(unsigned long tag1Type,
  3031. +                          ...);
  3032. + void    *PPCFindTaskObject(void*);
  3033. + ULONG    PPCReadLong(ULONG*);
  3034. + void    PPCWriteLong(ULONG*,ULONG);
  3035. + BOOL    PPCStartTask(void*,
  3036. +                       struct TagItem*);
  3037. + BOOL    PPCStartTaskTags(void*,
  3038. +                           unsigned long tag1Type, ... );
  3039. + BOOL    PPCStopTask(void*,
  3040. +                      struct TagItem*);
  3041. + BOOL    PPCStopTaskTags(void*,
  3042. +                          unsigned long tag1Type, ... );
  3043. + ULONG    PPCSetTaskAttrs(void*,
  3044. +                          struct TagItem*);
  3045. + ULONG    PPCSetTaskAttrsTags(void*,
  3046. +                              unsigned long tag1Type,
  3047. +                              ...);
  3048. + ULONG    PPCGetObjectAttrs(void*,
  3049. +                            struct PPCObjectInfo*,
  3050. +                            struct TagItem*);
  3051. + ULONG    PPCGetObjectAttrsTags(void*,
  3052. +                                struct PPCObjectInfo*,
  3053. +                                unsigned long tag1Type,
  3054. +                                ... );
  3055. + void    PPCWriteLongFlush(ULONG*,ULONG);
  3056. + UWORD    PPCReadWord(UWORD*);
  3057. + void    PPCWriteWord(UWORD*,UWORD);
  3058. + UBYTE    PPCReadByte(UBYTE*);
  3059. + void    PPCWriteByte(UBYTE*,UBYTE);
  3060. + void*    PPCCreatePool(ULONG        MemFlags,
  3061. +                        ULONG        PuddleSize,
  3062. +                        ULONG        ThreshSize);
  3063. + BOOL    PPCDeletePool(void*);
  3064. + void*    PPCAllocPooled(void*,
  3065. +                         ULONG);
  3066. + void    PPCFreePooled(void*,
  3067. +                        void*,
  3068. +                        ULONG);
  3069. + void    PPCFreeVecPooled(void*,
  3070. +                           void*);
  3071. + void*    PPCAllocVecPooled(void*,
  3072. +                            ULONG);
  3073. + void*    PPCCreatePort(struct TagItem*);
  3074. + void*    PPCCreatePortTags(unsigned long tag1Type, ... );
  3075. + BOOL    PPCDeletePort(void*);
  3076. + void*    PPCObtainPort(struct TagItem*);
  3077. + void*    PPCObtainPortTags(unsigned long tag1Type, ... );
  3078. + BOOL    PPCReleasePort(void*);
  3079. + void*    PPCCreateMessage(void*,
  3080. +                           ULONG);
  3081. + void    PPCDeleteMessage(void*);
  3082. + ULONG    PPCGetMessageAttr(void*,
  3083. +                            ULONG);
  3084. + void*    PPCGetMessage(void*);
  3085. + BOOL    PPCReplyMessage(void*);
  3086. + BOOL    PPCSendMessage(void*,
  3087. +                         void*,
  3088. +                         void*,
  3089. +                         ULONG,
  3090. +                         ULONG);
  3091. + void*    PPCWaitPort(void*);
  3092. + void    PPCCacheClearE(void*,
  3093. +                         ULONG,
  3094. +                         ULONG);
  3095. + void    PPCCacheInvalidE(void*,
  3096. +                           ULONG,
  3097. +                           ULONG);
  3098. + void*    PPCCreatePortList(void**,ULONG);
  3099. + void    PPCDeletePortList(void*);
  3100. + BOOL    PPCAddPortList(void*,
  3101. +                         void*);
  3102. + void    PPCRemPortList(void*,
  3103. +                         void*);
  3104. + void*    PPCWaitPortList(void*);
  3105. + ULONG    PPCGetPortListAttr(void*,
  3106. +                             ULONG);
  3107. + void    PPCSetPortListAttr(void*,
  3108. +                             ULONG,
  3109. +                             ULONG);
  3110. + void*    PPCLoadObjectTags(unsigned long tag1Type, ... );
  3111. + void*    PPCLoadObjectTagList(struct TagItem*);
  3112. + BOOL    PPCSetAttrs(struct TagItem*);
  3113. + BOOL    PPCSetAttrsTags(unsigned long tag1Type, ... );
  3114. + void    PPCCacheTrashE(void*,
  3115. +                         ULONG,
  3116. +                         ULONG);
  3117. + #endif
  3118. diff -c2 -d -P -r include_h/powerup/clib/ppcdiss_protos.h includenew/powerup/clib/ppcdiss_protos.h
  3119. *** include_h/powerup/clib/ppcdiss_protos.h    Thu Jan  1 00:00:00 1970
  3120. --- includenew/powerup/clib/ppcdiss_protos.h    Thu Nov  2 22:27:04 2000
  3121. ***************
  3122. *** 0 ****
  3123. --- 1,15 ----
  3124. + #ifndef POWERUP_PPCLIB_PPCDISS_PROTOS_H
  3125. + #define POWERUP_PPCLIB_PPCDISS_PROTOS_H
  3126. + APTR    CreateDisAssHandleTagList(struct  TagItem *);
  3127. + void    DeleteDisAssHandle(APTR);
  3128. + ULONG    DisAssTagList(APTR,
  3129. +                       struct TagItem *);
  3130. + #ifdef __SASC_60
  3131. + APTR    CreateDisAssHandleTags(Tag, ...);
  3132. + ULONG    DisAssTags(APTR,
  3133. +                    Tag, ...);
  3134. + #endif
  3135. + #endif
  3136. diff -c2 -d -P -r include_h/powerup/fd/ppc_lib.fd includenew/powerup/fd/ppc_lib.fd
  3137. *** include_h/powerup/fd/ppc_lib.fd    Thu Jan  1 00:00:00 1970
  3138. --- includenew/powerup/fd/ppc_lib.fd    Thu Nov  2 22:27:03 2000
  3139. ***************
  3140. *** 0 ****
  3141. --- 1,92 ----
  3142. + * "ppc.library"
  3143. + ##base _PPCLibBase
  3144. + ##bias 30
  3145. + ##public
  3146. + PPCLoadObject(Name)(a0)
  3147. + PPCUnLoadObject(Object)(a0)
  3148. + PPCRunObject(ElfObject,Argument)(a0/a1)
  3149. + PPCAllocMem(size,attributes)(d0/d1)
  3150. + PPCFreeMem(Memory,size)(a1,d0)
  3151. + PPCAllocVec(byteSize,attributes)(d0/d1)
  3152. + PPCFreeVec(memoryBlock)(a1)
  3153. + ##private
  3154. + PPCPrivate0()()
  3155. + PPCPrivate0a()()
  3156. + ##public
  3157. + PPCCreateTask(ElfObject,Tags)(a0/a1)
  3158. + PPCDeleteTask(TaskObject)(a0)
  3159. + PPCSignalTask(TaskObject,SignalMask)(a0,d0)
  3160. + PPCFindTask(Name)(a0)
  3161. + ##private
  3162. + PPCPrivate1()()
  3163. + ##public
  3164. + PPCRunKernelObject(a,b)(a0/a1)
  3165. + ##private
  3166. + PPCPrivate2()()
  3167. + PPCPrivate3()()
  3168. + ##public
  3169. + PPCGetTaskAttrs(TaskObject,Tags)(a0/a1)
  3170. + PPCGetAttrs(Tags)(a0)
  3171. + PPCFindTaskObject(TaskObject)(a0)
  3172. + PPCRunKernelObjectFPU()()
  3173. + PPCReadLong(Address)(a0)
  3174. + PPCWriteLong(Address,Value)(a0,d0)
  3175. + ##private
  3176. + PPCPrivate4()()
  3177. + PPCPrivate5()()
  3178. + ##public
  3179. + PPCStartTask(TaskObject,Tags)(a0/a1)
  3180. + PPCStopTask(TaskObject,Tags)(a0/a1)
  3181. + PPCSetTaskAttrs(TaskObject,Tags)(a0/a1)
  3182. + PPCGetObjectAttrs(ElfObject,PPCObjectInfo,Tags)(a0/a1/a2)
  3183. + PPCWriteLongFlush(Address,Value)(a0,d0)
  3184. + PPCReadWord(Address)(a0)    
  3185. + PPCWriteWord(Address,Value)(a0,d0)
  3186. + PPCReadByte(Address)(a0)
  3187. + PPCWriteByte(Address,Value)(a0,d0)
  3188. + PPCCreatePool(memFlags,puddleSize,threshSize)(d0/d1/d2)
  3189. + PPCDeletePool(poolHeader)(a0)
  3190. + PPCAllocPooled(poolHeader,memSize)(a0,d0)
  3191. + PPCFreePooled(poolHeader,memory,memSize)(a0/a1,d0)
  3192. + PPCAllocVecPooled(Pool,byteSize)(a0,d0)
  3193. + PPCFreeVecPooled(Pool,memoryBlock)(a0/a1)
  3194. + PPCCreatePort(Tags)(a0)
  3195. + PPCDeletePort(PPCPort)(a0)
  3196. + PPCObtainPort(Tags)(a0)
  3197. + PPCReleasePort(PPCPort)(a0)
  3198. + PPCCreateMessage(PPCPort,Length)(a0,d0)
  3199. + PPCDeleteMessage(PPCMessage)(a0)
  3200. + PPCGetMessageAttr(PPCMessage,Attr)(a0,d0)
  3201. + PPCGetMessage(PPCPort)(a0)
  3202. + ##private
  3203. + PPCPrivate6()()
  3204. + ##public
  3205. + PPCReplyMessage(PPCMessage)(a0)
  3206. + PPCSendMessage(PPCPort,PPCMessage,Data,Length,MsgID)(a0/a1/a2,d0/d1)
  3207. + PPCWaitPort(PPCPort)(a0)
  3208. + PPCCacheClearE(address,length,caches)(a0,d0/d1)
  3209. + PPCCacheInvalidE(address,length,caches)(a0,d0/d1)
  3210. + ##private
  3211. + PPCPrivate7()()
  3212. + PPCPrivate8()()
  3213. + ##public
  3214. + PPCCreatePortList(PPCPortArray,ExtSignals)(a0,d0)
  3215. + PPCDeletePortList(PPCPortList)(a0)
  3216. + PPCAddPortList(PPCPortList,PPCPort)(a0/a1)
  3217. + PPCRemPortList(PPCPortList,PPCPort)(a0/a1)
  3218. + PPCWaitPortList(PPCPortList)(a0)
  3219. + PPCGetPortListAttr(PPCPortList,Attr)(a0,d0)
  3220. + PPCSetPortListAttr(PPCPortList,Attr,a)(a0,d0)
  3221. + PPCLoadObjectTagList(Tags)(a0)
  3222. + PPCSetAttrs(Tags)(a0)
  3223. + ##private
  3224. + PPCPrivate9()()
  3225. + PPCPrivate10()()
  3226. + ##public
  3227. + PPCCacheTrashE(address,length,caches)(a0,d0/d1)
  3228. + ##private
  3229. + PPCPrivate11()()
  3230. + PPCPrivate12()()
  3231. + PPCPrivate13()()
  3232. + PPCPrivate14()()
  3233. + ##end
  3234. diff -c2 -d -P -r include_h/powerup/fd/ppcdiss_lib.fd includenew/powerup/fd/ppcdiss_lib.fd
  3235. *** include_h/powerup/fd/ppcdiss_lib.fd    Thu Jan  1 00:00:00 1970
  3236. --- includenew/powerup/fd/ppcdiss_lib.fd    Thu Nov  2 22:27:03 2000
  3237. ***************
  3238. *** 0 ****
  3239. --- 1,7 ----
  3240. + * "ppcdiss.library"
  3241. + ##base _PPCDissLibBase
  3242. + ##bias 30
  3243. + ##public
  3244. + CreateDisAssHandleTagList(Tags)(a0)
  3245. + DeleteDisAssHandle(Handle)(a0)
  3246. + DisAssTagList(Handle,Tags)(a0,a1)
  3247. diff -c2 -d -P -r include_h/powerup/gcclib/PPCKernel.ldfilter includenew/powerup/gcclib/PPCKernel.ldfilter
  3248. *** include_h/powerup/gcclib/PPCKernel.ldfilter    Thu Jan  1 00:00:00 1970
  3249. --- includenew/powerup/gcclib/PPCKernel.ldfilter    Thu Nov  2 22:27:04 2000
  3250. ***************
  3251. *** 0 ****
  3252. --- 1,180 ----
  3253. + PPCAllocMem
  3254. + PPCFreeMem
  3255. + PPCCallOS
  3256. + PPCCallM68k
  3257. + PPCOpen
  3258. + PPCClose
  3259. + PPCRead
  3260. + PPCWrite
  3261. + PPCSeek
  3262. + PPCAllocVec
  3263. + PPCFreeVec
  3264. + PPCFinishTask
  3265. + PPCSignal
  3266. + PPCSignalTask
  3267. + PPCWait
  3268. + PPCFindTask
  3269. + PPCAllocSignal
  3270. + PPCFreeSignal
  3271. + PPCCacheFlush
  3272. + PPCCacheFlushAll
  3273. + PPCCacheInvalid
  3274. + PPCSetSignal
  3275. + PPCRawDoFmt
  3276. + PPCCreatePool
  3277. + PPCDeletePool
  3278. + PPCAllocPooled
  3279. + PPCFreePooled
  3280. + PPCAllocVecPooled
  3281. + PPCFreeVecPooled
  3282. + PPCCreatePort
  3283. + PPCDeletePort
  3284. + PPCObtainPort
  3285. + PPCReleasePort
  3286. + PPCCreateMessage
  3287. + PPCDeleteMessage
  3288. + PPCGetMessageAttr
  3289. + PPCGetMessage
  3290. + PPCReplyMessage
  3291. + PPCSendMessage
  3292. + PPCWaitPort
  3293. + PPCCreatePortList
  3294. + PPCDeletePortList
  3295. + PPCAddPortList
  3296. + PPCRemPortList
  3297. + PPCWaitPortList
  3298. + PPCGetPortListAttr
  3299. + PPCSetPortListAttr
  3300. + PPCNewList
  3301. + PPCAddHead
  3302. + PPCInsert
  3303. + PPCAddTail
  3304. + PPCRemove
  3305. + PPCRemHead
  3306. + PPCRemTail
  3307. + PPCEnqueue
  3308. + PPCFindName
  3309. + PPCAddHeadSync
  3310. + PPCInsertSync
  3311. + PPCAddTailSync
  3312. + PPCRemoveSync
  3313. + PPCRemHeadSync
  3314. + PPCRemTailSync
  3315. + PPCEnqueueSync
  3316. + PPCFindNameSync
  3317. + PPCNextTagItem
  3318. + PPCFindTagItem
  3319. + PPCGetTagData
  3320. + PPCVersion
  3321. + PPCRevision
  3322. + PPCReleaseSemaphore
  3323. + PPCObtainSemaphore
  3324. + PPCAttemptSemaphore
  3325. + PPCAttemptSemaphoreShared
  3326. + PPCObtainSemaphoreShared
  3327. + PPCCreateSemaphore
  3328. + PPCDeleteSemaphore
  3329. + PPCObtainSemaphoreByName
  3330. + PPCObtainSemaphoreSharedByName
  3331. + PPCAttemptSemaphoreByName
  3332. + PPCAttemptSemaphoreSharedByName
  3333. + PPCGetTaskAttr
  3334. + PPCSetTaskAttr
  3335. + PPCGetAttr
  3336. + PPCAdd64
  3337. + PPCAdd64p
  3338. + PPCSub64
  3339. + PPCSub64p
  3340. + PPCNeg64
  3341. + PPCNeg64p
  3342. + PPCCmp64
  3343. + PPCCmp64p
  3344. + PPCMulu64
  3345. + PPCMulu64p
  3346. + PPCMuls64
  3347. + PPCMuls64p
  3348. + PPCDivu64
  3349. + PPCDivu64p
  3350. + PPCDivs64
  3351. + PPCDivs64p
  3352. + PPCModu64
  3353. + PPCModu64p
  3354. + PPCMods64
  3355. + PPCMods64p
  3356. + PPCLsl64
  3357. + PPCLsl64p
  3358. + PPCLsr64
  3359. + PPCLsr64p
  3360. + PPCAsl64
  3361. + PPCAsl64p
  3362. + PPCAsr64
  3363. + PPCAsr64p
  3364. + PPCOr64
  3365. + PPCOr64p
  3366. + PPCXor64
  3367. + PPCXor64p
  3368. + PPCAnd64
  3369. + PPCAnd64p
  3370. + PPCDivRem64
  3371. + PPCDivRem64p
  3372. + PPCReadByte
  3373. + PPCReadWord
  3374. + PPCReadLong
  3375. + PPCWriteByte
  3376. + PPCWriteWord
  3377. + PPCWriteLong
  3378. + PPCCoerceMethodA
  3379. + PPCDoMethodA
  3380. + PPCDoSuperMethodA
  3381. + PPCkprintf
  3382. + PPCsprintf
  3383. + PPCprintf
  3384. + PPCfprintf
  3385. + PPCvkprintf
  3386. + PPCvsprintf
  3387. + PPCvprintf
  3388. + PPCvfprintf
  3389. + PPCCreateTask
  3390. + PPCOpenLibrary
  3391. + PPCCloseLibrary
  3392. + PPCGetLibSymbol
  3393. + PPCLoadObjectTagList
  3394. + PPCLoadObject
  3395. + PPCUnLoadObject
  3396. + PPCGetObjectAttrs
  3397. + PPCCreateTimerObject
  3398. + PPCDeleteTimerObject
  3399. + PPCSetTimerObject
  3400. + PPCGetTimerObject
  3401. + PPCOutput
  3402. + PPCInput
  3403. + strlen
  3404. + strcpy
  3405. + strcmp
  3406. + memcpy
  3407. + __adddi3
  3408. + __subdi3
  3409. + __negdi2
  3410. + __muldi3
  3411. + __lmulq
  3412. + __umoddi3
  3413. + __moddi3
  3414. + __udivdi3
  3415. + __divdi3
  3416. + __qdivrem
  3417. + __ashrdi3
  3418. + __ashldi3
  3419. + __lshldi3
  3420. + __lshrdi3
  3421. + __iordi3
  3422. + __anddi3
  3423. + __xordi3
  3424. + __cmpdi2
  3425. + __fixdfdi
  3426. + __fixsfdi
  3427. + __fixunsdfdi
  3428. + __fixunssfdi
  3429. + __floatdidf
  3430. + __floatdisf
  3431. + __floatunsdidf
  3432. + __ucmpdi2
  3433. diff -c2 -d -P -r include_h/powerup/gcclib/PPCKernel.ldfilter.txt includenew/powerup/gcclib/PPCKernel.ldfilter.txt
  3434. *** include_h/powerup/gcclib/PPCKernel.ldfilter.txt    Thu Jan  1 00:00:00 1970
  3435. --- includenew/powerup/gcclib/PPCKernel.ldfilter.txt    Thu Nov  2 22:27:04 2000
  3436. ***************
  3437. *** 0 ****
  3438. --- 1,2 ----
  3439. + use LD with this option
  3440. +     -retain-symbols-file ../../include/powerup/gcclib/PPCKernel.ldfilter
  3441. diff -c2 -d -P -r include_h/powerup/gcclib/powerup_protos.h includenew/powerup/gcclib/powerup_protos.h
  3442. *** include_h/powerup/gcclib/powerup_protos.h    Thu Jan  1 00:00:00 1970
  3443. --- includenew/powerup/gcclib/powerup_protos.h    Thu Nov  2 22:27:04 2000
  3444. ***************
  3445. *** 0 ****
  3446. --- 1,326 ----
  3447. + #ifndef POWERUP_GCCLIB_PROTOS_H
  3448. + #define POWERUP_GCCLIB_PROTOS_H
  3449. + #include <dos/dos.h>
  3450. + #include <powerup/ppclib/interface.h>
  3451. + #include <powerup/ppclib/object.h>
  3452. + #include <utility/tagitem.h>
  3453. + #ifndef  INTUITION_CLASSES_H
  3454. + #include <intuition/classes.h>
  3455. + #endif
  3456. + #ifndef  INTUITION_CLASSUSR_H
  3457. + #include <intuition/classusr.h>
  3458. + #endif
  3459. + #include <stdarg.h>
  3460. + APTR    PPCAllocMem( unsigned long byteSize, unsigned long requirements );
  3461. + void    PPCFreeMem( APTR memoryBlock, unsigned long byteSize );
  3462. + APTR    PPCAllocVec( unsigned long byteSize, unsigned long requirements );
  3463. + void    PPCFreeVec( APTR memoryBlock);
  3464. + BPTR    PPCOutput(void);
  3465. + BPTR    PPCInput(void);
  3466. + BPTR    PPCOpen( STRPTR name, long accessMode );
  3467. + LONG    PPCClose( BPTR file );
  3468. + LONG    PPCRead( BPTR file, APTR buffer, long length );
  3469. + LONG    PPCWrite( BPTR file, APTR buffer, long length );
  3470. + LONG    PPCSeek( BPTR file, long position, long offset );
  3471. + APTR    PPCCreatePool( unsigned long requirements, unsigned long puddleSize,
  3472. +     unsigned long threshSize );
  3473. + BOOL    PPCDeletePool( APTR poolHeader );
  3474. + APTR    PPCAllocPooled( APTR poolHeader, unsigned long memSize );
  3475. + void    PPCFreePooled( APTR poolHeader, APTR memory, unsigned long memSize );
  3476. + APTR    PPCAllocVecPooled( APTR poolHeader, unsigned long memSize );
  3477. + void    PPCFreeVecPooled( APTR poolHeader, APTR memory);
  3478. + ULONG    PPCCallOS(struct Caos*);
  3479. + ULONG    PPCCallM68k(struct Caos*);
  3480. + ULONG    PPCSignal(void*,ULONG);
  3481. + ULONG    PPCWait(ULONG);
  3482. + void    *PPCFindTask(char*);
  3483. + ULONG    PPCAllocSignal(ULONG);
  3484. + void    PPCFreeSignal(ULONG);
  3485. + void    PPCCacheFlush(APTR,ULONG);
  3486. + void    PPCCacheFlushAll(void);
  3487. + void    PPCCacheInvalid(APTR,ULONG);
  3488. + ULONG    PPCSetSignal(ULONG,ULONG);
  3489. + void    *PPCCreatePort(struct TagItem*);
  3490. + BOOL    PPCDeletePort(void*);
  3491. + void    *PPCObtainPort(struct TagItem*);
  3492. + BOOL    PPCReleasePort(void*);
  3493. + void    *PPCCreateMessage(void*,
  3494. +                          ULONG);
  3495. + void    PPCDeleteMessage(void*);
  3496. + void    *PPCGetMessage(void*);
  3497. + ULONG    PPCGetMessageAttr(void*,
  3498. +                           ULONG);
  3499. + BOOL    PPCReplyMessage(void*);
  3500. + BOOL    PPCSendMessage(void*,
  3501. +                        void*,
  3502. +                        void*,
  3503. +                        ULONG,
  3504. +                        ULONG);
  3505. + void    *PPCWaitPort(void*);
  3506. + void*    PPCCreatePortList(void**,ULONG);
  3507. + void    PPCDeletePortList(void*);
  3508. + BOOL    PPCAddPortList(void*,
  3509. +                        void*);
  3510. + void    PPCRemPortList(void*,
  3511. +                        void*);
  3512. + void*    PPCWaitPortList(void*);
  3513. + ULONG    PPCGetPortListAttr(void*,
  3514. +                            ULONG);
  3515. + void    PPCSetPortListAttr(void*,
  3516. +                            ULONG,
  3517. +                            ULONG);
  3518. + #if !defined(__SASC)
  3519. + int    strcmp(const char    *,
  3520. +                const char    *);
  3521. + char    *strcpy(char        *,
  3522. +                 const char    *);
  3523. + int    strlen(const char    *);
  3524. + #endif
  3525. + /*
  3526. +  * List functions for not shared and shared lists
  3527. +  *
  3528. +  */
  3529. + void        PPCInsert(struct List    *,
  3530. +                           struct Node    *,
  3531. +                           struct Node    *);
  3532. + void        PPCAddHead(struct List *,
  3533. +                            struct Node *);
  3534. + void        PPCAddTail(struct List *,
  3535. +                            struct Node *);
  3536. + void        PPCRemove(struct Node *);
  3537. + struct Node*    PPCRemHead(struct List *);
  3538. + struct Node*    PPCRemTail(struct List *);
  3539. + void        PPCEnqueue(struct List*,
  3540. +                            struct Node*);
  3541. + struct Node*    PPCFindName(struct List*,
  3542. +                             char*);
  3543. + void        PPCNewList(struct List *);
  3544. + void        PPCInsertSync(struct List    *,
  3545. +                               struct Node    *,
  3546. +                               struct Node    *);
  3547. + void        PPCAddHeadSync(struct List *,
  3548. +                                struct Node *);
  3549. + void        PPCAddTailSync(struct List *,
  3550. +                                struct Node *);
  3551. + void        PPCRemoveSync(struct Node *);
  3552. + struct Node*    PPCRemHeadSync(struct List *);
  3553. + struct Node*    PPCRemTailSync(struct List *);
  3554. + void        PPCEnqueueSync(struct List*,
  3555. +                                struct Node*);
  3556. + struct Node*    PPCFindNameSync(struct List*,
  3557. +                                 char*);
  3558. + struct TagItem*    PPCNextTagItem(struct TagItem**);
  3559. + struct TagItem*    PPCFindTagItem(Tag,
  3560. +                                struct TagItem*);
  3561. + ULONG    PPCGetTagData(Tag,
  3562. +                       ULONG,
  3563. +                       struct TagItem *);
  3564. + ULONG    PPCVersion(void);
  3565. + ULONG    PPCRevision(void);
  3566. + void    PPCReleaseSemaphore(void*);
  3567. + void    PPCObtainSemaphore(void*);
  3568. + LONG    PPCAttemptSemaphore(void*);
  3569. + BOOL    PPCAttemptSemaphoreShared(void*);
  3570. + void    PPCObtainSemaphoreShared(void*);
  3571. + void*    PPCCreateSemaphore(struct TagItem*);
  3572. + void    PPCDeleteSemaphore(void*);
  3573. + void*    PPCObtainSemaphoreByName(char*);
  3574. + void*    PPCAttemptSemaphoreByName(char*,
  3575. +                                   ULONG*);
  3576. + APTR    PPCRawDoFmt(UBYTE*,
  3577. +                     APTR,
  3578. +                     void (*)(),
  3579. +                     APTR);
  3580. + ULONG    PPCGetTaskAttr(ULONG);
  3581. + void    PPCSetTaskAttr(ULONG,
  3582. +                        ULONG);
  3583. + void    PPCFinishTask(void);
  3584. + ULONG    PPCGetAttr(ULONG);
  3585. + UBYTE    PPCReadByte(UBYTE*);
  3586. + UWORD    PPCReadWord(UWORD*);
  3587. + ULONG    PPCReadLong(ULONG*);
  3588. + void    PPCWriteByte(UBYTE*,UBYTE);
  3589. + void    PPCWriteWord(UWORD*,UWORD);
  3590. + void    PPCWriteLong(ULONG*,ULONG);
  3591. + ULONG    PPCCoerceMethodA(struct IClass*,
  3592. +                          Object*,
  3593. +                          Msg);
  3594. + ULONG    PPCDoMethodA(Object*,
  3595. +                      Msg);
  3596. + ULONG    PPCDoSuperMethodA(struct IClass*,
  3597. +                           Object*,
  3598. +                           void*);
  3599. + void    PPCkprintf(const char*,
  3600. +                    ...);
  3601. + int    PPCprintf(const char*,
  3602. +                   ...);
  3603. + int    PPCsprintf(char*,
  3604. +                    const char*,
  3605. +                    ...);
  3606. + void    PPCvkprintf(const char*,
  3607. +                     va_list);
  3608. + int    PPCvprintf(const char*,
  3609. +                    va_list);
  3610. + int    PPCvsprintf(char*,
  3611. +                     const char*,
  3612. +                     va_list);
  3613. + int    PPCfprintf(BPTR,
  3614. +                    const char        *FmtString,
  3615. +                    ...);
  3616. + int    PPCvfprintf(BPTR,
  3617. +                     const char*,
  3618. +                     va_list);
  3619. + void    *PPCCreateTask(void*,
  3620. +                        void*,
  3621. +                        struct TagItem*);
  3622. + void    *PPCOpenLibrary(void*,
  3623. +                         struct TagItem*);
  3624. + void    PPCCloseLibrary(void*);
  3625. + void    *PPCGetLibSymbol(void*,
  3626. +                          char*);
  3627. + void    *PPCLoadObjectTagList(struct TagItem*);
  3628. + void    *PPCLoadObject(char*);
  3629. + void    PPCUnLoadObject(void*);
  3630. + ULONG    PPCGetObjectAttrs(void*,
  3631. +                           struct PPCObjectInfo*,
  3632. +                           struct TagItem*);
  3633. + void*    PPCCreateTimerObject(struct TagItem*);
  3634. + void    PPCDeleteTimerObject(void*);
  3635. + #if !defined(__SASC)
  3636. + void    PPCSetTimerObject(void*,
  3637. +                           ULONG,
  3638. +                           unsigned long long*);
  3639. + void    PPCGetTimerObject(void*,
  3640. +                           ULONG,
  3641. +                           unsigned long long*);
  3642. + #else
  3643. + void    PPCSetTimerObject(void*,
  3644. +                           ULONG,
  3645. +                           ULONG*);
  3646. + void    PPCGetTimerObject(void*,
  3647. +                           ULONG,
  3648. +                           ULONG*);
  3649. + #endif
  3650. + #if !defined(__SASC)
  3651. + /* GCC 64bit math support
  3652. +  * which is needed by the compiler
  3653. +  */
  3654. + int            __cmpdi2(long long, long long);
  3655. + long long        __adddi3(long long, long long);
  3656. + long long        __anddi3(long long, long long);
  3657. + long long        __ashldi3(long long, unsigned int);
  3658. + long long        __ashrdi3(long long, unsigned int);
  3659. + long long        __lshldi3(long long, unsigned int);
  3660. + long long        __lshrdi3(long long, unsigned int);
  3661. + int            __cmpdi2(long long, long long );
  3662. + long long        __divdi3(long long, long long);
  3663. + long long        __fixdfdi(double);
  3664. + long long        __fixsfdi(float);
  3665. + unsigned long long    __fixunsdfdi(double);
  3666. + unsigned long long    __fixunssfdi(float);
  3667. + double            __floatdidf(long long);
  3668. + float            __floatdisf(long long);
  3669. + double            __floatunsdidf(unsigned long long);
  3670. + long long        __iordi3(long long, long long);
  3671. + long long        __moddi3(long long, long long);
  3672. + long long        __muldi3(long long, long long);
  3673. + long long        __negdi2(long long);
  3674. + //long long        __one_cmpldi2(long long);
  3675. + unsigned long long    __qdivrem(unsigned long long, unsigned long long, unsigned long long *);
  3676. + long long        __subdi3(long long, long long);
  3677. + int            __ucmpdi2(unsigned long long, unsigned long long);
  3678. + unsigned long long    __udivdi3(unsigned long long, unsigned long long );
  3679. + unsigned long long    __umoddi3(unsigned long long, unsigned long long );
  3680. + long long        __xordi3(long long, long long);
  3681. + long long    PPCAdd64(long long,long long);
  3682. + long long    PPCSub64(long long,long long);
  3683. + long long    PPCNeg64(long long);
  3684. + BOOL        PPCCmp64(long long,long long);
  3685. + long long    PPCMulu64(long long,long long);
  3686. + long long    PPCDivu64(long long,long long);
  3687. + long long    PPCMuls64(long long,long long);
  3688. + long long    PPCDivs64(long long,long long);
  3689. + long long    PPCModu64(long long,long long);
  3690. + long long    PPCMods64(long long,long long);
  3691. + long long    PPCLsr64(unsigned long long,unsigned int);
  3692. + long long    PPCAsl64(long long,unsigned int);
  3693. + long long    PPCAsr64(long long,unsigned int);
  3694. + long long    PPCLsr64(unsigned long long,unsigned int);
  3695. + long long    PPCOr64(unsigned long long,unsigned long long);
  3696. + long long    PPCXor64(unsigned long long,unsigned long long);
  3697. + long long    PPCAnd64(unsigned long long,unsigned long long);
  3698. + long long    PPCDivRem64(long long,long long,long long*);
  3699. + #else
  3700. + /* SAS 64bit support
  3701. +  * for every long long you get a ptr to a long long
  3702. +  */
  3703. + void        PPCAdd64p(int*,int*);
  3704. + void        PPCSub64p(int*,int*);
  3705. + void        PPCNeg64p(int*);
  3706. + BOOL        PPCCmp64p(int*,int*);
  3707. + void        PPCMulu64p(int*,int*);
  3708. + void        PPCDivu64p(int*,int*);
  3709. + void        PPCMuls64p(int*,int*);
  3710. + void        PPCDivs64p(int*,int*);
  3711. + void        PPCModu64p(int*,int*);
  3712. + void        PPCMods64p(int*,int*);
  3713. + void        PPCLsr64p(unsigned int*,unsigned int);
  3714. + void        PPCAsl64p(int*,unsigned int);
  3715. + void        PPCAsr64p(int*,unsigned int);
  3716. + void        PPCLsl64p(unsigned int*,unsigned int);
  3717. + void        PPCOr64p(unsigned int*,unsigned int*);
  3718. + void        PPCXor64p(unsigned int*,unsigned int*);
  3719. + void        PPCAnd64p(unsigned int*,unsigned int*);
  3720. + void        PPCDivRem64p(int*,int*,int*);
  3721. + #endif
  3722. + #endif
  3723. diff -c2 -d -P -r include_h/powerup/lvo/amigaguide_lvo.h includenew/powerup/lvo/amigaguide_lvo.h
  3724. *** include_h/powerup/lvo/amigaguide_lvo.h    Thu Jan  1 00:00:00 1970
  3725. --- includenew/powerup/lvo/amigaguide_lvo.h    Thu Nov  2 22:27:06 2000
  3726. ***************
  3727. *** 0 ****
  3728. --- 1,42 ----
  3729. + #ifndef _LVO_AMIGAGUIDE_LIB_H
  3730. + #define _LVO_AMIGAGUIDE_LIB_H
  3731. + /*
  3732. +  *  $VER: amigaguide_lvolib.h (08/03/97)
  3733. +  *
  3734. +  */
  3735. + #define    LVO_amigaguidePrivate1    (-0x1E)
  3736. + #define    LVO_LockAmigaGuideBase    (-0x24)
  3737. + #define    LVO_UnlockAmigaGuideBase    (-0x2A)
  3738. + #define    LVO_amigaguidePrivate2    (-0x30)
  3739. + #define    LVO_OpenAmigaGuideA    (-0x36)
  3740. + #define    LVO_OpenAmigaGuideAsyncA    (-0x3C)
  3741. + #define    LVO_CloseAmigaGuide    (-0x42)
  3742. + #define    LVO_AmigaGuideSignal    (-0x48)
  3743. + #define    LVO_GetAmigaGuideMsg    (-0x4E)
  3744. + #define    LVO_ReplyAmigaGuideMsg    (-0x54)
  3745. + #define    LVO_SetAmigaGuideContextA    (-0x5A)
  3746. + #define    LVO_SendAmigaGuideContextA    (-0x60)
  3747. + #define    LVO_SendAmigaGuideCmdA    (-0x66)
  3748. + #define    LVO_SetAmigaGuideAttrsA    (-0x6C)
  3749. + #define    LVO_GetAmigaGuideAttr    (-0x72)
  3750. + #define    LVO_amigaguidePrivate3    (-0x78)
  3751. + #define    LVO_LoadXRef    (-0x7E)
  3752. + #define    LVO_ExpungeXRef    (-0x84)
  3753. + #define    LVO_AddAmigaGuideHostA    (-0x8A)
  3754. + #define    LVO_RemoveAmigaGuideHostA    (-0x90)
  3755. + #define    LVO_amigaguidePrivate4    (-0x96)
  3756. + #define    LVO_amigaguidePrivate5    (-0x9C)
  3757. + #define    LVO_amigaguidePrivate6    (-0xA2)
  3758. + #define    LVO_amigaguidePrivate7    (-0xA8)
  3759. + #define    LVO_amigaguidePrivate8    (-0xAE)
  3760. + #define    LVO_amigaguidePrivate9    (-0xB4)
  3761. + #define    LVO_amigaguidePrivate10    (-0xBA)
  3762. + #define    LVO_amigaguidePrivate11    (-0xC0)
  3763. + #define    LVO_amigaguidePrivate12    (-0xC6)
  3764. + #define    LVO_amigaguidePrivate13    (-0xCC)
  3765. + #define    LVO_GetAmigaGuideString    (-0xD2)
  3766. + #endif
  3767. diff -c2 -d -P -r include_h/powerup/lvo/asl_lvo.h includenew/powerup/lvo/asl_lvo.h
  3768. *** include_h/powerup/lvo/asl_lvo.h    Thu Jan  1 00:00:00 1970
  3769. --- includenew/powerup/lvo/asl_lvo.h    Thu Nov  2 22:27:06 2000
  3770. ***************
  3771. *** 0 ****
  3772. --- 1,17 ----
  3773. + #ifndef _LVO_ASL_LIB_H
  3774. + #define _LVO_ASL_LIB_H
  3775. + /*
  3776. +  *  $VER: asl_lvolib.h (08/03/97)
  3777. +  *
  3778. +  */
  3779. + #define    LVO_AllocFileRequest    (-0x1E)
  3780. + #define    LVO_FreeFileRequest    (-0x24)
  3781. + #define    LVO_RequestFile    (-0x2A)
  3782. + #define    LVO_AllocAslRequest    (-0x30)
  3783. + #define    LVO_FreeAslRequest    (-0x36)
  3784. + #define    LVO_AslRequest    (-0x3C)
  3785. + #endif
  3786. diff -c2 -d -P -r include_h/powerup/lvo/battclock_lvo.h includenew/powerup/lvo/battclock_lvo.h
  3787. *** include_h/powerup/lvo/battclock_lvo.h    Thu Jan  1 00:00:00 1970
  3788. --- includenew/powerup/lvo/battclock_lvo.h    Thu Nov  2 22:27:07 2000
  3789. ***************
  3790. *** 0 ****
  3791. --- 1,16 ----
  3792. + #ifndef _LVO_BATTCLOCK_LIB_H
  3793. + #define _LVO_BATTCLOCK_LIB_H
  3794. + /*
  3795. +  *  $VER: battclock_lvolib.h (08/03/97)
  3796. +  *
  3797. +  */
  3798. + #define    LVO_ResetBattClock    (-0x6)
  3799. + #define    LVO_ReadBattClock    (-0xC)
  3800. + #define    LVO_WriteBattClock    (-0x12)
  3801. + #define    LVO_battclockPrivate1    (-0x18)
  3802. + #define    LVO_battclockPrivate2    (-0x1E)
  3803. + #endif
  3804. diff -c2 -d -P -r include_h/powerup/lvo/battmem_lvo.h includenew/powerup/lvo/battmem_lvo.h
  3805. *** include_h/powerup/lvo/battmem_lvo.h    Thu Jan  1 00:00:00 1970
  3806. --- includenew/powerup/lvo/battmem_lvo.h    Thu Nov  2 22:27:07 2000
  3807. ***************
  3808. *** 0 ****
  3809. --- 1,15 ----
  3810. + #ifndef _LVO_BATTMEM_LIB_H
  3811. + #define _LVO_BATTMEM_LIB_H
  3812. + /*
  3813. +  *  $VER: battmem_lvolib.h (08/03/97)
  3814. +  *
  3815. +  */
  3816. + #define    LVO_ObtainBattSemaphore    (-0x6)
  3817. + #define    LVO_ReleaseBattSemaphore    (-0xC)
  3818. + #define    LVO_ReadBattMem    (-0x12)
  3819. + #define    LVO_WriteBattMem    (-0x18)
  3820. + #endif
  3821. diff -c2 -d -P -r include_h/powerup/lvo/bullet_lvo.h includenew/powerup/lvo/bullet_lvo.h
  3822. *** include_h/powerup/lvo/bullet_lvo.h    Thu Jan  1 00:00:00 1970
  3823. --- includenew/powerup/lvo/bullet_lvo.h    Thu Nov  2 22:27:07 2000
  3824. ***************
  3825. *** 0 ****
  3826. --- 1,17 ----
  3827. + #ifndef _LVO_BULLET_LIB_H
  3828. + #define _LVO_BULLET_LIB_H
  3829. + /*
  3830. +  *  $VER: bullet_lvolib.h (08/03/97)
  3831. +  *
  3832. +  */
  3833. + #define    LVO_OpenEngine    (-0x1E)
  3834. + #define    LVO_CloseEngine    (-0x24)
  3835. + #define    LVO_SetInfoA    (-0x2A)
  3836. + #define    LVO_ObtainInfoA    (-0x30)
  3837. + #define    LVO_ReleaseInfoA    (-0x36)
  3838. + #define    LVO_bulletPrivate1    (-0x3C)
  3839. + #endif
  3840. diff -c2 -d -P -r include_h/powerup/lvo/cardres_lvo.h includenew/powerup/lvo/cardres_lvo.h
  3841. *** include_h/powerup/lvo/cardres_lvo.h    Thu Jan  1 00:00:00 1970
  3842. --- includenew/powerup/lvo/cardres_lvo.h    Thu Nov  2 22:27:07 2000
  3843. ***************
  3844. *** 0 ****
  3845. --- 1,28 ----
  3846. + #ifndef _LVO_CARDRES_LIB_H
  3847. + #define _LVO_CARDRES_LIB_H
  3848. + /*
  3849. +  *  $VER: cardres_lvolib.h (08/03/97)
  3850. +  *
  3851. +  */
  3852. + #define    LVO_OwnCard    (-0x6)
  3853. + #define    LVO_ReleaseCard    (-0xC)
  3854. + #define    LVO_GetCardMap    (-0x12)
  3855. + #define    LVO_BeginCardAccess    (-0x18)
  3856. + #define    LVO_EndCardAccess    (-0x1E)
  3857. + #define    LVO_ReadCardStatus    (-0x24)
  3858. + #define    LVO_CardResetRemove    (-0x2A)
  3859. + #define    LVO_CardMiscControl    (-0x30)
  3860. + #define    LVO_CardAccessSpeed    (-0x36)
  3861. + #define    LVO_CardProgramVoltage    (-0x3C)
  3862. + #define    LVO_CardResetCard    (-0x42)
  3863. + #define    LVO_CopyTuple    (-0x48)
  3864. + #define    LVO_DeviceTuple    (-0x4E)
  3865. + #define    LVO_IfAmigaXIP    (-0x54)
  3866. + #define    LVO_CardForceChange    (-0x5A)
  3867. + #define    LVO_CardChangeCount    (-0x60)
  3868. + #define    LVO_CardInterface    (-0x66)
  3869. + #endif
  3870. diff -c2 -d -P -r include_h/powerup/lvo/cia_lvo.h includenew/powerup/lvo/cia_lvo.h
  3871. *** include_h/powerup/lvo/cia_lvo.h    Thu Jan  1 00:00:00 1970
  3872. --- includenew/powerup/lvo/cia_lvo.h    Thu Nov  2 22:27:07 2000
  3873. ***************
  3874. *** 0 ****
  3875. --- 1,15 ----
  3876. + #ifndef _LVO_CIA_LIB_H
  3877. + #define _LVO_CIA_LIB_H
  3878. + /*
  3879. +  *  $VER: cia_lvolib.h (08/03/97)
  3880. +  *
  3881. +  */
  3882. + #define    LVO_AddICRVector    (-0x6)
  3883. + #define    LVO_RemICRVector    (-0xC)
  3884. + #define    LVO_AbleICR    (-0x12)
  3885. + #define    LVO_SetICR    (-0x18)
  3886. + #endif
  3887. diff -c2 -d -P -r include_h/powerup/lvo/colorwheel_lvo.h includenew/powerup/lvo/colorwheel_lvo.h
  3888. *** include_h/powerup/lvo/colorwheel_lvo.h    Thu Jan  1 00:00:00 1970
  3889. --- includenew/powerup/lvo/colorwheel_lvo.h    Thu Nov  2 22:27:07 2000
  3890. ***************
  3891. *** 0 ****
  3892. --- 1,13 ----
  3893. + #ifndef _LVO_COLORWHEEL_LIB_H
  3894. + #define _LVO_COLORWHEEL_LIB_H
  3895. + /*
  3896. +  *  $VER: colorwheel_lvolib.h (08/03/97)
  3897. +  *
  3898. +  */
  3899. + #define    LVO_ConvertHSBToRGB    (-0x1E)
  3900. + #define    LVO_ConvertRGBToHSB    (-0x24)
  3901. + #endif
  3902. diff -c2 -d -P -r include_h/powerup/lvo/commodities_lvo.h includenew/powerup/lvo/commodities_lvo.h
  3903. *** include_h/powerup/lvo/commodities_lvo.h    Thu Jan  1 00:00:00 1970
  3904. --- includenew/powerup/lvo/commodities_lvo.h    Thu Nov  2 22:27:07 2000
  3905. ***************
  3906. *** 0 ****
  3907. --- 1,46 ----
  3908. + #ifndef _LVO_COMMODITIES_LIB_H
  3909. + #define _LVO_COMMODITIES_LIB_H
  3910. + /*
  3911. +  *  $VER: commodities_lvolib.h (08/03/97)
  3912. +  *
  3913. +  */
  3914. + #define    LVO_CreateCxObj    (-0x1E)
  3915. + #define    LVO_CxBroker    (-0x24)
  3916. + #define    LVO_ActivateCxObj    (-0x2A)
  3917. + #define    LVO_DeleteCxObj    (-0x30)
  3918. + #define    LVO_DeleteCxObjAll    (-0x36)
  3919. + #define    LVO_CxObjType    (-0x3C)
  3920. + #define    LVO_CxObjError    (-0x42)
  3921. + #define    LVO_ClearCxObjError    (-0x48)
  3922. + #define    LVO_SetCxObjPri    (-0x4E)
  3923. + #define    LVO_AttachCxObj    (-0x54)
  3924. + #define    LVO_EnqueueCxObj    (-0x5A)
  3925. + #define    LVO_InsertCxObj    (-0x60)
  3926. + #define    LVO_RemoveCxObj    (-0x66)
  3927. + #define    LVO_commoditiesPrivate1    (-0x6C)
  3928. + #define    LVO_SetTranslate    (-0x72)
  3929. + #define    LVO_SetFilter    (-0x78)
  3930. + #define    LVO_SetFilterIX    (-0x7E)
  3931. + #define    LVO_ParseIX    (-0x84)
  3932. + #define    LVO_CxMsgType    (-0x8A)
  3933. + #define    LVO_CxMsgData    (-0x90)
  3934. + #define    LVO_CxMsgID    (-0x96)
  3935. + #define    LVO_DivertCxMsg    (-0x9C)
  3936. + #define    LVO_RouteCxMsg    (-0xA2)
  3937. + #define    LVO_DisposeCxMsg    (-0xA8)
  3938. + #define    LVO_InvertKeyMap    (-0xAE)
  3939. + #define    LVO_AddIEvents    (-0xB4)
  3940. + #define    LVO_commoditiesPrivate2    (-0xBA)
  3941. + #define    LVO_commoditiesPrivate3    (-0xC0)
  3942. + #define    LVO_commoditiesPrivate4    (-0xC6)
  3943. + #define    LVO_MatchIX    (-0xCC)
  3944. + #define    LVO_commoditiesPrivate5    (-0xD2)
  3945. + #define    LVO_commoditiesPrivate6    (-0xD8)
  3946. + #define    LVO_commoditiesPrivate7    (-0xDE)
  3947. + #define    LVO_commoditiesPrivate8    (-0xE4)
  3948. + #define    LVO_commoditiesPrivate9    (-0xEA)
  3949. + #endif
  3950. diff -c2 -d -P -r include_h/powerup/lvo/console_lvo.h includenew/powerup/lvo/console_lvo.h
  3951. *** include_h/powerup/lvo/console_lvo.h    Thu Jan  1 00:00:00 1970
  3952. --- includenew/powerup/lvo/console_lvo.h    Thu Nov  2 22:27:07 2000
  3953. ***************
  3954. *** 0 ****
  3955. --- 1,17 ----
  3956. + #ifndef _LVO_CONSOLE_LIB_H
  3957. + #define _LVO_CONSOLE_LIB_H
  3958. + /*
  3959. +  *  $VER: console_lvolib.h (08/03/97)
  3960. +  *
  3961. +  */
  3962. + #define    LVO_CDInputHandler    (-0x2A)
  3963. + #define    LVO_RawKeyConvert    (-0x30)
  3964. + #define    LVO_consolePrivate1    (-0x36)
  3965. + #define    LVO_consolePrivate2    (-0x3C)
  3966. + #define    LVO_consolePrivate3    (-0x42)
  3967. + #define    LVO_consolePrivate4    (-0x48)
  3968. + #endif
  3969. diff -c2 -d -P -r include_h/powerup/lvo/datatypes_lvo.h includenew/powerup/lvo/datatypes_lvo.h
  3970. *** include_h/powerup/lvo/datatypes_lvo.h    Thu Jan  1 00:00:00 1970
  3971. --- includenew/powerup/lvo/datatypes_lvo.h    Thu Nov  2 22:27:06 2000
  3972. ***************
  3973. *** 0 ****
  3974. --- 1,30 ----
  3975. + #ifndef _LVO_DATATYPES_LIB_H
  3976. + #define _LVO_DATATYPES_LIB_H
  3977. + /*
  3978. +  *  $VER: datatypes_lvolib.h (08/03/97)
  3979. +  *
  3980. +  */
  3981. + #define    LVO_datatypesPrivate1    (-0x1E)
  3982. + #define    LVO_ObtainDataTypeA    (-0x24)
  3983. + #define    LVO_ReleaseDataType    (-0x2A)
  3984. + #define    LVO_NewDTObjectA    (-0x30)
  3985. + #define    LVO_DisposeDTObject    (-0x36)
  3986. + #define    LVO_SetDTAttrsA    (-0x3C)
  3987. + #define    LVO_GetDTAttrsA    (-0x42)
  3988. + #define    LVO_AddDTObject    (-0x48)
  3989. + #define    LVO_RefreshDTObjectA    (-0x4E)
  3990. + #define    LVO_DoAsyncLayout    (-0x54)
  3991. + #define    LVO_DoDTMethodA    (-0x5A)
  3992. + #define    LVO_RemoveDTObject    (-0x60)
  3993. + #define    LVO_GetDTMethods    (-0x66)
  3994. + #define    LVO_GetDTTriggerMethods    (-0x6C)
  3995. + #define    LVO_PrintDTObjectA    (-0x72)
  3996. + #define    LVO_datatypesPrivate2    (-0x78)
  3997. + #define    LVO_datatypesPrivate3    (-0x7E)
  3998. + #define    LVO_datatypesPrivate4    (-0x84)
  3999. + #define    LVO_GetDTString    (-0x8A)
  4000. + #endif
  4001. diff -c2 -d -P -r include_h/powerup/lvo/disk_lvo.h includenew/powerup/lvo/disk_lvo.h
  4002. *** include_h/powerup/lvo/disk_lvo.h    Thu Jan  1 00:00:00 1970
  4003. --- includenew/powerup/lvo/disk_lvo.h    Thu Nov  2 22:27:06 2000
  4004. ***************
  4005. *** 0 ****
  4006. --- 1,17 ----
  4007. + #ifndef _LVO_DISK_LIB_H
  4008. + #define _LVO_DISK_LIB_H
  4009. + /*
  4010. +  *  $VER: disk_lvolib.h (08/03/97)
  4011. +  *
  4012. +  */
  4013. + #define    LVO_AllocUnit    (-0x6)
  4014. + #define    LVO_FreeUnit    (-0xC)
  4015. + #define    LVO_GetUnit    (-0x12)
  4016. + #define    LVO_GiveUnit    (-0x18)
  4017. + #define    LVO_GetUnitID    (-0x1E)
  4018. + #define    LVO_ReadUnitID    (-0x24)
  4019. + #endif
  4020. diff -c2 -d -P -r include_h/powerup/lvo/diskfont_lvo.h includenew/powerup/lvo/diskfont_lvo.h
  4021. *** include_h/powerup/lvo/diskfont_lvo.h    Thu Jan  1 00:00:00 1970
  4022. --- includenew/powerup/lvo/diskfont_lvo.h    Thu Nov  2 22:27:06 2000
  4023. ***************
  4024. *** 0 ****
  4025. --- 1,16 ----
  4026. + #ifndef _LVO_DISKFONT_LIB_H
  4027. + #define _LVO_DISKFONT_LIB_H
  4028. + /*
  4029. +  *  $VER: diskfont_lvolib.h (08/03/97)
  4030. +  *
  4031. +  */
  4032. + #define    LVO_OpenDiskFont    (-0x1E)
  4033. + #define    LVO_AvailFonts    (-0x24)
  4034. + #define    LVO_NewFontContents    (-0x2A)
  4035. + #define    LVO_DisposeFontContents    (-0x30)
  4036. + #define    LVO_NewScaledDiskFont    (-0x36)
  4037. + #endif
  4038. diff -c2 -d -P -r include_h/powerup/lvo/dos_lvo.h includenew/powerup/lvo/dos_lvo.h
  4039. *** include_h/powerup/lvo/dos_lvo.h    Thu Jan  1 00:00:00 1970
  4040. --- includenew/powerup/lvo/dos_lvo.h    Thu Nov  2 22:27:06 2000
  4041. ***************
  4042. *** 0 ****
  4043. --- 1,170 ----
  4044. + #ifndef _LVO_DOS_LIB_H
  4045. + #define _LVO_DOS_LIB_H
  4046. + /*
  4047. +  *  $VER: dos_lvolib.h (08/03/97)
  4048. +  *
  4049. +  */
  4050. + #define    LVO_Open    (-0x1E)
  4051. + #define    LVO_Close    (-0x24)
  4052. + #define    LVO_Read    (-0x2A)
  4053. + #define    LVO_Write    (-0x30)
  4054. + #define    LVO_Input    (-0x36)
  4055. + #define    LVO_Output    (-0x3C)
  4056. + #define    LVO_Seek    (-0x42)
  4057. + #define    LVO_DeleteFile    (-0x48)
  4058. + #define    LVO_Rename    (-0x4E)
  4059. + #define    LVO_Lock    (-0x54)
  4060. + #define    LVO_UnLock    (-0x5A)
  4061. + #define    LVO_DupLock    (-0x60)
  4062. + #define    LVO_Examine    (-0x66)
  4063. + #define    LVO_ExNext    (-0x6C)
  4064. + #define    LVO_Info    (-0x72)
  4065. + #define    LVO_CreateDir    (-0x78)
  4066. + #define    LVO_CurrentDir    (-0x7E)
  4067. + #define    LVO_IoErr    (-0x84)
  4068. + #define    LVO_CreateProc    (-0x8A)
  4069. + #define    LVO_Exit    (-0x90)
  4070. + #define    LVO_LoadSeg    (-0x96)
  4071. + #define    LVO_UnLoadSeg    (-0x9C)
  4072. + #define    LVO_dosPrivate1    (-0xA2)
  4073. + #define    LVO_dosPrivate2    (-0xA8)
  4074. + #define    LVO_DeviceProc    (-0xAE)
  4075. + #define    LVO_SetComment    (-0xB4)
  4076. + #define    LVO_SetProtection    (-0xBA)
  4077. + #define    LVO_DateStamp    (-0xC0)
  4078. + #define    LVO_Delay    (-0xC6)
  4079. + #define    LVO_WaitForChar    (-0xCC)
  4080. + #define    LVO_ParentDir    (-0xD2)
  4081. + #define    LVO_IsInteractive    (-0xD8)
  4082. + #define    LVO_Execute    (-0xDE)
  4083. + #define    LVO_AllocDosObject    (-0xE4)
  4084. + #define    LVO_FreeDosObject    (-0xEA)
  4085. + #define    LVO_DoPkt    (-0xF0)
  4086. + #define    LVO_SendPkt    (-0xF6)
  4087. + #define    LVO_WaitPkt    (-0xFC)
  4088. + #define    LVO_ReplyPkt    (-0x102)
  4089. + #define    LVO_AbortPkt    (-0x108)
  4090. + #define    LVO_LockRecord    (-0x10E)
  4091. + #define    LVO_LockRecords    (-0x114)
  4092. + #define    LVO_UnLockRecord    (-0x11A)
  4093. + #define    LVO_UnLockRecords    (-0x120)
  4094. + #define    LVO_SelectInput    (-0x126)
  4095. + #define    LVO_SelectOutput    (-0x12C)
  4096. + #define    LVO_FGetC    (-0x132)
  4097. + #define    LVO_FPutC    (-0x138)
  4098. + #define    LVO_UnGetC    (-0x13E)
  4099. + #define    LVO_FRead    (-0x144)
  4100. + #define    LVO_FWrite    (-0x14A)
  4101. + #define    LVO_FGets    (-0x150)
  4102. + #define    LVO_FPuts    (-0x156)
  4103. + #define    LVO_VFWritef    (-0x15C)
  4104. + #define    LVO_VFPrintf    (-0x162)
  4105. + #define    LVO_Flush    (-0x168)
  4106. + #define    LVO_SetVBuf    (-0x16E)
  4107. + #define    LVO_DupLockFromFH    (-0x174)
  4108. + #define    LVO_OpenFromLock    (-0x17A)
  4109. + #define    LVO_ParentOfFH    (-0x180)
  4110. + #define    LVO_ExamineFH    (-0x186)
  4111. + #define    LVO_SetFileDate    (-0x18C)
  4112. + #define    LVO_NameFromLock    (-0x192)
  4113. + #define    LVO_NameFromFH    (-0x198)
  4114. + #define    LVO_SplitName    (-0x19E)
  4115. + #define    LVO_SameLock    (-0x1A4)
  4116. + #define    LVO_SetMode    (-0x1AA)
  4117. + #define    LVO_ExAll    (-0x1B0)
  4118. + #define    LVO_ReadLink    (-0x1B6)
  4119. + #define    LVO_MakeLink    (-0x1BC)
  4120. + #define    LVO_ChangeMode    (-0x1C2)
  4121. + #define    LVO_SetFileSize    (-0x1C8)
  4122. + #define    LVO_SetIoErr    (-0x1CE)
  4123. + #define    LVO_Fault    (-0x1D4)
  4124. + #define    LVO_PrintFault    (-0x1DA)
  4125. + #define    LVO_ErrorReport    (-0x1E0)
  4126. + #define    LVO_Cli    (-0x1EC)
  4127. + #define    LVO_CreateNewProc    (-0x1F2)
  4128. + #define    LVO_RunCommand    (-0x1F8)
  4129. + #define    LVO_GetConsoleTask    (-0x1FE)
  4130. + #define    LVO_SetConsoleTask    (-0x204)
  4131. + #define    LVO_GetFileSysTask    (-0x20A)
  4132. + #define    LVO_SetFileSysTask    (-0x210)
  4133. + #define    LVO_GetArgStr    (-0x216)
  4134. + #define    LVO_SetArgStr    (-0x21C)
  4135. + #define    LVO_FindCliProc    (-0x222)
  4136. + #define    LVO_MaxCli    (-0x228)
  4137. + #define    LVO_SetCurrentDirName    (-0x22E)
  4138. + #define    LVO_GetCurrentDirName    (-0x234)
  4139. + #define    LVO_SetProgramName    (-0x23A)
  4140. + #define    LVO_GetProgramName    (-0x240)
  4141. + #define    LVO_SetPrompt    (-0x246)
  4142. + #define    LVO_GetPrompt    (-0x24C)
  4143. + #define    LVO_SetProgramDir    (-0x252)
  4144. + #define    LVO_GetProgramDir    (-0x258)
  4145. + #define    LVO_SystemTagList    (-0x25E)
  4146. + #define    LVO_AssignLock    (-0x264)
  4147. + #define    LVO_AssignLate    (-0x26A)
  4148. + #define    LVO_AssignPath    (-0x270)
  4149. + #define    LVO_AssignAdd    (-0x276)
  4150. + #define    LVO_RemAssignList    (-0x27C)
  4151. + #define    LVO_GetDeviceProc    (-0x282)
  4152. + #define    LVO_FreeDeviceProc    (-0x288)
  4153. + #define    LVO_LockDosList    (-0x28E)
  4154. + #define    LVO_UnLockDosList    (-0x294)
  4155. + #define    LVO_AttemptLockDosList    (-0x29A)
  4156. + #define    LVO_RemDosEntry    (-0x2A0)
  4157. + #define    LVO_AddDosEntry    (-0x2A6)
  4158. + #define    LVO_FindDosEntry    (-0x2AC)
  4159. + #define    LVO_NextDosEntry    (-0x2B2)
  4160. + #define    LVO_MakeDosEntry    (-0x2B8)
  4161. + #define    LVO_FreeDosEntry    (-0x2BE)
  4162. + #define    LVO_IsFileSystem    (-0x2C4)
  4163. + #define    LVO_Format    (-0x2CA)
  4164. + #define    LVO_Relabel    (-0x2D0)
  4165. + #define    LVO_Inhibit    (-0x2D6)
  4166. + #define    LVO_AddBuffers    (-0x2DC)
  4167. + #define    LVO_CompareDates    (-0x2E2)
  4168. + #define    LVO_DateToStr    (-0x2E8)
  4169. + #define    LVO_StrToDate    (-0x2EE)
  4170. + #define    LVO_InternalLoadSeg    (-0x2F4)
  4171. + #define    LVO_InternalUnLoadSeg    (-0x2FA)
  4172. + #define    LVO_NewLoadSeg    (-0x300)
  4173. + #define    LVO_AddSegment    (-0x306)
  4174. + #define    LVO_FindSegment    (-0x30C)
  4175. + #define    LVO_RemSegment    (-0x312)
  4176. + #define    LVO_CheckSignal    (-0x318)
  4177. + #define    LVO_ReadArgs    (-0x31E)
  4178. + #define    LVO_FindArg    (-0x324)
  4179. + #define    LVO_ReadItem    (-0x32A)
  4180. + #define    LVO_StrToLong    (-0x330)
  4181. + #define    LVO_MatchFirst    (-0x336)
  4182. + #define    LVO_MatchNext    (-0x33C)
  4183. + #define    LVO_MatchEnd    (-0x342)
  4184. + #define    LVO_ParsePattern    (-0x348)
  4185. + #define    LVO_MatchPattern    (-0x34E)
  4186. + #define    LVO_dosPrivate3    (-0x354)
  4187. + #define    LVO_FreeArgs    (-0x35A)
  4188. + #define    LVO_FilePart    (-0x366)
  4189. + #define    LVO_PathPart    (-0x36C)
  4190. + #define    LVO_AddPart    (-0x372)
  4191. + #define    LVO_StartNotify    (-0x378)
  4192. + #define    LVO_EndNotify    (-0x37E)
  4193. + #define    LVO_SetVar    (-0x384)
  4194. + #define    LVO_GetVar    (-0x38A)
  4195. + #define    LVO_DeleteVar    (-0x390)
  4196. + #define    LVO_FindVar    (-0x396)
  4197. + #define    LVO_dosPrivate4    (-0x39C)
  4198. + #define    LVO_CliInitNewcli    (-0x3A2)
  4199. + #define    LVO_CliInitRun    (-0x3A8)
  4200. + #define    LVO_WriteChars    (-0x3AE)
  4201. + #define    LVO_PutStr    (-0x3B4)
  4202. + #define    LVO_VPrintf    (-0x3BA)
  4203. + #define    LVO_ParsePatternNoCase    (-0x3C6)
  4204. + #define    LVO_MatchPatternNoCase    (-0x3CC)
  4205. + #define    LVO_dosPrivate5    (-0x3D2)
  4206. + #define    LVO_SameDevice    (-0x3D8)
  4207. + #define    LVO_ExAllEnd    (-0x3DE)
  4208. + #define    LVO_SetOwner    (-0x3E4)
  4209. + #endif
  4210. diff -c2 -d -P -r include_h/powerup/lvo/dtclass_lvo.h includenew/powerup/lvo/dtclass_lvo.h
  4211. *** include_h/powerup/lvo/dtclass_lvo.h    Thu Jan  1 00:00:00 1970
  4212. --- includenew/powerup/lvo/dtclass_lvo.h    Thu Nov  2 22:27:06 2000
  4213. ***************
  4214. *** 0 ****
  4215. --- 1,12 ----
  4216. + #ifndef _LVO_DTCLASS_LIB_H
  4217. + #define _LVO_DTCLASS_LIB_H
  4218. + /*
  4219. +  *  $VER: dtclass_lvolib.h (08/03/97)
  4220. +  *
  4221. +  */
  4222. + #define    LVO_ObtainEngine    (-0x1E)
  4223. + #endif
  4224. diff -c2 -d -P -r include_h/powerup/lvo/exec_lvo.h includenew/powerup/lvo/exec_lvo.h
  4225. *** include_h/powerup/lvo/exec_lvo.h    Thu Jan  1 00:00:00 1970
  4226. --- includenew/powerup/lvo/exec_lvo.h    Thu Nov  2 22:27:06 2000
  4227. ***************
  4228. *** 0 ****
  4229. --- 1,144 ----
  4230. + #ifndef _LVO_EXEC_LIB_H
  4231. + #define _LVO_EXEC_LIB_H
  4232. + /*
  4233. +  *  $VER: exec_lvolib.h (08/03/97)
  4234. +  *
  4235. +  */
  4236. + #define    LVO_Supervisor    (-0x1E)
  4237. + #define    LVO_execPrivate1    (-0x24)
  4238. + #define    LVO_execPrivate2    (-0x2A)
  4239. + #define    LVO_execPrivate3    (-0x30)
  4240. + #define    LVO_execPrivate4    (-0x36)
  4241. + #define    LVO_execPrivate5    (-0x3C)
  4242. + #define    LVO_execPrivate6    (-0x42)
  4243. + #define    LVO_InitCode    (-0x48)
  4244. + #define    LVO_InitStruct    (-0x4E)
  4245. + #define    LVO_MakeLibrary    (-0x54)
  4246. + #define    LVO_MakeFunctions    (-0x5A)
  4247. + #define    LVO_FindResident    (-0x60)
  4248. + #define    LVO_InitResident    (-0x66)
  4249. + #define    LVO_Alert    (-0x6C)
  4250. + #define    LVO_Debug    (-0x72)
  4251. + #define    LVO_Disable    (-0x78)
  4252. + #define    LVO_Enable    (-0x7E)
  4253. + #define    LVO_Forbid    (-0x84)
  4254. + #define    LVO_Permit    (-0x8A)
  4255. + #define    LVO_SetSR    (-0x90)
  4256. + #define    LVO_SuperState    (-0x96)
  4257. + #define    LVO_UserState    (-0x9C)
  4258. + #define    LVO_SetIntVector    (-0xA2)
  4259. + #define    LVO_AddIntServer    (-0xA8)
  4260. + #define    LVO_RemIntServer    (-0xAE)
  4261. + #define    LVO_Cause    (-0xB4)
  4262. + #define    LVO_Allocate    (-0xBA)
  4263. + #define    LVO_Deallocate    (-0xC0)
  4264. + #define    LVO_AllocMem    (-0xC6)
  4265. + #define    LVO_AllocAbs    (-0xCC)
  4266. + #define    LVO_FreeMem    (-0xD2)
  4267. + #define    LVO_AvailMem    (-0xD8)
  4268. + #define    LVO_AllocEntry    (-0xDE)
  4269. + #define    LVO_FreeEntry    (-0xE4)
  4270. + #define    LVO_Insert    (-0xEA)
  4271. + #define    LVO_AddHead    (-0xF0)
  4272. + #define    LVO_AddTail    (-0xF6)
  4273. + #define    LVO_Remove    (-0xFC)
  4274. + #define    LVO_RemHead    (-0x102)
  4275. + #define    LVO_RemTail    (-0x108)
  4276. + #define    LVO_Enqueue    (-0x10E)
  4277. + #define    LVO_FindName    (-0x114)
  4278. + #define    LVO_AddTask    (-0x11A)
  4279. + #define    LVO_RemTask    (-0x120)
  4280. + #define    LVO_FindTask    (-0x126)
  4281. + #define    LVO_SetTaskPri    (-0x12C)
  4282. + #define    LVO_SetSignal    (-0x132)
  4283. + #define    LVO_SetExcept    (-0x138)
  4284. + #define    LVO_Wait    (-0x13E)
  4285. + #define    LVO_Signal    (-0x144)
  4286. + #define    LVO_AllocSignal    (-0x14A)
  4287. + #define    LVO_FreeSignal    (-0x150)
  4288. + #define    LVO_AllocTrap    (-0x156)
  4289. + #define    LVO_FreeTrap    (-0x15C)
  4290. + #define    LVO_AddPort    (-0x162)
  4291. + #define    LVO_RemPort    (-0x168)
  4292. + #define    LVO_PutMsg    (-0x16E)
  4293. + #define    LVO_GetMsg    (-0x174)
  4294. + #define    LVO_ReplyMsg    (-0x17A)
  4295. + #define    LVO_WaitPort    (-0x180)
  4296. + #define    LVO_FindPort    (-0x186)
  4297. + #define    LVO_AddLibrary    (-0x18C)
  4298. + #define    LVO_RemLibrary    (-0x192)
  4299. + #define    LVO_OldOpenLibrary    (-0x198)
  4300. + #define    LVO_CloseLibrary    (-0x19E)
  4301. + #define    LVO_SetFunction    (-0x1A4)
  4302. + #define    LVO_SumLibrary    (-0x1AA)
  4303. + #define    LVO_AddDevice    (-0x1B0)
  4304. + #define    LVO_RemDevice    (-0x1B6)
  4305. + #define    LVO_OpenDevice    (-0x1BC)
  4306. + #define    LVO_CloseDevice    (-0x1C2)
  4307. + #define    LVO_DoIO    (-0x1C8)
  4308. + #define    LVO_SendIO    (-0x1CE)
  4309. + #define    LVO_CheckIO    (-0x1D4)
  4310. + #define    LVO_WaitIO    (-0x1DA)
  4311. + #define    LVO_AbortIO    (-0x1E0)
  4312. + #define    LVO_AddResource    (-0x1E6)
  4313. + #define    LVO_RemResource    (-0x1EC)
  4314. + #define    LVO_OpenResource    (-0x1F2)
  4315. + #define    LVO_execPrivate7    (-0x1F8)
  4316. + #define    LVO_execPrivate8    (-0x1FE)
  4317. + #define    LVO_execPrivate9    (-0x204)
  4318. + #define    LVO_RawDoFmt    (-0x20A)
  4319. + #define    LVO_GetCC    (-0x210)
  4320. + #define    LVO_TypeOfMem    (-0x216)
  4321. + #define    LVO_Procure    (-0x21C)
  4322. + #define    LVO_Vacate    (-0x222)
  4323. + #define    LVO_OpenLibrary    (-0x228)
  4324. + #define    LVO_InitSemaphore    (-0x22E)
  4325. + #define    LVO_ObtainSemaphore    (-0x234)
  4326. + #define    LVO_ReleaseSemaphore    (-0x23A)
  4327. + #define    LVO_AttemptSemaphore    (-0x240)
  4328. + #define    LVO_ObtainSemaphoreList    (-0x246)
  4329. + #define    LVO_ReleaseSemaphoreList    (-0x24C)
  4330. + #define    LVO_FindSemaphore    (-0x252)
  4331. + #define    LVO_AddSemaphore    (-0x258)
  4332. + #define    LVO_RemSemaphore    (-0x25E)
  4333. + #define    LVO_SumKickData    (-0x264)
  4334. + #define    LVO_AddMemList    (-0x26A)
  4335. + #define    LVO_CopyMem    (-0x270)
  4336. + #define    LVO_CopyMemQuick    (-0x276)
  4337. + #define    LVO_CacheClearU    (-0x27C)
  4338. + #define    LVO_CacheClearE    (-0x282)
  4339. + #define    LVO_CacheControl    (-0x288)
  4340. + #define    LVO_CreateIORequest    (-0x28E)
  4341. + #define    LVO_DeleteIORequest    (-0x294)
  4342. + #define    LVO_CreateMsgPort    (-0x29A)
  4343. + #define    LVO_DeleteMsgPort    (-0x2A0)
  4344. + #define    LVO_ObtainSemaphoreShared    (-0x2A6)
  4345. + #define    LVO_AllocVec    (-0x2AC)
  4346. + #define    LVO_FreeVec    (-0x2B2)
  4347. + #define    LVO_CreatePool    (-0x2B8)
  4348. + #define    LVO_DeletePool    (-0x2BE)
  4349. + #define    LVO_AllocPooled    (-0x2C4)
  4350. + #define    LVO_FreePooled    (-0x2CA)
  4351. + #define    LVO_AttemptSemaphoreShared    (-0x2D0)
  4352. + #define    LVO_ColdReboot    (-0x2D6)
  4353. + #define    LVO_StackSwap    (-0x2DC)
  4354. + #define    LVO_ChildFree    (-0x2E2)
  4355. + #define    LVO_ChildOrphan    (-0x2E8)
  4356. + #define    LVO_ChildStatus    (-0x2EE)
  4357. + #define    LVO_ChildWait    (-0x2F4)
  4358. + #define    LVO_CachePreDMA    (-0x2FA)
  4359. + #define    LVO_CachePostDMA    (-0x300)
  4360. + #define    LVO_AddMemHandler    (-0x306)
  4361. + #define    LVO_RemMemHandler    (-0x30C)
  4362. + #define    LVO_ObtainQuickVector    (-0x312)
  4363. + #define    LVO_execPrivate10    (-0x318)
  4364. + #define    LVO_execPrivate11    (-0x31E)
  4365. + #define    LVO_execPrivate12    (-0x324)
  4366. + #define    LVO_execPrivate13    (-0x32A)
  4367. + #define    LVO_execPrivate14    (-0x330)
  4368. + #define    LVO_execPrivate15    (-0x336)
  4369. + #endif
  4370. diff -c2 -d -P -r include_h/powerup/lvo/expansion_lvo.h includenew/powerup/lvo/expansion_lvo.h
  4371. *** include_h/powerup/lvo/expansion_lvo.h    Thu Jan  1 00:00:00 1970
  4372. --- includenew/powerup/lvo/expansion_lvo.h    Thu Nov  2 22:27:06 2000
  4373. ***************
  4374. *** 0 ****
  4375. --- 1,34 ----
  4376. + #ifndef _LVO_EXPANSION_LIB_H
  4377. + #define _LVO_EXPANSION_LIB_H
  4378. + /*
  4379. +  *  $VER: expansion_lvolib.h (08/03/97)
  4380. +  *
  4381. +  */
  4382. + #define    LVO_AddConfigDev    (-0x1E)
  4383. + #define    LVO_AddBootNode    (-0x24)
  4384. + #define    LVO_AllocBoardMem    (-0x2A)
  4385. + #define    LVO_AllocConfigDev    (-0x30)
  4386. + #define    LVO_AllocExpansionMem    (-0x36)
  4387. + #define    LVO_ConfigBoard    (-0x3C)
  4388. + #define    LVO_ConfigChain    (-0x42)
  4389. + #define    LVO_FindConfigDev    (-0x48)
  4390. + #define    LVO_FreeBoardMem    (-0x4E)
  4391. + #define    LVO_FreeConfigDev    (-0x54)
  4392. + #define    LVO_FreeExpansionMem    (-0x5A)
  4393. + #define    LVO_ReadExpansionByte    (-0x60)
  4394. + #define    LVO_ReadExpansionRom    (-0x66)
  4395. + #define    LVO_RemConfigDev    (-0x6C)
  4396. + #define    LVO_WriteExpansionByte    (-0x72)
  4397. + #define    LVO_ObtainConfigBinding    (-0x78)
  4398. + #define    LVO_ReleaseConfigBinding    (-0x7E)
  4399. + #define    LVO_SetCurrentBinding    (-0x84)
  4400. + #define    LVO_GetCurrentBinding    (-0x8A)
  4401. + #define    LVO_MakeDosNode    (-0x90)
  4402. + #define    LVO_AddDosNode    (-0x96)
  4403. + #define    LVO_expansionPrivate1    (-0x9C)
  4404. + #define    LVO_expansionPrivate2    (-0xA2)
  4405. + #endif
  4406. diff -c2 -d -P -r include_h/powerup/lvo/gadtools_lvo.h includenew/powerup/lvo/gadtools_lvo.h
  4407. *** include_h/powerup/lvo/gadtools_lvo.h    Thu Jan  1 00:00:00 1970
  4408. --- includenew/powerup/lvo/gadtools_lvo.h    Thu Nov  2 22:27:06 2000
  4409. ***************
  4410. *** 0 ****
  4411. --- 1,36 ----
  4412. + #ifndef _LVO_GADTOOLS_LIB_H
  4413. + #define _LVO_GADTOOLS_LIB_H
  4414. + /*
  4415. +  *  $VER: gadtools_lvolib.h (08/03/97)
  4416. +  *
  4417. +  */
  4418. + #define    LVO_CreateGadgetA    (-0x1E)
  4419. + #define    LVO_FreeGadgets    (-0x24)
  4420. + #define    LVO_GT_SetGadgetAttrsA    (-0x2A)
  4421. + #define    LVO_CreateMenusA    (-0x30)
  4422. + #define    LVO_FreeMenus    (-0x36)
  4423. + #define    LVO_LayoutMenuItemsA    (-0x3C)
  4424. + #define    LVO_LayoutMenusA    (-0x42)
  4425. + #define    LVO_GT_GetIMsg    (-0x48)
  4426. + #define    LVO_GT_ReplyIMsg    (-0x4E)
  4427. + #define    LVO_GT_RefreshWindow    (-0x54)
  4428. + #define    LVO_GT_BeginRefresh    (-0x5A)
  4429. + #define    LVO_GT_EndRefresh    (-0x60)
  4430. + #define    LVO_GT_FilterIMsg    (-0x66)
  4431. + #define    LVO_GT_PostFilterIMsg    (-0x6C)
  4432. + #define    LVO_CreateContext    (-0x72)
  4433. + #define    LVO_DrawBevelBoxA    (-0x78)
  4434. + #define    LVO_GetVisualInfoA    (-0x7E)
  4435. + #define    LVO_FreeVisualInfo    (-0x84)
  4436. + #define    LVO_gadtoolsPrivate1    (-0x8A)
  4437. + #define    LVO_gadtoolsPrivate2    (-0x90)
  4438. + #define    LVO_gadtoolsPrivate3    (-0x96)
  4439. + #define    LVO_gadtoolsPrivate4    (-0x9C)
  4440. + #define    LVO_gadtoolsPrivate5    (-0xA2)
  4441. + #define    LVO_gadtoolsPrivate6    (-0xA8)
  4442. + #define    LVO_GT_GetGadgetAttrsA    (-0xAE)
  4443. + #endif
  4444. diff -c2 -d -P -r include_h/powerup/lvo/graphics_lvo.h includenew/powerup/lvo/graphics_lvo.h
  4445. *** include_h/powerup/lvo/graphics_lvo.h    Thu Jan  1 00:00:00 1970
  4446. --- includenew/powerup/lvo/graphics_lvo.h    Thu Nov  2 22:27:06 2000
  4447. ***************
  4448. *** 0 ****
  4449. --- 1,183 ----
  4450. + #ifndef _LVO_GRAPHICS_LIB_H
  4451. + #define _LVO_GRAPHICS_LIB_H
  4452. + /*
  4453. +  *  $VER: graphics_lvolib.h (08/03/97)
  4454. +  *
  4455. +  */
  4456. + #define    LVO_BltBitMap    (-0x1E)
  4457. + #define    LVO_BltTemplate    (-0x24)
  4458. + #define    LVO_ClearEOL    (-0x2A)
  4459. + #define    LVO_ClearScreen    (-0x30)
  4460. + #define    LVO_TextLength    (-0x36)
  4461. + #define    LVO_Text    (-0x3C)
  4462. + #define    LVO_SetFont    (-0x42)
  4463. + #define    LVO_OpenFont    (-0x48)
  4464. + #define    LVO_CloseFont    (-0x4E)
  4465. + #define    LVO_AskSoftStyle    (-0x54)
  4466. + #define    LVO_SetSoftStyle    (-0x5A)
  4467. + #define    LVO_AddBob    (-0x60)
  4468. + #define    LVO_AddVSprite    (-0x66)
  4469. + #define    LVO_DoCollision    (-0x6C)
  4470. + #define    LVO_DrawGList    (-0x72)
  4471. + #define    LVO_InitGels    (-0x78)
  4472. + #define    LVO_InitMasks    (-0x7E)
  4473. + #define    LVO_RemIBob    (-0x84)
  4474. + #define    LVO_RemVSprite    (-0x8A)
  4475. + #define    LVO_SetCollision    (-0x90)
  4476. + #define    LVO_SortGList    (-0x96)
  4477. + #define    LVO_AddAnimOb    (-0x9C)
  4478. + #define    LVO_Animate    (-0xA2)
  4479. + #define    LVO_GetGBuffers    (-0xA8)
  4480. + #define    LVO_InitGMasks    (-0xAE)
  4481. + #define    LVO_DrawEllipse    (-0xB4)
  4482. + #define    LVO_AreaEllipse    (-0xBA)
  4483. + #define    LVO_LoadRGB4    (-0xC0)
  4484. + #define    LVO_InitRastPort    (-0xC6)
  4485. + #define    LVO_InitVPort    (-0xCC)
  4486. + #define    LVO_MrgCop    (-0xD2)
  4487. + #define    LVO_MakeVPort    (-0xD8)
  4488. + #define    LVO_LoadView    (-0xDE)
  4489. + #define    LVO_WaitBlit    (-0xE4)
  4490. + #define    LVO_SetRast    (-0xEA)
  4491. + #define    LVO_Move    (-0xF0)
  4492. + #define    LVO_Draw    (-0xF6)
  4493. + #define    LVO_AreaMove    (-0xFC)
  4494. + #define    LVO_AreaDraw    (-0x102)
  4495. + #define    LVO_AreaEnd    (-0x108)
  4496. + #define    LVO_WaitTOF    (-0x10E)
  4497. + #define    LVO_QBlit    (-0x114)
  4498. + #define    LVO_InitArea    (-0x11A)
  4499. + #define    LVO_SetRGB4    (-0x120)
  4500. + #define    LVO_QBSBlit    (-0x126)
  4501. + #define    LVO_BltClear    (-0x12C)
  4502. + #define    LVO_RectFill    (-0x132)
  4503. + #define    LVO_BltPattern    (-0x138)
  4504. + #define    LVO_ReadPixel    (-0x13E)
  4505. + #define    LVO_WritePixel    (-0x144)
  4506. + #define    LVO_Flood    (-0x14A)
  4507. + #define    LVO_PolyDraw    (-0x150)
  4508. + #define    LVO_SetAPen    (-0x156)
  4509. + #define    LVO_SetBPen    (-0x15C)
  4510. + #define    LVO_SetDrMd    (-0x162)
  4511. + #define    LVO_InitView    (-0x168)
  4512. + #define    LVO_CBump    (-0x16E)
  4513. + #define    LVO_CMove    (-0x174)
  4514. + #define    LVO_CWait    (-0x17A)
  4515. + #define    LVO_VBeamPos    (-0x180)
  4516. + #define    LVO_InitBitMap    (-0x186)
  4517. + #define    LVO_ScrollRaster    (-0x18C)
  4518. + #define    LVO_WaitBOVP    (-0x192)
  4519. + #define    LVO_GetSprite    (-0x198)
  4520. + #define    LVO_FreeSprite    (-0x19E)
  4521. + #define    LVO_ChangeSprite    (-0x1A4)
  4522. + #define    LVO_MoveSprite    (-0x1AA)
  4523. + #define    LVO_LockLayerRom    (-0x1B0)
  4524. + #define    LVO_UnlockLayerRom    (-0x1B6)
  4525. + #define    LVO_SyncSBitMap    (-0x1BC)
  4526. + #define    LVO_CopySBitMap    (-0x1C2)
  4527. + #define    LVO_OwnBlitter    (-0x1C8)
  4528. + #define    LVO_DisownBlitter    (-0x1CE)
  4529. + #define    LVO_InitTmpRas    (-0x1D4)
  4530. + #define    LVO_AskFont    (-0x1DA)
  4531. + #define    LVO_AddFont    (-0x1E0)
  4532. + #define    LVO_RemFont    (-0x1E6)
  4533. + #define    LVO_AllocRaster    (-0x1EC)
  4534. + #define    LVO_FreeRaster    (-0x1F2)
  4535. + #define    LVO_AndRectRegion    (-0x1F8)
  4536. + #define    LVO_OrRectRegion    (-0x1FE)
  4537. + #define    LVO_NewRegion    (-0x204)
  4538. + #define    LVO_ClearRectRegion    (-0x20A)
  4539. + #define    LVO_ClearRegion    (-0x210)
  4540. + #define    LVO_DisposeRegion    (-0x216)
  4541. + #define    LVO_FreeVPortCopLists    (-0x21C)
  4542. + #define    LVO_FreeCopList    (-0x222)
  4543. + #define    LVO_ClipBlit    (-0x228)
  4544. + #define    LVO_XorRectRegion    (-0x22E)
  4545. + #define    LVO_FreeCprList    (-0x234)
  4546. + #define    LVO_GetColorMap    (-0x23A)
  4547. + #define    LVO_FreeColorMap    (-0x240)
  4548. + #define    LVO_GetRGB4    (-0x246)
  4549. + #define    LVO_ScrollVPort    (-0x24C)
  4550. + #define    LVO_UCopperListInit    (-0x252)
  4551. + #define    LVO_FreeGBuffers    (-0x258)
  4552. + #define    LVO_BltBitMapRastPort    (-0x25E)
  4553. + #define    LVO_OrRegionRegion    (-0x264)
  4554. + #define    LVO_XorRegionRegion    (-0x26A)
  4555. + #define    LVO_AndRegionRegion    (-0x270)
  4556. + #define    LVO_SetRGB4CM    (-0x276)
  4557. + #define    LVO_BltMaskBitMapRastPort    (-0x27C)
  4558. + #define    LVO_graphicsPrivate1    (-0x282)
  4559. + #define    LVO_graphicsPrivate2    (-0x288)
  4560. + #define    LVO_AttemptLockLayerRom    (-0x28E)
  4561. + #define    LVO_GfxNew    (-0x294)
  4562. + #define    LVO_GfxFree    (-0x29A)
  4563. + #define    LVO_GfxAssociate    (-0x2A0)
  4564. + #define    LVO_BitMapScale    (-0x2A6)
  4565. + #define    LVO_ScalerDiv    (-0x2AC)
  4566. + #define    LVO_TextExtent    (-0x2B2)
  4567. + #define    LVO_TextFit    (-0x2B8)
  4568. + #define    LVO_GfxLookUp    (-0x2BE)
  4569. + #define    LVO_VideoControl    (-0x2C4)
  4570. + #define    LVO_OpenMonitor    (-0x2CA)
  4571. + #define    LVO_CloseMonitor    (-0x2D0)
  4572. + #define    LVO_FindDisplayInfo    (-0x2D6)
  4573. + #define    LVO_NextDisplayInfo    (-0x2DC)
  4574. + #define    LVO_graphicsPrivate3    (-0x2E2)
  4575. + #define    LVO_graphicsPrivate4    (-0x2E8)
  4576. + #define    LVO_graphicsPrivate5    (-0x2EE)
  4577. + #define    LVO_GetDisplayInfoData    (-0x2F4)
  4578. + #define    LVO_FontExtent    (-0x2FA)
  4579. + #define    LVO_ReadPixelLine8    (-0x300)
  4580. + #define    LVO_WritePixelLine8    (-0x306)
  4581. + #define    LVO_ReadPixelArray8    (-0x30C)
  4582. + #define    LVO_WritePixelArray8    (-0x312)
  4583. + #define    LVO_GetVPModeID    (-0x318)
  4584. + #define    LVO_ModeNotAvailable    (-0x31E)
  4585. + #define    LVO_WeighTAMatch    (-0x324)
  4586. + #define    LVO_EraseRect    (-0x32A)
  4587. + #define    LVO_ExtendFont    (-0x330)
  4588. + #define    LVO_StripFont    (-0x336)
  4589. + #define    LVO_CalcIVG    (-0x33C)
  4590. + #define    LVO_AttachPalExtra    (-0x342)
  4591. + #define    LVO_ObtainBestPenA    (-0x348)
  4592. + #define    LVO_graphicsPrivate6    (-0x34E)
  4593. + #define    LVO_SetRGB32    (-0x354)
  4594. + #define    LVO_GetAPen    (-0x35A)
  4595. + #define    LVO_GetBPen    (-0x360)
  4596. + #define    LVO_GetDrMd    (-0x366)
  4597. + #define    LVO_GetOutlinePen    (-0x36C)
  4598. + #define    LVO_LoadRGB32    (-0x372)
  4599. + #define    LVO_SetChipRev    (-0x378)
  4600. + #define    LVO_SetABPenDrMd    (-0x37E)
  4601. + #define    LVO_GetRGB32    (-0x384)
  4602. + #define    LVO_graphicsPrivate7    (-0x38A)
  4603. + #define    LVO_graphicsPrivate8    (-0x390)
  4604. + #define    LVO_AllocBitMap    (-0x396)
  4605. + #define    LVO_FreeBitMap    (-0x39C)
  4606. + #define    LVO_GetExtSpriteA    (-0x3A2)
  4607. + #define    LVO_CoerceMode    (-0x3A8)
  4608. + #define    LVO_ChangeVPBitMap    (-0x3AE)
  4609. + #define    LVO_ReleasePen    (-0x3B4)
  4610. + #define    LVO_ObtainPen    (-0x3BA)
  4611. + #define    LVO_GetBitMapAttr    (-0x3C0)
  4612. + #define    LVO_AllocDBufInfo    (-0x3C6)
  4613. + #define    LVO_FreeDBufInfo    (-0x3CC)
  4614. + #define    LVO_SetOutlinePen    (-0x3D2)
  4615. + #define    LVO_SetWriteMask    (-0x3D8)
  4616. + #define    LVO_SetMaxPen    (-0x3DE)
  4617. + #define    LVO_SetRGB32CM    (-0x3E4)
  4618. + #define    LVO_ScrollRasterBF    (-0x3EA)
  4619. + #define    LVO_FindColor    (-0x3F0)
  4620. + #define    LVO_graphicsPrivate9    (-0x3F6)
  4621. + #define    LVO_AllocSpriteDataA    (-0x3FC)
  4622. + #define    LVO_ChangeExtSpriteA    (-0x402)
  4623. + #define    LVO_FreeSpriteData    (-0x408)
  4624. + #define    LVO_SetRPAttrsA    (-0x40E)
  4625. + #define    LVO_GetRPAttrsA    (-0x414)
  4626. + #define    LVO_BestModeIDA    (-0x41A)
  4627. + #define    LVO_WriteChunkyPixels    (-0x420)
  4628. + #endif
  4629. diff -c2 -d -P -r include_h/powerup/lvo/icon_lvo.h includenew/powerup/lvo/icon_lvo.h
  4630. *** include_h/powerup/lvo/icon_lvo.h    Thu Jan  1 00:00:00 1970
  4631. --- includenew/powerup/lvo/icon_lvo.h    Thu Nov  2 22:27:06 2000
  4632. ***************
  4633. *** 0 ****
  4634. --- 1,30 ----
  4635. + #ifndef _LVO_ICON_LIB_H
  4636. + #define _LVO_ICON_LIB_H
  4637. + /*
  4638. +  *  $VER: icon_lvolib.h (08/03/97)
  4639. +  *
  4640. +  */
  4641. + #define    LVO_iconPrivate1    (-0x1E)
  4642. + #define    LVO_iconPrivate2    (-0x24)
  4643. + #define    LVO_iconPrivate3    (-0x2A)
  4644. + #define    LVO_iconPrivate4    (-0x30)
  4645. + #define    LVO_FreeFreeList    (-0x36)
  4646. + #define    LVO_iconPrivate5    (-0x3C)
  4647. + #define    LVO_iconPrivate6    (-0x42)
  4648. + #define    LVO_AddFreeList    (-0x48)
  4649. + #define    LVO_GetDiskObject    (-0x4E)
  4650. + #define    LVO_PutDiskObject    (-0x54)
  4651. + #define    LVO_FreeDiskObject    (-0x5A)
  4652. + #define    LVO_FindToolType    (-0x60)
  4653. + #define    LVO_MatchToolValue    (-0x66)
  4654. + #define    LVO_BumpRevision    (-0x6C)
  4655. + #define    LVO_iconPrivate7    (-0x72)
  4656. + #define    LVO_GetDefDiskObject    (-0x78)
  4657. + #define    LVO_PutDefDiskObject    (-0x7E)
  4658. + #define    LVO_GetDiskObjectNew    (-0x84)
  4659. + #define    LVO_DeleteDiskObject    (-0x8A)
  4660. + #endif
  4661. diff -c2 -d -P -r include_h/powerup/lvo/iff_lvo.h includenew/powerup/lvo/iff_lvo.h
  4662. *** include_h/powerup/lvo/iff_lvo.h    Thu Jan  1 00:00:00 1970
  4663. --- includenew/powerup/lvo/iff_lvo.h    Thu Nov  2 22:27:06 2000
  4664. ***************
  4665. *** 0 ****
  4666. --- 1,30 ----
  4667. + #ifndef _LVO_IFF_LIB_H
  4668. + #define _LVO_IFF_LIB_H
  4669. + /*
  4670. +  *  $VER: iff_lvolib.h (08/03/97)
  4671. +  *
  4672. +  */
  4673. + #define    LVO_IFFL_OldOpenIFF    (-0x1E)
  4674. + #define    LVO_IFFL_CloseIFF    (-0x24)
  4675. + #define    LVO_IFFL_FindChunk    (-0x2A)
  4676. + #define    LVO_IFFL_GetBMHD    (-0x30)
  4677. + #define    LVO_IFFL_GetColorTab    (-0x36)
  4678. + #define    LVO_IFFL_DecodePic    (-0x3C)
  4679. + #define    LVO_IFFL_SaveBitMap    (-0x42)
  4680. + #define    LVO_IFFL_SaveClip    (-0x48)
  4681. + #define    LVO_IFFL_IFFError    (-0x4E)
  4682. + #define    LVO_IFFL_GetViewModes    (-0x54)
  4683. + #define    LVO_IFFL_OldNewOpenIFF    (-0x5A)
  4684. + #define    LVO_IFFL_ModifyFrame    (-0x60)
  4685. + #define    LVO_IFFL_OldPPOpenIFF    (-0x66)
  4686. + #define    LVO_IFFL_OpenIFF    (-0x78)
  4687. + #define    LVO_IFFL_PushChunk    (-0x7E)
  4688. + #define    LVO_IFFL_PopChunk    (-0x84)
  4689. + #define    LVO_IFFL_WriteChunkBytes    (-0x8A)
  4690. + #define    LVO_IFFL_CompressBlock    (-0x90)
  4691. + #define    LVO_IFFL_DecompressBlock    (-0x96)
  4692. + #endif
  4693. diff -c2 -d -P -r include_h/powerup/lvo/iffparse_lvo.h includenew/powerup/lvo/iffparse_lvo.h
  4694. *** include_h/powerup/lvo/iffparse_lvo.h    Thu Jan  1 00:00:00 1970
  4695. --- includenew/powerup/lvo/iffparse_lvo.h    Thu Nov  2 22:27:06 2000
  4696. ***************
  4697. *** 0 ****
  4698. --- 1,51 ----
  4699. + #ifndef _LVO_IFFPARSE_LIB_H
  4700. + #define _LVO_IFFPARSE_LIB_H
  4701. + /*
  4702. +  *  $VER: iffparse_lvolib.h (08/03/97)
  4703. +  *
  4704. +  */
  4705. + #define    LVO_AllocIFF    (-0x1E)
  4706. + #define    LVO_OpenIFF    (-0x24)
  4707. + #define    LVO_ParseIFF    (-0x2A)
  4708. + #define    LVO_CloseIFF    (-0x30)
  4709. + #define    LVO_FreeIFF    (-0x36)
  4710. + #define    LVO_ReadChunkBytes    (-0x3C)
  4711. + #define    LVO_WriteChunkBytes    (-0x42)
  4712. + #define    LVO_ReadChunkRecords    (-0x48)
  4713. + #define    LVO_WriteChunkRecords    (-0x4E)
  4714. + #define    LVO_PushChunk    (-0x54)
  4715. + #define    LVO_PopChunk    (-0x5A)
  4716. + #define    LVO_EntryHandler    (-0x66)
  4717. + #define    LVO_ExitHandler    (-0x6C)
  4718. + #define    LVO_PropChunk    (-0x72)
  4719. + #define    LVO_PropChunks    (-0x78)
  4720. + #define    LVO_StopChunk    (-0x7E)
  4721. + #define    LVO_StopChunks    (-0x84)
  4722. + #define    LVO_CollectionChunk    (-0x8A)
  4723. + #define    LVO_CollectionChunks    (-0x90)
  4724. + #define    LVO_StopOnExit    (-0x96)
  4725. + #define    LVO_FindProp    (-0x9C)
  4726. + #define    LVO_FindCollection    (-0xA2)
  4727. + #define    LVO_FindPropContext    (-0xA8)
  4728. + #define    LVO_CurrentChunk    (-0xAE)
  4729. + #define    LVO_ParentChunk    (-0xB4)
  4730. + #define    LVO_AllocLocalItem    (-0xBA)
  4731. + #define    LVO_LocalItemData    (-0xC0)
  4732. + #define    LVO_SetLocalItemPurge    (-0xC6)
  4733. + #define    LVO_FreeLocalItem    (-0xCC)
  4734. + #define    LVO_FindLocalItem    (-0xD2)
  4735. + #define    LVO_StoreLocalItem    (-0xD8)
  4736. + #define    LVO_StoreItemInContext    (-0xDE)
  4737. + #define    LVO_InitIFF    (-0xE4)
  4738. + #define    LVO_InitIFFasDOS    (-0xEA)
  4739. + #define    LVO_InitIFFasClip    (-0xF0)
  4740. + #define    LVO_OpenClipboard    (-0xF6)
  4741. + #define    LVO_CloseClipboard    (-0xFC)
  4742. + #define    LVO_GoodID    (-0x102)
  4743. + #define    LVO_GoodType    (-0x108)
  4744. + #define    LVO_IDtoStr    (-0x10E)
  4745. + #endif
  4746. diff -c2 -d -P -r include_h/powerup/lvo/input_lvo.h includenew/powerup/lvo/input_lvo.h
  4747. *** include_h/powerup/lvo/input_lvo.h    Thu Jan  1 00:00:00 1970
  4748. --- includenew/powerup/lvo/input_lvo.h    Thu Nov  2 22:27:04 2000
  4749. ***************
  4750. *** 0 ****
  4751. --- 1,12 ----
  4752. + #ifndef _LVO_INPUT_LIB_H
  4753. + #define _LVO_INPUT_LIB_H
  4754. + /*
  4755. +  *  $VER: input_lvolib.h (08/03/97)
  4756. +  *
  4757. +  */
  4758. + #define    LVO_PeekQualifier    (-0x2A)
  4759. + #endif
  4760. diff -c2 -d -P -r include_h/powerup/lvo/intuition_lvo.h includenew/powerup/lvo/intuition_lvo.h
  4761. *** include_h/powerup/lvo/intuition_lvo.h    Thu Jan  1 00:00:00 1970
  4762. --- includenew/powerup/lvo/intuition_lvo.h    Thu Nov  2 22:27:05 2000
  4763. ***************
  4764. *** 0 ****
  4765. --- 1,139 ----
  4766. + #ifndef _LVO_INTUITION_LIB_H
  4767. + #define _LVO_INTUITION_LIB_H
  4768. + /*
  4769. +  *  $VER: intuition_lvolib.h (08/03/97)
  4770. +  *
  4771. +  */
  4772. + #define    LVO_OpenIntuition    (-0x1E)
  4773. + #define    LVO_Intuition    (-0x24)
  4774. + #define    LVO_AddGadget    (-0x2A)
  4775. + #define    LVO_ClearDMRequest    (-0x30)
  4776. + #define    LVO_ClearMenuStrip    (-0x36)
  4777. + #define    LVO_ClearPointer    (-0x3C)
  4778. + #define    LVO_CloseScreen    (-0x42)
  4779. + #define    LVO_CloseWindow    (-0x48)
  4780. + #define    LVO_CloseWorkBench    (-0x4E)
  4781. + #define    LVO_CurrentTime    (-0x54)
  4782. + #define    LVO_DisplayAlert    (-0x5A)
  4783. + #define    LVO_DisplayBeep    (-0x60)
  4784. + #define    LVO_DoubleClick    (-0x66)
  4785. + #define    LVO_DrawBorder    (-0x6C)
  4786. + #define    LVO_DrawImage    (-0x72)
  4787. + #define    LVO_EndRequest    (-0x78)
  4788. + #define    LVO_GetDefPrefs    (-0x7E)
  4789. + #define    LVO_GetPrefs    (-0x84)
  4790. + #define    LVO_InitRequester    (-0x8A)
  4791. + #define    LVO_ItemAddress    (-0x90)
  4792. + #define    LVO_ModifyIDCMP    (-0x96)
  4793. + #define    LVO_ModifyProp    (-0x9C)
  4794. + #define    LVO_MoveScreen    (-0xA2)
  4795. + #define    LVO_MoveWindow    (-0xA8)
  4796. + #define    LVO_OffGadget    (-0xAE)
  4797. + #define    LVO_OffMenu    (-0xB4)
  4798. + #define    LVO_OnGadget    (-0xBA)
  4799. + #define    LVO_OnMenu    (-0xC0)
  4800. + #define    LVO_OpenScreen    (-0xC6)
  4801. + #define    LVO_OpenWindow    (-0xCC)
  4802. + #define    LVO_OpenWorkBench    (-0xD2)
  4803. + #define    LVO_PrintIText    (-0xD8)
  4804. + #define    LVO_RefreshGadgets    (-0xDE)
  4805. + #define    LVO_RemoveGadget    (-0xE4)
  4806. + #define    LVO_ReportMouse    (-0xEA)
  4807. + #define    LVO_Request    (-0xF0)
  4808. + #define    LVO_ScreenToBack    (-0xF6)
  4809. + #define    LVO_ScreenToFront    (-0xFC)
  4810. + #define    LVO_SetDMRequest    (-0x102)
  4811. + #define    LVO_SetMenuStrip    (-0x108)
  4812. + #define    LVO_SetPointer    (-0x10E)
  4813. + #define    LVO_SetWindowTitles    (-0x114)
  4814. + #define    LVO_ShowTitle    (-0x11A)
  4815. + #define    LVO_SizeWindow    (-0x120)
  4816. + #define    LVO_ViewAddress    (-0x126)
  4817. + #define    LVO_ViewPortAddress    (-0x12C)
  4818. + #define    LVO_WindowToBack    (-0x132)
  4819. + #define    LVO_WindowToFront    (-0x138)
  4820. + #define    LVO_WindowLimits    (-0x13E)
  4821. + #define    LVO_SetPrefs    (-0x144)
  4822. + #define    LVO_IntuiTextLength    (-0x14A)
  4823. + #define    LVO_WBenchToBack    (-0x150)
  4824. + #define    LVO_WBenchToFront    (-0x156)
  4825. + #define    LVO_AutoRequest    (-0x15C)
  4826. + #define    LVO_BeginRefresh    (-0x162)
  4827. + #define    LVO_BuildSysRequest    (-0x168)
  4828. + #define    LVO_EndRefresh    (-0x16E)
  4829. + #define    LVO_FreeSysRequest    (-0x174)
  4830. + #define    LVO_MakeScreen    (-0x17A)
  4831. + #define    LVO_RemakeDisplay    (-0x180)
  4832. + #define    LVO_RethinkDisplay    (-0x186)
  4833. + #define    LVO_AllocRemember    (-0x18C)
  4834. + #define    LVO_AlohaWorkbench    (-0x192)
  4835. + #define    LVO_FreeRemember    (-0x198)
  4836. + #define    LVO_LockIBase    (-0x19E)
  4837. + #define    LVO_UnlockIBase    (-0x1A4)
  4838. + #define    LVO_GetScreenData    (-0x1AA)
  4839. + #define    LVO_RefreshGList    (-0x1B0)
  4840. + #define    LVO_AddGList    (-0x1B6)
  4841. + #define    LVO_RemoveGList    (-0x1BC)
  4842. + #define    LVO_ActivateWindow    (-0x1C2)
  4843. + #define    LVO_RefreshWindowFrame    (-0x1C8)
  4844. + #define    LVO_ActivateGadget    (-0x1CE)
  4845. + #define    LVO_NewModifyProp    (-0x1D4)
  4846. + #define    LVO_QueryOverscan    (-0x1DA)
  4847. + #define    LVO_MoveWindowInFrontOf    (-0x1E0)
  4848. + #define    LVO_ChangeWindowBox    (-0x1E6)
  4849. + #define    LVO_SetEditHook    (-0x1EC)
  4850. + #define    LVO_SetMouseQueue    (-0x1F2)
  4851. + #define    LVO_ZipWindow    (-0x1F8)
  4852. + #define    LVO_LockPubScreen    (-0x1FE)
  4853. + #define    LVO_UnlockPubScreen    (-0x204)
  4854. + #define    LVO_LockPubScreenList    (-0x20A)
  4855. + #define    LVO_UnlockPubScreenList    (-0x210)
  4856. + #define    LVO_NextPubScreen    (-0x216)
  4857. + #define    LVO_SetDefaultPubScreen    (-0x21C)
  4858. + #define    LVO_SetPubScreenModes    (-0x222)
  4859. + #define    LVO_PubScreenStatus    (-0x228)
  4860. + #define    LVO_ObtainGIRPort    (-0x22E)
  4861. + #define    LVO_ReleaseGIRPort    (-0x234)
  4862. + #define    LVO_GadgetMouse    (-0x23A)
  4863. + #define    LVO_intuitionPrivate1    (-0x240)
  4864. + #define    LVO_GetDefaultPubScreen    (-0x246)
  4865. + #define    LVO_EasyRequestArgs    (-0x24C)
  4866. + #define    LVO_BuildEasyRequestArgs    (-0x252)
  4867. + #define    LVO_SysReqHandler    (-0x258)
  4868. + #define    LVO_OpenWindowTagList    (-0x25E)
  4869. + #define    LVO_OpenScreenTagList    (-0x264)
  4870. + #define    LVO_DrawImageState    (-0x26A)
  4871. + #define    LVO_PointInImage    (-0x270)
  4872. + #define    LVO_EraseImage    (-0x276)
  4873. + #define    LVO_NewObjectA    (-0x27C)
  4874. + #define    LVO_DisposeObject    (-0x282)
  4875. + #define    LVO_SetAttrsA    (-0x288)
  4876. + #define    LVO_GetAttr    (-0x28E)
  4877. + #define    LVO_SetGadgetAttrsA    (-0x294)
  4878. + #define    LVO_NextObject    (-0x29A)
  4879. + #define    LVO_intuitionPrivate2    (-0x2A0)
  4880. + #define    LVO_MakeClass    (-0x2A6)
  4881. + #define    LVO_AddClass    (-0x2AC)
  4882. + #define    LVO_GetScreenDrawInfo    (-0x2B2)
  4883. + #define    LVO_FreeScreenDrawInfo    (-0x2B8)
  4884. + #define    LVO_ResetMenuStrip    (-0x2BE)
  4885. + #define    LVO_RemoveClass    (-0x2C4)
  4886. + #define    LVO_FreeClass    (-0x2CA)
  4887. + #define    LVO_intuitionPrivate3    (-0x2D0)
  4888. + #define    LVO_intuitionPrivate4    (-0x2D6)
  4889. + #define    LVO_AllocScreenBuffer    (-0x300)
  4890. + #define    LVO_FreeScreenBuffer    (-0x306)
  4891. + #define    LVO_ChangeScreenBuffer    (-0x30C)
  4892. + #define    LVO_ScreenDepth    (-0x312)
  4893. + #define    LVO_ScreenPosition    (-0x318)
  4894. + #define    LVO_ScrollWindowRaster    (-0x31E)
  4895. + #define    LVO_LendMenus    (-0x324)
  4896. + #define    LVO_DoGadgetMethodA    (-0x32A)
  4897. + #define    LVO_SetWindowPointerA    (-0x330)
  4898. + #define    LVO_TimedDisplayAlert    (-0x336)
  4899. + #define    LVO_HelpControl    (-0x33C)
  4900. + #endif
  4901. diff -c2 -d -P -r include_h/powerup/lvo/keymap_lvo.h includenew/powerup/lvo/keymap_lvo.h
  4902. *** include_h/powerup/lvo/keymap_lvo.h    Thu Jan  1 00:00:00 1970
  4903. --- includenew/powerup/lvo/keymap_lvo.h    Thu Nov  2 22:27:05 2000
  4904. ***************
  4905. *** 0 ****
  4906. --- 1,15 ----
  4907. + #ifndef _LVO_KEYMAP_LIB_H
  4908. + #define _LVO_KEYMAP_LIB_H
  4909. + /*
  4910. +  *  $VER: keymap_lvolib.h (08/03/97)
  4911. +  *
  4912. +  */
  4913. + #define    LVO_SetKeyMapDefault    (-0x1E)
  4914. + #define    LVO_AskKeyMapDefault    (-0x24)
  4915. + #define    LVO_MapRawKey    (-0x2A)
  4916. + #define    LVO_MapANSI    (-0x30)
  4917. + #endif
  4918. diff -c2 -d -P -r include_h/powerup/lvo/layers_lvo.h includenew/powerup/lvo/layers_lvo.h
  4919. *** include_h/powerup/lvo/layers_lvo.h    Thu Jan  1 00:00:00 1970
  4920. --- includenew/powerup/lvo/layers_lvo.h    Thu Nov  2 22:27:05 2000
  4921. ***************
  4922. *** 0 ****
  4923. --- 1,43 ----
  4924. + #ifndef _LVO_LAYERS_LIB_H
  4925. + #define _LVO_LAYERS_LIB_H
  4926. + /*
  4927. +  *  $VER: layers_lvolib.h (08/03/97)
  4928. +  *
  4929. +  */
  4930. + #define    LVO_InitLayers    (-0x1E)
  4931. + #define    LVO_CreateUpfrontLayer    (-0x24)
  4932. + #define    LVO_CreateBehindLayer    (-0x2A)
  4933. + #define    LVO_UpfrontLayer    (-0x30)
  4934. + #define    LVO_BehindLayer    (-0x36)
  4935. + #define    LVO_MoveLayer    (-0x3C)
  4936. + #define    LVO_SizeLayer    (-0x42)
  4937. + #define    LVO_ScrollLayer    (-0x48)
  4938. + #define    LVO_BeginUpdate    (-0x4E)
  4939. + #define    LVO_EndUpdate    (-0x54)
  4940. + #define    LVO_DeleteLayer    (-0x5A)
  4941. + #define    LVO_LockLayer    (-0x60)
  4942. + #define    LVO_UnlockLayer    (-0x66)
  4943. + #define    LVO_LockLayers    (-0x6C)
  4944. + #define    LVO_UnlockLayers    (-0x72)
  4945. + #define    LVO_LockLayerInfo    (-0x78)
  4946. + #define    LVO_SwapBitsRastPortClipRect    (-0x7E)
  4947. + #define    LVO_WhichLayer    (-0x84)
  4948. + #define    LVO_UnlockLayerInfo    (-0x8A)
  4949. + #define    LVO_NewLayerInfo    (-0x90)
  4950. + #define    LVO_DisposeLayerInfo    (-0x96)
  4951. + #define    LVO_FattenLayerInfo    (-0x9C)
  4952. + #define    LVO_ThinLayerInfo    (-0xA2)
  4953. + #define    LVO_MoveLayerInFrontOf    (-0xA8)
  4954. + #define    LVO_InstallClipRegion    (-0xAE)
  4955. + #define    LVO_MoveSizeLayer    (-0xB4)
  4956. + #define    LVO_CreateUpfrontHookLayer    (-0xBA)
  4957. + #define    LVO_CreateBehindHookLayer    (-0xC0)
  4958. + #define    LVO_InstallLayerHook    (-0xC6)
  4959. + #define    LVO_InstallLayerInfoHook    (-0xCC)
  4960. + #define    LVO_SortLayerCR    (-0xD2)
  4961. + #define    LVO_DoHookClipRects    (-0xD8)
  4962. + #endif
  4963. diff -c2 -d -P -r include_h/powerup/lvo/locale_lvo.h includenew/powerup/lvo/locale_lvo.h
  4964. *** include_h/powerup/lvo/locale_lvo.h    Thu Jan  1 00:00:00 1970
  4965. --- includenew/powerup/lvo/locale_lvo.h    Thu Nov  2 22:27:05 2000
  4966. ***************
  4967. *** 0 ****
  4968. --- 1,43 ----
  4969. + #ifndef _LVO_LOCALE_LIB_H
  4970. + #define _LVO_LOCALE_LIB_H
  4971. + /*
  4972. +  *  $VER: locale_lvolib.h (08/03/97)
  4973. +  *
  4974. +  */
  4975. + #define    LVO_localePrivate1    (-0x1E)
  4976. + #define    LVO_CloseCatalog    (-0x24)
  4977. + #define    LVO_CloseLocale    (-0x2A)
  4978. + #define    LVO_ConvToLower    (-0x30)
  4979. + #define    LVO_ConvToUpper    (-0x36)
  4980. + #define    LVO_FormatDate    (-0x3C)
  4981. + #define    LVO_FormatString    (-0x42)
  4982. + #define    LVO_GetCatalogStr    (-0x48)
  4983. + #define    LVO_GetLocaleStr    (-0x4E)
  4984. + #define    LVO_IsAlNum    (-0x54)
  4985. + #define    LVO_IsAlpha    (-0x5A)
  4986. + #define    LVO_IsCntrl    (-0x60)
  4987. + #define    LVO_IsDigit    (-0x66)
  4988. + #define    LVO_IsGraph    (-0x6C)
  4989. + #define    LVO_IsLower    (-0x72)
  4990. + #define    LVO_IsPrint    (-0x78)
  4991. + #define    LVO_IsPunct    (-0x7E)
  4992. + #define    LVO_IsSpace    (-0x84)
  4993. + #define    LVO_IsUpper    (-0x8A)
  4994. + #define    LVO_IsXDigit    (-0x90)
  4995. + #define    LVO_OpenCatalogA    (-0x96)
  4996. + #define    LVO_OpenLocale    (-0x9C)
  4997. + #define    LVO_ParseDate    (-0xA2)
  4998. + #define    LVO_localePrivate2    (-0xA8)
  4999. + #define    LVO_StrConvert    (-0xAE)
  5000. + #define    LVO_StrnCmp    (-0xB4)
  5001. + #define    LVO_localePrivate3    (-0xBA)
  5002. + #define    LVO_localePrivate4    (-0xC0)
  5003. + #define    LVO_localePrivate5    (-0xC6)
  5004. + #define    LVO_localePrivate6    (-0xCC)
  5005. + #define    LVO_localePrivate7    (-0xD2)
  5006. + #define    LVO_localePrivate8    (-0xD8)
  5007. + #endif
  5008. diff -c2 -d -P -r include_h/powerup/lvo/lowlevel_lvo.h includenew/powerup/lvo/lowlevel_lvo.h
  5009. *** include_h/powerup/lvo/lowlevel_lvo.h    Thu Jan  1 00:00:00 1970
  5010. --- includenew/powerup/lvo/lowlevel_lvo.h    Thu Nov  2 22:27:05 2000
  5011. ***************
  5012. *** 0 ****
  5013. --- 1,34 ----
  5014. + #ifndef _LVO_LOWLEVEL_LIB_H
  5015. + #define _LVO_LOWLEVEL_LIB_H
  5016. + /*
  5017. +  *  $VER: lowlevel_lvolib.h (08/03/97)
  5018. +  *
  5019. +  */
  5020. + #define    LVO_ReadJoyPort    (-0x1E)
  5021. + #define    LVO_GetLanguageSelection    (-0x24)
  5022. + #define    LVO_lowlevelPrivate1    (-0x2A)
  5023. + #define    LVO_GetKey    (-0x30)
  5024. + #define    LVO_QueryKeys    (-0x36)
  5025. + #define    LVO_AddKBInt    (-0x3C)
  5026. + #define    LVO_RemKBInt    (-0x42)
  5027. + #define    LVO_SystemControlA    (-0x48)
  5028. + #define    LVO_AddTimerInt    (-0x4E)
  5029. + #define    LVO_RemTimerInt    (-0x54)
  5030. + #define    LVO_StopTimerInt    (-0x5A)
  5031. + #define    LVO_StartTimerInt    (-0x60)
  5032. + #define    LVO_ElapsedTime    (-0x66)
  5033. + #define    LVO_AddVBlankInt    (-0x6C)
  5034. + #define    LVO_RemVBlankInt    (-0x72)
  5035. + #define    LVO_lowlevelPrivate2    (-0x78)
  5036. + #define    LVO_lowlevelPrivate3    (-0x7E)
  5037. + #define    LVO_SetJoyPortAttrsA    (-0x84)
  5038. + #define    LVO_lowlevelPrivate4    (-0x8A)
  5039. + #define    LVO_lowlevelPrivate5    (-0x90)
  5040. + #define    LVO_lowlevelPrivate6    (-0x96)
  5041. + #define    LVO_lowlevelPrivate7    (-0x9C)
  5042. + #define    LVO_lowlevelPrivate8    (-0xA2)
  5043. + #endif
  5044. diff -c2 -d -P -r include_h/powerup/lvo/mathffp_lvo.h includenew/powerup/lvo/mathffp_lvo.h
  5045. *** include_h/powerup/lvo/mathffp_lvo.h    Thu Jan  1 00:00:00 1970
  5046. --- includenew/powerup/lvo/mathffp_lvo.h    Thu Nov  2 22:27:05 2000
  5047. ***************
  5048. *** 0 ****
  5049. --- 1,23 ----
  5050. + #ifndef _LVO_MATHFFP_LIB_H
  5051. + #define _LVO_MATHFFP_LIB_H
  5052. + /*
  5053. +  *  $VER: mathffp_lvolib.h (08/03/97)
  5054. +  *
  5055. +  */
  5056. + #define    LVO_SPFix    (-0x1E)
  5057. + #define    LVO_SPFlt    (-0x24)
  5058. + #define    LVO_SPCmp    (-0x2A)
  5059. + #define    LVO_SPTst    (-0x30)
  5060. + #define    LVO_SPAbs    (-0x36)
  5061. + #define    LVO_SPNeg    (-0x3C)
  5062. + #define    LVO_SPAdd    (-0x42)
  5063. + #define    LVO_SPSub    (-0x48)
  5064. + #define    LVO_SPMul    (-0x4E)
  5065. + #define    LVO_SPDiv    (-0x54)
  5066. + #define    LVO_SPFloor    (-0x5A)
  5067. + #define    LVO_SPCeil    (-0x60)
  5068. + #endif
  5069. diff -c2 -d -P -r include_h/powerup/lvo/mathieeedoubbas_lvo.h includenew/powerup/lvo/mathieeedoubbas_lvo.h
  5070. *** include_h/powerup/lvo/mathieeedoubbas_lvo.h    Thu Jan  1 00:00:00 1970
  5071. --- includenew/powerup/lvo/mathieeedoubbas_lvo.h    Thu Nov  2 22:27:05 2000
  5072. ***************
  5073. *** 0 ****
  5074. --- 1,23 ----
  5075. + #ifndef _LVO_MATHIEEEDOUBBAS_LIB_H
  5076. + #define _LVO_MATHIEEEDOUBBAS_LIB_H
  5077. + /*
  5078. +  *  $VER: mathieeedoubbas_lvolib.h (08/03/97)
  5079. +  *
  5080. +  */
  5081. + #define    LVO_IEEEDPFix    (-0x1E)
  5082. + #define    LVO_IEEEDPFlt    (-0x24)
  5083. + #define    LVO_IEEEDPCmp    (-0x2A)
  5084. + #define    LVO_IEEEDPTst    (-0x30)
  5085. + #define    LVO_IEEEDPAbs    (-0x36)
  5086. + #define    LVO_IEEEDPNeg    (-0x3C)
  5087. + #define    LVO_IEEEDPAdd    (-0x42)
  5088. + #define    LVO_IEEEDPSub    (-0x48)
  5089. + #define    LVO_IEEEDPMul    (-0x4E)
  5090. + #define    LVO_IEEEDPDiv    (-0x54)
  5091. + #define    LVO_IEEEDPFloor    (-0x5A)
  5092. + #define    LVO_IEEEDPCeil    (-0x60)
  5093. + #endif
  5094. diff -c2 -d -P -r include_h/powerup/lvo/mathieeedoubtrans_lvo.h includenew/powerup/lvo/mathieeedoubtrans_lvo.h
  5095. *** include_h/powerup/lvo/mathieeedoubtrans_lvo.h    Thu Jan  1 00:00:00 1970
  5096. --- includenew/powerup/lvo/mathieeedoubtrans_lvo.h    Thu Nov  2 22:27:05 2000
  5097. ***************
  5098. *** 0 ****
  5099. --- 1,28 ----
  5100. + #ifndef _LVO_MATHIEEEDOUBTRANS_LIB_H
  5101. + #define _LVO_MATHIEEEDOUBTRANS_LIB_H
  5102. + /*
  5103. +  *  $VER: mathieeedoubtrans_lvolib.h (08/03/97)
  5104. +  *
  5105. +  */
  5106. + #define    LVO_IEEEDPAtan    (-0x1E)
  5107. + #define    LVO_IEEEDPSin    (-0x24)
  5108. + #define    LVO_IEEEDPCos    (-0x2A)
  5109. + #define    LVO_IEEEDPTan    (-0x30)
  5110. + #define    LVO_IEEEDPSincos    (-0x36)
  5111. + #define    LVO_IEEEDPSinh    (-0x3C)
  5112. + #define    LVO_IEEEDPCosh    (-0x42)
  5113. + #define    LVO_IEEEDPTanh    (-0x48)
  5114. + #define    LVO_IEEEDPExp    (-0x4E)
  5115. + #define    LVO_IEEEDPLog    (-0x54)
  5116. + #define    LVO_IEEEDPPow    (-0x5A)
  5117. + #define    LVO_IEEEDPSqrt    (-0x60)
  5118. + #define    LVO_IEEEDPTieee    (-0x66)
  5119. + #define    LVO_IEEEDPFieee    (-0x6C)
  5120. + #define    LVO_IEEEDPAsin    (-0x72)
  5121. + #define    LVO_IEEEDPAcos    (-0x78)
  5122. + #define    LVO_IEEEDPLog10    (-0x7E)
  5123. + #endif
  5124. diff -c2 -d -P -r include_h/powerup/lvo/mathieeesingbas_lvo.h includenew/powerup/lvo/mathieeesingbas_lvo.h
  5125. *** include_h/powerup/lvo/mathieeesingbas_lvo.h    Thu Jan  1 00:00:00 1970
  5126. --- includenew/powerup/lvo/mathieeesingbas_lvo.h    Thu Nov  2 22:27:05 2000
  5127. ***************
  5128. *** 0 ****
  5129. --- 1,23 ----
  5130. + #ifndef _LVO_MATHIEEESINGBAS_LIB_H
  5131. + #define _LVO_MATHIEEESINGBAS_LIB_H
  5132. + /*
  5133. +  *  $VER: mathieeesingbas_lvolib.h (08/03/97)
  5134. +  *
  5135. +  */
  5136. + #define    LVO_IEEESPFix    (-0x1E)
  5137. + #define    LVO_IEEESPFlt    (-0x24)
  5138. + #define    LVO_IEEESPCmp    (-0x2A)
  5139. + #define    LVO_IEEESPTst    (-0x30)
  5140. + #define    LVO_IEEESPAbs    (-0x36)
  5141. + #define    LVO_IEEESPNeg    (-0x3C)
  5142. + #define    LVO_IEEESPAdd    (-0x42)
  5143. + #define    LVO_IEEESPSub    (-0x48)
  5144. + #define    LVO_IEEESPMul    (-0x4E)
  5145. + #define    LVO_IEEESPDiv    (-0x54)
  5146. + #define    LVO_IEEESPFloor    (-0x5A)
  5147. + #define    LVO_IEEESPCeil    (-0x60)
  5148. + #endif
  5149. diff -c2 -d -P -r include_h/powerup/lvo/mathieeesingtrans_lvo.h includenew/powerup/lvo/mathieeesingtrans_lvo.h
  5150. *** include_h/powerup/lvo/mathieeesingtrans_lvo.h    Thu Jan  1 00:00:00 1970
  5151. --- includenew/powerup/lvo/mathieeesingtrans_lvo.h    Thu Nov  2 22:27:05 2000
  5152. ***************
  5153. *** 0 ****
  5154. --- 1,28 ----
  5155. + #ifndef _LVO_MATHIEEESINGTRANS_LIB_H
  5156. + #define _LVO_MATHIEEESINGTRANS_LIB_H
  5157. + /*
  5158. +  *  $VER: mathieeesingtrans_lvolib.h (08/03/97)
  5159. +  *
  5160. +  */
  5161. + #define    LVO_IEEESPAtan    (-0x1E)
  5162. + #define    LVO_IEEESPSin    (-0x24)
  5163. + #define    LVO_IEEESPCos    (-0x2A)
  5164. + #define    LVO_IEEESPTan    (-0x30)
  5165. + #define    LVO_IEEESPSincos    (-0x36)
  5166. + #define    LVO_IEEESPSinh    (-0x3C)
  5167. + #define    LVO_IEEESPCosh    (-0x42)
  5168. + #define    LVO_IEEESPTanh    (-0x48)
  5169. + #define    LVO_IEEESPExp    (-0x4E)
  5170. + #define    LVO_IEEESPLog    (-0x54)
  5171. + #define    LVO_IEEESPPow    (-0x5A)
  5172. + #define    LVO_IEEESPSqrt    (-0x60)
  5173. + #define    LVO_IEEESPTieee    (-0x66)
  5174. + #define    LVO_IEEESPFieee    (-0x6C)
  5175. + #define    LVO_IEEESPAsin    (-0x72)
  5176. + #define    LVO_IEEESPAcos    (-0x78)
  5177. + #define    LVO_IEEESPLog10    (-0x7E)
  5178. + #endif
  5179. diff -c2 -d -P -r include_h/powerup/lvo/mathtrans_lvo.h includenew/powerup/lvo/mathtrans_lvo.h
  5180. *** include_h/powerup/lvo/mathtrans_lvo.h    Thu Jan  1 00:00:00 1970
  5181. --- includenew/powerup/lvo/mathtrans_lvo.h    Thu Nov  2 22:27:05 2000
  5182. ***************
  5183. *** 0 ****
  5184. --- 1,28 ----
  5185. + #ifndef _LVO_MATHTRANS_LIB_H
  5186. + #define _LVO_MATHTRANS_LIB_H
  5187. + /*
  5188. +  *  $VER: mathtrans_lvolib.h (08/03/97)
  5189. +  *
  5190. +  */
  5191. + #define    LVO_SPAtan    (-0x1E)
  5192. + #define    LVO_SPSin    (-0x24)
  5193. + #define    LVO_SPCos    (-0x2A)
  5194. + #define    LVO_SPTan    (-0x30)
  5195. + #define    LVO_SPSincos    (-0x36)
  5196. + #define    LVO_SPSinh    (-0x3C)
  5197. + #define    LVO_SPCosh    (-0x42)
  5198. + #define    LVO_SPTanh    (-0x48)
  5199. + #define    LVO_SPExp    (-0x4E)
  5200. + #define    LVO_SPLog    (-0x54)
  5201. + #define    LVO_SPPow    (-0x5A)
  5202. + #define    LVO_SPSqrt    (-0x60)
  5203. + #define    LVO_SPTieee    (-0x66)
  5204. + #define    LVO_SPFieee    (-0x6C)
  5205. + #define    LVO_SPAsin    (-0x72)
  5206. + #define    LVO_SPAcos    (-0x78)
  5207. + #define    LVO_SPLog10    (-0x7E)
  5208. + #endif
  5209. diff -c2 -d -P -r include_h/powerup/lvo/misc_lvo.h includenew/powerup/lvo/misc_lvo.h
  5210. *** include_h/powerup/lvo/misc_lvo.h    Thu Jan  1 00:00:00 1970
  5211. --- includenew/powerup/lvo/misc_lvo.h    Thu Nov  2 22:27:04 2000
  5212. ***************
  5213. *** 0 ****
  5214. --- 1,13 ----
  5215. + #ifndef _LVO_MISC_LIB_H
  5216. + #define _LVO_MISC_LIB_H
  5217. + /*
  5218. +  *  $VER: misc_lvolib.h (08/03/97)
  5219. +  *
  5220. +  */
  5221. + #define    LVO_AllocMiscResource    (-0x6)
  5222. + #define    LVO_FreeMiscResource    (-0xC)
  5223. + #endif
  5224. diff -c2 -d -P -r include_h/powerup/lvo/muimaster_lvo.h includenew/powerup/lvo/muimaster_lvo.h
  5225. *** include_h/powerup/lvo/muimaster_lvo.h    Thu Jan  1 00:00:00 1970
  5226. --- includenew/powerup/lvo/muimaster_lvo.h    Thu Nov  2 22:27:04 2000
  5227. ***************
  5228. *** 0 ****
  5229. --- 1,18 ----
  5230. + #ifndef _LVO_MUIMASTER_LIB_H
  5231. + #define _LVO_MUIMASTER_LIB_H
  5232. + /*
  5233. +  *  $VER: muimaster_lvolib.h (08/03/97)
  5234. +  *
  5235. +  */
  5236. + #define    LVO_MUI_NewObjectA    (-0x1E)
  5237. + #define    LVO_MUI_DisposeObject    (-0x24)
  5238. + #define    LVO_MUI_RequestA    (-0x2A)
  5239. + #define    LVO_MUI_AllocAslRequest    (-0x30)
  5240. + #define    LVO_MUI_AslRequest    (-0x36)
  5241. + #define    LVO_MUI_FreeAslRequest    (-0x3C)
  5242. + #define    LVO_MUI_Error    (-0x42)
  5243. + #endif
  5244. diff -c2 -d -P -r include_h/powerup/lvo/nonvolatile_lvo.h includenew/powerup/lvo/nonvolatile_lvo.h
  5245. *** include_h/powerup/lvo/nonvolatile_lvo.h    Thu Jan  1 00:00:00 1970
  5246. --- includenew/powerup/lvo/nonvolatile_lvo.h    Thu Nov  2 22:27:04 2000
  5247. ***************
  5248. *** 0 ****
  5249. --- 1,18 ----
  5250. + #ifndef _LVO_NONVOLATILE_LIB_H
  5251. + #define _LVO_NONVOLATILE_LIB_H
  5252. + /*
  5253. +  *  $VER: nonvolatile_lvolib.h (08/03/97)
  5254. +  *
  5255. +  */
  5256. + #define    LVO_GetCopyNV    (-0x1E)
  5257. + #define    LVO_FreeNVData    (-0x24)
  5258. + #define    LVO_StoreNV    (-0x2A)
  5259. + #define    LVO_DeleteNV    (-0x30)
  5260. + #define    LVO_GetNVInfo    (-0x36)
  5261. + #define    LVO_GetNVList    (-0x3C)
  5262. + #define    LVO_SetNVProtection    (-0x42)
  5263. + #endif
  5264. diff -c2 -d -P -r include_h/powerup/lvo/potgo_lvo.h includenew/powerup/lvo/potgo_lvo.h
  5265. *** include_h/powerup/lvo/potgo_lvo.h    Thu Jan  1 00:00:00 1970
  5266. --- includenew/powerup/lvo/potgo_lvo.h    Thu Nov  2 22:27:04 2000
  5267. ***************
  5268. *** 0 ****
  5269. --- 1,14 ----
  5270. + #ifndef _LVO_POTGO_LIB_H
  5271. + #define _LVO_POTGO_LIB_H
  5272. + /*
  5273. +  *  $VER: potgo_lvolib.h (08/03/97)
  5274. +  *
  5275. +  */
  5276. + #define    LVO_AllocPotBits    (-0x6)
  5277. + #define    LVO_FreePotBits    (-0xC)
  5278. + #define    LVO_WritePotgo    (-0x12)
  5279. + #endif
  5280. diff -c2 -d -P -r include_h/powerup/lvo/ramdrive_lvo.h includenew/powerup/lvo/ramdrive_lvo.h
  5281. *** include_h/powerup/lvo/ramdrive_lvo.h    Thu Jan  1 00:00:00 1970
  5282. --- includenew/powerup/lvo/ramdrive_lvo.h    Thu Nov  2 22:27:04 2000
  5283. ***************
  5284. *** 0 ****
  5285. --- 1,13 ----
  5286. + #ifndef _LVO_RAMDRIVE_LIB_H
  5287. + #define _LVO_RAMDRIVE_LIB_H
  5288. + /*
  5289. +  *  $VER: ramdrive_lvolib.h (08/03/97)
  5290. +  *
  5291. +  */
  5292. + #define    LVO_KillRAD0    (-0x2A)
  5293. + #define    LVO_KillRAD    (-0x30)
  5294. + #endif
  5295. diff -c2 -d -P -r include_h/powerup/lvo/realtime_lvo.h includenew/powerup/lvo/realtime_lvo.h
  5296. *** include_h/powerup/lvo/realtime_lvo.h    Thu Jan  1 00:00:00 1970
  5297. --- includenew/powerup/lvo/realtime_lvo.h    Thu Nov  2 22:27:04 2000
  5298. ***************
  5299. *** 0 ****
  5300. --- 1,21 ----
  5301. + #ifndef _LVO_REALTIME_LIB_H
  5302. + #define _LVO_REALTIME_LIB_H
  5303. + /*
  5304. +  *  $VER: realtime_lvolib.h (08/03/97)
  5305. +  *
  5306. +  */
  5307. + #define    LVO_LockRealTime    (-0x1E)
  5308. + #define    LVO_UnlockRealTime    (-0x24)
  5309. + #define    LVO_CreatePlayerA    (-0x2A)
  5310. + #define    LVO_DeletePlayer    (-0x30)
  5311. + #define    LVO_SetPlayerAttrsA    (-0x36)
  5312. + #define    LVO_SetConductorState    (-0x3C)
  5313. + #define    LVO_ExternalSync    (-0x42)
  5314. + #define    LVO_NextConductor    (-0x48)
  5315. + #define    LVO_FindConductor    (-0x4E)
  5316. + #define    LVO_GetPlayerAttrsA    (-0x54)
  5317. + #endif
  5318. diff -c2 -d -P -r include_h/powerup/lvo/rexxsyslib_lvo.h includenew/powerup/lvo/rexxsyslib_lvo.h
  5319. *** include_h/powerup/lvo/rexxsyslib_lvo.h    Thu Jan  1 00:00:00 1970
  5320. --- includenew/powerup/lvo/rexxsyslib_lvo.h    Thu Nov  2 22:27:04 2000
  5321. ***************
  5322. *** 0 ****
  5323. --- 1,21 ----
  5324. + #ifndef _LVO_REXXSYSLIB_LIB_H
  5325. + #define _LVO_REXXSYSLIB_LIB_H
  5326. + /*
  5327. +  *  $VER: rexxsyslib_lvolib.h (08/03/97)
  5328. +  *
  5329. +  */
  5330. + #define    LVO_CreateArgstring    (-0x7E)
  5331. + #define    LVO_DeleteArgstring    (-0x84)
  5332. + #define    LVO_LengthArgstring    (-0x8A)
  5333. + #define    LVO_CreateRexxMsg    (-0x90)
  5334. + #define    LVO_DeleteRexxMsg    (-0x96)
  5335. + #define    LVO_ClearRexxMsg    (-0x9C)
  5336. + #define    LVO_FillRexxMsg    (-0xA2)
  5337. + #define    LVO_IsRexxMsg    (-0xA8)
  5338. + #define    LVO_LockRexxBase    (-0x1C2)
  5339. + #define    LVO_UnlockRexxBase    (-0x1C8)
  5340. + #endif
  5341. diff -c2 -d -P -r include_h/powerup/lvo/timer_lvo.h includenew/powerup/lvo/timer_lvo.h
  5342. *** include_h/powerup/lvo/timer_lvo.h    Thu Jan  1 00:00:00 1970
  5343. --- includenew/powerup/lvo/timer_lvo.h    Thu Nov  2 22:27:05 2000
  5344. ***************
  5345. *** 0 ****
  5346. --- 1,16 ----
  5347. + #ifndef _LVO_TIMER_LIB_H
  5348. + #define _LVO_TIMER_LIB_H
  5349. + /*
  5350. +  *  $VER: timer_lvolib.h (08/03/97)
  5351. +  *
  5352. +  */
  5353. + #define    LVO_AddTime    (-0x2A)
  5354. + #define    LVO_SubTime    (-0x30)
  5355. + #define    LVO_CmpTime    (-0x36)
  5356. + #define    LVO_ReadEClock    (-0x3C)
  5357. + #define    LVO_GetSysTime    (-0x42)
  5358. + #endif
  5359. diff -c2 -d -P -r include_h/powerup/lvo/translator_lvo.h includenew/powerup/lvo/translator_lvo.h
  5360. *** include_h/powerup/lvo/translator_lvo.h    Thu Jan  1 00:00:00 1970
  5361. --- includenew/powerup/lvo/translator_lvo.h    Thu Nov  2 22:27:05 2000
  5362. ***************
  5363. *** 0 ****
  5364. --- 1,12 ----
  5365. + #ifndef _LVO_TRANSLATOR_LIB_H
  5366. + #define _LVO_TRANSLATOR_LIB_H
  5367. + /*
  5368. +  *  $VER: translator_lvolib.h (08/03/97)
  5369. +  *
  5370. +  */
  5371. + #define    LVO_Translate    (-0x1E)
  5372. + #endif
  5373. diff -c2 -d -P -r include_h/powerup/lvo/utility_lvo.h includenew/powerup/lvo/utility_lvo.h
  5374. *** include_h/powerup/lvo/utility_lvo.h    Thu Jan  1 00:00:00 1970
  5375. --- includenew/powerup/lvo/utility_lvo.h    Thu Nov  2 22:27:05 2000
  5376. ***************
  5377. *** 0 ****
  5378. --- 1,49 ----
  5379. + #ifndef _LVO_UTILITY_LIB_H
  5380. + #define _LVO_UTILITY_LIB_H
  5381. + /*
  5382. +  *  $VER: utility_lvolib.h (08/03/97)
  5383. +  *
  5384. +  */
  5385. + #define    LVO_FindTagItem    (-0x1E)
  5386. + #define    LVO_GetTagData    (-0x24)
  5387. + #define    LVO_PackBoolTags    (-0x2A)
  5388. + #define    LVO_NextTagItem    (-0x30)
  5389. + #define    LVO_FilterTagChanges    (-0x36)
  5390. + #define    LVO_MapTags    (-0x3C)
  5391. + #define    LVO_AllocateTagItems    (-0x42)
  5392. + #define    LVO_CloneTagItems    (-0x48)
  5393. + #define    LVO_FreeTagItems    (-0x4E)
  5394. + #define    LVO_RefreshTagItemClones    (-0x54)
  5395. + #define    LVO_TagInArray    (-0x5A)
  5396. + #define    LVO_FilterTagItems    (-0x60)
  5397. + #define    LVO_CallHookPkt    (-0x66)
  5398. + #define    LVO_Amiga2Date    (-0x78)
  5399. + #define    LVO_Date2Amiga    (-0x7E)
  5400. + #define    LVO_CheckDate    (-0x84)
  5401. + #define    LVO_SMult32    (-0x8A)
  5402. + #define    LVO_UMult32    (-0x90)
  5403. + #define    LVO_SDivMod32    (-0x96)
  5404. + #define    LVO_UDivMod32    (-0x9C)
  5405. + #define    LVO_Stricmp    (-0xA2)
  5406. + #define    LVO_Strnicmp    (-0xA8)
  5407. + #define    LVO_ToUpper    (-0xAE)
  5408. + #define    LVO_ToLower    (-0xB4)
  5409. + #define    LVO_ApplyTagChanges    (-0xBA)
  5410. + #define    LVO_SMult64    (-0xC6)
  5411. + #define    LVO_UMult64    (-0xCC)
  5412. + #define    LVO_PackStructureTags    (-0xD2)
  5413. + #define    LVO_UnpackStructureTags    (-0xD8)
  5414. + #define    LVO_AddNamedObject    (-0xDE)
  5415. + #define    LVO_AllocNamedObjectA    (-0xE4)
  5416. + #define    LVO_AttemptRemNamedObject    (-0xEA)
  5417. + #define    LVO_FindNamedObject    (-0xF0)
  5418. + #define    LVO_FreeNamedObject    (-0xF6)
  5419. + #define    LVO_NamedObjectName    (-0xFC)
  5420. + #define    LVO_ReleaseNamedObject    (-0x102)
  5421. + #define    LVO_RemNamedObject    (-0x108)
  5422. + #define    LVO_GetUniqueID    (-0x10E)
  5423. + #endif
  5424. diff -c2 -d -P -r include_h/powerup/lvo/wb_lvo.h includenew/powerup/lvo/wb_lvo.h
  5425. *** include_h/powerup/lvo/wb_lvo.h    Thu Jan  1 00:00:00 1970
  5426. --- includenew/powerup/lvo/wb_lvo.h    Thu Nov  2 22:27:05 2000
  5427. ***************
  5428. *** 0 ****
  5429. --- 1,22 ----
  5430. + #ifndef _LVO_WB_LIB_H
  5431. + #define _LVO_WB_LIB_H
  5432. + /*
  5433. +  *  $VER: wb_lvolib.h (08/03/97)
  5434. +  *
  5435. +  */
  5436. + #define    LVO_wbPrivate1    (-0x1E)
  5437. + #define    LVO_wbPrivate2    (-0x24)
  5438. + #define    LVO_wbPrivate3    (-0x2A)
  5439. + #define    LVO_AddAppWindowA    (-0x30)
  5440. + #define    LVO_RemoveAppWindow    (-0x36)
  5441. + #define    LVO_AddAppIconA    (-0x3C)
  5442. + #define    LVO_RemoveAppIcon    (-0x42)
  5443. + #define    LVO_AddAppMenuItemA    (-0x48)
  5444. + #define    LVO_RemoveAppMenuItem    (-0x4E)
  5445. + #define    LVO_wbPrivate4    (-0x54)
  5446. + #define    LVO_WBInfo    (-0x5A)
  5447. + #endif
  5448. diff -c2 -d -P -r include_h/powerup/misc/ppcsymbols.i includenew/powerup/misc/ppcsymbols.i
  5449. *** include_h/powerup/misc/ppcsymbols.i    Thu Jan  1 00:00:00 1970
  5450. --- includenew/powerup/misc/ppcsymbols.i    Thu Nov  2 22:27:03 2000
  5451. ***************
  5452. *** 0 ****
  5453. --- 1,295 ----
  5454. +     IFND    ppcsymbols_i
  5455. + ppcsymbols_i    set    1
  5456. +     include    "exec/types.i"
  5457. + *
  5458. + * Define all the standard PPC register mnemonics
  5459. + *
  5460. + gpr0    equrp    0
  5461. + gpr1    equrp    1
  5462. + gpr2    equrp    2
  5463. + gpr3    equrp    3
  5464. + gpr4    equrp    4
  5465. + gpr5    equrp    5
  5466. + gpr6    equrp    6
  5467. + gpr7    equrp    7
  5468. + gpr8    equrp    8
  5469. + gpr9    equrp    9
  5470. + gpr10    equrp    10
  5471. + gpr11    equrp    11
  5472. + gpr12    equrp    12
  5473. + gpr13    equrp    13
  5474. + gpr14    equrp    14
  5475. + gpr15    equrp    15
  5476. + gpr16    equrp    16
  5477. + gpr17    equrp    17
  5478. + gpr18    equrp    18
  5479. + gpr19    equrp    19
  5480. + gpr20    equrp    20
  5481. + gpr21    equrp    21
  5482. + gpr22    equrp    22
  5483. + gpr23    equrp    23
  5484. + gpr24    equrp    24
  5485. + gpr25    equrp    25
  5486. + gpr26    equrp    26
  5487. + gpr27    equrp    27
  5488. + gpr28    equrp    28
  5489. + gpr29    equrp    29
  5490. + gpr30    equrp    30
  5491. + gpr31    equrp    31
  5492. + r0    equrp    0
  5493. + r1    equrp    1
  5494. + r2    equrp    2
  5495. + r3    equrp    3
  5496. + r4    equrp    4
  5497. + r5    equrp    5
  5498. + r6    equrp    6
  5499. + r7    equrp    7
  5500. + r8    equrp    8
  5501. + r9    equrp    9
  5502. + r10    equrp    10
  5503. + r11    equrp    11
  5504. + r12    equrp    12
  5505. + r13    equrp    13
  5506. + r14    equrp    14
  5507. + r15    equrp    15
  5508. + r16    equrp    16
  5509. + r17    equrp    17
  5510. + r18    equrp    18
  5511. + r19    equrp    19
  5512. + r20    equrp    20
  5513. + r21    equrp    21
  5514. + r22    equrp    22
  5515. + r23    equrp    23
  5516. + r24    equrp    24
  5517. + r25    equrp    25
  5518. + r26    equrp    26
  5519. + r27    equrp    27
  5520. + r28    equrp    28
  5521. + r29    equrp    29
  5522. + r30    equrp    30
  5523. + r31    equrp    31
  5524. + fpr0    fequrp    0
  5525. + fpr1    fequrp    1
  5526. + fpr2    fequrp    2
  5527. + fpr3    fequrp    3
  5528. + fpr4    fequrp    4
  5529. + fpr5    fequrp    5
  5530. + fpr6    fequrp    6
  5531. + fpr7    fequrp    7
  5532. + fpr8    fequrp    8
  5533. + fpr9    fequrp    9
  5534. + fpr10    fequrp    10
  5535. + fpr11    fequrp    11
  5536. + fpr12    fequrp    12
  5537. + fpr13    fequrp    13
  5538. + fpr14    fequrp    14
  5539. + fpr15    fequrp    15
  5540. + fpr16    fequrp    16
  5541. + fpr17    fequrp    17
  5542. + fpr18    fequrp    18
  5543. + fpr19    fequrp    19
  5544. + fpr20    fequrp    20
  5545. + fpr21    fequrp    21
  5546. + fpr22    fequrp    22
  5547. + fpr23    fequrp    23
  5548. + fpr24    fequrp    24
  5549. + fpr25    fequrp    25
  5550. + fpr26    fequrp    26
  5551. + fpr27    fequrp    27
  5552. + fpr28    fequrp    28
  5553. + fpr29    fequrp    29
  5554. + fpr30    fequrp    30
  5555. + fpr31    fequrp    31
  5556. + f0    fequrp    0
  5557. + f1    fequrp    1
  5558. + f2    fequrp    2
  5559. + f3    fequrp    3
  5560. + f4    fequrp    4
  5561. + f5    fequrp    5
  5562. + f6    fequrp    6
  5563. + f7    fequrp    7
  5564. + f8    fequrp    8
  5565. + f9    fequrp    9
  5566. + f10    fequrp    10
  5567. + f11    fequrp    11
  5568. + f12    fequrp    12
  5569. + f13    fequrp    13
  5570. + f14    fequrp    14
  5571. + f15    fequrp    15
  5572. + f16    fequrp    16
  5573. + f17    fequrp    17
  5574. + f18    fequrp    18
  5575. + f19    fequrp    19
  5576. + f20    fequrp    20
  5577. + f21    fequrp    21
  5578. + f22    fequrp    22
  5579. + f23    fequrp    23
  5580. + f24    fequrp    24
  5581. + f25    fequrp    25
  5582. + f26    fequrp    26
  5583. + f27    fequrp    27
  5584. + f28    fequrp    28
  5585. + f29    fequrp    29
  5586. + f30    fequrp    30
  5587. + f31    fequrp    31
  5588. + *
  5589. + * Define some standard PPC mappings
  5590. + *
  5591. + REG_ACU    equrp    0
  5592. + REG_SP    equrp    1
  5593. + REG_SSP    equrp    1
  5594. + REG_TOC    equrp    2
  5595. + *
  5596. + * Define some standard Amiga 680xx<->PPC mappings
  5597. + *
  5598. + REG_D0    equrp    3
  5599. + REG_D1    equrp    4
  5600. + REG_D2    equrp    5
  5601. + REG_D3    equrp    6
  5602. + REG_D4    equrp    7
  5603. + REG_D5    equrp    8
  5604. + REG_D6    equrp    9
  5605. + REG_D7    equrp    10
  5606. + REG_A0    equrp    11
  5607. + REG_A1    equrp    12
  5608. + REG_A2    equrp    13
  5609. + REG_A3    equrp    14
  5610. + REG_A4    equrp    15
  5611. + REG_A5    equrp    16
  5612. + REG_A6    equrp    17
  5613. + REG_A7    equrp    1
  5614. + *
  5615. + * Define unused PPC registers for orthogonality
  5616. + * and avoid errors during the assembler programming
  5617. + * by using mixed register mappings
  5618. + *
  5619. + REG_X0    equrp    18
  5620. + REG_X1    equrp    19
  5621. + REG_X2    equrp    20
  5622. + REG_X3    equrp    21
  5623. + REG_X4    equrp    22
  5624. + REG_X5    equrp    23
  5625. + REG_X6    equrp    24
  5626. + REG_X7    equrp    25
  5627. + REG_X8    equrp    26
  5628. + REG_X9    equrp    27
  5629. + REG_X10    equrp    28
  5630. + REG_X11    equrp    29
  5631. + REG_X12    equrp    30
  5632. + REG_X13    equrp    31
  5633. + PPC601_Version    =    1
  5634. + PPC603_Version    =    3
  5635. + PPC603e_Version    =    6
  5636. + ;MSRF_SF    =(63-0)        ; 63 64Bit Mode!!!!
  5637. + MSRF_VEC    =$02000000    ; 6 VMX Vector engine
  5638. + MSRF_POW    =$40000        ; 13 Power Management
  5639. + MSRF_TGPR    =$20000        ; 14 Temporary GPR remapping(603e)
  5640. + MSRF_ILE    =$10000        ; 15 Exception Little Endian Mode
  5641. + MSRF_EE        =$8000        ; 16 External Interrupt Enable
  5642. + MSRF_PR        =$4000        ; 17 Priviledge Level
  5643. + MSRF_FP        =$2000        ; 18 Floating Point available
  5644. + MSRF_ME        =$1000        ; 19 Machine Check enable
  5645. + MSRF_FE0    =$800        ; 20 Floating Point Exception Mode 0
  5646. + MSRF_SE        =$400        ; 21 Single Step enable
  5647. + MSRF_BE        =$200        ; 22 Branch Trace enable
  5648. + MSRF_FE1    =$100        ; 23 Floating Point Exception Mode 1
  5649. + MSRF_RESERVED3    =$80        ; 24 Reserved
  5650. + MSRF_IP        =$40        ; 25 Exception Prefix
  5651. + MSRF_IR        =$20        ; 26 Instruction address translation
  5652. + MSRF_DR        =$10        ; 27 Data address translation
  5653. + MSRF_RESERVED2    =$8
  5654. + MSRF_604_PM    =$4        ; 29 Performance Monitor marked mode
  5655. + MSRF_RI        =$2        ; 30 Recoverable exception
  5656. + MSRF_LE        =$1        ; 31 Little endian mode
  5657. + HID0_603_F_EMCP        =$80000000    ;0 Enable Machine Check pin
  5658. + HID0_603_F_RESERVED1    =$40000000    ;1 Reserved
  5659. + HID0_603_F_EBA        =$20000000    ;2 Enable Bus address parity checking
  5660. + HID0_603_F_EBD        =$10000000    ;3 Enable Bus data parity checking
  5661. + HID0_603_F_SBCLK    =$8000000    ;4 Select Bus clock for test clock pin
  5662. + HID0_603_F_EICE        =$4000000    ;5 Enable ICE outputs-pipeling tracking support
  5663. + HID0_603_F_ECLK        =$2000000    ;6 Enable external test clock pin
  5664. + HID0_603_F_PAR        =$1000000    ;7 Disable precharge of ARTRY and shared signals
  5665. + HID0_603_F_DOZE        =$800000    ;8 Doze Mode-PLL=time base and snooping alive
  5666. + HID0_603_F_NAP        =$400000    ;9 Nap Mode-PLL=time base active
  5667. + HID0_603_F_SLEEP    =$200000    ;10 Sleep Mode-no external clock required
  5668. + HID0_603_F_DPM        =$100000    ;11 Enable dynamic Power Management
  5669. + HID0_603_F_RISEG    =$80000        ;12 Reserved for Test
  5670. + HID0_603_F_RESERVED10    =$40000        ;13
  5671. + HID0_603_F_RESERVED9    =$20000        ;14
  5672. + HID0_603_F_NHR        =$10000        ;15 Not Hard Reset
  5673. + HID0_603_F_ICE        =$8000        ;16 Enable Instruction Cache
  5674. + HID0_603_F_DCE        =$4000        ;17 Enable Data Cache
  5675. + HID0_603_F_ILOCK    =$2000        ;18 Instruction Cache Lock
  5676. + HID0_603_F_DLOCK    =$1000        ;19 Data Cache Lock
  5677. + HID0_603_F_ICFI        =$800        ;20 Instruction Cache flush invalidate
  5678. + HID0_603_F_DCFI        =$400        ;21 Data Cache flush invalidate
  5679. + HID0_603_F_RESERVED22    =$200        ;22
  5680. + HID0_603_F_RESERVED23    =$100        ;23
  5681. + HID0_603_F_RESERVED24    =$80        ;24
  5682. + HID0_603_F_RESERVED25    =$40        ;25
  5683. + HID0_603_F_RESERVED26    =$20        ;26
  5684. + HID0_603_F_FBIOB    =$10        ;27 Force Branch indirect on bus
  5685. + HID0_603_F_RESERVED28    =$8        ;28
  5686. + HID0_603_F_RESERVED29    =$4        ;29
  5687. + HID0_603_F_RESERVED30    =$2        ;30
  5688. + HID0_603_F_NOOPTI    =$1        ;31 No-op touch instructions
  5689. + HID0_604_F_EMCP        =$80000000    ;0 Enable Machine Check pin
  5690. + HID0_604_F_ECPC        =$40000000    ;1 Enable Cache Parity Checking(604e)
  5691. + HID0_604_F_EBA        =$20000000    ;2 Enable Bus address parity checking
  5692. + HID0_604_F_EBD        =$10000000    ;3 Enable Bus data parity checking
  5693. + HID0_604_F_RESERVED4    =$8000000    ;4 Reserved
  5694. + HID0_604_F_RESERVED5    =$4000000    ;5 Reserved
  5695. + HID0_604_F_RESERVED6    =$2000000    ;6 Reserved
  5696. + HID0_604_F_DSS        =$1000000    ;7 Disable Snoop response high state restore
  5697. + HID0_604_F_RESERBED8    =$800000    ;8 Reserved
  5698. + HID0_604_F_RESERBED9    =$400000    ;9  Reserved
  5699. + HID0_604_F_RESERBED10    =$200000    ;10 Reserved
  5700. + HID0_604_F_RESERBED11    =$100000    ;11 Reserved
  5701. + HID0_604_F_RESERBED12    =$80000        ;12 Reserved
  5702. + HID0_604_F_RESERVED13    =$40000        ;13 Reserved
  5703. + HID0_604_F_RESERVED14    =$20000        ;14 Reserved
  5704. + HID0_604_F_NHR        =$10000        ;15 Not Hard Reset
  5705. + HID0_604_F_ICE        =$8000        ;16 Enable Instruction Cache
  5706. + HID0_604_F_DCE        =$4000        ;17 Enable Data Cache
  5707. + HID0_604_F_ILOCK    =$2000        ;18 Instruction Cache Lock
  5708. + HID0_604_F_DLOCK    =$1000        ;19 Data Cache Lock
  5709. + HID0_604_F_ICFI        =$800        ;20 Instruction Cache flush invalidate
  5710. + HID0_604_F_DCFI        =$400        ;21 Data Cache flush invalidate
  5711. + HID0_604_F_RESERVED22    =$200        ;22 Reserved
  5712. + HID0_604E_F_CIFE    =$100        ;23 Coherent Instruction fetch enable(604e only)
  5713. + HID0_604_F_DSIE        =$80        ;24 Serial Instruction execution disable
  5714. + HID0_604_F_RESERVED25    =$40        ;25
  5715. + HID0_604_F_RESERVED26    =$20        ;26
  5716. + HID0_604_F_FBIOB    =$10        ;27 Force Branch indirect on bus
  5717. + HID0_604_F_RESERVED28    =$8        ;28
  5718. + HID0_604_F_EBHT        =$4        ;29 Branch History Table enable
  5719. + HID0_604_F_RESERVED30    =$2        ;30
  5720. + HID0_604E_F_BTAC    =$2        ;30 64bit entry branch target cache disable(with rev 1.1 Mach5 this doesn`t work..DISABLE)
  5721. + HID0_604_F_RESERVED31    =$1        ;31 Reserved
  5722. +     ENDC
  5723. diff -c2 -d -P -r include_h/powerup/ppcdisslib/ppcdiss.h includenew/powerup/ppcdisslib/ppcdiss.h
  5724. *** include_h/powerup/ppcdisslib/ppcdiss.h    Thu Jan  1 00:00:00 1970
  5725. --- includenew/powerup/ppcdisslib/ppcdiss.h    Thu Nov  2 22:27:07 2000
  5726. ***************
  5727. *** 0 ****
  5728. --- 1,18 ----
  5729. + #ifndef POWERUP_PPCDISSLIB_PPCDISS_H
  5730. + #define POWERUP_PPCDISSLIB_PPCDISS_H
  5731. + #define DISASS_BUFFER        0x84000000
  5732. + #define DISASS_DEFINEPC        0x84000001
  5733. + #define DISASS_NOADRINC        0x84000002
  5734. + #define DISASS_RELADDR        0x84000003
  5735. + #define DISASS_SHOWDATA        0x84000004
  5736. + #define DISASS_PRESCANSIZE    0x84000005
  5737. + #define DISASS_USEDC68KDESC    0x84000006
  5738. + #define DISASS_ADDRESSHOOK    0x84000007
  5739. + #define DISASS_SYMBOLHOOK    0x84000008
  5740. + #define DISASS_RELOCHOOK    0x84000009
  5741. + #define DISASS_SHOWADDRESS    0x8400000a
  5742. + #define DISASS_GETDATAHOOK    0x8400000b
  5743. + #endif
  5744. diff -c2 -d -P -r include_h/powerup/ppcinline/amigaguide.h includenew/powerup/ppcinline/amigaguide.h
  5745. *** include_h/powerup/ppcinline/amigaguide.h    Thu Jan  1 00:00:00 1970
  5746. --- includenew/powerup/ppcinline/amigaguide.h    Thu Nov  2 22:27:10 2000
  5747. ***************
  5748. *** 0 ****
  5749. --- 1,126 ----
  5750. + /* Automatically generated header! Do not edit! */
  5751. + #ifndef _PPCINLINE_AMIGAGUIDE_H
  5752. + #define _PPCINLINE_AMIGAGUIDE_H
  5753. + #ifndef __PPCINLINE_MACROS_H
  5754. + #include <powerup/ppcinline/macros.h>
  5755. + #endif /* !__PPCINLINE_MACROS_H */
  5756. + #ifndef AMIGAGUIDE_BASE_NAME
  5757. + #define AMIGAGUIDE_BASE_NAME AmigaGuideBase
  5758. + #endif /* !AMIGAGUIDE_BASE_NAME */
  5759. + #define AddAmigaGuideHostA(h, name, attrs) \
  5760. +     LP3(0x8a, APTR, AddAmigaGuideHostA, struct Hook *, h, a0, STRPTR, name, d0, struct TagItem *, attrs, a1, \
  5761. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5762. + #ifndef NO_PPCINLINE_STDARG
  5763. + #define AddAmigaGuideHost(a0, a1, tags...) \
  5764. +     ({ULONG _tags[] = { tags }; AddAmigaGuideHostA((a0), (a1), (struct TagItem *)_tags);})
  5765. + #endif /* !NO_PPCINLINE_STDARG */
  5766. + #define AmigaGuideSignal(cl) \
  5767. +     LP1(0x48, ULONG, AmigaGuideSignal, APTR, cl, a0, \
  5768. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5769. + #define CloseAmigaGuide(cl) \
  5770. +     LP1NR(0x42, CloseAmigaGuide, APTR, cl, a0, \
  5771. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5772. + #define ExpungeXRef() \
  5773. +     LP0NR(0x84, ExpungeXRef, \
  5774. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5775. + #define GetAmigaGuideAttr(tag, cl, storage) \
  5776. +     LP3(0x72, LONG, GetAmigaGuideAttr, Tag, tag, d0, APTR, cl, a0, ULONG *, storage, a1, \
  5777. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5778. + #define GetAmigaGuideMsg(cl) \
  5779. +     LP1(0x4e, struct AmigaGuideMsg *, GetAmigaGuideMsg, APTR, cl, a0, \
  5780. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5781. + #define GetAmigaGuideString(id) \
  5782. +     LP1(0xd2, STRPTR, GetAmigaGuideString, long, id, d0, \
  5783. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5784. + #define LoadXRef(lock, name) \
  5785. +     LP2(0x7e, LONG, LoadXRef, BPTR, lock, a0, STRPTR, name, a1, \
  5786. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5787. + #define LockAmigaGuideBase(handle) \
  5788. +     LP1(0x24, LONG, LockAmigaGuideBase, APTR, handle, a0, \
  5789. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5790. + #define OpenAmigaGuideA(nag, attrs) \
  5791. +     LP2(0x36, APTR, OpenAmigaGuideA, struct NewAmigaGuide *, nag, a0, struct TagItem *, attrs, a1, \
  5792. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5793. + #ifndef NO_PPCINLINE_STDARG
  5794. + #define OpenAmigaGuide(a0, tags...) \
  5795. +     ({ULONG _tags[] = { tags }; OpenAmigaGuideA((a0), (struct TagItem *)_tags);})
  5796. + #endif /* !NO_PPCINLINE_STDARG */
  5797. + #define OpenAmigaGuideAsyncA(nag, attrs) \
  5798. +     LP2(0x3c, APTR, OpenAmigaGuideAsyncA, struct NewAmigaGuide *, nag, a0, struct TagItem *, attrs, d0, \
  5799. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5800. + #ifndef NO_PPCINLINE_STDARG
  5801. + #define OpenAmigaGuideAsync(a0, tags...) \
  5802. +     ({ULONG _tags[] = { tags }; OpenAmigaGuideAsyncA((a0), (struct TagItem *)_tags);})
  5803. + #endif /* !NO_PPCINLINE_STDARG */
  5804. + #define RemoveAmigaGuideHostA(hh, attrs) \
  5805. +     LP2(0x90, LONG, RemoveAmigaGuideHostA, APTR, hh, a0, struct TagItem *, attrs, a1, \
  5806. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5807. + #ifndef NO_PPCINLINE_STDARG
  5808. + #define RemoveAmigaGuideHost(a0, tags...) \
  5809. +     ({ULONG _tags[] = { tags }; RemoveAmigaGuideHostA((a0), (struct TagItem *)_tags);})
  5810. + #endif /* !NO_PPCINLINE_STDARG */
  5811. + #define ReplyAmigaGuideMsg(amsg) \
  5812. +     LP1NR(0x54, ReplyAmigaGuideMsg, struct AmigaGuideMsg *, amsg, a0, \
  5813. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5814. + #define SendAmigaGuideCmdA(cl, cmd, attrs) \
  5815. +     LP3(0x66, LONG, SendAmigaGuideCmdA, APTR, cl, a0, STRPTR, cmd, d0, struct TagItem *, attrs, d1, \
  5816. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5817. + #ifndef NO_PPCINLINE_STDARG
  5818. + #define SendAmigaGuideCmd(a0, a1, tags...) \
  5819. +     ({ULONG _tags[] = { tags }; SendAmigaGuideCmdA((a0), (a1), (struct TagItem *)_tags);})
  5820. + #endif /* !NO_PPCINLINE_STDARG */
  5821. + #define SendAmigaGuideContextA(cl, attrs) \
  5822. +     LP2(0x60, LONG, SendAmigaGuideContextA, APTR, cl, a0, struct TagItem *, attrs, d0, \
  5823. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5824. + #ifndef NO_PPCINLINE_STDARG
  5825. + #define SendAmigaGuideContext(a0, tags...) \
  5826. +     ({ULONG _tags[] = { tags }; SendAmigaGuideContextA((a0), (struct TagItem *)_tags);})
  5827. + #endif /* !NO_PPCINLINE_STDARG */
  5828. + #define SetAmigaGuideAttrsA(cl, attrs) \
  5829. +     LP2(0x6c, LONG, SetAmigaGuideAttrsA, APTR, cl, a0, struct TagItem *, attrs, a1, \
  5830. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5831. + #ifndef NO_PPCINLINE_STDARG
  5832. + #define SetAmigaGuideAttrs(a0, tags...) \
  5833. +     ({ULONG _tags[] = { tags }; SetAmigaGuideAttrsA((a0), (struct TagItem *)_tags);})
  5834. + #endif /* !NO_PPCINLINE_STDARG */
  5835. + #define SetAmigaGuideContextA(cl, id, attrs) \
  5836. +     LP3(0x5a, LONG, SetAmigaGuideContextA, APTR, cl, a0, unsigned long, id, d0, struct TagItem *, attrs, d1, \
  5837. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5838. + #ifndef NO_PPCINLINE_STDARG
  5839. + #define SetAmigaGuideContext(a0, a1, tags...) \
  5840. +     ({ULONG _tags[] = { tags }; SetAmigaGuideContextA((a0), (a1), (struct TagItem *)_tags);})
  5841. + #endif /* !NO_PPCINLINE_STDARG */
  5842. + #define UnlockAmigaGuideBase(key) \
  5843. +     LP1NR(0x2a, UnlockAmigaGuideBase, long, key, d0, \
  5844. +     , AMIGAGUIDE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5845. + #endif /* !_PPCINLINE_AMIGAGUIDE_H */
  5846. diff -c2 -d -P -r include_h/powerup/ppcinline/asl.h includenew/powerup/ppcinline/asl.h
  5847. *** include_h/powerup/ppcinline/asl.h    Thu Jan  1 00:00:00 1970
  5848. --- includenew/powerup/ppcinline/asl.h    Thu Nov  2 22:27:10 2000
  5849. ***************
  5850. *** 0 ****
  5851. --- 1,48 ----
  5852. + /* Automatically generated header! Do not edit! */
  5853. + #ifndef _PPCINLINE_ASL_H
  5854. + #define _PPCINLINE_ASL_H
  5855. + #ifndef __PPCINLINE_MACROS_H
  5856. + #include <powerup/ppcinline/macros.h>
  5857. + #endif /* !__PPCINLINE_MACROS_H */
  5858. + #ifndef ASL_BASE_NAME
  5859. + #define ASL_BASE_NAME AslBase
  5860. + #endif /* !ASL_BASE_NAME */
  5861. + #define AllocAslRequest(reqType, tagList) \
  5862. +     LP2(0x30, APTR, AllocAslRequest, unsigned long, reqType, d0, struct TagItem *, tagList, a0, \
  5863. +     , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5864. + #ifndef NO_PPCINLINE_STDARG
  5865. + #define AllocAslRequestTags(a0, tags...) \
  5866. +     ({ULONG _tags[] = { tags }; AllocAslRequest((a0), (struct TagItem *)_tags);})
  5867. + #endif /* !NO_PPCINLINE_STDARG */
  5868. + #define AllocFileRequest() \
  5869. +     LP0(0x1e, struct FileRequester *, AllocFileRequest, \
  5870. +     , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5871. + #define AslRequest(requester, tagList) \
  5872. +     LP2(0x3c, BOOL, AslRequest, APTR, requester, a0, struct TagItem *, tagList, a1, \
  5873. +     , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5874. + #ifndef NO_PPCINLINE_STDARG
  5875. + #define AslRequestTags(a0, tags...) \
  5876. +     ({ULONG _tags[] = { tags }; AslRequest((a0), (struct TagItem *)_tags);})
  5877. + #endif /* !NO_PPCINLINE_STDARG */
  5878. + #define FreeAslRequest(requester) \
  5879. +     LP1NR(0x36, FreeAslRequest, APTR, requester, a0, \
  5880. +     , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5881. + #define FreeFileRequest(fileReq) \
  5882. +     LP1NR(0x24, FreeFileRequest, struct FileRequester *, fileReq, a0, \
  5883. +     , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5884. + #define RequestFile(fileReq) \
  5885. +     LP1(0x2a, BOOL, RequestFile, struct FileRequester *, fileReq, a0, \
  5886. +     , ASL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5887. + #endif /* !_PPCINLINE_ASL_H */
  5888. diff -c2 -d -P -r include_h/powerup/ppcinline/battclock.h includenew/powerup/ppcinline/battclock.h
  5889. *** include_h/powerup/ppcinline/battclock.h    Thu Jan  1 00:00:00 1970
  5890. --- includenew/powerup/ppcinline/battclock.h    Thu Nov  2 22:27:10 2000
  5891. ***************
  5892. *** 0 ****
  5893. --- 1,26 ----
  5894. + /* Automatically generated header! Do not edit! */
  5895. + #ifndef _PPCINLINE_BATTCLOCK_H
  5896. + #define _PPCINLINE_BATTCLOCK_H
  5897. + #ifndef __PPCINLINE_MACROS_H
  5898. + #include <powerup/ppcinline/macros.h>
  5899. + #endif /* !__PPCINLINE_MACROS_H */
  5900. + #ifndef BATTCLOCK_BASE_NAME
  5901. + #define BATTCLOCK_BASE_NAME BattClockBase
  5902. + #endif /* !BATTCLOCK_BASE_NAME */
  5903. + #define ReadBattClock() \
  5904. +     LP0(0xc, ULONG, ReadBattClock, \
  5905. +     , BATTCLOCK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5906. + #define ResetBattClock() \
  5907. +     LP0NR(0x6, ResetBattClock, \
  5908. +     , BATTCLOCK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5909. + #define WriteBattClock(time) \
  5910. +     LP1NR(0x12, WriteBattClock, unsigned long, time, d0, \
  5911. +     , BATTCLOCK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5912. + #endif /* !_PPCINLINE_BATTCLOCK_H */
  5913. diff -c2 -d -P -r include_h/powerup/ppcinline/battmem.h includenew/powerup/ppcinline/battmem.h
  5914. *** include_h/powerup/ppcinline/battmem.h    Thu Jan  1 00:00:00 1970
  5915. --- includenew/powerup/ppcinline/battmem.h    Thu Nov  2 22:27:10 2000
  5916. ***************
  5917. *** 0 ****
  5918. --- 1,30 ----
  5919. + /* Automatically generated header! Do not edit! */
  5920. + #ifndef _PPCINLINE_BATTMEM_H
  5921. + #define _PPCINLINE_BATTMEM_H
  5922. + #ifndef __PPCINLINE_MACROS_H
  5923. + #include <powerup/ppcinline/macros.h>
  5924. + #endif /* !__PPCINLINE_MACROS_H */
  5925. + #ifndef BATTMEM_BASE_NAME
  5926. + #define BATTMEM_BASE_NAME BattMemBase
  5927. + #endif /* !BATTMEM_BASE_NAME */
  5928. + #define ObtainBattSemaphore() \
  5929. +     LP0NR(0x6, ObtainBattSemaphore, \
  5930. +     , BATTMEM_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5931. + #define ReadBattMem(buffer, offset, length) \
  5932. +     LP3(0x12, ULONG, ReadBattMem, APTR, buffer, a0, unsigned long, offset, d0, unsigned long, length, d1, \
  5933. +     , BATTMEM_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5934. + #define ReleaseBattSemaphore() \
  5935. +     LP0NR(0xc, ReleaseBattSemaphore, \
  5936. +     , BATTMEM_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5937. + #define WriteBattMem(buffer, offset, length) \
  5938. +     LP3(0x18, ULONG, WriteBattMem, APTR, buffer, a0, unsigned long, offset, d0, unsigned long, length, d1, \
  5939. +     , BATTMEM_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5940. + #endif /* !_PPCINLINE_BATTMEM_H */
  5941. diff -c2 -d -P -r include_h/powerup/ppcinline/bullet.h includenew/powerup/ppcinline/bullet.h
  5942. *** include_h/powerup/ppcinline/bullet.h    Thu Jan  1 00:00:00 1970
  5943. --- includenew/powerup/ppcinline/bullet.h    Thu Nov  2 22:27:11 2000
  5944. ***************
  5945. *** 0 ****
  5946. --- 1,49 ----
  5947. + /* Automatically generated header! Do not edit! */
  5948. + #ifndef _PPCINLINE_BULLET_H
  5949. + #define _PPCINLINE_BULLET_H
  5950. + #ifndef __PPCINLINE_MACROS_H
  5951. + #include <powerup/ppcinline/macros.h>
  5952. + #endif /* !__PPCINLINE_MACROS_H */
  5953. + #ifndef BULLET_BASE_NAME
  5954. + #define BULLET_BASE_NAME BulletBase
  5955. + #endif /* !BULLET_BASE_NAME */
  5956. + #define CloseEngine(glyphEngine) \
  5957. +     LP1NR(0x24, CloseEngine, struct GlyphEngine *, glyphEngine, a0, \
  5958. +     , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5959. + #define ObtainInfoA(glyphEngine, tagList) \
  5960. +     LP2(0x30, ULONG, ObtainInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \
  5961. +     , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5962. + #ifndef NO_PPCINLINE_STDARG
  5963. + #define ObtainInfo(a0, tags...) \
  5964. +     ({ULONG _tags[] = { tags }; ObtainInfoA((a0), (struct TagItem *)_tags);})
  5965. + #endif /* !NO_PPCINLINE_STDARG */
  5966. + #define OpenEngine() \
  5967. +     LP0(0x1e, struct GlyphEngine *, OpenEngine, \
  5968. +     , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5969. + #define ReleaseInfoA(glyphEngine, tagList) \
  5970. +     LP2(0x36, ULONG, ReleaseInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \
  5971. +     , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5972. + #ifndef NO_PPCINLINE_STDARG
  5973. + #define ReleaseInfo(a0, tags...) \
  5974. +     ({ULONG _tags[] = { tags }; ReleaseInfoA((a0), (struct TagItem *)_tags);})
  5975. + #endif /* !NO_PPCINLINE_STDARG */
  5976. + #define SetInfoA(glyphEngine, tagList) \
  5977. +     LP2(0x2a, ULONG, SetInfoA, struct GlyphEngine *, glyphEngine, a0, struct TagItem *, tagList, a1, \
  5978. +     , BULLET_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  5979. + #ifndef NO_PPCINLINE_STDARG
  5980. + #define SetInfo(a0, tags...) \
  5981. +     ({ULONG _tags[] = { tags }; SetInfoA((a0), (struct TagItem *)_tags);})
  5982. + #endif /* !NO_PPCINLINE_STDARG */
  5983. + #endif /* !_PPCINLINE_BULLET_H */
  5984. diff -c2 -d -P -r include_h/powerup/ppcinline/cardres.h includenew/powerup/ppcinline/cardres.h
  5985. *** include_h/powerup/ppcinline/cardres.h    Thu Jan  1 00:00:00 1970
  5986. --- includenew/powerup/ppcinline/cardres.h    Thu Nov  2 22:27:11 2000
  5987. ***************
  5988. *** 0 ****
  5989. --- 1,82 ----
  5990. + /* Automatically generated header! Do not edit! */
  5991. + #ifndef _PPCINLINE_CARDRES_H
  5992. + #define _PPCINLINE_CARDRES_H
  5993. + #ifndef __PPCINLINE_MACROS_H
  5994. + #include <powerup/ppcinline/macros.h>
  5995. + #endif /* !__PPCINLINE_MACROS_H */
  5996. + #ifndef CARDRES_BASE_NAME
  5997. + #define CARDRES_BASE_NAME CardResource
  5998. + #endif /* !CARDRES_BASE_NAME */
  5999. + #define BeginCardAccess(handle) \
  6000. +     LP1(0x18, BOOL, BeginCardAccess, struct CardHandle *, handle, a1, \
  6001. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6002. + #define CardAccessSpeed(handle, nanoseconds) \
  6003. +     LP2(0x36, ULONG, CardAccessSpeed, struct CardHandle *, handle, a1, unsigned long, nanoseconds, d0, \
  6004. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6005. + #define CardChangeCount() \
  6006. +     LP0(0x60, ULONG, CardChangeCount, \
  6007. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6008. + #define CardForceChange() \
  6009. +     LP0(0x5a, BOOL, CardForceChange, \
  6010. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6011. + #define CardInterface() \
  6012. +     LP0(0x66, ULONG, CardInterface, \
  6013. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6014. + #define CardMiscControl(handle, control_bits) \
  6015. +     LP2(0x30, UBYTE, CardMiscControl, struct CardHandle *, handle, a1, unsigned long, control_bits, d1, \
  6016. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6017. + #define CardProgramVoltage(handle, voltage) \
  6018. +     LP2(0x3c, LONG, CardProgramVoltage, struct CardHandle *, handle, a1, unsigned long, voltage, d0, \
  6019. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6020. + #define CardResetCard(handle) \
  6021. +     LP1(0x42, BOOL, CardResetCard, struct CardHandle *, handle, a1, \
  6022. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6023. + #define CardResetRemove(handle, flag) \
  6024. +     LP2(0x2a, BOOL, CardResetRemove, struct CardHandle *, handle, a1, unsigned long, flag, d0, \
  6025. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6026. + #define CopyTuple(handle, buffer, tuplecode, size) \
  6027. +     LP4(0x48, BOOL, CopyTuple, struct CardHandle *, handle, a1, UBYTE *, buffer, a0, unsigned long, tuplecode, d1, unsigned long, size, d0, \
  6028. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6029. + #define DeviceTuple(tuple_data, storage) \
  6030. +     LP2(0x4e, ULONG, DeviceTuple, UBYTE *, tuple_data, a0, struct DeviceTData *, storage, a1, \
  6031. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6032. + #define EndCardAccess(handle) \
  6033. +     LP1(0x1e, BOOL, EndCardAccess, struct CardHandle *, handle, a1, \
  6034. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6035. + #define GetCardMap() \
  6036. +     LP0(0x12, struct CardMemoryMap *, GetCardMap, \
  6037. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6038. + #define IfAmigaXIP(handle) \
  6039. +     LP1(0x54, struct Resident *, IfAmigaXIP, struct CardHandle *, handle, a2, \
  6040. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6041. + #define OwnCard(handle) \
  6042. +     LP1(0x6, struct CardHandle *, OwnCard, struct CardHandle *, handle, a1, \
  6043. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6044. + #define ReadCardStatus() \
  6045. +     LP0(0x24, UBYTE, ReadCardStatus, \
  6046. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6047. + #define ReleaseCard(handle, flags) \
  6048. +     LP2NR(0xc, ReleaseCard, struct CardHandle *, handle, a1, unsigned long, flags, d0, \
  6049. +     , CARDRES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6050. + #endif /* !_PPCINLINE_CARDRES_H */
  6051. diff -c2 -d -P -r include_h/powerup/ppcinline/cia.h includenew/powerup/ppcinline/cia.h
  6052. *** include_h/powerup/ppcinline/cia.h    Thu Jan  1 00:00:00 1970
  6053. --- includenew/powerup/ppcinline/cia.h    Thu Nov  2 22:27:11 2000
  6054. ***************
  6055. *** 0 ****
  6056. --- 1,22 ----
  6057. + /* Automatically generated header! Do not edit! */
  6058. + #ifndef _PPCINLINE_CIA_H
  6059. + #define _PPCINLINE_CIA_H
  6060. + #ifndef __PPCINLINE_MACROS_H
  6061. + #include <powerup/ppcinline/macros.h>
  6062. + #endif /* !__PPCINLINE_MACROS_H */
  6063. + #define AbleICR(resource, mask) \
  6064. +     LP2UB(0x12, WORD, AbleICR, struct Library *, resource, a6, long, mask, d0, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6065. + #define AddICRVector(resource, iCRBit, interrupt) \
  6066. +     LP3UB(0x6, struct Interrupt *, AddICRVector, struct Library *, resource, a6, long, iCRBit, d0, struct Interrupt *, interrupt, a1, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6067. + #define RemICRVector(resource, iCRBit, interrupt) \
  6068. +     LP3NRUB(0xc, RemICRVector, struct Library *, resource, a6, long, iCRBit, d0, struct Interrupt *, interrupt, a1, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6069. + #define SetICR(resource, mask) \
  6070. +     LP2UB(0x18, WORD, SetICR, struct Library *, resource, a6, long, mask, d0, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6071. + #endif /* !_PPCINLINE_CIA_H */
  6072. diff -c2 -d -P -r include_h/powerup/ppcinline/colorwheel.h includenew/powerup/ppcinline/colorwheel.h
  6073. *** include_h/powerup/ppcinline/colorwheel.h    Thu Jan  1 00:00:00 1970
  6074. --- includenew/powerup/ppcinline/colorwheel.h    Thu Nov  2 22:27:09 2000
  6075. ***************
  6076. *** 0 ****
  6077. --- 1,22 ----
  6078. + /* Automatically generated header! Do not edit! */
  6079. + #ifndef _PPCINLINE_COLORWHEEL_H
  6080. + #define _PPCINLINE_COLORWHEEL_H
  6081. + #ifndef __PPCINLINE_MACROS_H
  6082. + #include <powerup/ppcinline/macros.h>
  6083. + #endif /* !__PPCINLINE_MACROS_H */
  6084. + #ifndef COLORWHEEL_BASE_NAME
  6085. + #define COLORWHEEL_BASE_NAME ColorWheelBase
  6086. + #endif /* !COLORWHEEL_BASE_NAME */
  6087. + #define ConvertHSBToRGB(hsb, rgb) \
  6088. +     LP2NR(0x1e, ConvertHSBToRGB, struct ColorWheelHSB *, hsb, a0, struct ColorWheelRGB *, rgb, a1, \
  6089. +     , COLORWHEEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6090. + #define ConvertRGBToHSB(rgb, hsb) \
  6091. +     LP2NR(0x24, ConvertRGBToHSB, struct ColorWheelRGB *, rgb, a0, struct ColorWheelHSB *, hsb, a1, \
  6092. +     , COLORWHEEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6093. + #endif /* !_PPCINLINE_COLORWHEEL_H */
  6094. diff -c2 -d -P -r include_h/powerup/ppcinline/commodities.h includenew/powerup/ppcinline/commodities.h
  6095. *** include_h/powerup/ppcinline/commodities.h    Thu Jan  1 00:00:00 1970
  6096. --- includenew/powerup/ppcinline/commodities.h    Thu Nov  2 22:27:09 2000
  6097. ***************
  6098. *** 0 ****
  6099. --- 1,118 ----
  6100. + /* Automatically generated header! Do not edit! */
  6101. + #ifndef _PPCINLINE_COMMODITIES_H
  6102. + #define _PPCINLINE_COMMODITIES_H
  6103. + #ifndef __PPCINLINE_MACROS_H
  6104. + #include <powerup/ppcinline/macros.h>
  6105. + #endif /* !__PPCINLINE_MACROS_H */
  6106. + #ifndef COMMODITIES_BASE_NAME
  6107. + #define COMMODITIES_BASE_NAME CxBase
  6108. + #endif /* !COMMODITIES_BASE_NAME */
  6109. + #define ActivateCxObj(co, tf) \
  6110. +     LP2(0x2a, LONG, ActivateCxObj, CxObj *, co, a0, long, tf, d0, \
  6111. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6112. + #define AddIEvents(events) \
  6113. +     LP1NR(0xb4, AddIEvents, struct InputEvent *, events, a0, \
  6114. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6115. + #define AttachCxObj(headObj, co) \
  6116. +     LP2NR(0x54, AttachCxObj, CxObj *, headObj, a0, CxObj *, co, a1, \
  6117. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6118. + #define ClearCxObjError(co) \
  6119. +     LP1NR(0x48, ClearCxObjError, CxObj *, co, a0, \
  6120. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6121. + #define CreateCxObj(type, arg1, arg2) \
  6122. +     LP3(0x1e, CxObj *, CreateCxObj, unsigned long, type, d0, long, arg1, a0, long, arg2, a1, \
  6123. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6124. + #define CxBroker(nb, error) \
  6125. +     LP2(0x24, CxObj *, CxBroker, struct NewBroker *, nb, a0, LONG *, error, d0, \
  6126. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6127. + #define CxMsgData(cxm) \
  6128. +     LP1(0x90, APTR, CxMsgData, CxMsg *, cxm, a0, \
  6129. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6130. + #define CxMsgID(cxm) \
  6131. +     LP1(0x96, LONG, CxMsgID, CxMsg *, cxm, a0, \
  6132. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6133. + #define CxMsgType(cxm) \
  6134. +     LP1(0x8a, ULONG, CxMsgType, CxMsg *, cxm, a0, \
  6135. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6136. + #define CxObjError(co) \
  6137. +     LP1(0x42, LONG, CxObjError, CxObj *, co, a0, \
  6138. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6139. + #define CxObjType(co) \
  6140. +     LP1(0x3c, ULONG, CxObjType, CxObj *, co, a0, \
  6141. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6142. + #define DeleteCxObj(co) \
  6143. +     LP1NR(0x30, DeleteCxObj, CxObj *, co, a0, \
  6144. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6145. + #define DeleteCxObjAll(co) \
  6146. +     LP1NR(0x36, DeleteCxObjAll, CxObj *, co, a0, \
  6147. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6148. + #define DisposeCxMsg(cxm) \
  6149. +     LP1NR(0xa8, DisposeCxMsg, CxMsg *, cxm, a0, \
  6150. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6151. + #define DivertCxMsg(cxm, headObj, returnObj) \
  6152. +     LP3NR(0x9c, DivertCxMsg, CxMsg *, cxm, a0, CxObj *, headObj, a1, CxObj *, returnObj, a2, \
  6153. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6154. + #define EnqueueCxObj(headObj, co) \
  6155. +     LP2NR(0x5a, EnqueueCxObj, CxObj *, headObj, a0, CxObj *, co, a1, \
  6156. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6157. + #define InsertCxObj(headObj, co, pred) \
  6158. +     LP3NR(0x60, InsertCxObj, CxObj *, headObj, a0, CxObj *, co, a1, CxObj *, pred, a2, \
  6159. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6160. + #define InvertKeyMap(ansiCode, event, km) \
  6161. +     LP3(0xae, BOOL, InvertKeyMap, unsigned long, ansiCode, d0, struct InputEvent *, event, a0, struct KeyMap *, km, a1, \
  6162. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6163. + #define MatchIX(event, ix) \
  6164. +     LP2(0xcc, BOOL, MatchIX, struct InputEvent *, event, a0, IX *, ix, a1, \
  6165. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6166. + #define ParseIX(description, ix) \
  6167. +     LP2(0x84, LONG, ParseIX, STRPTR, description, a0, IX *, ix, a1, \
  6168. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6169. + #define RemoveCxObj(co) \
  6170. +     LP1NR(0x66, RemoveCxObj, CxObj *, co, a0, \
  6171. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6172. + #define RouteCxMsg(cxm, co) \
  6173. +     LP2NR(0xa2, RouteCxMsg, CxMsg *, cxm, a0, CxObj *, co, a1, \
  6174. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6175. + #define SetCxObjPri(co, pri) \
  6176. +     LP2(0x4e, LONG, SetCxObjPri, CxObj *, co, a0, long, pri, d0, \
  6177. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6178. + #define SetFilter(filter, text) \
  6179. +     LP2NR(0x78, SetFilter, CxObj *, filter, a0, STRPTR, text, a1, \
  6180. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6181. + #define SetFilterIX(filter, ix) \
  6182. +     LP2NR(0x7e, SetFilterIX, CxObj *, filter, a0, IX *, ix, a1, \
  6183. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6184. + #define SetTranslate(translator, events) \
  6185. +     LP2NR(0x72, SetTranslate, CxObj *, translator, a0, struct InputEvent *, events, a1, \
  6186. +     , COMMODITIES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6187. + #endif /* !_PPCINLINE_COMMODITIES_H */
  6188. diff -c2 -d -P -r include_h/powerup/ppcinline/console.h includenew/powerup/ppcinline/console.h
  6189. *** include_h/powerup/ppcinline/console.h    Thu Jan  1 00:00:00 1970
  6190. --- includenew/powerup/ppcinline/console.h    Thu Nov  2 22:27:09 2000
  6191. ***************
  6192. *** 0 ****
  6193. --- 1,22 ----
  6194. + /* Automatically generated header! Do not edit! */
  6195. + #ifndef _PPCINLINE_CONSOLE_H
  6196. + #define _PPCINLINE_CONSOLE_H
  6197. + #ifndef __PPCINLINE_MACROS_H
  6198. + #include <powerup/ppcinline/macros.h>
  6199. + #endif /* !__PPCINLINE_MACROS_H */
  6200. + #ifndef CONSOLE_BASE_NAME
  6201. + #define CONSOLE_BASE_NAME ConsoleDevice
  6202. + #endif /* !CONSOLE_BASE_NAME */
  6203. + #define CDInputHandler(events, consoleDevice) \
  6204. +     LP2(0x2a, struct InputEvent *, CDInputHandler, struct InputEvent *, events, a0, struct Library *, consoleDevice, a1, \
  6205. +     , CONSOLE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6206. + #define RawKeyConvert(events, buffer, length, keyMap) \
  6207. +     LP4(0x30, LONG, RawKeyConvert, struct InputEvent *, events, a0, STRPTR, buffer, a1, long, length, d1, struct KeyMap *, keyMap, a2, \
  6208. +     , CONSOLE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6209. + #endif /* !_PPCINLINE_CONSOLE_H */
  6210. diff -c2 -d -P -r include_h/powerup/ppcinline/datatypes.h includenew/powerup/ppcinline/datatypes.h
  6211. *** include_h/powerup/ppcinline/datatypes.h    Thu Jan  1 00:00:00 1970
  6212. --- includenew/powerup/ppcinline/datatypes.h    Thu Nov  2 22:27:09 2000
  6213. ***************
  6214. *** 0 ****
  6215. --- 1,109 ----
  6216. + /* Automatically generated header! Do not edit! */
  6217. + #ifndef _PPCINLINE_DATATYPES_H
  6218. + #define _PPCINLINE_DATATYPES_H
  6219. + #ifndef __PPCINLINE_MACROS_H
  6220. + #include <powerup/ppcinline/macros.h>
  6221. + #endif /* !__PPCINLINE_MACROS_H */
  6222. + #ifndef DATATYPES_BASE_NAME
  6223. + #define DATATYPES_BASE_NAME DataTypesBase
  6224. + #endif /* !DATATYPES_BASE_NAME */
  6225. + #define AddDTObject(win, req, o, pos) \
  6226. +     LP4(0x48, LONG, AddDTObject, struct Window *, win, a0, struct Requester *, req, a1, Object *, o, a2, long, pos, d0, \
  6227. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6228. + #define DisposeDTObject(o) \
  6229. +     LP1NR(0x36, DisposeDTObject, Object *, o, a0, \
  6230. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6231. + #define DoAsyncLayout(o, gpl) \
  6232. +     LP2(0x54, ULONG, DoAsyncLayout, Object *, o, a0, struct gpLayout *, gpl, a1, \
  6233. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6234. + #define DoDTMethodA(o, win, req, msg) \
  6235. +     LP4(0x5a, ULONG, DoDTMethodA, Object *, o, a0, struct Window *, win, a1, struct Requester *, req, a2, Msg, msg, a3, \
  6236. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6237. + #ifndef NO_PPCINLINE_STDARG
  6238. + #define DoDTMethod(a0, a1, a2, tags...) \
  6239. +     ({ULONG _tags[] = { tags }; DoDTMethodA((a0), (a1), (a2), (Msg)_tags);})
  6240. + #endif /* !NO_PPCINLINE_STDARG */
  6241. + #define GetDTAttrsA(o, attrs) \
  6242. +     LP2(0x42, ULONG, GetDTAttrsA, Object *, o, a0, struct TagItem *, attrs, a2, \
  6243. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6244. + #ifndef NO_PPCINLINE_STDARG
  6245. + #define GetDTAttrs(a0, tags...) \
  6246. +     ({ULONG _tags[] = { tags }; GetDTAttrsA((a0), (struct TagItem *)_tags);})
  6247. + #endif /* !NO_PPCINLINE_STDARG */
  6248. + #define GetDTMethods(object) \
  6249. +     LP1(0x66, ULONG *, GetDTMethods, Object *, object, a0, \
  6250. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6251. + #define GetDTString(id) \
  6252. +     LP1(0x8a, STRPTR, GetDTString, unsigned long, id, d0, \
  6253. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6254. + #define GetDTTriggerMethods(object) \
  6255. +     LP1(0x6c, struct DTMethods *, GetDTTriggerMethods, Object *, object, a0, \
  6256. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6257. + #define NewDTObjectA(name, attrs) \
  6258. +     LP2(0x30, Object *, NewDTObjectA, APTR, name, d0, struct TagItem *, attrs, a0, \
  6259. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6260. + #ifndef NO_PPCINLINE_STDARG
  6261. + #define NewDTObject(a0, tags...) \
  6262. +     ({ULONG _tags[] = { tags }; NewDTObjectA((a0), (struct TagItem *)_tags);})
  6263. + #endif /* !NO_PPCINLINE_STDARG */
  6264. + #define ObtainDataTypeA(type, handle, attrs) \
  6265. +     LP3(0x24, struct DataType *, ObtainDataTypeA, unsigned long, type, d0, APTR, handle, a0, struct TagItem *, attrs, a1, \
  6266. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6267. + #ifndef NO_PPCINLINE_STDARG
  6268. + #define ObtainDataType(a0, a1, tags...) \
  6269. +     ({ULONG _tags[] = { tags }; ObtainDataTypeA((a0), (a1), (struct TagItem *)_tags);})
  6270. + #endif /* !NO_PPCINLINE_STDARG */
  6271. + #define PrintDTObjectA(o, w, r, msg) \
  6272. +     LP4(0x72, ULONG, PrintDTObjectA, Object *, o, a0, struct Window *, w, a1, struct Requester *, r, a2, struct dtPrint *, msg, a3, \
  6273. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6274. + #ifndef NO_PPCINLINE_STDARG
  6275. + #define PrintDTObject(a0, a1, a2, tags...) \
  6276. +     ({ULONG _tags[] = { tags }; PrintDTObjectA((a0), (a1), (a2), (struct dtPrint *)_tags);})
  6277. + #endif /* !NO_PPCINLINE_STDARG */
  6278. + #define RefreshDTObjectA(o, win, req, attrs) \
  6279. +     LP4NR(0x4e, RefreshDTObjectA, Object *, o, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, attrs, a3, \
  6280. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6281. + #ifndef NO_PPCINLINE_STDARG
  6282. + #define RefreshDTObject(a0, a1, a2, tags...) \
  6283. +     ({ULONG _tags[] = { tags }; RefreshDTObjectA((a0), (a1), (a2), (struct TagItem *)_tags);})
  6284. + #endif /* !NO_PPCINLINE_STDARG */
  6285. + #define ReleaseDataType(dt) \
  6286. +     LP1NR(0x2a, ReleaseDataType, struct DataType *, dt, a0, \
  6287. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6288. + #define RemoveDTObject(win, o) \
  6289. +     LP2(0x60, LONG, RemoveDTObject, struct Window *, win, a0, Object *, o, a1, \
  6290. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6291. + #define SetDTAttrsA(o, win, req, attrs) \
  6292. +     LP4(0x3c, ULONG, SetDTAttrsA, Object *, o, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, attrs, a3, \
  6293. +     , DATATYPES_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6294. + #ifndef NO_PPCINLINE_STDARG
  6295. + #define SetDTAttrs(a0, a1, a2, tags...) \
  6296. +     ({ULONG _tags[] = { tags }; SetDTAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  6297. + #endif /* !NO_PPCINLINE_STDARG */
  6298. + #endif /* !_PPCINLINE_DATATYPES_H */
  6299. diff -c2 -d -P -r include_h/powerup/ppcinline/disk.h includenew/powerup/ppcinline/disk.h
  6300. *** include_h/powerup/ppcinline/disk.h    Thu Jan  1 00:00:00 1970
  6301. --- includenew/powerup/ppcinline/disk.h    Thu Nov  2 22:27:09 2000
  6302. ***************
  6303. *** 0 ****
  6304. --- 1,38 ----
  6305. + /* Automatically generated header! Do not edit! */
  6306. + #ifndef _PPCINLINE_DISK_H
  6307. + #define _PPCINLINE_DISK_H
  6308. + #ifndef __PPCINLINE_MACROS_H
  6309. + #include <powerup/ppcinline/macros.h>
  6310. + #endif /* !__PPCINLINE_MACROS_H */
  6311. + #ifndef DISK_BASE_NAME
  6312. + #define DISK_BASE_NAME DiskBase
  6313. + #endif /* !DISK_BASE_NAME */
  6314. + #define AllocUnit(unitNum) \
  6315. +     LP1(0x6, BOOL, AllocUnit, long, unitNum, d0, \
  6316. +     , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6317. + #define FreeUnit(unitNum) \
  6318. +     LP1NR(0xc, FreeUnit, long, unitNum, d0, \
  6319. +     , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6320. + #define GetUnit(unitPointer) \
  6321. +     LP1(0x12, struct DiskResourceUnit *, GetUnit, struct DiskResourceUnit *, unitPointer, a1, \
  6322. +     , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6323. + #define GetUnitID(unitNum) \
  6324. +     LP1(0x1e, LONG, GetUnitID, long, unitNum, d0, \
  6325. +     , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6326. + #define GiveUnit() \
  6327. +     LP0NR(0x18, GiveUnit, \
  6328. +     , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6329. + #define ReadUnitID(unitNum) \
  6330. +     LP1(0x24, LONG, ReadUnitID, long, unitNum, d0, \
  6331. +     , DISK_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6332. + #endif /* !_PPCINLINE_DISK_H */
  6333. diff -c2 -d -P -r include_h/powerup/ppcinline/diskfont.h includenew/powerup/ppcinline/diskfont.h
  6334. *** include_h/powerup/ppcinline/diskfont.h    Thu Jan  1 00:00:00 1970
  6335. --- includenew/powerup/ppcinline/diskfont.h    Thu Nov  2 22:27:09 2000
  6336. ***************
  6337. *** 0 ****
  6338. --- 1,34 ----
  6339. + /* Automatically generated header! Do not edit! */
  6340. + #ifndef _PPCINLINE_DISKFONT_H
  6341. + #define _PPCINLINE_DISKFONT_H
  6342. + #ifndef __PPCINLINE_MACROS_H
  6343. + #include <powerup/ppcinline/macros.h>
  6344. + #endif /* !__PPCINLINE_MACROS_H */
  6345. + #ifndef DISKFONT_BASE_NAME
  6346. + #define DISKFONT_BASE_NAME DiskfontBase
  6347. + #endif /* !DISKFONT_BASE_NAME */
  6348. + #define AvailFonts(buffer, bufBytes, flags) \
  6349. +     LP3(0x24, LONG, AvailFonts, STRPTR, buffer, a0, long, bufBytes, d0, long, flags, d1, \
  6350. +     , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6351. + #define DisposeFontContents(fontContentsHeader) \
  6352. +     LP1NR(0x30, DisposeFontContents, struct FontContentsHeader *, fontContentsHeader, a1, \
  6353. +     , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6354. + #define NewFontContents(fontsLock, fontName) \
  6355. +     LP2(0x2a, struct FontContentsHeader *, NewFontContents, BPTR, fontsLock, a0, STRPTR, fontName, a1, \
  6356. +     , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6357. + #define NewScaledDiskFont(sourceFont, destTextAttr) \
  6358. +     LP2(0x36, struct DiskFont *, NewScaledDiskFont, struct TextFont *, sourceFont, a0, struct TextAttr *, destTextAttr, a1, \
  6359. +     , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6360. + #define OpenDiskFont(textAttr) \
  6361. +     LP1(0x1e, struct TextFont *, OpenDiskFont, struct TextAttr *, textAttr, a0, \
  6362. +     , DISKFONT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6363. + #endif /* !_PPCINLINE_DISKFONT_H */
  6364. diff -c2 -d -P -r include_h/powerup/ppcinline/dos.h includenew/powerup/ppcinline/dos.h
  6365. *** include_h/powerup/ppcinline/dos.h    Thu Jan  1 00:00:00 1970
  6366. --- includenew/powerup/ppcinline/dos.h    Thu Nov  2 22:27:09 2000
  6367. ***************
  6368. *** 0 ****
  6369. --- 1,693 ----
  6370. + /* Automatically generated header! Do not edit! */
  6371. + #ifndef _PPCINLINE_DOS_H
  6372. + #define _PPCINLINE_DOS_H
  6373. + #ifndef __PPCINLINE_MACROS_H
  6374. + #include <powerup/ppcinline/macros.h>
  6375. + #endif /* !__PPCINLINE_MACROS_H */
  6376. + #ifndef DOS_BASE_NAME
  6377. + #define DOS_BASE_NAME DOSBase
  6378. + #endif /* !DOS_BASE_NAME */
  6379. + #define AbortPkt(port, pkt) \
  6380. +     LP2NR(0x108, AbortPkt, struct MsgPort *, port, d1, struct DosPacket *, pkt, d2, \
  6381. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6382. + #define AddBuffers(name, number) \
  6383. +     LP2(0x2dc, LONG, AddBuffers, STRPTR, name, d1, long, number, d2, \
  6384. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6385. + #define AddDosEntry(dlist) \
  6386. +     LP1(0x2a6, LONG, AddDosEntry, struct DosList *, dlist, d1, \
  6387. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6388. + #define AddPart(dirname, filename, size) \
  6389. +     LP3(0x372, BOOL, AddPart, STRPTR, dirname, d1, STRPTR, filename, d2, unsigned long, size, d3, \
  6390. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6391. + #define AddSegment(name, seg, system) \
  6392. +     LP3(0x306, LONG, AddSegment, STRPTR, name, d1, BPTR, seg, d2, long, system, d3, \
  6393. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6394. + #define AllocDosObject(type, tags) \
  6395. +     LP2(0xe4, APTR, AllocDosObject, unsigned long, type, d1, struct TagItem *, tags, d2, \
  6396. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6397. + #define AllocDosObjectTagList(a0, a1) AllocDosObject ((a0), (a1))
  6398. + #ifndef NO_PPCINLINE_STDARG
  6399. + #define AllocDosObjectTags(a0, tags...) \
  6400. +     ({ULONG _tags[] = { tags }; AllocDosObject((a0), (struct TagItem *)_tags);})
  6401. + #endif /* !NO_PPCINLINE_STDARG */
  6402. + #define AssignAdd(name, lock) \
  6403. +     LP2(0x276, BOOL, AssignAdd, STRPTR, name, d1, BPTR, lock, d2, \
  6404. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6405. + #define AssignLate(name, path) \
  6406. +     LP2(0x26a, BOOL, AssignLate, STRPTR, name, d1, STRPTR, path, d2, \
  6407. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6408. + #define AssignLock(name, lock) \
  6409. +     LP2(0x264, LONG, AssignLock, STRPTR, name, d1, BPTR, lock, d2, \
  6410. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6411. + #define AssignPath(name, path) \
  6412. +     LP2(0x270, BOOL, AssignPath, STRPTR, name, d1, STRPTR, path, d2, \
  6413. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6414. + #define AttemptLockDosList(flags) \
  6415. +     LP1(0x29a, struct DosList *, AttemptLockDosList, unsigned long, flags, d1, \
  6416. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6417. + #define ChangeMode(type, fh, newmode) \
  6418. +     LP3(0x1c2, LONG, ChangeMode, long, type, d1, BPTR, fh, d2, long, newmode, d3, \
  6419. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6420. + #define CheckSignal(mask) \
  6421. +     LP1(0x318, LONG, CheckSignal, long, mask, d1, \
  6422. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6423. + #define Cli() \
  6424. +     LP0(0x1ec, struct CommandLineInterface *, Cli, \
  6425. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6426. + #define CliInitNewcli(dp) \
  6427. +     LP1(0x3a2, LONG, CliInitNewcli, struct DosPacket *, dp, a0, \
  6428. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6429. + #define CliInitRun(dp) \
  6430. +     LP1(0x3a8, LONG, CliInitRun, struct DosPacket *, dp, a0, \
  6431. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6432. + #define Close(file) \
  6433. +     LP1(0x24, LONG, Close, BPTR, file, d1, \
  6434. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6435. + #define CompareDates(date1, date2) \
  6436. +     LP2(0x2e2, LONG, CompareDates, struct DateStamp *, date1, d1, struct DateStamp *, date2, d2, \
  6437. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6438. + #define CreateDir(name) \
  6439. +     LP1(0x78, BPTR, CreateDir, STRPTR, name, d1, \
  6440. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6441. + #define CreateNewProc(tags) \
  6442. +     LP1(0x1f2, struct Process *, CreateNewProc, struct TagItem *, tags, d1, \
  6443. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6444. + #define CreateNewProcTagList(a0) CreateNewProc ((a0))
  6445. + #ifndef NO_PPCINLINE_STDARG
  6446. + #define CreateNewProcTags(tags...) \
  6447. +     ({ULONG _tags[] = { tags }; CreateNewProc((struct TagItem *)_tags);})
  6448. + #endif /* !NO_PPCINLINE_STDARG */
  6449. + #define CreateProc(name, pri, segList, stackSize) \
  6450. +     LP4(0x8a, struct MsgPort *, CreateProc, STRPTR, name, d1, long, pri, d2, BPTR, segList, d3, long, stackSize, d4, \
  6451. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6452. + #define CurrentDir(lock) \
  6453. +     LP1(0x7e, BPTR, CurrentDir, BPTR, lock, d1, \
  6454. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6455. + #define DateStamp(date) \
  6456. +     LP1(0xc0, struct DateStamp *, DateStamp, struct DateStamp *, date, d1, \
  6457. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6458. + #define DateToStr(datetime) \
  6459. +     LP1(0x2e8, LONG, DateToStr, struct DateTime *, datetime, d1, \
  6460. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6461. + #define Delay(timeout) \
  6462. +     LP1NR(0xc6, Delay, long, timeout, d1, \
  6463. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6464. + #define DeleteFile(name) \
  6465. +     LP1(0x48, LONG, DeleteFile, STRPTR, name, d1, \
  6466. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6467. + #define DeleteVar(name, flags) \
  6468. +     LP2(0x390, LONG, DeleteVar, STRPTR, name, d1, unsigned long, flags, d2, \
  6469. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6470. + #define DeviceProc(name) \
  6471. +     LP1(0xae, struct MsgPort *, DeviceProc, STRPTR, name, d1, \
  6472. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6473. + #define DoPkt(port, action, arg1, arg2, arg3, arg4, arg5) \
  6474. +     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, \
  6475. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6476. + #define DoPkt0(port, action) \
  6477. +     LP2(0xf0, LONG, DoPkt0, struct MsgPort *, port, d1, long, action, d2, \
  6478. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6479. + #define DoPkt1(port, action, arg1) \
  6480. +     LP3(0xf0, LONG, DoPkt1, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, \
  6481. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6482. + #define DoPkt2(port, action, arg1, arg2) \
  6483. +     LP4(0xf0, LONG, DoPkt2, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, long, arg2, d4, \
  6484. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6485. + #define DoPkt3(port, action, arg1, arg2, arg3) \
  6486. +     LP5(0xf0, LONG, DoPkt3, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, long, arg2, d4, long, arg3, d5, \
  6487. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6488. + #define DoPkt4(port, action, arg1, arg2, arg3, arg4) \
  6489. +     LP6(0xf0, LONG, DoPkt4, struct MsgPort *, port, d1, long, action, d2, long, arg1, d3, long, arg2, d4, long, arg3, d5, long, arg4, d6, \
  6490. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6491. + #define DupLock(lock) \
  6492. +     LP1(0x60, BPTR, DupLock, BPTR, lock, d1, \
  6493. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6494. + #define DupLockFromFH(fh) \
  6495. +     LP1(0x174, BPTR, DupLockFromFH, BPTR, fh, d1, \
  6496. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6497. + #define EndNotify(notify) \
  6498. +     LP1NR(0x37e, EndNotify, struct NotifyRequest *, notify, d1, \
  6499. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6500. + #define ErrorReport(code, type, arg1, device) \
  6501. +     LP4(0x1e0, LONG, ErrorReport, long, code, d1, long, type, d2, unsigned long, arg1, d3, struct MsgPort *, device, d4, \
  6502. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6503. + #define ExAll(lock, buffer, size, data, control) \
  6504. +     LP5(0x1b0, LONG, ExAll, BPTR, lock, d1, struct ExAllData *, buffer, d2, long, size, d3, long, data, d4, struct ExAllControl *, control, d5, \
  6505. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6506. + #define ExAllEnd(lock, buffer, size, data, control) \
  6507. +     LP5NR(0x3de, ExAllEnd, BPTR, lock, d1, struct ExAllData *, buffer, d2, long, size, d3, long, data, d4, struct ExAllControl *, control, d5, \
  6508. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6509. + #define ExNext(lock, fileInfoBlock) \
  6510. +     LP2(0x6c, LONG, ExNext, BPTR, lock, d1, struct FileInfoBlock *, fileInfoBlock, d2, \
  6511. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6512. + #define Examine(lock, fileInfoBlock) \
  6513. +     LP2(0x66, LONG, Examine, BPTR, lock, d1, struct FileInfoBlock *, fileInfoBlock, d2, \
  6514. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6515. + #define ExamineFH(fh, fib) \
  6516. +     LP2(0x186, BOOL, ExamineFH, BPTR, fh, d1, struct FileInfoBlock *, fib, d2, \
  6517. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6518. + #define Execute(string, file, file2) \
  6519. +     LP3(0xde, LONG, Execute, STRPTR, string, d1, BPTR, file, d2, BPTR, file2, d3, \
  6520. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6521. + #define Exit(returnCode) \
  6522. +     LP1NR(0x90, Exit, long, returnCode, d1, \
  6523. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6524. + #define FGetC(fh) \
  6525. +     LP1(0x132, LONG, FGetC, BPTR, fh, d1, \
  6526. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6527. + #define FGets(fh, buf, buflen) \
  6528. +     LP3(0x150, STRPTR, FGets, BPTR, fh, d1, STRPTR, buf, d2, unsigned long, buflen, d3, \
  6529. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6530. + #define FPutC(fh, ch) \
  6531. +     LP2(0x138, LONG, FPutC, BPTR, fh, d1, long, ch, d2, \
  6532. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6533. + #define FPuts(fh, str) \
  6534. +     LP2(0x156, LONG, FPuts, BPTR, fh, d1, STRPTR, str, d2, \
  6535. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6536. + #define FRead(fh, block, blocklen, number) \
  6537. +     LP4(0x144, LONG, FRead, BPTR, fh, d1, APTR, block, d2, unsigned long, blocklen, d3, unsigned long, number, d4, \
  6538. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6539. + #define FWrite(fh, block, blocklen, number) \
  6540. +     LP4(0x14a, LONG, FWrite, BPTR, fh, d1, APTR, block, d2, unsigned long, blocklen, d3, unsigned long, number, d4, \
  6541. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6542. + #define Fault(code, header, buffer, len) \
  6543. +     LP4(0x1d4, BOOL, Fault, long, code, d1, STRPTR, header, d2, STRPTR, buffer, d3, long, len, d4, \
  6544. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6545. + #define FilePart(path) \
  6546. +     LP1(0x366, STRPTR, FilePart, STRPTR, path, d1, \
  6547. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6548. + #define FindArg(keyword, arg_template) \
  6549. +     LP2(0x324, LONG, FindArg, STRPTR, keyword, d1, STRPTR, arg_template, d2, \
  6550. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6551. + #define FindCliProc(num) \
  6552. +     LP1(0x222, struct Process *, FindCliProc, unsigned long, num, d1, \
  6553. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6554. + #define FindDosEntry(dlist, name, flags) \
  6555. +     LP3(0x2ac, struct DosList *, FindDosEntry, struct DosList *, dlist, d1, STRPTR, name, d2, unsigned long, flags, d3, \
  6556. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6557. + #define FindSegment(name, seg, system) \
  6558. +     LP3(0x30c, struct Segment *, FindSegment, STRPTR, name, d1, struct Segment *, seg, d2, long, system, d3, \
  6559. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6560. + #define FindVar(name, type) \
  6561. +     LP2(0x396, struct LocalVar *, FindVar, STRPTR, name, d1, unsigned long, type, d2, \
  6562. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6563. + #define Flush(fh) \
  6564. +     LP1(0x168, LONG, Flush, BPTR, fh, d1, \
  6565. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6566. + #define Format(filesystem, volumename, dostype) \
  6567. +     LP3(0x2ca, BOOL, Format, STRPTR, filesystem, d1, STRPTR, volumename, d2, unsigned long, dostype, d3, \
  6568. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6569. + #define FreeArgs(args) \
  6570. +     LP1NR(0x35a, FreeArgs, struct RDArgs *, args, d1, \
  6571. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6572. + #define FreeDeviceProc(dp) \
  6573. +     LP1NR(0x288, FreeDeviceProc, struct DevProc *, dp, d1, \
  6574. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6575. + #define FreeDosEntry(dlist) \
  6576. +     LP1NR(0x2be, FreeDosEntry, struct DosList *, dlist, d1, \
  6577. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6578. + #define FreeDosObject(type, ptr) \
  6579. +     LP2NR(0xea, FreeDosObject, unsigned long, type, d1, APTR, ptr, d2, \
  6580. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6581. + #define GetArgStr() \
  6582. +     LP0(0x216, STRPTR, GetArgStr, \
  6583. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6584. + #define GetConsoleTask() \
  6585. +     LP0(0x1fe, struct MsgPort *, GetConsoleTask, \
  6586. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6587. + #define GetCurrentDirName(buf, len) \
  6588. +     LP2(0x234, BOOL, GetCurrentDirName, STRPTR, buf, d1, long, len, d2, \
  6589. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6590. + #define GetDeviceProc(name, dp) \
  6591. +     LP2(0x282, struct DevProc *, GetDeviceProc, STRPTR, name, d1, struct DevProc *, dp, d2, \
  6592. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6593. + #define GetFileSysTask() \
  6594. +     LP0(0x20a, struct MsgPort *, GetFileSysTask, \
  6595. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6596. + #define GetProgramDir() \
  6597. +     LP0(0x258, BPTR, GetProgramDir, \
  6598. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6599. + #define GetProgramName(buf, len) \
  6600. +     LP2(0x240, BOOL, GetProgramName, STRPTR, buf, d1, long, len, d2, \
  6601. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6602. + #define GetPrompt(buf, len) \
  6603. +     LP2(0x24c, BOOL, GetPrompt, STRPTR, buf, d1, long, len, d2, \
  6604. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6605. + #define GetVar(name, buffer, size, flags) \
  6606. +     LP4(0x38a, LONG, GetVar, STRPTR, name, d1, STRPTR, buffer, d2, long, size, d3, long, flags, d4, \
  6607. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6608. + #define Info(lock, parameterBlock) \
  6609. +     LP2(0x72, LONG, Info, BPTR, lock, d1, struct InfoData *, parameterBlock, d2, \
  6610. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6611. + #define Inhibit(name, onoff) \
  6612. +     LP2(0x2d6, LONG, Inhibit, STRPTR, name, d1, long, onoff, d2, \
  6613. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6614. + #define Input() \
  6615. +     LP0(0x36, BPTR, Input, \
  6616. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6617. + #define InternalLoadSeg(fh, table, funcarray, stack) \
  6618. +     LP4(0x2f4, BPTR, InternalLoadSeg, BPTR, fh, d0, BPTR, table, a0, LONG *, funcarray, a1, LONG *, stack, a2, \
  6619. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6620. + #define InternalUnLoadSeg(seglist, freefunc) \
  6621. +     LP2FP(0x2fa, BOOL, InternalUnLoadSeg, BPTR, seglist, d1, __fpt, freefunc, a1, \
  6622. +     , DOS_BASE_NAME, void (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6623. + #define IoErr() \
  6624. +     LP0(0x84, LONG, IoErr, \
  6625. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6626. + #define IsFileSystem(name) \
  6627. +     LP1(0x2c4, BOOL, IsFileSystem, STRPTR, name, d1, \
  6628. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6629. + #define IsInteractive(file) \
  6630. +     LP1(0xd8, LONG, IsInteractive, BPTR, file, d1, \
  6631. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6632. + #define LoadSeg(name) \
  6633. +     LP1(0x96, BPTR, LoadSeg, STRPTR, name, d1, \
  6634. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6635. + #define Lock(name, type) \
  6636. +     LP2(0x54, BPTR, Lock, STRPTR, name, d1, long, type, d2, \
  6637. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6638. + #define LockDosList(flags) \
  6639. +     LP1(0x28e, struct DosList *, LockDosList, unsigned long, flags, d1, \
  6640. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6641. + #define LockRecord(fh, offset, length, mode, timeout) \
  6642. +     LP5(0x10e, BOOL, LockRecord, BPTR, fh, d1, unsigned long, offset, d2, unsigned long, length, d3, unsigned long, mode, d4, unsigned long, timeout, d5, \
  6643. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6644. + #define LockRecords(recArray, timeout) \
  6645. +     LP2(0x114, BOOL, LockRecords, struct RecordLock *, recArray, d1, unsigned long, timeout, d2, \
  6646. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6647. + #define MakeDosEntry(name, type) \
  6648. +     LP2(0x2b8, struct DosList *, MakeDosEntry, STRPTR, name, d1, long, type, d2, \
  6649. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6650. + #define MakeLink(name, dest, soft) \
  6651. +     LP3(0x1bc, LONG, MakeLink, STRPTR, name, d1, long, dest, d2, long, soft, d3, \
  6652. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6653. + #define MatchEnd(anchor) \
  6654. +     LP1NR(0x342, MatchEnd, struct AnchorPath *, anchor, d1, \
  6655. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6656. + #define MatchFirst(pat, anchor) \
  6657. +     LP2(0x336, LONG, MatchFirst, STRPTR, pat, d1, struct AnchorPath *, anchor, d2, \
  6658. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6659. + #define MatchNext(anchor) \
  6660. +     LP1(0x33c, LONG, MatchNext, struct AnchorPath *, anchor, d1, \
  6661. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6662. + #define MatchPattern(pat, str) \
  6663. +     LP2(0x34e, BOOL, MatchPattern, STRPTR, pat, d1, STRPTR, str, d2, \
  6664. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6665. + #define MatchPatternNoCase(pat, str) \
  6666. +     LP2(0x3cc, BOOL, MatchPatternNoCase, STRPTR, pat, d1, STRPTR, str, d2, \
  6667. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6668. + #define MaxCli() \
  6669. +     LP0(0x228, ULONG, MaxCli, \
  6670. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6671. + #define NameFromFH(fh, buffer, len) \
  6672. +     LP3(0x198, LONG, NameFromFH, BPTR, fh, d1, STRPTR, buffer, d2, long, len, d3, \
  6673. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6674. + #define NameFromLock(lock, buffer, len) \
  6675. +     LP3(0x192, LONG, NameFromLock, BPTR, lock, d1, STRPTR, buffer, d2, long, len, d3, \
  6676. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6677. + #define NewLoadSeg(file, tags) \
  6678. +     LP2(0x300, BPTR, NewLoadSeg, STRPTR, file, d1, struct TagItem *, tags, d2, \
  6679. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6680. + #define NewLoadSegTagList(a0, a1) NewLoadSeg ((a0), (a1))
  6681. + #ifndef NO_PPCINLINE_STDARG
  6682. + #define NewLoadSegTags(a0, tags...) \
  6683. +     ({ULONG _tags[] = { tags }; NewLoadSeg((a0), (struct TagItem *)_tags);})
  6684. + #endif /* !NO_PPCINLINE_STDARG */
  6685. + #define NextDosEntry(dlist, flags) \
  6686. +     LP2(0x2b2, struct DosList *, NextDosEntry, struct DosList *, dlist, d1, unsigned long, flags, d2, \
  6687. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6688. + #define Open(name, accessMode) \
  6689. +     LP2(0x1e, BPTR, Open, STRPTR, name, d1, long, accessMode, d2, \
  6690. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6691. + #define OpenFromLock(lock) \
  6692. +     LP1(0x17a, BPTR, OpenFromLock, BPTR, lock, d1, \
  6693. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6694. + #define Output() \
  6695. +     LP0(0x3c, BPTR, Output, \
  6696. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6697. + #define ParentDir(lock) \
  6698. +     LP1(0xd2, BPTR, ParentDir, BPTR, lock, d1, \
  6699. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6700. + #define ParentOfFH(fh) \
  6701. +     LP1(0x180, BPTR, ParentOfFH, BPTR, fh, d1, \
  6702. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6703. + #define ParsePattern(pat, buf, buflen) \
  6704. +     LP3(0x348, LONG, ParsePattern, STRPTR, pat, d1, STRPTR, buf, d2, long, buflen, d3, \
  6705. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6706. + #define ParsePatternNoCase(pat, buf, buflen) \
  6707. +     LP3(0x3c6, LONG, ParsePatternNoCase, STRPTR, pat, d1, STRPTR, buf, d2, long, buflen, d3, \
  6708. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6709. + #define PathPart(path) \
  6710. +     LP1(0x36c, STRPTR, PathPart, STRPTR, path, d1, \
  6711. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6712. + #define PrintFault(code, header) \
  6713. +     LP2(0x1da, BOOL, PrintFault, long, code, d1, STRPTR, header, d2, \
  6714. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6715. + #define PutStr(str) \
  6716. +     LP1(0x3b4, LONG, PutStr, STRPTR, str, d1, \
  6717. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6718. + #define Read(file, buffer, length) \
  6719. +     LP3(0x2a, LONG, Read, BPTR, file, d1, APTR, buffer, d2, long, length, d3, \
  6720. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6721. + #define ReadArgs(arg_template, array, args) \
  6722. +     LP3(0x31e, struct RDArgs *, ReadArgs, STRPTR, arg_template, d1, LONG *, array, d2, struct RDArgs *, args, d3, \
  6723. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6724. + #define ReadItem(name, maxchars, cSource) \
  6725. +     LP3(0x32a, LONG, ReadItem, STRPTR, name, d1, long, maxchars, d2, struct CSource *, cSource, d3, \
  6726. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6727. + #define ReadLink(port, lock, path, buffer, size) \
  6728. +     LP5(0x1b6, LONG, ReadLink, struct MsgPort *, port, d1, BPTR, lock, d2, STRPTR, path, d3, STRPTR, buffer, d4, unsigned long, size, d5, \
  6729. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6730. + #define Relabel(drive, newname) \
  6731. +     LP2(0x2d0, LONG, Relabel, STRPTR, drive, d1, STRPTR, newname, d2, \
  6732. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6733. + #define RemAssignList(name, lock) \
  6734. +     LP2(0x27c, LONG, RemAssignList, STRPTR, name, d1, BPTR, lock, d2, \
  6735. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6736. + #define RemDosEntry(dlist) \
  6737. +     LP1(0x2a0, BOOL, RemDosEntry, struct DosList *, dlist, d1, \
  6738. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6739. + #define RemSegment(seg) \
  6740. +     LP1(0x312, LONG, RemSegment, struct Segment *, seg, d1, \
  6741. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6742. + #define Rename(oldName, newName) \
  6743. +     LP2(0x4e, LONG, Rename, STRPTR, oldName, d1, STRPTR, newName, d2, \
  6744. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6745. + #define ReplyPkt(dp, res1, res2) \
  6746. +     LP3NR(0x102, ReplyPkt, struct DosPacket *, dp, d1, long, res1, d2, long, res2, d3, \
  6747. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6748. + #define RunCommand(seg, stack, paramptr, paramlen) \
  6749. +     LP4(0x1f8, LONG, RunCommand, BPTR, seg, d1, long, stack, d2, STRPTR, paramptr, d3, long, paramlen, d4, \
  6750. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6751. + #define SameDevice(lock1, lock2) \
  6752. +     LP2(0x3d8, BOOL, SameDevice, BPTR, lock1, d1, BPTR, lock2, d2, \
  6753. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6754. + #define SameLock(lock1, lock2) \
  6755. +     LP2(0x1a4, LONG, SameLock, BPTR, lock1, d1, BPTR, lock2, d2, \
  6756. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6757. + #define Seek(file, position, offset) \
  6758. +     LP3(0x42, LONG, Seek, BPTR, file, d1, long, position, d2, long, offset, d3, \
  6759. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6760. + #define SelectInput(fh) \
  6761. +     LP1(0x126, BPTR, SelectInput, BPTR, fh, d1, \
  6762. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6763. + #define SelectOutput(fh) \
  6764. +     LP1(0x12c, BPTR, SelectOutput, BPTR, fh, d1, \
  6765. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6766. + #define SendPkt(dp, port, replyport) \
  6767. +     LP3NR(0xf6, SendPkt, struct DosPacket *, dp, d1, struct MsgPort *, port, d2, struct MsgPort *, replyport, d3, \
  6768. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6769. + #define SetArgStr(string) \
  6770. +     LP1(0x21c, BOOL, SetArgStr, STRPTR, string, d1, \
  6771. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6772. + #define SetComment(name, comment) \
  6773. +     LP2(0xb4, LONG, SetComment, STRPTR, name, d1, STRPTR, comment, d2, \
  6774. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6775. + #define SetConsoleTask(task) \
  6776. +     LP1(0x204, struct MsgPort *, SetConsoleTask, struct MsgPort *, task, d1, \
  6777. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6778. + #define SetCurrentDirName(name) \
  6779. +     LP1(0x22e, BOOL, SetCurrentDirName, STRPTR, name, d1, \
  6780. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6781. + #define SetFileDate(name, date) \
  6782. +     LP2(0x18c, LONG, SetFileDate, STRPTR, name, d1, struct DateStamp *, date, d2, \
  6783. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6784. + #define SetFileSize(fh, pos, mode) \
  6785. +     LP3(0x1c8, LONG, SetFileSize, BPTR, fh, d1, long, pos, d2, long, mode, d3, \
  6786. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6787. + #define SetFileSysTask(task) \
  6788. +     LP1(0x210, struct MsgPort *, SetFileSysTask, struct MsgPort *, task, d1, \
  6789. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6790. + #define SetIoErr(result) \
  6791. +     LP1(0x1ce, LONG, SetIoErr, long, result, d1, \
  6792. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6793. + #define SetMode(fh, mode) \
  6794. +     LP2(0x1aa, LONG, SetMode, BPTR, fh, d1, long, mode, d2, \
  6795. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6796. + #define SetOwner(name, owner_info) \
  6797. +     LP2(0x3e4, BOOL, SetOwner, STRPTR, name, d1, long, owner_info, d2, \
  6798. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6799. + #define SetProgramDir(lock) \
  6800. +     LP1(0x252, BPTR, SetProgramDir, BPTR, lock, d1, \
  6801. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6802. + #define SetProgramName(name) \
  6803. +     LP1(0x23a, BOOL, SetProgramName, STRPTR, name, d1, \
  6804. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6805. + #define SetPrompt(name) \
  6806. +     LP1(0x246, BOOL, SetPrompt, STRPTR, name, d1, \
  6807. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6808. + #define SetProtection(name, protect) \
  6809. +     LP2(0xba, LONG, SetProtection, STRPTR, name, d1, long, protect, d2, \
  6810. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6811. + #define SetVBuf(fh, buff, type, size) \
  6812. +     LP4(0x16e, LONG, SetVBuf, BPTR, fh, d1, STRPTR, buff, d2, long, type, d3, long, size, d4, \
  6813. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6814. + #define SetVar(name, buffer, size, flags) \
  6815. +     LP4(0x384, BOOL, SetVar, STRPTR, name, d1, STRPTR, buffer, d2, long, size, d3, long, flags, d4, \
  6816. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6817. + #define SplitName(name, seperator, buf, oldpos, size) \
  6818. +     LP5(0x19e, WORD, SplitName, STRPTR, name, d1, unsigned long, seperator, d2, STRPTR, buf, d3, long, oldpos, d4, long, size, d5, \
  6819. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6820. + #define StartNotify(notify) \
  6821. +     LP1(0x378, BOOL, StartNotify, struct NotifyRequest *, notify, d1, \
  6822. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6823. + #define StrToDate(datetime) \
  6824. +     LP1(0x2ee, LONG, StrToDate, struct DateTime *, datetime, d1, \
  6825. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6826. + #define StrToLong(string, value) \
  6827. +     LP2(0x330, LONG, StrToLong, STRPTR, string, d1, LONG *, value, d2, \
  6828. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6829. + #define SystemTagList(command, tags) \
  6830. +     LP2(0x25e, LONG, SystemTagList, STRPTR, command, d1, struct TagItem *, tags, d2, \
  6831. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6832. + #define System(a0, a1) SystemTagList ((a0), (a1))
  6833. + #ifndef NO_PPCINLINE_STDARG
  6834. + #define SystemTags(a0, tags...) \
  6835. +     ({ULONG _tags[] = { tags }; SystemTagList((a0), (struct TagItem *)_tags);})
  6836. + #endif /* !NO_PPCINLINE_STDARG */
  6837. + #define UnGetC(fh, character) \
  6838. +     LP2(0x13e, LONG, UnGetC, BPTR, fh, d1, long, character, d2, \
  6839. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6840. + #define UnLoadSeg(seglist) \
  6841. +     LP1NR(0x9c, UnLoadSeg, BPTR, seglist, d1, \
  6842. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6843. + #define UnLock(lock) \
  6844. +     LP1NR(0x5a, UnLock, BPTR, lock, d1, \
  6845. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6846. + #define UnLockDosList(flags) \
  6847. +     LP1NR(0x294, UnLockDosList, unsigned long, flags, d1, \
  6848. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6849. + #define UnLockRecord(fh, offset, length) \
  6850. +     LP3(0x11a, BOOL, UnLockRecord, BPTR, fh, d1, unsigned long, offset, d2, unsigned long, length, d3, \
  6851. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6852. + #define UnLockRecords(recArray) \
  6853. +     LP1(0x120, BOOL, UnLockRecords, struct RecordLock *, recArray, d1, \
  6854. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6855. + #define VFPrintf(fh, format, argarray) \
  6856. +     LP3(0x162, LONG, VFPrintf, BPTR, fh, d1, STRPTR, format, d2, APTR, argarray, d3, \
  6857. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6858. + #ifndef NO_PPCINLINE_STDARG
  6859. + #define FPrintf(a0, a1, tags...) \
  6860. +     ({ULONG _tags[] = { tags }; VFPrintf((a0), (a1), (APTR)_tags);})
  6861. + #endif /* !NO_PPCINLINE_STDARG */
  6862. + #define VFWritef(fh, format, argarray) \
  6863. +     LP3NR(0x15c, VFWritef, BPTR, fh, d1, STRPTR, format, d2, LONG *, argarray, d3, \
  6864. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6865. + #ifndef NO_PPCINLINE_STDARG
  6866. + #define FWritef(a0, a1, tags...) \
  6867. +     ({ULONG _tags[] = { tags }; VFWritef((a0), (a1), (LONG *)_tags);})
  6868. + #endif /* !NO_PPCINLINE_STDARG */
  6869. + #define VPrintf(format, argarray) \
  6870. +     LP2(0x3ba, LONG, VPrintf, STRPTR, format, d1, APTR, argarray, d2, \
  6871. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6872. + #ifndef NO_PPCINLINE_STDARG
  6873. + #define Printf(a0, tags...) \
  6874. +     ({ULONG _tags[] = { tags }; VPrintf((a0), (APTR)_tags);})
  6875. + #endif /* !NO_PPCINLINE_STDARG */
  6876. + #define WaitForChar(file, timeout) \
  6877. +     LP2(0xcc, LONG, WaitForChar, BPTR, file, d1, long, timeout, d2, \
  6878. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6879. + #define WaitPkt() \
  6880. +     LP0(0xfc, struct DosPacket *, WaitPkt, \
  6881. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6882. + #define Write(file, buffer, length) \
  6883. +     LP3(0x30, LONG, Write, BPTR, file, d1, APTR, buffer, d2, long, length, d3, \
  6884. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6885. + #define WriteChars(buf, buflen) \
  6886. +     LP2(0x3ae, LONG, WriteChars, STRPTR, buf, d1, unsigned long, buflen, d2, \
  6887. +     , DOS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6888. + #endif /* !_PPCINLINE_DOS_H */
  6889. diff -c2 -d -P -r include_h/powerup/ppcinline/dtclass.h includenew/powerup/ppcinline/dtclass.h
  6890. *** include_h/powerup/ppcinline/dtclass.h    Thu Jan  1 00:00:00 1970
  6891. --- includenew/powerup/ppcinline/dtclass.h    Thu Nov  2 22:27:09 2000
  6892. ***************
  6893. *** 0 ****
  6894. --- 1,18 ----
  6895. + /* Automatically generated header! Do not edit! */
  6896. + #ifndef _PPCINLINE_DTCLASS_H
  6897. + #define _PPCINLINE_DTCLASS_H
  6898. + #ifndef __PPCINLINE_MACROS_H
  6899. + #include <powerup/ppcinline/macros.h>
  6900. + #endif /* !__PPCINLINE_MACROS_H */
  6901. + #ifndef DTCLASS_BASE_NAME
  6902. + #define DTCLASS_BASE_NAME DTClassBase
  6903. + #endif /* !DTCLASS_BASE_NAME */
  6904. + #define ObtainEngine() \
  6905. +     LP0(0x1e, Class *, ObtainEngine, \
  6906. +     , DTCLASS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6907. + #endif /* !_PPCINLINE_DTCLASS_H */
  6908. diff -c2 -d -P -r include_h/powerup/ppcinline/exec.h includenew/powerup/ppcinline/exec.h
  6909. *** include_h/powerup/ppcinline/exec.h    Thu Jan  1 00:00:00 1970
  6910. --- includenew/powerup/ppcinline/exec.h    Thu Nov  2 22:27:11 2000
  6911. ***************
  6912. *** 0 ****
  6913. --- 1,486 ----
  6914. + /* Automatically generated header! Do not edit! */
  6915. + #ifndef _PPCINLINE_EXEC_H
  6916. + #define _PPCINLINE_EXEC_H
  6917. + #ifndef __PPCINLINE_MACROS_H
  6918. + #include <powerup/ppcinline/macros.h>
  6919. + #endif /* !__PPCINLINE_MACROS_H */
  6920. + #ifndef EXEC_BASE_NAME
  6921. + #define EXEC_BASE_NAME SysBase
  6922. + #endif /* !EXEC_BASE_NAME */
  6923. + #define AbortIO(ioRequest) \
  6924. +     LP1NR(0x1e0, AbortIO, struct IORequest *, ioRequest, a1, \
  6925. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6926. + #define AddDevice(device) \
  6927. +     LP1NR(0x1b0, AddDevice, struct Device *, device, a1, \
  6928. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6929. + #define AddHead(list, node) \
  6930. +     LP2NR(0xf0, AddHead, struct List *, list, a0, struct Node *, node, a1, \
  6931. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6932. + #define AddIntServer(intNumber, interrupt) \
  6933. +     LP2NR(0xa8, AddIntServer, long, intNumber, d0, struct Interrupt *, interrupt, a1, \
  6934. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6935. + #define AddLibrary(library) \
  6936. +     LP1NR(0x18c, AddLibrary, struct Library *, library, a1, \
  6937. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6938. + #define AddMemHandler(memhand) \
  6939. +     LP1NR(0x306, AddMemHandler, struct Interrupt *, memhand, a1, \
  6940. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6941. + #define AddMemList(size, attributes, pri, base, name) \
  6942. +     LP5NR(0x26a, AddMemList, unsigned long, size, d0, unsigned long, attributes, d1, long, pri, d2, APTR, base, a0, UBYTE *, name, a1, \
  6943. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6944. + #define AddPort(port) \
  6945. +     LP1NR(0x162, AddPort, struct MsgPort *, port, a1, \
  6946. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6947. + #define AddResource(resource) \
  6948. +     LP1NR(0x1e6, AddResource, APTR, resource, a1, \
  6949. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6950. + #define AddSemaphore(sigSem) \
  6951. +     LP1NR(0x258, AddSemaphore, struct SignalSemaphore *, sigSem, a1, \
  6952. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6953. + #define AddTail(list, node) \
  6954. +     LP2NR(0xf6, AddTail, struct List *, list, a0, struct Node *, node, a1, \
  6955. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6956. + #define AddTask(task, initPC, finalPC) \
  6957. +     LP3(0x11a, APTR, AddTask, struct Task *, task, a1, APTR, initPC, a2, APTR, finalPC, a3, \
  6958. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6959. + #define Alert(alertNum) \
  6960. +     LP1NR(0x6c, Alert, unsigned long, alertNum, d7, \
  6961. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6962. + #define AllocAbs(byteSize, location) \
  6963. +     LP2(0xcc, APTR, AllocAbs, unsigned long, byteSize, d0, APTR, location, a1, \
  6964. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6965. + #define AllocEntry(entry) \
  6966. +     LP1(0xde, struct MemList *, AllocEntry, struct MemList *, entry, a0, \
  6967. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6968. + #define AllocMem(byteSize, requirements) \
  6969. +     LP2(0xc6, APTR, AllocMem, unsigned long, byteSize, d0, unsigned long, requirements, d1, \
  6970. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6971. + #define AllocPooled(poolHeader, memSize) \
  6972. +     LP2(0x2c4, APTR, AllocPooled, APTR, poolHeader, a0, unsigned long, memSize, d0, \
  6973. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6974. + #define AllocSignal(signalNum) \
  6975. +     LP1(0x14a, BYTE, AllocSignal, long, signalNum, d0, \
  6976. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6977. + #define AllocTrap(trapNum) \
  6978. +     LP1(0x156, LONG, AllocTrap, long, trapNum, d0, \
  6979. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6980. + #define AllocVec(byteSize, requirements) \
  6981. +     LP2(0x2ac, APTR, AllocVec, unsigned long, byteSize, d0, unsigned long, requirements, d1, \
  6982. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6983. + #define Allocate(freeList, byteSize) \
  6984. +     LP2(0xba, APTR, Allocate, struct MemHeader *, freeList, a0, unsigned long, byteSize, d0, \
  6985. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6986. + #define AttemptSemaphore(sigSem) \
  6987. +     LP1(0x240, ULONG, AttemptSemaphore, struct SignalSemaphore *, sigSem, a0, \
  6988. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6989. + #define AttemptSemaphoreShared(sigSem) \
  6990. +     LP1(0x2d0, ULONG, AttemptSemaphoreShared, struct SignalSemaphore *, sigSem, a0, \
  6991. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6992. + #define AvailMem(requirements) \
  6993. +     LP1(0xd8, ULONG, AvailMem, unsigned long, requirements, d1, \
  6994. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6995. + #define CacheClearE(address, length, caches) \
  6996. +     LP3NR(0x282, CacheClearE, APTR, address, a0, unsigned long, length, d0, unsigned long, caches, d1, \
  6997. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  6998. + #define CacheClearU() \
  6999. +     LP0NR(0x27c, CacheClearU, \
  7000. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7001. + #define CacheControl(cacheBits, cacheMask) \
  7002. +     LP2(0x288, ULONG, CacheControl, unsigned long, cacheBits, d0, unsigned long, cacheMask, d1, \
  7003. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7004. + #define CachePostDMA(address, length, flags) \
  7005. +     LP3NR(0x300, CachePostDMA, APTR, address, a0, ULONG *, length, a1, unsigned long, flags, d0, \
  7006. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7007. + #define CachePreDMA(address, length, flags) \
  7008. +     LP3(0x2fa, APTR, CachePreDMA, APTR, address, a0, ULONG *, length, a1, unsigned long, flags, d0, \
  7009. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7010. + #define Cause(interrupt) \
  7011. +     LP1NR(0xb4, Cause, struct Interrupt *, interrupt, a1, \
  7012. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7013. + #define CheckIO(ioRequest) \
  7014. +     LP1(0x1d4, struct IORequest *, CheckIO, struct IORequest *, ioRequest, a1, \
  7015. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7016. + #define ChildFree(tid) \
  7017. +     LP1NR(0x2e2, ChildFree, APTR, tid, d0, \
  7018. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7019. + #define ChildOrphan(tid) \
  7020. +     LP1NR(0x2e8, ChildOrphan, APTR, tid, d0, \
  7021. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7022. + #define ChildStatus(tid) \
  7023. +     LP1NR(0x2ee, ChildStatus, APTR, tid, d0, \
  7024. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7025. + #define ChildWait(tid) \
  7026. +     LP1NR(0x2f4, ChildWait, APTR, tid, d0, \
  7027. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7028. + #define CloseDevice(ioRequest) \
  7029. +     LP1NR(0x1c2, CloseDevice, struct IORequest *, ioRequest, a1, \
  7030. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7031. + #define CloseLibrary(library) \
  7032. +     LP1NR(0x19e, CloseLibrary, struct Library *, library, a1, \
  7033. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7034. + #define ColdReboot() \
  7035. +     LP0NR(0x2d6, ColdReboot, \
  7036. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7037. + #define CopyMem(source, dest, size) \
  7038. +     LP3NR(0x270, CopyMem, APTR, source, a0, APTR, dest, a1, unsigned long, size, d0, \
  7039. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7040. + #define CopyMemQuick(source, dest, size) \
  7041. +     LP3NR(0x276, CopyMemQuick, APTR, source, a0, APTR, dest, a1, unsigned long, size, d0, \
  7042. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7043. + #define CreateIORequest(port, size) \
  7044. +     LP2(0x28e, APTR, CreateIORequest, struct MsgPort *, port, a0, unsigned long, size, d0, \
  7045. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7046. + #define CreateMsgPort() \
  7047. +     LP0(0x29a, struct MsgPort *, CreateMsgPort, \
  7048. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7049. + #define CreatePool(requirements, puddleSize, threshSize) \
  7050. +     LP3(0x2b8, APTR, CreatePool, unsigned long, requirements, d0, unsigned long, puddleSize, d1, unsigned long, threshSize, d2, \
  7051. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7052. + #define Deallocate(freeList, memoryBlock, byteSize) \
  7053. +     LP3NR(0xc0, Deallocate, struct MemHeader *, freeList, a0, APTR, memoryBlock, a1, unsigned long, byteSize, d0, \
  7054. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7055. + #define Debug(flags) \
  7056. +     LP1NR(0x72, Debug, unsigned long, flags, d0, \
  7057. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7058. + #define DeleteIORequest(iorequest) \
  7059. +     LP1NR(0x294, DeleteIORequest, APTR, iorequest, a0, \
  7060. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7061. + #define DeleteMsgPort(port) \
  7062. +     LP1NR(0x2a0, DeleteMsgPort, struct MsgPort *, port, a0, \
  7063. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7064. + #define DeletePool(poolHeader) \
  7065. +     LP1NR(0x2be, DeletePool, APTR, poolHeader, a0, \
  7066. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7067. + #define Disable() \
  7068. +     LP0NR(0x78, Disable, \
  7069. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7070. + #define DoIO(ioRequest) \
  7071. +     LP1(0x1c8, BYTE, DoIO, struct IORequest *, ioRequest, a1, \
  7072. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7073. + #define Enable() \
  7074. +     LP0NR(0x7e, Enable, \
  7075. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7076. + #define Enqueue(list, node) \
  7077. +     LP2NR(0x10e, Enqueue, struct List *, list, a0, struct Node *, node, a1, \
  7078. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7079. + #define FindName(list, name) \
  7080. +     LP2(0x114, struct Node *, FindName, struct List *, list, a0, UBYTE *, name, a1, \
  7081. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7082. + #define FindPort(name) \
  7083. +     LP1(0x186, struct MsgPort *, FindPort, UBYTE *, name, a1, \
  7084. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7085. + #define FindResident(name) \
  7086. +     LP1(0x60, struct Resident *, FindResident, UBYTE *, name, a1, \
  7087. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7088. + #define FindSemaphore(sigSem) \
  7089. +     LP1(0x252, struct SignalSemaphore *, FindSemaphore, UBYTE *, sigSem, a1, \
  7090. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7091. + #define FindTask(name) \
  7092. +     LP1(0x126, struct Task *, FindTask, UBYTE *, name, a1, \
  7093. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7094. + #define Forbid() \
  7095. +     LP0NR(0x84, Forbid, \
  7096. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7097. + #define FreeEntry(entry) \
  7098. +     LP1NR(0xe4, FreeEntry, struct MemList *, entry, a0, \
  7099. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7100. + #define FreeMem(memoryBlock, byteSize) \
  7101. +     LP2NR(0xd2, FreeMem, APTR, memoryBlock, a1, unsigned long, byteSize, d0, \
  7102. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7103. + #define FreePooled(poolHeader, memory, memSize) \
  7104. +     LP3NR(0x2ca, FreePooled, APTR, poolHeader, a0, APTR, memory, a1, unsigned long, memSize, d0, \
  7105. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7106. + #define FreeSignal(signalNum) \
  7107. +     LP1NR(0x150, FreeSignal, long, signalNum, d0, \
  7108. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7109. + #define FreeTrap(trapNum) \
  7110. +     LP1NR(0x15c, FreeTrap, long, trapNum, d0, \
  7111. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7112. + #define FreeVec(memoryBlock) \
  7113. +     LP1NR(0x2b2, FreeVec, APTR, memoryBlock, a1, \
  7114. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7115. + #define GetCC() \
  7116. +     LP0(0x210, ULONG, GetCC, \
  7117. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7118. + #define GetMsg(port) \
  7119. +     LP1(0x174, struct Message *, GetMsg, struct MsgPort *, port, a0, \
  7120. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7121. + #define InitCode(startClass, version) \
  7122. +     LP2NR(0x48, InitCode, unsigned long, startClass, d0, unsigned long, version, d1, \
  7123. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7124. + #define InitResident(resident, segList) \
  7125. +     LP2(0x66, APTR, InitResident, struct Resident *, resident, a1, unsigned long, segList, d1, \
  7126. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7127. + #define InitSemaphore(sigSem) \
  7128. +     LP1NR(0x22e, InitSemaphore, struct SignalSemaphore *, sigSem, a0, \
  7129. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7130. + #define InitStruct(initTable, memory, size) \
  7131. +     LP3NR(0x4e, InitStruct, APTR, initTable, a1, APTR, memory, a2, unsigned long, size, d0, \
  7132. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7133. + #define Insert(list, node, pred) \
  7134. +     LP3NR(0xea, Insert, struct List *, list, a0, struct Node *, node, a1, struct Node *, pred, a2, \
  7135. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7136. + #define MakeFunctions(target, functionArray, funcDispBase) \
  7137. +     LP3NR(0x5a, MakeFunctions, APTR, target, a0, APTR, functionArray, a1, unsigned long, funcDispBase, a2, \
  7138. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7139. + #define MakeLibrary(funcInit, structInit, libInit, dataSize, segList) \
  7140. +     LP5FP(0x54, struct Library *, MakeLibrary, APTR, funcInit, a0, APTR, structInit, a1, __fpt, libInit, a2, unsigned long, dataSize, d0, unsigned long, segList, d1, \
  7141. +     , EXEC_BASE_NAME, unsigned long (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7142. + #define ObtainQuickVector(interruptCode) \
  7143. +     LP1(0x312, ULONG, ObtainQuickVector, APTR, interruptCode, a0, \
  7144. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7145. + #define ObtainSemaphore(sigSem) \
  7146. +     LP1NR(0x234, ObtainSemaphore, struct SignalSemaphore *, sigSem, a0, \
  7147. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7148. + #define ObtainSemaphoreList(sigSem) \
  7149. +     LP1NR(0x246, ObtainSemaphoreList, struct List *, sigSem, a0, \
  7150. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7151. + #define ObtainSemaphoreShared(sigSem) \
  7152. +     LP1NR(0x2a6, ObtainSemaphoreShared, struct SignalSemaphore *, sigSem, a0, \
  7153. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7154. + #define OldOpenLibrary(libName) \
  7155. +     LP1(0x198, struct Library *, OldOpenLibrary, UBYTE *, libName, a1, \
  7156. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7157. + #define OpenDevice(devName, unit, ioRequest, flags) \
  7158. +     LP4(0x1bc, BYTE, OpenDevice, UBYTE *, devName, a0, unsigned long, unit, d0, struct IORequest *, ioRequest, a1, unsigned long, flags, d1, \
  7159. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7160. + #define OpenLibrary(libName, version) \
  7161. +     LP2(0x228, struct Library *, OpenLibrary, UBYTE *, libName, a1, unsigned long, version, d0, \
  7162. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7163. + #define OpenResource(resName) \
  7164. +     LP1(0x1f2, APTR, OpenResource, UBYTE *, resName, a1, \
  7165. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7166. + #define Permit() \
  7167. +     LP0NR(0x8a, Permit, \
  7168. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7169. + #define Procure(sigSem, bidMsg) \
  7170. +     LP2(0x21c, ULONG, Procure, struct SignalSemaphore *, sigSem, a0, struct SemaphoreMessage *, bidMsg, a1, \
  7171. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7172. + #define PutMsg(port, message) \
  7173. +     LP2NR(0x16e, PutMsg, struct MsgPort *, port, a0, struct Message *, message, a1, \
  7174. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7175. + #define RawDoFmt(formatString, dataStream, putChProc, putChData) \
  7176. +     LP4FP(0x20a, APTR, RawDoFmt, UBYTE *, formatString, a0, APTR, dataStream, a1, __fpt, putChProc, a2, APTR, putChData, a3, \
  7177. +     , EXEC_BASE_NAME, void (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7178. + #define ReleaseSemaphore(sigSem) \
  7179. +     LP1NR(0x23a, ReleaseSemaphore, struct SignalSemaphore *, sigSem, a0, \
  7180. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7181. + #define ReleaseSemaphoreList(sigSem) \
  7182. +     LP1NR(0x24c, ReleaseSemaphoreList, struct List *, sigSem, a0, \
  7183. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7184. + #define RemDevice(device) \
  7185. +     LP1NR(0x1b6, RemDevice, struct Device *, device, a1, \
  7186. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7187. + #define RemHead(list) \
  7188. +     LP1(0x102, struct Node *, RemHead, struct List *, list, a0, \
  7189. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7190. + #define RemIntServer(intNumber, interrupt) \
  7191. +     LP2NR(0xae, RemIntServer, long, intNumber, d0, struct Interrupt *, interrupt, a1, \
  7192. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7193. + #define RemLibrary(library) \
  7194. +     LP1NR(0x192, RemLibrary, struct Library *, library, a1, \
  7195. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7196. + #define RemMemHandler(memhand) \
  7197. +     LP1NR(0x30c, RemMemHandler, struct Interrupt *, memhand, a1, \
  7198. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7199. + #define RemPort(port) \
  7200. +     LP1NR(0x168, RemPort, struct MsgPort *, port, a1, \
  7201. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7202. + #define RemResource(resource) \
  7203. +     LP1NR(0x1ec, RemResource, APTR, resource, a1, \
  7204. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7205. + #define RemSemaphore(sigSem) \
  7206. +     LP1NR(0x25e, RemSemaphore, struct SignalSemaphore *, sigSem, a1, \
  7207. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7208. + #define RemTail(list) \
  7209. +     LP1(0x108, struct Node *, RemTail, struct List *, list, a0, \
  7210. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7211. + #define RemTask(task) \
  7212. +     LP1NR(0x120, RemTask, struct Task *, task, a1, \
  7213. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7214. + #define Remove(node) \
  7215. +     LP1NR(0xfc, Remove, struct Node *, node, a1, \
  7216. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7217. + #define ReplyMsg(message) \
  7218. +     LP1NR(0x17a, ReplyMsg, struct Message *, message, a1, \
  7219. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7220. + #define SendIO(ioRequest) \
  7221. +     LP1NR(0x1ce, SendIO, struct IORequest *, ioRequest, a1, \
  7222. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7223. + #define SetExcept(newSignals, signalSet) \
  7224. +     LP2(0x138, ULONG, SetExcept, unsigned long, newSignals, d0, unsigned long, signalSet, d1, \
  7225. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7226. + #define SetFunction(library, funcOffset, newFunction) \
  7227. +     LP3FP(0x1a4, APTR, SetFunction, struct Library *, library, a1, long, funcOffset, a0, __fpt, newFunction, d0, \
  7228. +     , EXEC_BASE_NAME, unsigned long (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7229. + #define SetIntVector(intNumber, interrupt) \
  7230. +     LP2(0xa2, struct Interrupt *, SetIntVector, long, intNumber, d0, struct Interrupt *, interrupt, a1, \
  7231. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7232. + #define SetSR(newSR, mask) \
  7233. +     LP2(0x90, ULONG, SetSR, unsigned long, newSR, d0, unsigned long, mask, d1, \
  7234. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7235. + #define SetSignal(newSignals, signalSet) \
  7236. +     LP2(0x132, ULONG, SetSignal, unsigned long, newSignals, d0, unsigned long, signalSet, d1, \
  7237. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7238. + #define SetTaskPri(task, priority) \
  7239. +     LP2(0x12c, BYTE, SetTaskPri, struct Task *, task, a1, long, priority, d0, \
  7240. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7241. + #define Signal(task, signalSet) \
  7242. +     LP2NR(0x144, Signal, struct Task *, task, a1, unsigned long, signalSet, d0, \
  7243. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7244. + #define StackSwap(newStack) \
  7245. +     LP1NR(0x2dc, StackSwap, struct StackSwapStruct *, newStack, a0, \
  7246. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7247. + #define SumKickData() \
  7248. +     LP0(0x264, ULONG, SumKickData, \
  7249. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7250. + #define SumLibrary(library) \
  7251. +     LP1NR(0x1aa, SumLibrary, struct Library *, library, a1, \
  7252. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7253. + #define SuperState() \
  7254. +     LP0(0x96, APTR, SuperState, \
  7255. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7256. + #define Supervisor(userFunction) \
  7257. +     LP1A5FP(0x1e, ULONG, Supervisor, __fpt, userFunction, a5, \
  7258. +     , EXEC_BASE_NAME, unsigned long (*__fpt)(), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7259. + #define TypeOfMem(address) \
  7260. +     LP1(0x216, ULONG, TypeOfMem, APTR, address, a1, \
  7261. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7262. + #define UserState(sysStack) \
  7263. +     LP1NR(0x9c, UserState, APTR, sysStack, d0, \
  7264. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7265. + #define Vacate(sigSem, bidMsg) \
  7266. +     LP2NR(0x222, Vacate, struct SignalSemaphore *, sigSem, a0, struct SemaphoreMessage *, bidMsg, a1, \
  7267. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7268. + #define Wait(signalSet) \
  7269. +     LP1(0x13e, ULONG, Wait, unsigned long, signalSet, d0, \
  7270. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7271. + #define WaitIO(ioRequest) \
  7272. +     LP1(0x1da, BYTE, WaitIO, struct IORequest *, ioRequest, a1, \
  7273. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7274. + #define WaitPort(port) \
  7275. +     LP1(0x180, struct Message *, WaitPort, struct MsgPort *, port, a0, \
  7276. +     , EXEC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7277. + #endif /* !_PPCINLINE_EXEC_H */
  7278. diff -c2 -d -P -r include_h/powerup/ppcinline/expansion.h includenew/powerup/ppcinline/expansion.h
  7279. *** include_h/powerup/ppcinline/expansion.h    Thu Jan  1 00:00:00 1970
  7280. --- includenew/powerup/ppcinline/expansion.h    Thu Nov  2 22:27:09 2000
  7281. ***************
  7282. *** 0 ****
  7283. --- 1,98 ----
  7284. + /* Automatically generated header! Do not edit! */
  7285. + #ifndef _PPCINLINE_EXPANSION_H
  7286. + #define _PPCINLINE_EXPANSION_H
  7287. + #ifndef __PPCINLINE_MACROS_H
  7288. + #include <powerup/ppcinline/macros.h>
  7289. + #endif /* !__PPCINLINE_MACROS_H */
  7290. + #ifndef EXPANSION_BASE_NAME
  7291. + #define EXPANSION_BASE_NAME ExpansionBase
  7292. + #endif /* !EXPANSION_BASE_NAME */
  7293. + #define AddBootNode(bootPri, flags, deviceNode, configDev) \
  7294. +     LP4(0x24, BOOL, AddBootNode, long, bootPri, d0, unsigned long, flags, d1, struct DeviceNode *, deviceNode, a0, struct ConfigDev *, configDev, a1, \
  7295. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7296. + #define AddConfigDev(configDev) \
  7297. +     LP1NR(0x1e, AddConfigDev, struct ConfigDev *, configDev, a0, \
  7298. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7299. + #define AddDosNode(bootPri, flags, deviceNode) \
  7300. +     LP3(0x96, BOOL, AddDosNode, long, bootPri, d0, unsigned long, flags, d1, struct DeviceNode *, deviceNode, a0, \
  7301. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7302. + #define AllocBoardMem(slotSpec) \
  7303. +     LP1NR(0x2a, AllocBoardMem, unsigned long, slotSpec, d0, \
  7304. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7305. + #define AllocConfigDev() \
  7306. +     LP0(0x30, struct ConfigDev *, AllocConfigDev, \
  7307. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7308. + #define AllocExpansionMem(numSlots, slotAlign) \
  7309. +     LP2(0x36, APTR, AllocExpansionMem, unsigned long, numSlots, d0, unsigned long, slotAlign, d1, \
  7310. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7311. + #define ConfigBoard(board, configDev) \
  7312. +     LP2NR(0x3c, ConfigBoard, APTR, board, a0, struct ConfigDev *, configDev, a1, \
  7313. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7314. + #define ConfigChain(baseAddr) \
  7315. +     LP1NR(0x42, ConfigChain, APTR, baseAddr, a0, \
  7316. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7317. + #define FindConfigDev(oldConfigDev, manufacturer, product) \
  7318. +     LP3(0x48, struct ConfigDev *, FindConfigDev, struct ConfigDev *, oldConfigDev, a0, long, manufacturer, d0, long, product, d1, \
  7319. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7320. + #define FreeBoardMem(startSlot, slotSpec) \
  7321. +     LP2NR(0x4e, FreeBoardMem, unsigned long, startSlot, d0, unsigned long, slotSpec, d1, \
  7322. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7323. + #define FreeConfigDev(configDev) \
  7324. +     LP1NR(0x54, FreeConfigDev, struct ConfigDev *, configDev, a0, \
  7325. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7326. + #define FreeExpansionMem(startSlot, numSlots) \
  7327. +     LP2NR(0x5a, FreeExpansionMem, unsigned long, startSlot, d0, unsigned long, numSlots, d1, \
  7328. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7329. + #define GetCurrentBinding(currentBinding, bindingSize) \
  7330. +     LP2(0x8a, ULONG, GetCurrentBinding, struct CurrentBinding *, currentBinding, a0, unsigned long, bindingSize, d0, \
  7331. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7332. + #define MakeDosNode(parmPacket) \
  7333. +     LP1(0x90, struct DeviceNode *, MakeDosNode, APTR, parmPacket, a0, \
  7334. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7335. + #define ObtainConfigBinding() \
  7336. +     LP0NR(0x78, ObtainConfigBinding, \
  7337. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7338. + #define ReadExpansionByte(board, offset) \
  7339. +     LP2(0x60, UBYTE, ReadExpansionByte, APTR, board, a0, unsigned long, offset, d0, \
  7340. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7341. + #define ReadExpansionRom(board, configDev) \
  7342. +     LP2NR(0x66, ReadExpansionRom, APTR, board, a0, struct ConfigDev *, configDev, a1, \
  7343. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7344. + #define ReleaseConfigBinding() \
  7345. +     LP0NR(0x7e, ReleaseConfigBinding, \
  7346. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7347. + #define RemConfigDev(configDev) \
  7348. +     LP1NR(0x6c, RemConfigDev, struct ConfigDev *, configDev, a0, \
  7349. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7350. + #define SetCurrentBinding(currentBinding, bindingSize) \
  7351. +     LP2NR(0x84, SetCurrentBinding, struct CurrentBinding *, currentBinding, a0, unsigned long, bindingSize, d0, \
  7352. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7353. + #define WriteExpansionByte(board, offset, byte) \
  7354. +     LP3NR(0x72, WriteExpansionByte, APTR, board, a0, unsigned long, offset, d0, unsigned long, byte, d1, \
  7355. +     , EXPANSION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7356. + #endif /* !_PPCINLINE_EXPANSION_H */
  7357. diff -c2 -d -P -r include_h/powerup/ppcinline/gadtools.h includenew/powerup/ppcinline/gadtools.h
  7358. *** include_h/powerup/ppcinline/gadtools.h    Thu Jan  1 00:00:00 1970
  7359. --- includenew/powerup/ppcinline/gadtools.h    Thu Nov  2 22:27:10 2000
  7360. ***************
  7361. *** 0 ****
  7362. --- 1,130 ----
  7363. + /* Automatically generated header! Do not edit! */
  7364. + #ifndef _PPCINLINE_GADTOOLS_H
  7365. + #define _PPCINLINE_GADTOOLS_H
  7366. + #ifndef __PPCINLINE_MACROS_H
  7367. + #include <powerup/ppcinline/macros.h>
  7368. + #endif /* !__PPCINLINE_MACROS_H */
  7369. + #ifndef GADTOOLS_BASE_NAME
  7370. + #define GADTOOLS_BASE_NAME GadToolsBase
  7371. + #endif /* !GADTOOLS_BASE_NAME */
  7372. + #define CreateContext(glistptr) \
  7373. +     LP1(0x72, struct Gadget *, CreateContext, struct Gadget **, glistptr, a0, \
  7374. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7375. + #define CreateGadgetA(kind, gad, ng, taglist) \
  7376. +     LP4(0x1e, struct Gadget *, CreateGadgetA, unsigned long, kind, d0, struct Gadget *, gad, a0, struct NewGadget *, ng, a1, struct TagItem *, taglist, a2, \
  7377. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7378. + #ifndef NO_PPCINLINE_STDARG
  7379. + #define CreateGadget(a0, a1, a2, tags...) \
  7380. +     ({ULONG _tags[] = { tags }; CreateGadgetA((a0), (a1), (a2), (struct TagItem *)_tags);})
  7381. + #endif /* !NO_PPCINLINE_STDARG */
  7382. + #define CreateMenusA(newmenu, taglist) \
  7383. +     LP2(0x30, struct Menu *, CreateMenusA, struct NewMenu *, newmenu, a0, struct TagItem *, taglist, a1, \
  7384. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7385. + #ifndef NO_PPCINLINE_STDARG
  7386. + #define CreateMenus(a0, tags...) \
  7387. +     ({ULONG _tags[] = { tags }; CreateMenusA((a0), (struct TagItem *)_tags);})
  7388. + #endif /* !NO_PPCINLINE_STDARG */
  7389. + #define DrawBevelBoxA(rport, left, top, width, height, taglist) \
  7390. +     LP6NR(0x78, DrawBevelBoxA, struct RastPort *, rport, a0, long, left, d0, long, top, d1, long, width, d2, long, height, d3, struct TagItem *, taglist, a1, \
  7391. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7392. + #ifndef NO_PPCINLINE_STDARG
  7393. + #define DrawBevelBox(a0, a1, a2, a3, a4, tags...) \
  7394. +     ({ULONG _tags[] = { tags }; DrawBevelBoxA((a0), (a1), (a2), (a3), (a4), (struct TagItem *)_tags);})
  7395. + #endif /* !NO_PPCINLINE_STDARG */
  7396. + #define FreeGadgets(gad) \
  7397. +     LP1NR(0x24, FreeGadgets, struct Gadget *, gad, a0, \
  7398. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7399. + #define FreeMenus(menu) \
  7400. +     LP1NR(0x36, FreeMenus, struct Menu *, menu, a0, \
  7401. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7402. + #define FreeVisualInfo(vi) \
  7403. +     LP1NR(0x84, FreeVisualInfo, APTR, vi, a0, \
  7404. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7405. + #define GT_BeginRefresh(win) \
  7406. +     LP1NR(0x5a, GT_BeginRefresh, struct Window *, win, a0, \
  7407. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7408. + #define GT_EndRefresh(win, complete) \
  7409. +     LP2NR(0x60, GT_EndRefresh, struct Window *, win, a0, long, complete, d0, \
  7410. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7411. + #define GT_FilterIMsg(imsg) \
  7412. +     LP1(0x66, struct IntuiMessage *, GT_FilterIMsg, struct IntuiMessage *, imsg, a1, \
  7413. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7414. + #define GT_GetGadgetAttrsA(gad, win, req, taglist) \
  7415. +     LP4(0xae, LONG, GT_GetGadgetAttrsA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, taglist, a3, \
  7416. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7417. + #ifndef NO_PPCINLINE_STDARG
  7418. + #define GT_GetGadgetAttrs(a0, a1, a2, tags...) \
  7419. +     ({ULONG _tags[] = { tags }; GT_GetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  7420. + #endif /* !NO_PPCINLINE_STDARG */
  7421. + #define GT_GetIMsg(iport) \
  7422. +     LP1(0x48, struct IntuiMessage *, GT_GetIMsg, struct MsgPort *, iport, a0, \
  7423. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7424. + #define GT_PostFilterIMsg(imsg) \
  7425. +     LP1(0x6c, struct IntuiMessage *, GT_PostFilterIMsg, struct IntuiMessage *, imsg, a1, \
  7426. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7427. + #define GT_RefreshWindow(win, req) \
  7428. +     LP2NR(0x54, GT_RefreshWindow, struct Window *, win, a0, struct Requester *, req, a1, \
  7429. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7430. + #define GT_ReplyIMsg(imsg) \
  7431. +     LP1NR(0x4e, GT_ReplyIMsg, struct IntuiMessage *, imsg, a1, \
  7432. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7433. + #define GT_SetGadgetAttrsA(gad, win, req, taglist) \
  7434. +     LP4NR(0x2a, GT_SetGadgetAttrsA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, taglist, a3, \
  7435. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7436. + #ifndef NO_PPCINLINE_STDARG
  7437. + #define GT_SetGadgetAttrs(a0, a1, a2, tags...) \
  7438. +     ({ULONG _tags[] = { tags }; GT_SetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  7439. + #endif /* !NO_PPCINLINE_STDARG */
  7440. + #define GetVisualInfoA(screen, taglist) \
  7441. +     LP2(0x7e, APTR, GetVisualInfoA, struct Screen *, screen, a0, struct TagItem *, taglist, a1, \
  7442. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7443. + #ifndef NO_PPCINLINE_STDARG
  7444. + #define GetVisualInfo(a0, tags...) \
  7445. +     ({ULONG _tags[] = { tags }; GetVisualInfoA((a0), (struct TagItem *)_tags);})
  7446. + #endif /* !NO_PPCINLINE_STDARG */
  7447. + #define LayoutMenuItemsA(firstitem, vi, taglist) \
  7448. +     LP3(0x3c, BOOL, LayoutMenuItemsA, struct MenuItem *, firstitem, a0, APTR, vi, a1, struct TagItem *, taglist, a2, \
  7449. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7450. + #ifndef NO_PPCINLINE_STDARG
  7451. + #define LayoutMenuItems(a0, a1, tags...) \
  7452. +     ({ULONG _tags[] = { tags }; LayoutMenuItemsA((a0), (a1), (struct TagItem *)_tags);})
  7453. + #endif /* !NO_PPCINLINE_STDARG */
  7454. + #define LayoutMenusA(firstmenu, vi, taglist) \
  7455. +     LP3(0x42, BOOL, LayoutMenusA, struct Menu *, firstmenu, a0, APTR, vi, a1, struct TagItem *, taglist, a2, \
  7456. +     , GADTOOLS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7457. + #ifndef NO_PPCINLINE_STDARG
  7458. + #define LayoutMenus(a0, a1, tags...) \
  7459. +     ({ULONG _tags[] = { tags }; LayoutMenusA((a0), (a1), (struct TagItem *)_tags);})
  7460. + #endif /* !NO_PPCINLINE_STDARG */
  7461. + #endif /* !_PPCINLINE_GADTOOLS_H */
  7462. diff -c2 -d -P -r include_h/powerup/ppcinline/graphics.h includenew/powerup/ppcinline/graphics.h
  7463. *** include_h/powerup/ppcinline/graphics.h    Thu Jan  1 00:00:00 1970
  7464. --- includenew/powerup/ppcinline/graphics.h    Thu Nov  2 22:27:10 2000
  7465. ***************
  7466. *** 0 ****
  7467. --- 1,693 ----
  7468. + /* Automatically generated header! Do not edit! */
  7469. + #ifndef _PPCINLINE_GRAPHICS_H
  7470. + #define _PPCINLINE_GRAPHICS_H
  7471. + #ifndef __PPCINLINE_MACROS_H
  7472. + #include <powerup/ppcinline/macros.h>
  7473. + #endif /* !__PPCINLINE_MACROS_H */
  7474. + #ifndef GRAPHICS_BASE_NAME
  7475. + #define GRAPHICS_BASE_NAME GfxBase
  7476. + #endif /* !GRAPHICS_BASE_NAME */
  7477. + #define AddAnimOb(anOb, anKey, rp) \
  7478. +     LP3NR(0x9c, AddAnimOb, struct AnimOb *, anOb, a0, struct AnimOb **, anKey, a1, struct RastPort *, rp, a2, \
  7479. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7480. + #define AddBob(bob, rp) \
  7481. +     LP2NR(0x60, AddBob, struct Bob *, bob, a0, struct RastPort *, rp, a1, \
  7482. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7483. + #define AddFont(textFont) \
  7484. +     LP1NR(0x1e0, AddFont, struct TextFont *, textFont, a1, \
  7485. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7486. + #define AddVSprite(vSprite, rp) \
  7487. +     LP2NR(0x66, AddVSprite, struct VSprite *, vSprite, a0, struct RastPort *, rp, a1, \
  7488. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7489. + #define AllocBitMap(sizex, sizey, depth, flags, friend_bitmap) \
  7490. +     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, \
  7491. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7492. + #define AllocDBufInfo(vp) \
  7493. +     LP1(0x3c6, struct DBufInfo *, AllocDBufInfo, struct ViewPort *, vp, a0, \
  7494. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7495. + #define AllocRaster(width, height) \
  7496. +     LP2(0x1ec, PLANEPTR, AllocRaster, unsigned long, width, d0, unsigned long, height, d1, \
  7497. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7498. + #define AllocSpriteDataA(bm, tags) \
  7499. +     LP2(0x3fc, struct ExtSprite *, AllocSpriteDataA, struct BitMap *, bm, a2, struct TagItem *, tags, a1, \
  7500. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7501. + #ifndef NO_PPCINLINE_STDARG
  7502. + #define AllocSpriteData(a0, tags...) \
  7503. +     ({ULONG _tags[] = { tags }; AllocSpriteDataA((a0), (struct TagItem *)_tags);})
  7504. + #endif /* !NO_PPCINLINE_STDARG */
  7505. + #define AndRectRegion(region, rectangle) \
  7506. +     LP2NR(0x1f8, AndRectRegion, struct Region *, region, a0, struct Rectangle *, rectangle, a1, \
  7507. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7508. + #define AndRegionRegion(srcRegion, destRegion) \
  7509. +     LP2(0x270, BOOL, AndRegionRegion, struct Region *, srcRegion, a0, struct Region *, destRegion, a1, \
  7510. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7511. + #define Animate(anKey, rp) \
  7512. +     LP2NR(0xa2, Animate, struct AnimOb **, anKey, a0, struct RastPort *, rp, a1, \
  7513. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7514. + #define AreaDraw(rp, x, y) \
  7515. +     LP3(0x102, LONG, AreaDraw, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \
  7516. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7517. + #define AreaEllipse(rp, xCenter, yCenter, a, b) \
  7518. +     LP5(0xba, LONG, AreaEllipse, struct RastPort *, rp, a1, long, xCenter, d0, long, yCenter, d1, long, a, d2, long, b, d3, \
  7519. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7520. + #define AreaEnd(rp) \
  7521. +     LP1(0x108, LONG, AreaEnd, struct RastPort *, rp, a1, \
  7522. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7523. + #define AreaMove(rp, x, y) \
  7524. +     LP3(0xfc, LONG, AreaMove, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \
  7525. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7526. + #define AskFont(rp, textAttr) \
  7527. +     LP2NR(0x1da, AskFont, struct RastPort *, rp, a1, struct TextAttr *, textAttr, a0, \
  7528. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7529. + #define AskSoftStyle(rp) \
  7530. +     LP1(0x54, ULONG, AskSoftStyle, struct RastPort *, rp, a1, \
  7531. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7532. + #define AttachPalExtra(cm, vp) \
  7533. +     LP2(0x342, LONG, AttachPalExtra, struct ColorMap *, cm, a0, struct ViewPort *, vp, a1, \
  7534. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7535. + #define AttemptLockLayerRom(layer) \
  7536. +     LP1A5(0x28e, BOOL, AttemptLockLayerRom, struct Layer *, layer, d7, \
  7537. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7538. + #define BestModeIDA(tags) \
  7539. +     LP1(0x41a, ULONG, BestModeIDA, struct TagItem *, tags, a0, \
  7540. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7541. + #ifndef NO_PPCINLINE_STDARG
  7542. + #define BestModeID(tags...) \
  7543. +     ({ULONG _tags[] = { tags }; BestModeIDA((struct TagItem *)_tags);})
  7544. + #endif /* !NO_PPCINLINE_STDARG */
  7545. + #define BitMapScale(bitScaleArgs) \
  7546. +     LP1NR(0x2a6, BitMapScale, struct BitScaleArgs *, bitScaleArgs, a0, \
  7547. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7548. + #define BltBitMap(srcBitMap, xSrc, ySrc, destBitMap, xDest, yDest, xSize, ySize, minterm, mask, tempA) \
  7549. +     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, \
  7550. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7551. + #define BltBitMapRastPort(srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm) \
  7552. +     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, \
  7553. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7554. + #define BltClear(memBlock, byteCount, flags) \
  7555. +     LP3NR(0x12c, BltClear, PLANEPTR, memBlock, a1, unsigned long, byteCount, d0, unsigned long, flags, d1, \
  7556. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7557. + #define BltMaskBitMapRastPort(srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm, bltMask) \
  7558. +     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, \
  7559. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7560. + #define BltPattern(rp, mask, xMin, yMin, xMax, yMax, maskBPR) \
  7561. +     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, \
  7562. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7563. + #define BltTemplate(source, xSrc, srcMod, destRP, xDest, yDest, xSize, ySize) \
  7564. +     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, \
  7565. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7566. + #define CBump(copList) \
  7567. +     LP1NR(0x16e, CBump, struct UCopList *, copList, a1, \
  7568. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7569. + #define CMove(copList, destination, data) \
  7570. +     LP3NR(0x174, CMove, struct UCopList *, copList, a1, APTR, destination, d0, long, data, d1, \
  7571. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7572. + #define CWait(copList, v, h) \
  7573. +     LP3NR(0x17a, CWait, struct UCopList *, copList, a1, long, v, d0, long, h, d1, \
  7574. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7575. + #define CalcIVG(v, vp) \
  7576. +     LP2(0x33c, UWORD, CalcIVG, struct View *, v, a0, struct ViewPort *, vp, a1, \
  7577. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7578. + #define ChangeExtSpriteA(vp, oldsprite, newsprite, tags) \
  7579. +     LP4(0x402, LONG, ChangeExtSpriteA, struct ViewPort *, vp, a0, struct ExtSprite *, oldsprite, a1, struct ExtSprite *, newsprite, a2, struct TagItem *, tags, a3, \
  7580. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7581. + #ifndef NO_PPCINLINE_STDARG
  7582. + #define ChangeExtSprite(a0, a1, a2, tags...) \
  7583. +     ({ULONG _tags[] = { tags }; ChangeExtSpriteA((a0), (a1), (a2), (struct TagItem *)_tags);})
  7584. + #endif /* !NO_PPCINLINE_STDARG */
  7585. + #define ChangeSprite(vp, sprite, newData) \
  7586. +     LP3NR(0x1a4, ChangeSprite, struct ViewPort *, vp, a0, struct SimpleSprite *, sprite, a1, PLANEPTR, newData, a2, \
  7587. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7588. + #define ChangeVPBitMap(vp, bm, db) \
  7589. +     LP3NR(0x3ae, ChangeVPBitMap, struct ViewPort *, vp, a0, struct BitMap *, bm, a1, struct DBufInfo *, db, a2, \
  7590. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7591. + #define ClearEOL(rp) \
  7592. +     LP1NR(0x2a, ClearEOL, struct RastPort *, rp, a1, \
  7593. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7594. + #define ClearRectRegion(region, rectangle) \
  7595. +     LP2(0x20a, BOOL, ClearRectRegion, struct Region *, region, a0, struct Rectangle *, rectangle, a1, \
  7596. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7597. + #define ClearRegion(region) \
  7598. +     LP1NR(0x210, ClearRegion, struct Region *, region, a0, \
  7599. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7600. + #define ClearScreen(rp) \
  7601. +     LP1NR(0x30, ClearScreen, struct RastPort *, rp, a1, \
  7602. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7603. + #define ClipBlit(srcRP, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm) \
  7604. +     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, \
  7605. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7606. + #define CloseFont(textFont) \
  7607. +     LP1NR(0x4e, CloseFont, struct TextFont *, textFont, a1, \
  7608. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7609. + #define CloseMonitor(monitorSpec) \
  7610. +     LP1(0x2d0, BOOL, CloseMonitor, struct MonitorSpec *, monitorSpec, a0, \
  7611. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7612. + #define CoerceMode(vp, monitorid, flags) \
  7613. +     LP3(0x3a8, ULONG, CoerceMode, struct ViewPort *, vp, a0, unsigned long, monitorid, d0, unsigned long, flags, d1, \
  7614. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7615. + #define CopySBitMap(layer) \
  7616. +     LP1NR(0x1c2, CopySBitMap, struct Layer *, layer, a0, \
  7617. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7618. + #define DisownBlitter() \
  7619. +     LP0NR(0x1ce, DisownBlitter, \
  7620. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7621. + #define DisposeRegion(region) \
  7622. +     LP1NR(0x216, DisposeRegion, struct Region *, region, a0, \
  7623. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7624. + #define DoCollision(rp) \
  7625. +     LP1NR(0x6c, DoCollision, struct RastPort *, rp, a1, \
  7626. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7627. + #define Draw(rp, x, y) \
  7628. +     LP3NR(0xf6, Draw, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \
  7629. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7630. + #define DrawEllipse(rp, xCenter, yCenter, a, b) \
  7631. +     LP5NR(0xb4, DrawEllipse, struct RastPort *, rp, a1, long, xCenter, d0, long, yCenter, d1, long, a, d2, long, b, d3, \
  7632. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7633. + #define DrawGList(rp, vp) \
  7634. +     LP2NR(0x72, DrawGList, struct RastPort *, rp, a1, struct ViewPort *, vp, a0, \
  7635. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7636. + #define EraseRect(rp, xMin, yMin, xMax, yMax) \
  7637. +     LP5NR(0x32a, EraseRect, struct RastPort *, rp, a1, long, xMin, d0, long, yMin, d1, long, xMax, d2, long, yMax, d3, \
  7638. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7639. + #define ExtendFont(font, fontTags) \
  7640. +     LP2(0x330, ULONG, ExtendFont, struct TextFont *, font, a0, struct TagItem *, fontTags, a1, \
  7641. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7642. + #ifndef NO_PPCINLINE_STDARG
  7643. + #define ExtendFontTags(a0, tags...) \
  7644. +     ({ULONG _tags[] = { tags }; ExtendFont((a0), (struct TagItem *)_tags);})
  7645. + #endif /* !NO_PPCINLINE_STDARG */
  7646. + #define FindColor(cm, r, g, b, maxcolor) \
  7647. +     LP5(0x3f0, LONG, FindColor, struct ColorMap *, cm, a3, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, long, maxcolor, d4, \
  7648. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7649. + #define FindDisplayInfo(displayID) \
  7650. +     LP1(0x2d6, DisplayInfoHandle, FindDisplayInfo, unsigned long, displayID, d0, \
  7651. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7652. + #define Flood(rp, mode, x, y) \
  7653. +     LP4(0x14a, BOOL, Flood, struct RastPort *, rp, a1, unsigned long, mode, d2, long, x, d0, long, y, d1, \
  7654. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7655. + #define FontExtent(font, fontExtent) \
  7656. +     LP2NR(0x2fa, FontExtent, struct TextFont *, font, a0, struct TextExtent *, fontExtent, a1, \
  7657. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7658. + #define FreeBitMap(bm) \
  7659. +     LP1NR(0x39c, FreeBitMap, struct BitMap *, bm, a0, \
  7660. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7661. + #define FreeColorMap(colorMap) \
  7662. +     LP1NR(0x240, FreeColorMap, struct ColorMap *, colorMap, a0, \
  7663. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7664. + #define FreeCopList(copList) \
  7665. +     LP1NR(0x222, FreeCopList, struct CopList *, copList, a0, \
  7666. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7667. + #define FreeCprList(cprList) \
  7668. +     LP1NR(0x234, FreeCprList, struct cprlist *, cprList, a0, \
  7669. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7670. + #define FreeDBufInfo(dbi) \
  7671. +     LP1NR(0x3cc, FreeDBufInfo, struct DBufInfo *, dbi, a1, \
  7672. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7673. + #define FreeGBuffers(anOb, rp, flag) \
  7674. +     LP3NR(0x258, FreeGBuffers, struct AnimOb *, anOb, a0, struct RastPort *, rp, a1, long, flag, d0, \
  7675. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7676. + #define FreeRaster(p, width, height) \
  7677. +     LP3NR(0x1f2, FreeRaster, PLANEPTR, p, a0, unsigned long, width, d0, unsigned long, height, d1, \
  7678. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7679. + #define FreeSprite(num) \
  7680. +     LP1NR(0x19e, FreeSprite, long, num, d0, \
  7681. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7682. + #define FreeSpriteData(sp) \
  7683. +     LP1NR(0x408, FreeSpriteData, struct ExtSprite *, sp, a2, \
  7684. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7685. + #define FreeVPortCopLists(vp) \
  7686. +     LP1NR(0x21c, FreeVPortCopLists, struct ViewPort *, vp, a0, \
  7687. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7688. + #define GetAPen(rp) \
  7689. +     LP1(0x35a, ULONG, GetAPen, struct RastPort *, rp, a0, \
  7690. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7691. + #define GetBPen(rp) \
  7692. +     LP1(0x360, ULONG, GetBPen, struct RastPort *, rp, a0, \
  7693. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7694. + #define GetBitMapAttr(bm, attrnum) \
  7695. +     LP2(0x3c0, ULONG, GetBitMapAttr, struct BitMap *, bm, a0, unsigned long, attrnum, d1, \
  7696. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7697. + #define GetColorMap(entries) \
  7698. +     LP1(0x23a, struct ColorMap *, GetColorMap, long, entries, d0, \
  7699. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7700. + #define GetDisplayInfoData(handle, buf, size, tagID, displayID) \
  7701. +     LP5(0x2f4, ULONG, GetDisplayInfoData, DisplayInfoHandle, handle, a0, UBYTE *, buf, a1, unsigned long, size, d0, unsigned long, tagID, d1, unsigned long, displayID, d2, \
  7702. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7703. + #define GetDrMd(rp) \
  7704. +     LP1(0x366, ULONG, GetDrMd, struct RastPort *, rp, a0, \
  7705. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7706. + #define GetExtSpriteA(ss, tags) \
  7707. +     LP2(0x3a2, LONG, GetExtSpriteA, struct ExtSprite *, ss, a2, struct TagItem *, tags, a1, \
  7708. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7709. + #ifndef NO_PPCINLINE_STDARG
  7710. + #define GetExtSprite(a0, tags...) \
  7711. +     ({ULONG _tags[] = { tags }; GetExtSpriteA((a0), (struct TagItem *)_tags);})
  7712. + #endif /* !NO_PPCINLINE_STDARG */
  7713. + #define GetGBuffers(anOb, rp, flag) \
  7714. +     LP3(0xa8, BOOL, GetGBuffers, struct AnimOb *, anOb, a0, struct RastPort *, rp, a1, long, flag, d0, \
  7715. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7716. + #define GetOutlinePen(rp) \
  7717. +     LP1(0x36c, ULONG, GetOutlinePen, struct RastPort *, rp, a0, \
  7718. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7719. + #define GetRGB32(cm, firstcolor, ncolors, table) \
  7720. +     LP4NR(0x384, GetRGB32, struct ColorMap *, cm, a0, unsigned long, firstcolor, d0, unsigned long, ncolors, d1, ULONG *, table, a1, \
  7721. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7722. + #define GetRGB4(colorMap, entry) \
  7723. +     LP2(0x246, ULONG, GetRGB4, struct ColorMap *, colorMap, a0, long, entry, d0, \
  7724. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7725. + #define GetRPAttrsA(rp, tags) \
  7726. +     LP2NR(0x414, GetRPAttrsA, struct RastPort *, rp, a0, struct TagItem *, tags, a1, \
  7727. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7728. + #ifndef NO_PPCINLINE_STDARG
  7729. + #define GetRPAttrs(a0, tags...) \
  7730. +     ({ULONG _tags[] = { tags }; GetRPAttrsA((a0), (struct TagItem *)_tags);})
  7731. + #endif /* !NO_PPCINLINE_STDARG */
  7732. + #define GetSprite(sprite, num) \
  7733. +     LP2(0x198, WORD, GetSprite, struct SimpleSprite *, sprite, a0, long, num, d0, \
  7734. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7735. + #define GetVPModeID(vp) \
  7736. +     LP1(0x318, LONG, GetVPModeID, struct ViewPort *, vp, a0, \
  7737. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7738. + #define GfxAssociate(associateNode, gfxNodePtr) \
  7739. +     LP2NR(0x2a0, GfxAssociate, APTR, associateNode, a0, APTR, gfxNodePtr, a1, \
  7740. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7741. + #define GfxFree(gfxNodePtr) \
  7742. +     LP1NR(0x29a, GfxFree, APTR, gfxNodePtr, a0, \
  7743. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7744. + #define GfxLookUp(associateNode) \
  7745. +     LP1(0x2be, APTR, GfxLookUp, APTR, associateNode, a0, \
  7746. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7747. + #define GfxNew(gfxNodeType) \
  7748. +     LP1(0x294, APTR, GfxNew, unsigned long, gfxNodeType, d0, \
  7749. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7750. + #define InitArea(areaInfo, vectorBuffer, maxVectors) \
  7751. +     LP3NR(0x11a, InitArea, struct AreaInfo *, areaInfo, a0, APTR, vectorBuffer, a1, long, maxVectors, d0, \
  7752. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7753. + #define InitBitMap(bitMap, depth, width, height) \
  7754. +     LP4NR(0x186, InitBitMap, struct BitMap *, bitMap, a0, long, depth, d0, long, width, d1, long, height, d2, \
  7755. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7756. + #define InitGMasks(anOb) \
  7757. +     LP1NR(0xae, InitGMasks, struct AnimOb *, anOb, a0, \
  7758. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7759. + #define InitGels(head, tail, gelsInfo) \
  7760. +     LP3NR(0x78, InitGels, struct VSprite *, head, a0, struct VSprite *, tail, a1, struct GelsInfo *, gelsInfo, a2, \
  7761. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7762. + #define InitMasks(vSprite) \
  7763. +     LP1NR(0x7e, InitMasks, struct VSprite *, vSprite, a0, \
  7764. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7765. + #define InitRastPort(rp) \
  7766. +     LP1NR(0xc6, InitRastPort, struct RastPort *, rp, a1, \
  7767. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7768. + #define InitTmpRas(tmpRas, buffer, size) \
  7769. +     LP3(0x1d4, struct TmpRas *, InitTmpRas, struct TmpRas *, tmpRas, a0, PLANEPTR, buffer, a1, long, size, d0, \
  7770. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7771. + #define InitVPort(vp) \
  7772. +     LP1NR(0xcc, InitVPort, struct ViewPort *, vp, a0, \
  7773. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7774. + #define InitView(view) \
  7775. +     LP1NR(0x168, InitView, struct View *, view, a1, \
  7776. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7777. + #define LoadRGB32(vp, table) \
  7778. +     LP2NR(0x372, LoadRGB32, struct ViewPort *, vp, a0, ULONG *, table, a1, \
  7779. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7780. + #define LoadRGB4(vp, colors, count) \
  7781. +     LP3NR(0xc0, LoadRGB4, struct ViewPort *, vp, a0, UWORD *, colors, a1, long, count, d0, \
  7782. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7783. + #define LoadView(view) \
  7784. +     LP1NR(0xde, LoadView, struct View *, view, a1, \
  7785. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7786. + #define LockLayerRom(layer) \
  7787. +     LP1NRA5(0x1b0, LockLayerRom, struct Layer *, layer, d7, \
  7788. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7789. + #define MakeVPort(view, vp) \
  7790. +     LP2(0xd8, ULONG, MakeVPort, struct View *, view, a0, struct ViewPort *, vp, a1, \
  7791. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7792. + #define ModeNotAvailable(modeID) \
  7793. +     LP1(0x31e, LONG, ModeNotAvailable, unsigned long, modeID, d0, \
  7794. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7795. + #define Move(rp, x, y) \
  7796. +     LP3NR(0xf0, Move, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \
  7797. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7798. + #define MoveSprite(vp, sprite, x, y) \
  7799. +     LP4NR(0x1aa, MoveSprite, struct ViewPort *, vp, a0, struct SimpleSprite *, sprite, a1, long, x, d0, long, y, d1, \
  7800. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7801. + #define MrgCop(view) \
  7802. +     LP1(0xd2, ULONG, MrgCop, struct View *, view, a1, \
  7803. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7804. + #define NewRegion() \
  7805. +     LP0(0x204, struct Region *, NewRegion, \
  7806. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7807. + #define NextDisplayInfo(displayID) \
  7808. +     LP1(0x2dc, ULONG, NextDisplayInfo, unsigned long, displayID, d0, \
  7809. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7810. + #define ObtainBestPenA(cm, r, g, b, tags) \
  7811. +     LP5(0x348, LONG, ObtainBestPenA, struct ColorMap *, cm, a0, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, struct TagItem *, tags, a1, \
  7812. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7813. + #ifndef NO_PPCINLINE_STDARG
  7814. + #define ObtainBestPen(a0, a1, a2, a3, tags...) \
  7815. +     ({ULONG _tags[] = { tags }; ObtainBestPenA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);})
  7816. + #endif /* !NO_PPCINLINE_STDARG */
  7817. + #define ObtainPen(cm, n, r, g, b, f) \
  7818. +     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, \
  7819. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7820. + #define OpenFont(textAttr) \
  7821. +     LP1(0x48, struct TextFont *, OpenFont, struct TextAttr *, textAttr, a0, \
  7822. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7823. + #define OpenMonitor(monitorName, displayID) \
  7824. +     LP2(0x2ca, struct MonitorSpec *, OpenMonitor, STRPTR, monitorName, a1, unsigned long, displayID, d0, \
  7825. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7826. + #define OrRectRegion(region, rectangle) \
  7827. +     LP2(0x1fe, BOOL, OrRectRegion, struct Region *, region, a0, struct Rectangle *, rectangle, a1, \
  7828. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7829. + #define OrRegionRegion(srcRegion, destRegion) \
  7830. +     LP2(0x264, BOOL, OrRegionRegion, struct Region *, srcRegion, a0, struct Region *, destRegion, a1, \
  7831. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7832. + #define OwnBlitter() \
  7833. +     LP0NR(0x1c8, OwnBlitter, \
  7834. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7835. + #define PolyDraw(rp, count, polyTable) \
  7836. +     LP3NR(0x150, PolyDraw, struct RastPort *, rp, a1, long, count, d0, WORD *, polyTable, a0, \
  7837. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7838. + #define QBSBlit(blit) \
  7839. +     LP1NR(0x126, QBSBlit, struct bltnode *, blit, a1, \
  7840. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7841. + #define QBlit(blit) \
  7842. +     LP1NR(0x114, QBlit, struct bltnode *, blit, a1, \
  7843. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7844. + #define ReadPixel(rp, x, y) \
  7845. +     LP3(0x13e, ULONG, ReadPixel, struct RastPort *, rp, a1, long, x, d0, long, y, d1, \
  7846. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7847. + #define ReadPixelArray8(rp, xstart, ystart, xstop, ystop, array, temprp) \
  7848. +     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, \
  7849. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7850. + #define ReadPixelLine8(rp, xstart, ystart, width, array, tempRP) \
  7851. +     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, \
  7852. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7853. + #define RectFill(rp, xMin, yMin, xMax, yMax) \
  7854. +     LP5NR(0x132, RectFill, struct RastPort *, rp, a1, long, xMin, d0, long, yMin, d1, long, xMax, d2, long, yMax, d3, \
  7855. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7856. + #define ReleasePen(cm, n) \
  7857. +     LP2NR(0x3b4, ReleasePen, struct ColorMap *, cm, a0, unsigned long, n, d0, \
  7858. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7859. + #define RemFont(textFont) \
  7860. +     LP1NR(0x1e6, RemFont, struct TextFont *, textFont, a1, \
  7861. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7862. + #define RemIBob(bob, rp, vp) \
  7863. +     LP3NR(0x84, RemIBob, struct Bob *, bob, a0, struct RastPort *, rp, a1, struct ViewPort *, vp, a2, \
  7864. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7865. + #define RemVSprite(vSprite) \
  7866. +     LP1NR(0x8a, RemVSprite, struct VSprite *, vSprite, a0, \
  7867. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7868. + #define ScalerDiv(factor, numerator, denominator) \
  7869. +     LP3(0x2ac, UWORD, ScalerDiv, unsigned long, factor, d0, unsigned long, numerator, d1, unsigned long, denominator, d2, \
  7870. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7871. + #define ScrollRaster(rp, dx, dy, xMin, yMin, xMax, yMax) \
  7872. +     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, \
  7873. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7874. + #define ScrollRasterBF(rp, dx, dy, xMin, yMin, xMax, yMax) \
  7875. +     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, \
  7876. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7877. + #define ScrollVPort(vp) \
  7878. +     LP1NR(0x24c, ScrollVPort, struct ViewPort *, vp, a0, \
  7879. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7880. + #define SetABPenDrMd(rp, apen, bpen, drawmode) \
  7881. +     LP4NR(0x37e, SetABPenDrMd, struct RastPort *, rp, a1, unsigned long, apen, d0, unsigned long, bpen, d1, unsigned long, drawmode, d2, \
  7882. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7883. + #define SetAPen(rp, pen) \
  7884. +     LP2NR(0x156, SetAPen, struct RastPort *, rp, a1, unsigned long, pen, d0, \
  7885. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7886. + #define SetBPen(rp, pen) \
  7887. +     LP2NR(0x15c, SetBPen, struct RastPort *, rp, a1, unsigned long, pen, d0, \
  7888. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7889. + #define SetChipRev(want) \
  7890. +     LP1(0x378, ULONG, SetChipRev, unsigned long, want, d0, \
  7891. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7892. + #define SetCollision(num, routine, gelsInfo) \
  7893. +     LP3NRFP(0x90, SetCollision, unsigned long, num, d0, __fpt, routine, a0, struct GelsInfo *, gelsInfo, a1, \
  7894. +     , GRAPHICS_BASE_NAME, void (*__fpt)(struct VSprite *vSprite, APTR), IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7895. + #define SetDrMd(rp, drawMode) \
  7896. +     LP2NR(0x162, SetDrMd, struct RastPort *, rp, a1, unsigned long, drawMode, d0, \
  7897. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7898. + #define SetFont(rp, textFont) \
  7899. +     LP2(0x42, LONG, SetFont, struct RastPort *, rp, a1, struct TextFont *, textFont, a0, \
  7900. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7901. + #define SetMaxPen(rp, maxpen) \
  7902. +     LP2NR(0x3de, SetMaxPen, struct RastPort *, rp, a0, unsigned long, maxpen, d0, \
  7903. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7904. + #define SetOutlinePen(rp, pen) \
  7905. +     LP2(0x3d2, ULONG, SetOutlinePen, struct RastPort *, rp, a0, unsigned long, pen, d0, \
  7906. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7907. + #define SetRGB32(vp, n, r, g, b) \
  7908. +     LP5NR(0x354, SetRGB32, struct ViewPort *, vp, a0, unsigned long, n, d0, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, \
  7909. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7910. + #define SetRGB32CM(cm, n, r, g, b) \
  7911. +     LP5NR(0x3e4, SetRGB32CM, struct ColorMap *, cm, a0, unsigned long, n, d0, unsigned long, r, d1, unsigned long, g, d2, unsigned long, b, d3, \
  7912. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7913. + #define SetRGB4(vp, index, red, green, blue) \
  7914. +     LP5NR(0x120, SetRGB4, struct ViewPort *, vp, a0, long, index, d0, unsigned long, red, d1, unsigned long, green, d2, unsigned long, blue, d3, \
  7915. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7916. + #define SetRGB4CM(colorMap, index, red, green, blue) \
  7917. +     LP5NR(0x276, SetRGB4CM, struct ColorMap *, colorMap, a0, long, index, d0, unsigned long, red, d1, unsigned long, green, d2, unsigned long, blue, d3, \
  7918. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7919. + #define SetRPAttrsA(rp, tags) \
  7920. +     LP2NR(0x40e, SetRPAttrsA, struct RastPort *, rp, a0, struct TagItem *, tags, a1, \
  7921. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7922. + #ifndef NO_PPCINLINE_STDARG
  7923. + #define SetRPAttrs(a0, tags...) \
  7924. +     ({ULONG _tags[] = { tags }; SetRPAttrsA((a0), (struct TagItem *)_tags);})
  7925. + #endif /* !NO_PPCINLINE_STDARG */
  7926. + #define SetRast(rp, pen) \
  7927. +     LP2NR(0xea, SetRast, struct RastPort *, rp, a1, unsigned long, pen, d0, \
  7928. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7929. + #define SetSoftStyle(rp, style, enable) \
  7930. +     LP3(0x5a, ULONG, SetSoftStyle, struct RastPort *, rp, a1, unsigned long, style, d0, unsigned long, enable, d1, \
  7931. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7932. + #define SetWriteMask(rp, msk) \
  7933. +     LP2(0x3d8, ULONG, SetWriteMask, struct RastPort *, rp, a0, unsigned long, msk, d0, \
  7934. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7935. + #define SortGList(rp) \
  7936. +     LP1NR(0x96, SortGList, struct RastPort *, rp, a1, \
  7937. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7938. + #define StripFont(font) \
  7939. +     LP1NR(0x336, StripFont, struct TextFont *, font, a0, \
  7940. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7941. + #define SyncSBitMap(layer) \
  7942. +     LP1NR(0x1bc, SyncSBitMap, struct Layer *, layer, a0, \
  7943. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7944. + #define Text(rp, string, count) \
  7945. +     LP3(0x3c, LONG, Text, struct RastPort *, rp, a1, STRPTR, string, a0, unsigned long, count, d0, \
  7946. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7947. + #define TextExtent(rp, string, count, textExtent) \
  7948. +     LP4(0x2b2, WORD, TextExtent, struct RastPort *, rp, a1, STRPTR, string, a0, long, count, d0, struct TextExtent *, textExtent, a2, \
  7949. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7950. + #define TextFit(rp, string, strLen, textExtent, constrainingExtent, strDirection, constrainingBitWidth, constrainingBitHeight) \
  7951. +     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, \
  7952. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7953. + #define TextLength(rp, string, count) \
  7954. +     LP3(0x36, WORD, TextLength, struct RastPort *, rp, a1, STRPTR, string, a0, unsigned long, count, d0, \
  7955. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7956. + #define UCopperListInit(uCopList, n) \
  7957. +     LP2(0x252, struct CopList *, UCopperListInit, struct UCopList *, uCopList, a0, long, n, d0, \
  7958. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7959. + #define UnlockLayerRom(layer) \
  7960. +     LP1NRA5(0x1b6, UnlockLayerRom, struct Layer *, layer, d7, \
  7961. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7962. + #define VBeamPos() \
  7963. +     LP0(0x180, LONG, VBeamPos, \
  7964. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7965. + #define VideoControl(colorMap, tagarray) \
  7966. +     LP2(0x2c4, BOOL, VideoControl, struct ColorMap *, colorMap, a0, struct TagItem *, tagarray, a1, \
  7967. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7968. + #ifndef NO_PPCINLINE_STDARG
  7969. + #define VideoControlTags(a0, tags...) \
  7970. +     ({ULONG _tags[] = { tags }; VideoControl((a0), (struct TagItem *)_tags);})
  7971. + #endif /* !NO_PPCINLINE_STDARG */
  7972. + #define WaitBOVP(vp) \
  7973. +     LP1NR(0x192, WaitBOVP, struct ViewPort *, vp, a0, \
  7974. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7975. + #define WaitBlit() \
  7976. +     LP0NR(0xe4, WaitBlit, \
  7977. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7978. + #define WaitTOF() \
  7979. +     LP0NR(0x10e, WaitTOF, \
  7980. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7981. + #define WeighTAMatch(reqTextAttr, targetTextAttr, targetTags) \
  7982. +     LP3(0x324, WORD, WeighTAMatch, struct TextAttr *, reqTextAttr, a0, struct TextAttr *, targetTextAttr, a1, struct TagItem *, targetTags, a2, \
  7983. +     , GRAPHICS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  7984. + #ifndef NO_PPCINLINE_STDARG
  7985. + #define WeighTAMatchTags(a0, a1, tags...) \
  7986. +     ({ULONG _tags[] = { tags }; WeighTAMatch((a0), (a1), (struct TagItem *)_tags);})
  7987. + #endif /* !NO_PPCINLINE_STDARG */
  7988. + #define WriteChunkyPixels(rp, xstart, ystart, xstop, ystop, array, bytesperrow) \
  7989. +     LP7NR(0x420, WriteChunkyPixels, struct RastPort *, rp, a0, unsigned long, xstart, d0, unsigned long, ystart, d1, unsigned long, xstop, d2, unsigned long, ys
  7990. \ No newline at end of file
  7991. diff -c2 -d -P -r include_h/powerup/ppcinline/icon.h includenew/powerup/ppcinline/icon.h
  7992. *** include_h/powerup/ppcinline/icon.h    Thu Jan  1 00:00:00 1970
  7993. --- includenew/powerup/ppcinline/icon.h    Thu Nov  2 22:27:10 2000
  7994. ***************
  7995. *** 0 ****
  7996. --- 1,62 ----
  7997. + /* Automatically generated header! Do not edit! */
  7998. + #ifndef _PPCINLINE_ICON_H
  7999. + #define _PPCINLINE_ICON_H
  8000. + #ifndef __PPCINLINE_MACROS_H
  8001. + #include <powerup/ppcinline/macros.h>
  8002. + #endif /* !__PPCINLINE_MACROS_H */
  8003. + #ifndef ICON_BASE_NAME
  8004. + #define ICON_BASE_NAME IconBase
  8005. + #endif /* !ICON_BASE_NAME */
  8006. + #define AddFreeList(freelist, mem, size) \
  8007. +     LP3(0x48, BOOL, AddFreeList, struct FreeList *, freelist, a0, APTR, mem, a1, unsigned long, size, a2, \
  8008. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8009. + #define BumpRevision(newname, oldname) \
  8010. +     LP2(0x6c, UBYTE *, BumpRevision, UBYTE *, newname, a0, UBYTE *, oldname, a1, \
  8011. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8012. + #define DeleteDiskObject(name) \
  8013. +     LP1(0x8a, BOOL, DeleteDiskObject, UBYTE *, name, a0, \
  8014. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8015. + #define FindToolType(toolTypeArray, typeName) \
  8016. +     LP2(0x60, UBYTE *, FindToolType, UBYTE **, toolTypeArray, a0, UBYTE *, typeName, a1, \
  8017. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8018. + #define FreeDiskObject(diskobj) \
  8019. +     LP1NR(0x5a, FreeDiskObject, struct DiskObject *, diskobj, a0, \
  8020. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8021. + #define FreeFreeList(freelist) \
  8022. +     LP1NR(0x36, FreeFreeList, struct FreeList *, freelist, a0, \
  8023. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8024. + #define GetDefDiskObject(type) \
  8025. +     LP1(0x78, struct DiskObject *, GetDefDiskObject, long, type, d0, \
  8026. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8027. + #define GetDiskObject(name) \
  8028. +     LP1(0x4e, struct DiskObject *, GetDiskObject, UBYTE *, name, a0, \
  8029. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8030. + #define GetDiskObjectNew(name) \
  8031. +     LP1(0x84, struct DiskObject *, GetDiskObjectNew, UBYTE *, name, a0, \
  8032. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8033. + #define MatchToolValue(typeString, value) \
  8034. +     LP2(0x66, BOOL, MatchToolValue, UBYTE *, typeString, a0, UBYTE *, value, a1, \
  8035. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8036. + #define PutDefDiskObject(diskObject) \
  8037. +     LP1(0x7e, BOOL, PutDefDiskObject, struct DiskObject *, diskObject, a0, \
  8038. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8039. + #define PutDiskObject(name, diskobj) \
  8040. +     LP2(0x54, BOOL, PutDiskObject, UBYTE *, name, a0, struct DiskObject *, diskobj, a1, \
  8041. +     , ICON_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8042. + #endif /* !_PPCINLINE_ICON_H */
  8043. diff -c2 -d -P -r include_h/powerup/ppcinline/iffparse.h includenew/powerup/ppcinline/iffparse.h
  8044. *** include_h/powerup/ppcinline/iffparse.h    Thu Jan  1 00:00:00 1970
  8045. --- includenew/powerup/ppcinline/iffparse.h    Thu Nov  2 22:27:08 2000
  8046. ***************
  8047. *** 0 ****
  8048. --- 1,174 ----
  8049. + /* Automatically generated header! Do not edit! */
  8050. + #ifndef _PPCINLINE_IFFPARSE_H
  8051. + #define _PPCINLINE_IFFPARSE_H
  8052. + #ifndef __PPCINLINE_MACROS_H
  8053. + #include <powerup/ppcinline/macros.h>
  8054. + #endif /* !__PPCINLINE_MACROS_H */
  8055. + #ifndef IFFPARSE_BASE_NAME
  8056. + #define IFFPARSE_BASE_NAME IFFParseBase
  8057. + #endif /* !IFFPARSE_BASE_NAME */
  8058. + #define AllocIFF() \
  8059. +     LP0(0x1e, struct IFFHandle *, AllocIFF, \
  8060. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8061. + #define AllocLocalItem(type, id, ident, dataSize) \
  8062. +     LP4(0xba, struct LocalContextItem *, AllocLocalItem, long, type, d0, long, id, d1, long, ident, d2, long, dataSize, d3, \
  8063. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8064. + #define CloseClipboard(clipHandle) \
  8065. +     LP1NR(0xfc, CloseClipboard, struct ClipboardHandle *, clipHandle, a0, \
  8066. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8067. + #define CloseIFF(iff) \
  8068. +     LP1NR(0x30, CloseIFF, struct IFFHandle *, iff, a0, \
  8069. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8070. + #define CollectionChunk(iff, type, id) \
  8071. +     LP3(0x8a, LONG, CollectionChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  8072. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8073. + #define CollectionChunks(iff, propArray, numPairs) \
  8074. +     LP3(0x90, LONG, CollectionChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \
  8075. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8076. + #define CurrentChunk(iff) \
  8077. +     LP1(0xae, struct ContextNode *, CurrentChunk, struct IFFHandle *, iff, a0, \
  8078. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8079. + #define EntryHandler(iff, type, id, position, handler, object) \
  8080. +     LP6(0x66, LONG, EntryHandler, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, position, d2, struct Hook *, handler, a1, APTR, object, a2, \
  8081. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8082. + #define ExitHandler(iff, type, id, position, handler, object) \
  8083. +     LP6(0x6c, LONG, ExitHandler, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, position, d2, struct Hook *, handler, a1, APTR, object, a2, \
  8084. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8085. + #define FindCollection(iff, type, id) \
  8086. +     LP3(0xa2, struct CollectionItem *, FindCollection, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  8087. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8088. + #define FindLocalItem(iff, type, id, ident) \
  8089. +     LP4(0xd2, struct LocalContextItem *, FindLocalItem, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, ident, d2, \
  8090. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8091. + #define FindProp(iff, type, id) \
  8092. +     LP3(0x9c, struct StoredProperty *, FindProp, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  8093. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8094. + #define FindPropContext(iff) \
  8095. +     LP1(0xa8, struct ContextNode *, FindPropContext, struct IFFHandle *, iff, a0, \
  8096. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8097. + #define FreeIFF(iff) \
  8098. +     LP1NR(0x36, FreeIFF, struct IFFHandle *, iff, a0, \
  8099. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8100. + #define FreeLocalItem(localItem) \
  8101. +     LP1NR(0xcc, FreeLocalItem, struct LocalContextItem *, localItem, a0, \
  8102. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8103. + #define GoodID(id) \
  8104. +     LP1(0x102, LONG, GoodID, long, id, d0, \
  8105. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8106. + #define GoodType(type) \
  8107. +     LP1(0x108, LONG, GoodType, long, type, d0, \
  8108. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8109. + #define IDtoStr(id, buf) \
  8110. +     LP2(0x10e, STRPTR, IDtoStr, long, id, d0, STRPTR, buf, a0, \
  8111. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8112. + #define InitIFF(iff, flags, streamHook) \
  8113. +     LP3NR(0xe4, InitIFF, struct IFFHandle *, iff, a0, long, flags, d0, struct Hook *, streamHook, a1, \
  8114. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8115. + #define InitIFFasClip(iff) \
  8116. +     LP1NR(0xf0, InitIFFasClip, struct IFFHandle *, iff, a0, \
  8117. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8118. + #define InitIFFasDOS(iff) \
  8119. +     LP1NR(0xea, InitIFFasDOS, struct IFFHandle *, iff, a0, \
  8120. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8121. + #define LocalItemData(localItem) \
  8122. +     LP1(0xc0, APTR, LocalItemData, struct LocalContextItem *, localItem, a0, \
  8123. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8124. + #define OpenClipboard(unitNumber) \
  8125. +     LP1(0xf6, struct ClipboardHandle *, OpenClipboard, long, unitNumber, d0, \
  8126. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8127. + #define OpenIFF(iff, rwMode) \
  8128. +     LP2(0x24, LONG, OpenIFF, struct IFFHandle *, iff, a0, long, rwMode, d0, \
  8129. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8130. + #define ParentChunk(contextNode) \
  8131. +     LP1(0xb4, struct ContextNode *, ParentChunk, struct ContextNode *, contextNode, a0, \
  8132. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8133. + #define ParseIFF(iff, control) \
  8134. +     LP2(0x2a, LONG, ParseIFF, struct IFFHandle *, iff, a0, long, control, d0, \
  8135. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8136. + #define PopChunk(iff) \
  8137. +     LP1(0x5a, LONG, PopChunk, struct IFFHandle *, iff, a0, \
  8138. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8139. + #define PropChunk(iff, type, id) \
  8140. +     LP3(0x72, LONG, PropChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  8141. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8142. + #define PropChunks(iff, propArray, numPairs) \
  8143. +     LP3(0x78, LONG, PropChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \
  8144. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8145. + #define PushChunk(iff, type, id, size) \
  8146. +     LP4(0x54, LONG, PushChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, long, size, d2, \
  8147. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8148. + #define ReadChunkBytes(iff, buf, numBytes) \
  8149. +     LP3(0x3c, LONG, ReadChunkBytes, struct IFFHandle *, iff, a0, APTR, buf, a1, long, numBytes, d0, \
  8150. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8151. + #define ReadChunkRecords(iff, buf, bytesPerRecord, numRecords) \
  8152. +     LP4(0x48, LONG, ReadChunkRecords, struct IFFHandle *, iff, a0, APTR, buf, a1, long, bytesPerRecord, d0, long, numRecords, d1, \
  8153. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8154. + #define SetLocalItemPurge(localItem, purgeHook) \
  8155. +     LP2NR(0xc6, SetLocalItemPurge, struct LocalContextItem *, localItem, a0, struct Hook *, purgeHook, a1, \
  8156. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8157. + #define StopChunk(iff, type, id) \
  8158. +     LP3(0x7e, LONG, StopChunk, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  8159. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8160. + #define StopChunks(iff, propArray, numPairs) \
  8161. +     LP3(0x84, LONG, StopChunks, struct IFFHandle *, iff, a0, LONG *, propArray, a1, long, numPairs, d0, \
  8162. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8163. + #define StopOnExit(iff, type, id) \
  8164. +     LP3(0x96, LONG, StopOnExit, struct IFFHandle *, iff, a0, long, type, d0, long, id, d1, \
  8165. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8166. + #define StoreItemInContext(iff, localItem, contextNode) \
  8167. +     LP3NR(0xde, StoreItemInContext, struct IFFHandle *, iff, a0, struct LocalContextItem *, localItem, a1, struct ContextNode *, contextNode, a2, \
  8168. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8169. + #define StoreLocalItem(iff, localItem, position) \
  8170. +     LP3(0xd8, LONG, StoreLocalItem, struct IFFHandle *, iff, a0, struct LocalContextItem *, localItem, a1, long, position, d0, \
  8171. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8172. + #define WriteChunkBytes(iff, buf, numBytes) \
  8173. +     LP3(0x42, LONG, WriteChunkBytes, struct IFFHandle *, iff, a0, APTR, buf, a1, long, numBytes, d0, \
  8174. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8175. + #define WriteChunkRecords(iff, buf, bytesPerRecord, numRecords) \
  8176. +     LP4(0x4e, LONG, WriteChunkRecords, struct IFFHandle *, iff, a0, APTR, buf, a1, long, bytesPerRecord, d0, long, numRecords, d1, \
  8177. +     , IFFPARSE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8178. + #endif /* !_PPCINLINE_IFFPARSE_H */
  8179. diff -c2 -d -P -r include_h/powerup/ppcinline/input.h includenew/powerup/ppcinline/input.h
  8180. *** include_h/powerup/ppcinline/input.h    Thu Jan  1 00:00:00 1970
  8181. --- includenew/powerup/ppcinline/input.h    Thu Nov  2 22:27:08 2000
  8182. ***************
  8183. *** 0 ****
  8184. --- 1,18 ----
  8185. + /* Automatically generated header! Do not edit! */
  8186. + #ifndef _PPCINLINE_INPUT_H
  8187. + #define _PPCINLINE_INPUT_H
  8188. + #ifndef __PPCINLINE_MACROS_H
  8189. + #include <powerup/ppcinline/macros.h>
  8190. + #endif /* !__PPCINLINE_MACROS_H */
  8191. + #ifndef INPUT_BASE_NAME
  8192. + #define INPUT_BASE_NAME InputBase
  8193. + #endif /* !INPUT_BASE_NAME */
  8194. + #define PeekQualifier() \
  8195. +     LP0(0x2a, UWORD, PeekQualifier, \
  8196. +     , INPUT_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8197. + #endif /* !_PPCINLINE_INPUT_H */
  8198. diff -c2 -d -P -r include_h/powerup/ppcinline/intuition.h includenew/powerup/ppcinline/intuition.h
  8199. *** include_h/powerup/ppcinline/intuition.h    Thu Jan  1 00:00:00 1970
  8200. --- includenew/powerup/ppcinline/intuition.h    Thu Nov  2 22:27:08 2000
  8201. ***************
  8202. *** 0 ****
  8203. --- 1,555 ----
  8204. + /* Automatically generated header! Do not edit! */
  8205. + #ifndef _PPCINLINE_INTUITION_H
  8206. + #define _PPCINLINE_INTUITION_H
  8207. + #ifndef __PPCINLINE_MACROS_H
  8208. + #include <powerup/ppcinline/macros.h>
  8209. + #endif /* !__PPCINLINE_MACROS_H */
  8210. + #ifndef INTUITION_BASE_NAME
  8211. + #define INTUITION_BASE_NAME IntuitionBase
  8212. + #endif /* !INTUITION_BASE_NAME */
  8213. + #define ActivateGadget(gadgets, window, requester) \
  8214. +     LP3(0x1ce, BOOL, ActivateGadget, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, \
  8215. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8216. + #define ActivateWindow(window) \
  8217. +     LP1NR(0x1c2, ActivateWindow, struct Window *, window, a0, \
  8218. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8219. + #define AddClass(classPtr) \
  8220. +     LP1NR(0x2ac, AddClass, struct IClass *, classPtr, a0, \
  8221. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8222. + #define AddGList(window, gadget, position, numGad, requester) \
  8223. +     LP5(0x1b6, UWORD, AddGList, struct Window *, window, a0, struct Gadget *, gadget, a1, unsigned long, position, d0, long, numGad, d1, struct Requester *, requester, a2, \
  8224. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8225. + #define AddGadget(window, gadget, position) \
  8226. +     LP3(0x2a, UWORD, AddGadget, struct Window *, window, a0, struct Gadget *, gadget, a1, unsigned long, position, d0, \
  8227. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8228. + #define AllocRemember(rememberKey, size, flags) \
  8229. +     LP3(0x18c, APTR, AllocRemember, struct Remember **, rememberKey, a0, unsigned long, size, d0, unsigned long, flags, d1, \
  8230. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8231. + #define AllocScreenBuffer(sc, bm, flags) \
  8232. +     LP3(0x300, struct ScreenBuffer *, AllocScreenBuffer, struct Screen *, sc, a0, struct BitMap *, bm, a1, unsigned long, flags, d0, \
  8233. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8234. + #define AlohaWorkbench(wbport) \
  8235. +     LP1NR(0x192, AlohaWorkbench, long, wbport, a0, \
  8236. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8237. + #define AutoRequest(window, body, posText, negText, pFlag, nFlag, width, height) \
  8238. +     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, \
  8239. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8240. + #define BeginRefresh(window) \
  8241. +     LP1NR(0x162, BeginRefresh, struct Window *, window, a0, \
  8242. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8243. + #define BuildEasyRequestArgs(window, easyStruct, idcmp, args) \
  8244. +     LP4(0x252, struct Window *, BuildEasyRequestArgs, struct Window *, window, a0, struct EasyStruct *, easyStruct, a1, unsigned long, idcmp, d0, APTR, args, a3, \
  8245. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8246. + #ifndef NO_PPCINLINE_STDARG
  8247. + #define BuildEasyRequest(a0, a1, a2, tags...) \
  8248. +     ({ULONG _tags[] = { tags }; BuildEasyRequestArgs((a0), (a1), (a2), (APTR)_tags);})
  8249. + #endif /* !NO_PPCINLINE_STDARG */
  8250. + #define BuildSysRequest(window, body, posText, negText, flags, width, height) \
  8251. +     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, \
  8252. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8253. + #define ChangeScreenBuffer(sc, sb) \
  8254. +     LP2(0x30c, ULONG, ChangeScreenBuffer, struct Screen *, sc, a0, struct ScreenBuffer *, sb, a1, \
  8255. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8256. + #define ChangeWindowBox(window, left, top, width, height) \
  8257. +     LP5NR(0x1e6, ChangeWindowBox, struct Window *, window, a0, long, left, d0, long, top, d1, long, width, d2, long, height, d3, \
  8258. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8259. + #define ClearDMRequest(window) \
  8260. +     LP1(0x30, BOOL, ClearDMRequest, struct Window *, window, a0, \
  8261. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8262. + #define ClearMenuStrip(window) \
  8263. +     LP1NR(0x36, ClearMenuStrip, struct Window *, window, a0, \
  8264. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8265. + #define ClearPointer(window) \
  8266. +     LP1NR(0x3c, ClearPointer, struct Window *, window, a0, \
  8267. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8268. + #define CloseScreen(screen) \
  8269. +     LP1(0x42, BOOL, CloseScreen, struct Screen *, screen, a0, \
  8270. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8271. + #define CloseWindow(window) \
  8272. +     LP1NR(0x48, CloseWindow, struct Window *, window, a0, \
  8273. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8274. + #define CloseWorkBench() \
  8275. +     LP0(0x4e, LONG, CloseWorkBench, \
  8276. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8277. + #define CurrentTime(seconds, micros) \
  8278. +     LP2NR(0x54, CurrentTime, ULONG *, seconds, a0, ULONG *, micros, a1, \
  8279. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8280. + #define DisplayAlert(alertNumber, string, height) \
  8281. +     LP3(0x5a, BOOL, DisplayAlert, unsigned long, alertNumber, d0, UBYTE *, string, a0, unsigned long, height, d1, \
  8282. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8283. + #define DisplayBeep(screen) \
  8284. +     LP1NR(0x60, DisplayBeep, struct Screen *, screen, a0, \
  8285. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8286. + #define DisposeObject(object) \
  8287. +     LP1NR(0x282, DisposeObject, APTR, object, a0, \
  8288. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8289. + #define DoGadgetMethodA(gad, win, req, message) \
  8290. +     LP4(0x32a, ULONG, DoGadgetMethodA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, Msg, message, a3, \
  8291. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8292. + #ifndef NO_PPCINLINE_STDARG
  8293. + #define DoGadgetMethod(a0, a1, a2, tags...) \
  8294. +     ({ULONG _tags[] = { tags }; DoGadgetMethodA((a0), (a1), (a2), (Msg)_tags);})
  8295. + #endif /* !NO_PPCINLINE_STDARG */
  8296. + #define DoubleClick(sSeconds, sMicros, cSeconds, cMicros) \
  8297. +     LP4(0x66, BOOL, DoubleClick, unsigned long, sSeconds, d0, unsigned long, sMicros, d1, unsigned long, cSeconds, d2, unsigned long, cMicros, d3, \
  8298. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8299. + #define DrawBorder(rp, border, leftOffset, topOffset) \
  8300. +     LP4NR(0x6c, DrawBorder, struct RastPort *, rp, a0, struct Border *, border, a1, long, leftOffset, d0, long, topOffset, d1, \
  8301. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8302. + #define DrawImage(rp, image, leftOffset, topOffset) \
  8303. +     LP4NR(0x72, DrawImage, struct RastPort *, rp, a0, struct Image *, image, a1, long, leftOffset, d0, long, topOffset, d1, \
  8304. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8305. + #define DrawImageState(rp, image, leftOffset, topOffset, state, drawInfo) \
  8306. +     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, \
  8307. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8308. + #define EasyRequestArgs(window, easyStruct, idcmpPtr, args) \
  8309. +     LP4(0x24c, LONG, EasyRequestArgs, struct Window *, window, a0, struct EasyStruct *, easyStruct, a1, ULONG *, idcmpPtr, a2, APTR, args, a3, \
  8310. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8311. + #ifndef NO_PPCINLINE_STDARG
  8312. + #define EasyRequest(a0, a1, a2, tags...) \
  8313. +     ({ULONG _tags[] = { tags }; EasyRequestArgs((a0), (a1), (a2), (APTR)_tags);})
  8314. + #endif /* !NO_PPCINLINE_STDARG */
  8315. + #define EndRefresh(window, complete) \
  8316. +     LP2NR(0x16e, EndRefresh, struct Window *, window, a0, long, complete, d0, \
  8317. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8318. + #define EndRequest(requester, window) \
  8319. +     LP2NR(0x78, EndRequest, struct Requester *, requester, a0, struct Window *, window, a1, \
  8320. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8321. + #define EraseImage(rp, image, leftOffset, topOffset) \
  8322. +     LP4NR(0x276, EraseImage, struct RastPort *, rp, a0, struct Image *, image, a1, long, leftOffset, d0, long, topOffset, d1, \
  8323. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8324. + #define FreeClass(classPtr) \
  8325. +     LP1(0x2ca, BOOL, FreeClass, struct IClass *, classPtr, a0, \
  8326. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8327. + #define FreeRemember(rememberKey, reallyForget) \
  8328. +     LP2NR(0x198, FreeRemember, struct Remember **, rememberKey, a0, long, reallyForget, d0, \
  8329. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8330. + #define FreeScreenBuffer(sc, sb) \
  8331. +     LP2NR(0x306, FreeScreenBuffer, struct Screen *, sc, a0, struct ScreenBuffer *, sb, a1, \
  8332. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8333. + #define FreeScreenDrawInfo(screen, drawInfo) \
  8334. +     LP2NR(0x2b8, FreeScreenDrawInfo, struct Screen *, screen, a0, struct DrawInfo *, drawInfo, a1, \
  8335. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8336. + #define FreeSysRequest(window) \
  8337. +     LP1NR(0x174, FreeSysRequest, struct Window *, window, a0, \
  8338. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8339. + #define GadgetMouse(gadget, gInfo, mousePoint) \
  8340. +     LP3NR(0x23a, GadgetMouse, struct Gadget *, gadget, a0, struct GadgetInfo *, gInfo, a1, WORD *, mousePoint, a2, \
  8341. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8342. + #define GetAttr(attrID, object, storagePtr) \
  8343. +     LP3(0x28e, ULONG, GetAttr, unsigned long, attrID, d0, APTR, object, a0, ULONG *, storagePtr, a1, \
  8344. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8345. + #define GetDefPrefs(preferences, size) \
  8346. +     LP2(0x7e, struct Preferences *, GetDefPrefs, struct Preferences *, preferences, a0, long, size, d0, \
  8347. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8348. + #define GetDefaultPubScreen(nameBuffer) \
  8349. +     LP1NR(0x246, GetDefaultPubScreen, UBYTE *, nameBuffer, a0, \
  8350. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8351. + #define GetPrefs(preferences, size) \
  8352. +     LP2(0x84, struct Preferences *, GetPrefs, struct Preferences *, preferences, a0, long, size, d0, \
  8353. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8354. + #define GetScreenData(buffer, size, type, screen) \
  8355. +     LP4(0x1aa, LONG, GetScreenData, APTR, buffer, a0, unsigned long, size, d0, unsigned long, type, d1, struct Screen *, screen, a1, \
  8356. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8357. + #define GetScreenDrawInfo(screen) \
  8358. +     LP1(0x2b2, struct DrawInfo *, GetScreenDrawInfo, struct Screen *, screen, a0, \
  8359. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8360. + #define HelpControl(win, flags) \
  8361. +     LP2NR(0x33c, HelpControl, struct Window *, win, a0, unsigned long, flags, d0, \
  8362. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8363. + #define InitRequester(requester) \
  8364. +     LP1NR(0x8a, InitRequester, struct Requester *, requester, a0, \
  8365. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8366. + #define IntuiTextLength(iText) \
  8367. +     LP1(0x14a, LONG, IntuiTextLength, struct IntuiText *, iText, a0, \
  8368. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8369. + #define Intuition(iEvent) \
  8370. +     LP1NR(0x24, Intuition, struct InputEvent *, iEvent, a0, \
  8371. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8372. + #define ItemAddress(menuStrip, menuNumber) \
  8373. +     LP2(0x90, struct MenuItem *, ItemAddress, struct Menu *, menuStrip, a0, unsigned long, menuNumber, d0, \
  8374. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8375. + #define LendMenus(fromwindow, towindow) \
  8376. +     LP2NR(0x324, LendMenus, struct Window *, fromwindow, a0, struct Window *, towindow, a1, \
  8377. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8378. + #define LockIBase(dontknow) \
  8379. +     LP1(0x19e, ULONG, LockIBase, unsigned long, dontknow, d0, \
  8380. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8381. + #define LockPubScreen(name) \
  8382. +     LP1(0x1fe, struct Screen *, LockPubScreen, UBYTE *, name, a0, \
  8383. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8384. + #define LockPubScreenList() \
  8385. +     LP0(0x20a, struct List *, LockPubScreenList, \
  8386. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8387. + #define MakeClass(classID, superClassID, superClassPtr, instanceSize, flags) \
  8388. +     LP5(0x2a6, struct IClass *, MakeClass, UBYTE *, classID, a0, UBYTE *, superClassID, a1, struct IClass *, superClassPtr, a2, unsigned long, instanceSize, d0, unsigned long, flags, d1, \
  8389. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8390. + #define MakeScreen(screen) \
  8391. +     LP1(0x17a, LONG, MakeScreen, struct Screen *, screen, a0, \
  8392. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8393. + #define ModifyIDCMP(window, flags) \
  8394. +     LP2(0x96, BOOL, ModifyIDCMP, struct Window *, window, a0, unsigned long, flags, d0, \
  8395. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8396. + #define ModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody) \
  8397. +     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, \
  8398. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8399. + #define MoveScreen(screen, dx, dy) \
  8400. +     LP3NR(0xa2, MoveScreen, struct Screen *, screen, a0, long, dx, d0, long, dy, d1, \
  8401. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8402. + #define MoveWindow(window, dx, dy) \
  8403. +     LP3NR(0xa8, MoveWindow, struct Window *, window, a0, long, dx, d0, long, dy, d1, \
  8404. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8405. + #define MoveWindowInFrontOf(window, behindWindow) \
  8406. +     LP2NR(0x1e0, MoveWindowInFrontOf, struct Window *, window, a0, struct Window *, behindWindow, a1, \
  8407. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8408. + #define NewModifyProp(gadget, window, requester, flags, horizPot, vertPot, horizBody, vertBody, numGad) \
  8409. +     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, \
  8410. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8411. + #define NewObjectA(classPtr, classID, tagList) \
  8412. +     LP3(0x27c, APTR, NewObjectA, struct IClass *, classPtr, a0, UBYTE *, classID, a1, struct TagItem *, tagList, a2, \
  8413. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8414. + #ifndef NO_PPCINLINE_STDARG
  8415. + #define NewObject(a0, a1, tags...) \
  8416. +     ({ULONG _tags[] = { tags }; NewObjectA((a0), (a1), (struct TagItem *)_tags);})
  8417. + #endif /* !NO_PPCINLINE_STDARG */
  8418. + #define NextObject(objectPtrPtr) \
  8419. +     LP1(0x29a, APTR, NextObject, APTR, objectPtrPtr, a0, \
  8420. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8421. + #define NextPubScreen(screen, namebuf) \
  8422. +     LP2(0x216, UBYTE *, NextPubScreen, struct Screen *, screen, a0, UBYTE *, namebuf, a1, \
  8423. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8424. + #define ObtainGIRPort(gInfo) \
  8425. +     LP1(0x22e, struct RastPort *, ObtainGIRPort, struct GadgetInfo *, gInfo, a0, \
  8426. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8427. + #define OffGadget(gadget, window, requester) \
  8428. +     LP3NR(0xae, OffGadget, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, \
  8429. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8430. + #define OffMenu(window, menuNumber) \
  8431. +     LP2NR(0xb4, OffMenu, struct Window *, window, a0, unsigned long, menuNumber, d0, \
  8432. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8433. + #define OnGadget(gadget, window, requester) \
  8434. +     LP3NR(0xba, OnGadget, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, \
  8435. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8436. + #define OnMenu(window, menuNumber) \
  8437. +     LP2NR(0xc0, OnMenu, struct Window *, window, a0, unsigned long, menuNumber, d0, \
  8438. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8439. + #define OpenIntuition() \
  8440. +     LP0NR(0x1e, OpenIntuition, \
  8441. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8442. + #define OpenScreen(newScreen) \
  8443. +     LP1(0xc6, struct Screen *, OpenScreen, struct NewScreen *, newScreen, a0, \
  8444. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8445. + #define OpenScreenTagList(newScreen, tagList) \
  8446. +     LP2(0x264, struct Screen *, OpenScreenTagList, struct NewScreen *, newScreen, a0, struct TagItem *, tagList, a1, \
  8447. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8448. + #ifndef NO_PPCINLINE_STDARG
  8449. + #define OpenScreenTags(a0, tags...) \
  8450. +     ({ULONG _tags[] = { tags }; OpenScreenTagList((a0), (struct TagItem *)_tags);})
  8451. + #endif /* !NO_PPCINLINE_STDARG */
  8452. + #define OpenWindow(newWindow) \
  8453. +     LP1(0xcc, struct Window *, OpenWindow, struct NewWindow *, newWindow, a0, \
  8454. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8455. + #define OpenWindowTagList(newWindow, tagList) \
  8456. +     LP2(0x25e, struct Window *, OpenWindowTagList, struct NewWindow *, newWindow, a0, struct TagItem *, tagList, a1, \
  8457. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8458. + #ifndef NO_PPCINLINE_STDARG
  8459. + #define OpenWindowTags(a0, tags...) \
  8460. +     ({ULONG _tags[] = { tags }; OpenWindowTagList((a0), (struct TagItem *)_tags);})
  8461. + #endif /* !NO_PPCINLINE_STDARG */
  8462. + #define OpenWorkBench() \
  8463. +     LP0(0xd2, ULONG, OpenWorkBench, \
  8464. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8465. + #define PointInImage(point, image) \
  8466. +     LP2(0x270, BOOL, PointInImage, unsigned long, point, d0, struct Image *, image, a0, \
  8467. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8468. + #define PrintIText(rp, iText, left, top) \
  8469. +     LP4NR(0xd8, PrintIText, struct RastPort *, rp, a0, struct IntuiText *, iText, a1, long, left, d0, long, top, d1, \
  8470. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8471. + #define PubScreenStatus(screen, statusFlags) \
  8472. +     LP2(0x228, UWORD, PubScreenStatus, struct Screen *, screen, a0, unsigned long, statusFlags, d0, \
  8473. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8474. + #define QueryOverscan(displayID, rect, oScanType) \
  8475. +     LP3(0x1da, LONG, QueryOverscan, unsigned long, displayID, a0, struct Rectangle *, rect, a1, long, oScanType, d0, \
  8476. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8477. + #define RefreshGList(gadgets, window, requester, numGad) \
  8478. +     LP4NR(0x1b0, RefreshGList, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, long, numGad, d0, \
  8479. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8480. + #define RefreshGadgets(gadgets, window, requester) \
  8481. +     LP3NR(0xde, RefreshGadgets, struct Gadget *, gadgets, a0, struct Window *, window, a1, struct Requester *, requester, a2, \
  8482. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8483. + #define RefreshWindowFrame(window) \
  8484. +     LP1NR(0x1c8, RefreshWindowFrame, struct Window *, window, a0, \
  8485. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8486. + #define ReleaseGIRPort(rp) \
  8487. +     LP1NR(0x234, ReleaseGIRPort, struct RastPort *, rp, a0, \
  8488. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8489. + #define RemakeDisplay() \
  8490. +     LP0(0x180, LONG, RemakeDisplay, \
  8491. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8492. + #define RemoveClass(classPtr) \
  8493. +     LP1NR(0x2c4, RemoveClass, struct IClass *, classPtr, a0, \
  8494. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8495. + #define RemoveGList(remPtr, gadget, numGad) \
  8496. +     LP3(0x1bc, UWORD, RemoveGList, struct Window *, remPtr, a0, struct Gadget *, gadget, a1, long, numGad, d0, \
  8497. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8498. + #define RemoveGadget(window, gadget) \
  8499. +     LP2(0xe4, UWORD, RemoveGadget, struct Window *, window, a0, struct Gadget *, gadget, a1, \
  8500. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8501. + #define ReportMouse(flag, window) \
  8502. +     LP2NR(0xea, ReportMouse, long, flag, d0, struct Window *, window, a0, \
  8503. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8504. + #define Request(requester, window) \
  8505. +     LP2(0xf0, BOOL, Request, struct Requester *, requester, a0, struct Window *, window, a1, \
  8506. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8507. + #define ResetMenuStrip(window, menu) \
  8508. +     LP2(0x2be, BOOL, ResetMenuStrip, struct Window *, window, a0, struct Menu *, menu, a1, \
  8509. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8510. + #define RethinkDisplay() \
  8511. +     LP0(0x186, LONG, RethinkDisplay, \
  8512. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8513. + #define ScreenDepth(screen, flags, reserved) \
  8514. +     LP3NR(0x312, ScreenDepth, struct Screen *, screen, a0, unsigned long, flags, d0, APTR, reserved, a1, \
  8515. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8516. + #define ScreenPosition(screen, flags, x1, y1, x2, y2) \
  8517. +     LP6NR(0x318, ScreenPosition, struct Screen *, screen, a0, unsigned long, flags, d0, long, x1, d1, long, y1, d2, long, x2, d3, long, y2, d4, \
  8518. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8519. + #define ScreenToBack(screen) \
  8520. +     LP1NR(0xf6, ScreenToBack, struct Screen *, screen, a0, \
  8521. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8522. + #define ScreenToFront(screen) \
  8523. +     LP1NR(0xfc, ScreenToFront, struct Screen *, screen, a0, \
  8524. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8525. + #define ScrollWindowRaster(win, dx, dy, xMin, yMin, xMax, yMax) \
  8526. +     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, \
  8527. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8528. + #define SetAttrsA(object, tagList) \
  8529. +     LP2(0x288, ULONG, SetAttrsA, APTR, object, a0, struct TagItem *, tagList, a1, \
  8530. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8531. + #ifndef NO_PPCINLINE_STDARG
  8532. + #define SetAttrs(a0, tags...) \
  8533. +     ({ULONG _tags[] = { tags }; SetAttrsA((a0), (struct TagItem *)_tags);})
  8534. + #endif /* !NO_PPCINLINE_STDARG */
  8535. + #define SetDMRequest(window, requester) \
  8536. +     LP2(0x102, BOOL, SetDMRequest, struct Window *, window, a0, struct Requester *, requester, a1, \
  8537. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8538. + #define SetDefaultPubScreen(name) \
  8539. +     LP1NR(0x21c, SetDefaultPubScreen, UBYTE *, name, a0, \
  8540. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8541. + #define SetEditHook(hook) \
  8542. +     LP1(0x1ec, struct Hook *, SetEditHook, struct Hook *, hook, a0, \
  8543. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8544. + #define SetGadgetAttrsA(gadget, window, requester, tagList) \
  8545. +     LP4(0x294, ULONG, SetGadgetAttrsA, struct Gadget *, gadget, a0, struct Window *, window, a1, struct Requester *, requester, a2, struct TagItem *, tagList, a3, \
  8546. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8547. + #ifndef NO_PPCINLINE_STDARG
  8548. + #define SetGadgetAttrs(a0, a1, a2, tags...) \
  8549. +     ({ULONG _tags[] = { tags }; SetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  8550. + #endif /* !NO_PPCINLINE_STDARG */
  8551. + #define SetMenuStrip(window, menu) \
  8552. +     LP2(0x108, BOOL, SetMenuStrip, struct Window *, window, a0, struct Menu *, menu, a1, \
  8553. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8554. + #define SetMouseQueue(window, queueLength) \
  8555. +     LP2(0x1f2, LONG, SetMouseQueue, struct Window *, window, a0, unsigned long, queueLength, d0, \
  8556. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8557. + #define SetPointer(window, pointer, height, width, xOffset, yOffset) \
  8558. +     LP6NR(0x10e, SetPointer, struct Window *, window, a0, UWORD *, pointer, a1, long, height, d0, long, width, d1, long, xOffset, d2, long, yOffset, d3, \
  8559. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8560. + #define SetPrefs(preferences, size, inform) \
  8561. +     LP3(0x144, struct Preferences *, SetPrefs, struct Preferences *, preferences, a0, long, size, d0, long, inform, d1, \
  8562. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8563. + #define SetPubScreenModes(modes) \
  8564. +     LP1(0x222, UWORD, SetPubScreenModes, unsigned long, modes, d0, \
  8565. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8566. + #define SetWindowPointerA(win, taglist) \
  8567. +     LP2NR(0x330, SetWindowPointerA, struct Window *, win, a0, struct TagItem *, taglist, a1, \
  8568. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8569. + #ifndef NO_PPCINLINE_STDARG
  8570. + #define SetWindowPointer(a0, tags...) \
  8571. +     ({ULONG _tags[] = { tags }; SetWindowPointerA((a0), (struct TagItem *)_tags);})
  8572. + #endif /* !NO_PPCINLINE_STDARG */
  8573. + #define SetWindowTitles(window, windowTitle, screenTitle) \
  8574. +     LP3NR(0x114, SetWindowTitles, struct Window *, window, a0, UBYTE *, windowTitle, a1, UBYTE *, screenTitle, a2, \
  8575. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8576. + #define ShowTitle(screen, showIt) \
  8577. +     LP2NR(0x11a, ShowTitle, struct Screen *, screen, a0, long, showIt, d0, \
  8578. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8579. + #define SizeWindow(window, dx, dy) \
  8580. +     LP3NR(0x120, SizeWindow, struct Window *, window, a0, long, dx, d0, long, dy, d1, \
  8581. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8582. + #define SysReqHandler(window, idcmpPtr, waitInput) \
  8583. +     LP3(0x258, LONG, SysReqHandler, struct Window *, window, a0, ULONG *, idcmpPtr, a1, long, waitInput, d0, \
  8584. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8585. + #define TimedDisplayAlert(alertNumber, string, height, time) \
  8586. +     LP4(0x336, BOOL, TimedDisplayAlert, unsigned long, alertNumber, d0, UBYTE *, string, a0, unsigned long, height, d1, unsigned long, time, a1, \
  8587. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8588. + #define UnlockIBase(ibLock) \
  8589. +     LP1NR(0x1a4, UnlockIBase, unsigned long, ibLock, a0, \
  8590. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8591. + #define UnlockPubScreen(name, screen) \
  8592. +     LP2NR(0x204, UnlockPubScreen, UBYTE *, name, a0, struct Screen *, screen, a1, \
  8593. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8594. + #define UnlockPubScreenList() \
  8595. +     LP0NR(0x210, UnlockPubScreenList, \
  8596. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8597. + #define ViewAddress() \
  8598. +     LP0(0x126, struct View *, ViewAddress, \
  8599. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8600. + #define ViewPortAddress(window) \
  8601. +     LP1(0x12c, struct ViewPort *, ViewPortAddress, struct Window *, window, a0, \
  8602. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8603. + #define WBenchToBack() \
  8604. +     LP0(0x150, BOOL, WBenchToBack, \
  8605. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8606. + #define WBenchToFront() \
  8607. +     LP0(0x156, BOOL, WBenchToFront, \
  8608. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8609. + #define WindowLimits(window, widthMin, heightMin, widthMax, heightMax) \
  8610. +     LP5(0x13e, BOOL, WindowLimits, struct Window *, window, a0, long, widthMin, d0, long, heightMin, d1, unsigned long, widthMax, d2, unsigned long, heightMax, d3, \
  8611. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8612. + #define WindowToBack(window) \
  8613. +     LP1NR(0x132, WindowToBack, struct Window *, window, a0, \
  8614. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8615. + #define WindowToFront(window) \
  8616. +     LP1NR(0x138, WindowToFront, struct Window *, window, a0, \
  8617. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8618. + #define ZipWindow(window) \
  8619. +     LP1NR(0x1f8, ZipWindow, struct Window *, window, a0, \
  8620. +     , INTUITION_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8621. + #endif /* !_PPCINLINE_INTUITION_H */
  8622. diff -c2 -d -P -r include_h/powerup/ppcinline/keymap.h includenew/powerup/ppcinline/keymap.h
  8623. *** include_h/powerup/ppcinline/keymap.h    Thu Jan  1 00:00:00 1970
  8624. --- includenew/powerup/ppcinline/keymap.h    Thu Nov  2 22:27:08 2000
  8625. ***************
  8626. *** 0 ****
  8627. --- 1,30 ----
  8628. + /* Automatically generated header! Do not edit! */
  8629. + #ifndef _PPCINLINE_KEYMAP_H
  8630. + #define _PPCINLINE_KEYMAP_H
  8631. + #ifndef __PPCINLINE_MACROS_H
  8632. + #include <powerup/ppcinline/macros.h>
  8633. + #endif /* !__PPCINLINE_MACROS_H */
  8634. + #ifndef KEYMAP_BASE_NAME
  8635. + #define KEYMAP_BASE_NAME KeymapBase
  8636. + #endif /* !KEYMAP_BASE_NAME */
  8637. + #define AskKeyMapDefault() \
  8638. +     LP0(0x24, struct KeyMap *, AskKeyMapDefault, \
  8639. +     , KEYMAP_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8640. + #define MapANSI(string, count, buffer, length, keyMap) \
  8641. +     LP5(0x30, LONG, MapANSI, STRPTR, string, a0, long, count, d0, STRPTR, buffer, a1, long, length, d1, struct KeyMap *, keyMap, a2, \
  8642. +     , KEYMAP_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8643. + #define MapRawKey(event, buffer, length, keyMap) \
  8644. +     LP4(0x2a, WORD, MapRawKey, struct InputEvent *, event, a0, STRPTR, buffer, a1, long, length, d1, struct KeyMap *, keyMap, a2, \
  8645. +     , KEYMAP_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8646. + #define SetKeyMapDefault(keyMap) \
  8647. +     LP1NR(0x1e, SetKeyMapDefault, struct KeyMap *, keyMap, a0, \
  8648. +     , KEYMAP_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8649. + #endif /* !_PPCINLINE_KEYMAP_H */
  8650. diff -c2 -d -P -r include_h/powerup/ppcinline/layers.h includenew/powerup/ppcinline/layers.h
  8651. *** include_h/powerup/ppcinline/layers.h    Thu Jan  1 00:00:00 1970
  8652. --- includenew/powerup/ppcinline/layers.h    Thu Nov  2 22:27:08 2000
  8653. ***************
  8654. *** 0 ****
  8655. --- 1,142 ----
  8656. + /* Automatically generated header! Do not edit! */
  8657. + #ifndef _PPCINLINE_LAYERS_H
  8658. + #define _PPCINLINE_LAYERS_H
  8659. + #ifndef __PPCINLINE_MACROS_H
  8660. + #include <powerup/ppcinline/macros.h>
  8661. + #endif /* !__PPCINLINE_MACROS_H */
  8662. + #ifndef LAYERS_BASE_NAME
  8663. + #define LAYERS_BASE_NAME LayersBase
  8664. + #endif /* !LAYERS_BASE_NAME */
  8665. + #define BeginUpdate(l) \
  8666. +     LP1(0x4e, LONG, BeginUpdate, struct Layer *, l, a0, \
  8667. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8668. + #define BehindLayer(dummy, layer) \
  8669. +     LP2(0x36, LONG, BehindLayer, long, dummy, a0, struct Layer *, layer, a1, \
  8670. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8671. + #define CreateBehindHookLayer(li, bm, x0, y0, x1, y1, flags, hook, bm2) \
  8672. +     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, \
  8673. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8674. + #define CreateBehindLayer(li, bm, x0, y0, x1, y1, flags, bm2) \
  8675. +     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, \
  8676. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8677. + #define CreateUpfrontHookLayer(li, bm, x0, y0, x1, y1, flags, hook, bm2) \
  8678. +     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, \
  8679. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8680. + #define CreateUpfrontLayer(li, bm, x0, y0, x1, y1, flags, bm2) \
  8681. +     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, \
  8682. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8683. + #define DeleteLayer(dummy, layer) \
  8684. +     LP2(0x5a, LONG, DeleteLayer, long, dummy, a0, struct Layer *, layer, a1, \
  8685. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8686. + #define DisposeLayerInfo(li) \
  8687. +     LP1NR(0x96, DisposeLayerInfo, struct Layer_Info *, li, a0, \
  8688. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8689. + #define DoHookClipRects(hook, rport, rect) \
  8690. +     LP3NR(0xd8, DoHookClipRects, struct Hook *, hook, a0, struct RastPort *, rport, a1, struct Rectangle *, rect, a2, \
  8691. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8692. + #define EndUpdate(layer, flag) \
  8693. +     LP2NR(0x54, EndUpdate, struct Layer *, layer, a0, unsigned long, flag, d0, \
  8694. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8695. + #define FattenLayerInfo(li) \
  8696. +     LP1(0x9c, LONG, FattenLayerInfo, struct Layer_Info *, li, a0, \
  8697. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8698. + #define InitLayers(li) \
  8699. +     LP1NR(0x1e, InitLayers, struct Layer_Info *, li, a0, \
  8700. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8701. + #define InstallClipRegion(layer, region) \
  8702. +     LP2(0xae, struct Region *, InstallClipRegion, struct Layer *, layer, a0, struct Region *, region, a1, \
  8703. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8704. + #define InstallLayerHook(layer, hook) \
  8705. +     LP2(0xc6, struct Hook *, InstallLayerHook, struct Layer *, layer, a0, struct Hook *, hook, a1, \
  8706. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8707. + #define InstallLayerInfoHook(li, hook) \
  8708. +     LP2(0xcc, struct Hook *, InstallLayerInfoHook, struct Layer_Info *, li, a0, struct Hook *, hook, a1, \
  8709. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8710. + #define LockLayer(dummy, layer) \
  8711. +     LP2NR(0x60, LockLayer, long, dummy, a0, struct Layer *, layer, a1, \
  8712. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8713. + #define LockLayerInfo(li) \
  8714. +     LP1NR(0x78, LockLayerInfo, struct Layer_Info *, li, a0, \
  8715. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8716. + #define LockLayers(li) \
  8717. +     LP1NR(0x6c, LockLayers, struct Layer_Info *, li, a0, \
  8718. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8719. + #define MoveLayer(dummy, layer, dx, dy) \
  8720. +     LP4(0x3c, LONG, MoveLayer, long, dummy, a0, struct Layer *, layer, a1, long, dx, d0, long, dy, d1, \
  8721. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8722. + #define MoveLayerInFrontOf(layer_to_move, other_layer) \
  8723. +     LP2(0xa8, LONG, MoveLayerInFrontOf, struct Layer *, layer_to_move, a0, struct Layer *, other_layer, a1, \
  8724. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8725. + #define MoveSizeLayer(layer, dx, dy, dw, dh) \
  8726. +     LP5(0xb4, LONG, MoveSizeLayer, struct Layer *, layer, a0, long, dx, d0, long, dy, d1, long, dw, d2, long, dh, d3, \
  8727. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8728. + #define NewLayerInfo() \
  8729. +     LP0(0x90, struct Layer_Info *, NewLayerInfo, \
  8730. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8731. + #define ScrollLayer(dummy, layer, dx, dy) \
  8732. +     LP4NR(0x48, ScrollLayer, long, dummy, a0, struct Layer *, layer, a1, long, dx, d0, long, dy, d1, \
  8733. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8734. + #define SizeLayer(dummy, layer, dx, dy) \
  8735. +     LP4(0x42, LONG, SizeLayer, long, dummy, a0, struct Layer *, layer, a1, long, dx, d0, long, dy, d1, \
  8736. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8737. + #define SortLayerCR(layer, dx, dy) \
  8738. +     LP3NR(0xd2, SortLayerCR, struct Layer *, layer, a0, long, dx, d0, long, dy, d1, \
  8739. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8740. + #define SwapBitsRastPortClipRect(rp, cr) \
  8741. +     LP2NR(0x7e, SwapBitsRastPortClipRect, struct RastPort *, rp, a0, struct ClipRect *, cr, a1, \
  8742. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8743. + #define ThinLayerInfo(li) \
  8744. +     LP1NR(0xa2, ThinLayerInfo, struct Layer_Info *, li, a0, \
  8745. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8746. + #define UnlockLayer(layer) \
  8747. +     LP1NR(0x66, UnlockLayer, struct Layer *, layer, a0, \
  8748. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8749. + #define UnlockLayerInfo(li) \
  8750. +     LP1NR(0x8a, UnlockLayerInfo, struct Layer_Info *, li, a0, \
  8751. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8752. + #define UnlockLayers(li) \
  8753. +     LP1NR(0x72, UnlockLayers, struct Layer_Info *, li, a0, \
  8754. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8755. + #define UpfrontLayer(dummy, layer) \
  8756. +     LP2(0x30, LONG, UpfrontLayer, long, dummy, a0, struct Layer *, layer, a1, \
  8757. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8758. + #define WhichLayer(li, x, y) \
  8759. +     LP3(0x84, struct Layer *, WhichLayer, struct Layer_Info *, li, a0, long, x, d0, long, y, d1, \
  8760. +     , LAYERS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8761. + #endif /* !_PPCINLINE_LAYERS_H */
  8762. diff -c2 -d -P -r include_h/powerup/ppcinline/locale.h includenew/powerup/ppcinline/locale.h
  8763. *** include_h/powerup/ppcinline/locale.h    Thu Jan  1 00:00:00 1970
  8764. --- includenew/powerup/ppcinline/locale.h    Thu Nov  2 22:27:08 2000
  8765. ***************
  8766. *** 0 ****
  8767. --- 1,115 ----
  8768. + /* Automatically generated header! Do not edit! */
  8769. + #ifndef _PPCINLINE_LOCALE_H
  8770. + #define _PPCINLINE_LOCALE_H
  8771. + #ifndef __PPCINLINE_MACROS_H
  8772. + #include <powerup/ppcinline/macros.h>
  8773. + #endif /* !__PPCINLINE_MACROS_H */
  8774. + #ifndef LOCALE_BASE_NAME
  8775. + #define LOCALE_BASE_NAME LocaleBase
  8776. + #endif /* !LOCALE_BASE_NAME */
  8777. + #define CloseCatalog(catalog) \
  8778. +     LP1NR(0x24, CloseCatalog, struct Catalog *, catalog, a0, \
  8779. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8780. + #define CloseLocale(locale) \
  8781. +     LP1NR(0x2a, CloseLocale, struct Locale *, locale, a0, \
  8782. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8783. + #define ConvToLower(locale, character) \
  8784. +     LP2(0x30, ULONG, ConvToLower, struct Locale *, locale, a0, unsigned long, character, d0, \
  8785. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8786. + #define ConvToUpper(locale, character) \
  8787. +     LP2(0x36, ULONG, ConvToUpper, struct Locale *, locale, a0, unsigned long, character, d0, \
  8788. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8789. + #define FormatDate(locale, fmtTemplate, date, putCharFunc) \
  8790. +     LP4NR(0x3c, FormatDate, struct Locale *, locale, a0, STRPTR, fmtTemplate, a1, struct DateStamp *, date, a2, struct Hook *, putCharFunc, a3, \
  8791. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8792. + #define FormatString(locale, fmtTemplate, dataStream, putCharFunc) \
  8793. +     LP4(0x42, APTR, FormatString, struct Locale *, locale, a0, STRPTR, fmtTemplate, a1, APTR, dataStream, a2, struct Hook *, putCharFunc, a3, \
  8794. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8795. + #define GetCatalogStr(catalog, stringNum, defaultString) \
  8796. +     LP3(0x48, STRPTR, GetCatalogStr, struct Catalog *, catalog, a0, long, stringNum, d0, STRPTR, defaultString, a1, \
  8797. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8798. + #define GetLocaleStr(locale, stringNum) \
  8799. +     LP2(0x4e, STRPTR, GetLocaleStr, struct Locale *, locale, a0, unsigned long, stringNum, d0, \
  8800. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8801. + #define IsAlNum(locale, character) \
  8802. +     LP2(0x54, BOOL, IsAlNum, struct Locale *, locale, a0, unsigned long, character, d0, \
  8803. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8804. + #define IsAlpha(locale, character) \
  8805. +     LP2(0x5a, BOOL, IsAlpha, struct Locale *, locale, a0, unsigned long, character, d0, \
  8806. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8807. + #define IsCntrl(locale, character) \
  8808. +     LP2(0x60, BOOL, IsCntrl, struct Locale *, locale, a0, unsigned long, character, d0, \
  8809. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8810. + #define IsDigit(locale, character) \
  8811. +     LP2(0x66, BOOL, IsDigit, struct Locale *, locale, a0, unsigned long, character, d0, \
  8812. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8813. + #define IsGraph(locale, character) \
  8814. +     LP2(0x6c, BOOL, IsGraph, struct Locale *, locale, a0, unsigned long, character, d0, \
  8815. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8816. + #define IsLower(locale, character) \
  8817. +     LP2(0x72, BOOL, IsLower, struct Locale *, locale, a0, unsigned long, character, d0, \
  8818. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8819. + #define IsPrint(locale, character) \
  8820. +     LP2(0x78, BOOL, IsPrint, struct Locale *, locale, a0, unsigned long, character, d0, \
  8821. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8822. + #define IsPunct(locale, character) \
  8823. +     LP2(0x7e, BOOL, IsPunct, struct Locale *, locale, a0, unsigned long, character, d0, \
  8824. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8825. + #define IsSpace(locale, character) \
  8826. +     LP2(0x84, BOOL, IsSpace, struct Locale *, locale, a0, unsigned long, character, d0, \
  8827. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8828. + #define IsUpper(locale, character) \
  8829. +     LP2(0x8a, BOOL, IsUpper, struct Locale *, locale, a0, unsigned long, character, d0, \
  8830. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8831. + #define IsXDigit(locale, character) \
  8832. +     LP2(0x90, BOOL, IsXDigit, struct Locale *, locale, a0, unsigned long, character, d0, \
  8833. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8834. + #define OpenCatalogA(locale, name, tags) \
  8835. +     LP3(0x96, struct Catalog *, OpenCatalogA, struct Locale *, locale, a0, STRPTR, name, a1, struct TagItem *, tags, a2, \
  8836. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8837. + #ifndef NO_PPCINLINE_STDARG
  8838. + #define OpenCatalog(a0, a1, tags...) \
  8839. +     ({ULONG _tags[] = { tags }; OpenCatalogA((a0), (a1), (struct TagItem *)_tags);})
  8840. + #endif /* !NO_PPCINLINE_STDARG */
  8841. + #define OpenLocale(name) \
  8842. +     LP1(0x9c, struct Locale *, OpenLocale, STRPTR, name, a0, \
  8843. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8844. + #define ParseDate(locale, date, fmtTemplate, getCharFunc) \
  8845. +     LP4(0xa2, BOOL, ParseDate, struct Locale *, locale, a0, struct DateStamp *, date, a1, STRPTR, fmtTemplate, a2, struct Hook *, getCharFunc, a3, \
  8846. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8847. + #define StrConvert(locale, string, buffer, bufferSize, type) \
  8848. +     LP5(0xae, ULONG, StrConvert, struct Locale *, locale, a0, STRPTR, string, a1, APTR, buffer, a2, unsigned long, bufferSize, d0, unsigned long, type, d1, \
  8849. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8850. + #define StrnCmp(locale, string1, string2, length, type) \
  8851. +     LP5(0xb4, LONG, StrnCmp, struct Locale *, locale, a0, STRPTR, string1, a1, STRPTR, string2, a2, long, length, d0, unsigned long, type, d1, \
  8852. +     , LOCALE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8853. + #endif /* !_PPCINLINE_LOCALE_H */
  8854. diff -c2 -d -P -r include_h/powerup/ppcinline/lowlevel.h includenew/powerup/ppcinline/lowlevel.h
  8855. *** include_h/powerup/ppcinline/lowlevel.h    Thu Jan  1 00:00:00 1970
  8856. --- includenew/powerup/ppcinline/lowlevel.h    Thu Nov  2 22:27:08 2000
  8857. ***************
  8858. *** 0 ****
  8859. --- 1,84 ----
  8860. + /* Automatically generated header! Do not edit! */
  8861. + #ifndef _PPCINLINE_LOWLEVEL_H
  8862. + #define _PPCINLINE_LOWLEVEL_H
  8863. + #ifndef __PPCINLINE_MACROS_H
  8864. + #include <powerup/ppcinline/macros.h>
  8865. + #endif /* !__PPCINLINE_MACROS_H */
  8866. + #ifndef LOWLEVEL_BASE_NAME
  8867. + #define LOWLEVEL_BASE_NAME LowLevelBase
  8868. + #endif /* !LOWLEVEL_BASE_NAME */
  8869. + #define AddKBInt(intRoutine, intData) \
  8870. +     LP2(0x3c, APTR, AddKBInt, APTR, intRoutine, a0, APTR, intData, a1, \
  8871. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8872. + #define AddTimerInt(intRoutine, intData) \
  8873. +     LP2(0x4e, APTR, AddTimerInt, APTR, intRoutine, a0, APTR, intData, a1, \
  8874. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8875. + #define AddVBlankInt(intRoutine, intData) \
  8876. +     LP2(0x6c, APTR, AddVBlankInt, APTR, intRoutine, a0, APTR, intData, a1, \
  8877. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8878. + #define ElapsedTime(context) \
  8879. +     LP1(0x66, ULONG, ElapsedTime, struct EClockVal *, context, a0, \
  8880. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8881. + #define GetKey() \
  8882. +     LP0(0x30, ULONG, GetKey, \
  8883. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8884. + #define GetLanguageSelection() \
  8885. +     LP0(0x24, UBYTE, GetLanguageSelection, \
  8886. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8887. + #define QueryKeys(queryArray, arraySize) \
  8888. +     LP2NR(0x36, QueryKeys, struct KeyQuery *, queryArray, a0, unsigned long, arraySize, d1, \
  8889. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8890. + #define ReadJoyPort(port) \
  8891. +     LP1(0x1e, ULONG, ReadJoyPort, unsigned long, port, d0, \
  8892. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8893. + #define RemKBInt(intHandle) \
  8894. +     LP1NR(0x42, RemKBInt, APTR, intHandle, a1, \
  8895. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8896. + #define RemTimerInt(intHandle) \
  8897. +     LP1NR(0x54, RemTimerInt, APTR, intHandle, a1, \
  8898. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8899. + #define RemVBlankInt(intHandle) \
  8900. +     LP1NR(0x72, RemVBlankInt, APTR, intHandle, a1, \
  8901. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8902. + #define SetJoyPortAttrsA(portNumber, tagList) \
  8903. +     LP2(0x84, BOOL, SetJoyPortAttrsA, unsigned long, portNumber, d0, struct TagItem *, tagList, a1, \
  8904. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8905. + #ifndef NO_PPCINLINE_STDARG
  8906. + #define SetJoyPortAttrs(a0, tags...) \
  8907. +     ({ULONG _tags[] = { tags }; SetJoyPortAttrsA((a0), (struct TagItem *)_tags);})
  8908. + #endif /* !NO_PPCINLINE_STDARG */
  8909. + #define StartTimerInt(intHandle, timeInterval, continuous) \
  8910. +     LP3NR(0x60, StartTimerInt, APTR, intHandle, a1, unsigned long, timeInterval, d0, long, continuous, d1, \
  8911. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8912. + #define StopTimerInt(intHandle) \
  8913. +     LP1NR(0x5a, StopTimerInt, APTR, intHandle, a1, \
  8914. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8915. + #define SystemControlA(tagList) \
  8916. +     LP1(0x48, ULONG, SystemControlA, struct TagItem *, tagList, a1, \
  8917. +     , LOWLEVEL_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  8918. + #ifndef NO_PPCINLINE_STDARG
  8919. + #define SystemControl(tags...) \
  8920. +     ({ULONG _tags[] = { tags }; SystemControlA((struct TagItem *)_tags);})
  8921. + #endif /* !NO_PPCINLINE_STDARG */
  8922. + #endif /* !_PPCINLINE_LOWLEVEL_H */
  8923. diff -c2 -d -P -r include_h/powerup/ppcinline/macros.h includenew/powerup/ppcinline/macros.h
  8924. *** include_h/powerup/ppcinline/macros.h    Thu Jan  1 00:00:00 1970
  8925. --- includenew/powerup/ppcinline/macros.h    Thu Nov  2 22:27:10 2000
  8926. ***************
  8927. *** 0 ****
  8928. --- 1,1025 ----
  8929. + #ifndef __INLINE_MACROS_H
  8930. + #define __INLINE_MACROS_H
  8931. + #include <powerup/gcclib/powerup_protos.h>
  8932. + /* Use these macros to calculate cache flush start address and cache flush
  8933. + length. */
  8934. + #define __CACHE_START(start) ((void *) ((unsigned long int) (start) & ~31))
  8935. + #define __CACHE_LENGTH(start,length) ((((length) + (unsigned long int) (start) + 31) & ~31) - ((unsigned long int) (start) & ~31))
  8936. + /*
  8937. +    General macros for Amiga function calls. Not all the possibilities have
  8938. +    been created - only the ones which exist in OS 3.1. Third party libraries
  8939. +    and future versions of AmigaOS will maybe need some new ones...
  8940. +    LPX - functions that take X arguments.
  8941. +    Modifiers (variations are possible):
  8942. +    NR - no return (void),
  8943. +    A4, A5 - "a4" or "a5" is used as one of the arguments,
  8944. +    UB - base will be given explicitly by user (see cia.resource).
  8945. +    FP - one of the parameters has type "pointer to function".
  8946. +    "bt" arguments are not used - they are provided for backward compatibility
  8947. +    only.
  8948. +    Actually..the "bt" parameter is needed because otherwise the macro doesn`t
  8949. +    work for some reason i don`t know gcc puts an empty argument at the position
  8950. +    before the argument bn and without the placeholder "bt".
  8951. +    I think it has something to do with #define *_BASE_NAME
  8952. +    the (cm1==IF_CACHEFLUSHAREA) conditional is optimized away
  8953. + */
  8954. + #ifndef __INLINE_STUB_H
  8955. + #include <powerup/ppcinline/stubs.h>
  8956. + #endif
  8957. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  8958. + #include <powerup/ppclib/interface.h>
  8959. + #endif
  8960. + #define LP0(offs, rt, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  8961. + ({                                \
  8962. +    struct Caos MyCaos;                        \
  8963. +    {                                \
  8964. +       rt _##name##_re;                        \
  8965. +       MyCaos.a6        = (ULONG) bn;            \
  8966. +       MyCaos.M68kCacheMode    =    cm1;            \
  8967. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  8968. +       {                                \
  8969. +         MyCaos.M68kStart    =    cs1;            \
  8970. +         MyCaos.M68kLength    =    cl1;            \
  8971. +       }                                \
  8972. +       MyCaos.PPCCacheMode    =    cm2;            \
  8973. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  8974. +       {                                \
  8975. +         MyCaos.PPCStart    =    cs2;            \
  8976. +         MyCaos.PPCLength    =    cl2;            \
  8977. +       }                                \
  8978. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  8979. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  8980. +       _##name##_re;                        \
  8981. +    }                                \
  8982. + })
  8983. + #define LP0NR(offs, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  8984. + ({                                \
  8985. +    struct Caos MyCaos;                        \
  8986. +    {                                \
  8987. +       MyCaos.a6        = (ULONG) bn;            \
  8988. +       MyCaos.M68kCacheMode    =    cm1;            \
  8989. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  8990. +       {                                \
  8991. +         MyCaos.M68kStart    =    cs1;            \
  8992. +         MyCaos.M68kLength    =    cl1;            \
  8993. +       }                                \
  8994. +       MyCaos.PPCCacheMode    =    cm2;            \
  8995. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  8996. +       {                                \
  8997. +         MyCaos.PPCStart    =    cs2;            \
  8998. +         MyCaos.PPCLength    =    cl2;            \
  8999. +       }                                \
  9000. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9001. +       PPCCallOS(&MyCaos);                    \
  9002. +    }                                \
  9003. + })
  9004. + #define LP1(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9005. + ({                                \
  9006. +    struct Caos MyCaos;                        \
  9007. +    {                                \
  9008. +       rt _##name##_re;                        \
  9009. +       MyCaos.##r1        = (ULONG) v1;            \
  9010. +       MyCaos.a6        = (ULONG) bn;            \
  9011. +       MyCaos.M68kCacheMode    =    cm1;            \
  9012. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9013. +       {                                \
  9014. +         MyCaos.M68kStart    =    cs1;            \
  9015. +         MyCaos.M68kLength    =    cl1;            \
  9016. +       }                                \
  9017. +       MyCaos.PPCCacheMode    =    cm2;            \
  9018. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9019. +       {                                \
  9020. +         MyCaos.PPCStart    =    cs2;            \
  9021. +         MyCaos.PPCLength    =    cl2;            \
  9022. +       }                                \
  9023. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9024. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9025. +       _##name##_re;                        \
  9026. +    }                                \
  9027. + })
  9028. + #define LP1NR(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9029. + ({                                \
  9030. +    struct Caos MyCaos;                        \
  9031. +    {                                \
  9032. +       MyCaos.##r1        = (ULONG) v1;            \
  9033. +       MyCaos.a6        = (ULONG) bn;            \
  9034. +       MyCaos.M68kCacheMode    =    cm1;            \
  9035. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9036. +       {                                \
  9037. +         MyCaos.M68kStart    =    cs1;            \
  9038. +         MyCaos.M68kLength    =    cl1;            \
  9039. +       }                                \
  9040. +       MyCaos.PPCCacheMode    =    cm2;            \
  9041. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9042. +       {                                \
  9043. +         MyCaos.PPCStart    =    cs2;            \
  9044. +         MyCaos.PPCLength    =    cl2;            \
  9045. +       }                                \
  9046. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9047. +       PPCCallOS(&MyCaos);                    \
  9048. +    }                                \
  9049. + })
  9050. + /* Only graphics.library/AttemptLockLayerRom() */
  9051. + #define LP1A5(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9052. + ({                                \
  9053. +    struct Caos MyCaos;                        \
  9054. +    {                                \
  9055. +       rt _##name##_re;                        \
  9056. +       MyCaos.##r1        = (ULONG) v1;            \
  9057. +       MyCaos.a6        = (ULONG) bn;            \
  9058. +       MyCaos.M68kCacheMode    =    cm1;            \
  9059. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9060. +       {                                \
  9061. +         MyCaos.M68kStart    =    cs1;            \
  9062. +         MyCaos.M68kLength    =    cl1;            \
  9063. +       }                                \
  9064. +       MyCaos.PPCCacheMode    =    cm2;            \
  9065. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9066. +       {                                \
  9067. +         MyCaos.PPCStart    =    cs2;            \
  9068. +         MyCaos.PPCLength    =    cl2;            \
  9069. +       }                                \
  9070. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9071. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9072. +       _##name##_re;                        \
  9073. +    }                                \
  9074. + })
  9075. + /* Only graphics.library/LockLayerRom() and graphics.library/UnlockLayerRom() */
  9076. + #define LP1NRA5(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9077. + ({                                \
  9078. +    struct Caos MyCaos;                        \
  9079. +    {                                \
  9080. +       MyCaos.##r1        = (ULONG) v1;            \
  9081. +       MyCaos.a6        = (ULONG) bn;            \
  9082. +       MyCaos.M68kCacheMode    =    cm1;            \
  9083. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9084. +       {                                \
  9085. +         MyCaos.M68kStart    =    cs1;            \
  9086. +         MyCaos.M68kLength    =    cl1;            \
  9087. +       }                                \
  9088. +       MyCaos.PPCCacheMode    =    cm2;            \
  9089. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9090. +       {                                \
  9091. +         MyCaos.PPCStart    =    cs2;            \
  9092. +         MyCaos.PPCLength    =    cl2;            \
  9093. +       }                                \
  9094. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9095. +       PPCCallOS(&MyCaos);                    \
  9096. +    }                                \
  9097. + })
  9098. + /* Only exec.library/Supervisor() */
  9099. + #define LP1A5FP(offs, rt, name, t1, v1, r1, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9100. + ({                                \
  9101. +    typedef fpt;                            \
  9102. +    struct Caos MyCaos;                        \
  9103. +    {                                \
  9104. +       rt _##name##_re;                        \
  9105. +       MyCaos.##r1        = (ULONG) v1;            \
  9106. +       MyCaos.a6        = (ULONG) bn;            \
  9107. +       MyCaos.M68kCacheMode    =    cm1;            \
  9108. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9109. +       {                                \
  9110. +         MyCaos.M68kStart    =    cs1;            \
  9111. +         MyCaos.M68kLength    =    cl1;            \
  9112. +       }                                \
  9113. +       MyCaos.PPCCacheMode    =    cm2;            \
  9114. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9115. +       {                                \
  9116. +         MyCaos.PPCStart    =    cs2;            \
  9117. +         MyCaos.PPCLength    =    cl2;            \
  9118. +       }                                \
  9119. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9120. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9121. +       _##name##_re;                        \
  9122. +    }                                \
  9123. + })
  9124. + #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9125. + ({                                \
  9126. +    struct Caos MyCaos;                        \
  9127. +    {                                \
  9128. +       rt _##name##_re;                        \
  9129. +       MyCaos.##r1        = (ULONG) v1;            \
  9130. +       MyCaos.##r2        = (ULONG) v2;            \
  9131. +       MyCaos.a6        = (ULONG) bn;            \
  9132. +       MyCaos.M68kCacheMode    =    cm1;            \
  9133. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9134. +       {                                \
  9135. +         MyCaos.M68kStart    =    cs1;            \
  9136. +         MyCaos.M68kLength    =    cl1;            \
  9137. +       }                                \
  9138. +       MyCaos.PPCCacheMode    =    cm2;            \
  9139. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9140. +       {                                \
  9141. +         MyCaos.PPCStart    =    cs2;            \
  9142. +         MyCaos.PPCLength    =    cl2;            \
  9143. +       }                                \
  9144. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9145. +       _##name##_re = (rt) PPCCallOS(&MyCaos);                      \
  9146. +       _##name##_re;                        \
  9147. +    }                                \
  9148. + })
  9149. + #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9150. + ({                                \
  9151. +    struct Caos MyCaos;                        \
  9152. +    {                                \
  9153. +       MyCaos.##r1        = (ULONG) v1;            \
  9154. +       MyCaos.##r2        = (ULONG) v2;            \
  9155. +       MyCaos.a6        = (ULONG) bn;            \
  9156. +       MyCaos.M68kCacheMode    =    cm1;            \
  9157. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9158. +       {                                \
  9159. +         MyCaos.M68kStart    =    cs1;            \
  9160. +         MyCaos.M68kLength    =    cl1;            \
  9161. +       }                                \
  9162. +       MyCaos.PPCCacheMode    =    cm2;            \
  9163. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9164. +       {                                \
  9165. +         MyCaos.PPCStart    =    cs2;            \
  9166. +         MyCaos.PPCLength    =    cl2;            \
  9167. +       }                                \
  9168. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9169. +       PPCCallOS(&MyCaos);                    \
  9170. +    }                                \
  9171. + })
  9172. + /* Only cia.resource/AbleICR() and cia.resource/SetICR() */
  9173. + #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9174. + ({                                \
  9175. +    struct Caos MyCaos;                        \
  9176. +    {                                \
  9177. +       rt _##name##_re;                        \
  9178. +       MyCaos.##r1        = (ULONG) v1;            \
  9179. +       MyCaos.##r2        = (ULONG) v2;            \
  9180. +       MyCaos.M68kCacheMode    =    cm1;            \
  9181. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9182. +       {                                \
  9183. +         MyCaos.M68kStart    =    cs1;            \
  9184. +         MyCaos.M68kLength    =    cl1;            \
  9185. +       }                                \
  9186. +       MyCaos.PPCCacheMode    =    cm2;            \
  9187. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9188. +       {                                \
  9189. +         MyCaos.PPCStart    =    cs2;            \
  9190. +         MyCaos.PPCLength    =    cl2;            \
  9191. +       }                                \
  9192. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9193. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9194. +       _##name##_re;                        \
  9195. +    }                                \
  9196. + })
  9197. + /* Only dos.library/InternalUnLoadSeg() */
  9198. + #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9199. + ({                                \
  9200. +    typedef fpt;                            \
  9201. +    struct Caos MyCaos;                        \
  9202. +    {                                \
  9203. +       rt _##name##_re;                        \
  9204. +       MyCaos.##r1        = (ULONG) v1;            \
  9205. +       MyCaos.##r2        = (ULONG) v2;            \
  9206. +       MyCaos.a6        = (ULONG) bn;            \
  9207. +       MyCaos.M68kCacheMode    =    cm1;            \
  9208. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9209. +       {                                \
  9210. +         MyCaos.M68kStart    =    cs1;            \
  9211. +         MyCaos.M68kLength    =    cl1;            \
  9212. +       }                                \
  9213. +       MyCaos.PPCCacheMode    =    cm2;            \
  9214. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9215. +       {                                \
  9216. +         MyCaos.PPCStart    =    cs2;            \
  9217. +         MyCaos.PPCLength    =    cl2;            \
  9218. +       }                                \
  9219. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9220. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9221. +       _##name##_re;                        \
  9222. +    }                                \
  9223. + })
  9224. + #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9225. + ({                                \
  9226. +    struct Caos MyCaos;                        \
  9227. +    {                                \
  9228. +       rt _##name##_re;                        \
  9229. +       MyCaos.##r1        = (ULONG) v1;            \
  9230. +       MyCaos.##r2        = (ULONG) v2;            \
  9231. +       MyCaos.##r3        = (ULONG) v3;            \
  9232. +       MyCaos.a6        = (ULONG) bn;            \
  9233. +       MyCaos.M68kCacheMode    =    cm1;            \
  9234. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9235. +       {                                \
  9236. +         MyCaos.M68kStart    =    cs1;            \
  9237. +         MyCaos.M68kLength    =    cl1;            \
  9238. +       }                                \
  9239. +       MyCaos.PPCCacheMode    =    cm2;            \
  9240. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9241. +       {                                \
  9242. +         MyCaos.PPCStart    =    cs2;            \
  9243. +         MyCaos.PPCLength    =    cl2;            \
  9244. +       }                                \
  9245. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9246. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9247. +       _##name##_re;                        \
  9248. +    }                                \
  9249. + })
  9250. + #define LP3NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9251. + ({                                \
  9252. +    struct Caos MyCaos;                        \
  9253. +    {                                \
  9254. +       MyCaos.##r1        = (ULONG) v1;            \
  9255. +       MyCaos.##r2        = (ULONG) v2;            \
  9256. +       MyCaos.##r3        = (ULONG) v3;            \
  9257. +       MyCaos.a6        = (ULONG) bn;            \
  9258. +       MyCaos.M68kCacheMode    =    cm1;            \
  9259. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9260. +       {                                \
  9261. +         MyCaos.M68kStart    =    cs1;            \
  9262. +         MyCaos.M68kLength    =    cl1;            \
  9263. +       }                                \
  9264. +       MyCaos.PPCCacheMode    =    cm2;            \
  9265. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9266. +       {                                \
  9267. +         MyCaos.PPCStart    =    cs2;            \
  9268. +         MyCaos.PPCLength    =    cl2;            \
  9269. +       }                                \
  9270. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9271. +       PPCCallOS(&MyCaos);                    \
  9272. +    }                                \
  9273. + })
  9274. + /* Only cia.resource/AddICRVector() */
  9275. + #define LP3UB(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9276. + ({                                \
  9277. +    struct Caos MyCaos;                        \
  9278. +    {                                \
  9279. +       rt _##name##_re;                        \
  9280. +       MyCaos.##r1        = (ULONG) v1;            \
  9281. +       MyCaos.##r2        = (ULONG) v2;            \
  9282. +       MyCaos.##r3        = (ULONG) v3;            \
  9283. +       MyCaos.M68kCacheMode    =    cm1;            \
  9284. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9285. +       {                                \
  9286. +         MyCaos.M68kStart    =    cs1;            \
  9287. +         MyCaos.M68kLength    =    cl1;            \
  9288. +       }                                \
  9289. +       MyCaos.PPCCacheMode    =    cm2;            \
  9290. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9291. +       {                                \
  9292. +         MyCaos.PPCStart    =    cs2;            \
  9293. +         MyCaos.PPCLength    =    cl2;            \
  9294. +       }                                \
  9295. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9296. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9297. +       _##name##_re;                        \
  9298. +    }                                \
  9299. + })
  9300. + /* Only cia.resource/RemICRVector() */
  9301. + #define LP3NRUB(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9302. + ({                                \
  9303. +    struct Caos MyCaos;                        \
  9304. +    {                                \
  9305. +       MyCaos.##r1        = (ULONG) v1;            \
  9306. +       MyCaos.##r2        = (ULONG) v2;            \
  9307. +       MyCaos.##r3        = (ULONG) v3;            \
  9308. +       MyCaos.M68kCacheMode    =    cm1;            \
  9309. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9310. +       {                                \
  9311. +         MyCaos.M68kStart    =    cs1;            \
  9312. +         MyCaos.M68kLength    =    cl1;            \
  9313. +       }                                \
  9314. +       MyCaos.PPCCacheMode    =    cm2;            \
  9315. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9316. +       {                                \
  9317. +         MyCaos.PPCStart    =    cs2;            \
  9318. +         MyCaos.PPCLength    =    cl2;            \
  9319. +       }                                \
  9320. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9321. +       PPCCallOS(&MyCaos);                    \
  9322. +    }                                \
  9323. + })
  9324. + /* Only exec.library/SetFunction() */
  9325. + #define LP3FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9326. + ({                                \
  9327. +    typedef fpt;                            \
  9328. +    struct Caos MyCaos;                        \
  9329. +    {                                \
  9330. +       rt _##name##_re;                        \
  9331. +       MyCaos.##r1        = (ULONG) v1;            \
  9332. +       MyCaos.##r2        = (ULONG) v2;            \
  9333. +       MyCaos.##r3        = (ULONG) v3;            \
  9334. +       MyCaos.a6        = (ULONG) bn;            \
  9335. +       MyCaos.M68kCacheMode    =    cm1;            \
  9336. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9337. +       {                                \
  9338. +         MyCaos.M68kStart    =    cs1;            \
  9339. +         MyCaos.M68kLength    =    cl1;            \
  9340. +       }                                \
  9341. +       MyCaos.PPCCacheMode    =    cm2;            \
  9342. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9343. +       {                                \
  9344. +         MyCaos.PPCStart    =    cs2;            \
  9345. +         MyCaos.PPCLength    =    cl2;            \
  9346. +       }                                \
  9347. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9348. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9349. +       _##name##_re;                        \
  9350. +    }                                \
  9351. + })
  9352. + /* Only graphics.library/SetCollision() */
  9353. + #define LP3NRFP(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9354. + ({                                \
  9355. +    typedef fpt;                            \
  9356. +    struct Caos MyCaos;                        \
  9357. +    {                                \
  9358. +       MyCaos.##r1        = (ULONG) v1;            \
  9359. +       MyCaos.##r2        = (ULONG) v2;            \
  9360. +       MyCaos.##r3        = (ULONG) v3;            \
  9361. +       MyCaos.a6        = (ULONG) bn;            \
  9362. +       MyCaos.M68kCacheMode    =    cm1;            \
  9363. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9364. +       {                                \
  9365. +         MyCaos.M68kStart    =    cs1;            \
  9366. +         MyCaos.M68kLength    =    cl1;            \
  9367. +       }                                \
  9368. +       MyCaos.PPCCacheMode    =    cm2;            \
  9369. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9370. +       {                                \
  9371. +         MyCaos.PPCStart    =    cs2;            \
  9372. +         MyCaos.PPCLength    =    cl2;            \
  9373. +       }                                \
  9374. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9375. +       PPCCallOS(&MyCaos);                    \
  9376. +    }                                \
  9377. + })
  9378. + #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 )    \
  9379. + ({                                \
  9380. +    struct Caos MyCaos;                        \
  9381. +    {                                \
  9382. +       rt _##name##_re;                        \
  9383. +       MyCaos.##r1        = (ULONG) v1;            \
  9384. +       MyCaos.##r2        = (ULONG) v2;            \
  9385. +       MyCaos.##r3        = (ULONG) v3;            \
  9386. +       MyCaos.##r4        = (ULONG) v4;            \
  9387. +       MyCaos.a6        = (ULONG) bn;            \
  9388. +       MyCaos.M68kCacheMode    =    cm1;            \
  9389. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9390. +       {                                \
  9391. +         MyCaos.M68kStart    =    cs1;            \
  9392. +         MyCaos.M68kLength    =    cl1;            \
  9393. +       }                                \
  9394. +       MyCaos.PPCCacheMode    =    cm2;            \
  9395. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9396. +       {                                \
  9397. +         MyCaos.PPCStart    =    cs2;            \
  9398. +         MyCaos.PPCLength    =    cl2;            \
  9399. +       }                                \
  9400. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9401. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9402. +       _##name##_re;                        \
  9403. +    }                                \
  9404. + })
  9405. + #define LP4NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9406. + ({                                \
  9407. +    struct Caos MyCaos;                        \
  9408. +    {                                \
  9409. +       MyCaos.##r1        = (ULONG) v1;            \
  9410. +       MyCaos.##r2        = (ULONG) v2;            \
  9411. +       MyCaos.##r3        = (ULONG) v3;            \
  9412. +       MyCaos.##r4        = (ULONG) v4;            \
  9413. +       MyCaos.a6        = (ULONG) bn;            \
  9414. +       MyCaos.M68kCacheMode    =    cm1;            \
  9415. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9416. +       {                                \
  9417. +         MyCaos.M68kStart    =    cs1;            \
  9418. +         MyCaos.M68kLength    =    cl1;            \
  9419. +       }                                \
  9420. +       MyCaos.PPCCacheMode    =    cm2;            \
  9421. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9422. +       {                                \
  9423. +         MyCaos.PPCStart    =    cs2;            \
  9424. +         MyCaos.PPCLength    =    cl2;            \
  9425. +       }                                \
  9426. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9427. +       PPCCallOS(&MyCaos);                    \
  9428. +    }                                \
  9429. + })
  9430. + /* Only exec.library/RawDoFmt() */
  9431. + #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 )    \
  9432. + ({                                \
  9433. +    typedef fpt;                            \
  9434. +    struct Caos MyCaos;                        \
  9435. +    {                                \
  9436. +       rt _##name##_re;                        \
  9437. +       MyCaos.##r1        = (ULONG) v1;            \
  9438. +       MyCaos.##r2        = (ULONG) v2;            \
  9439. +       MyCaos.##r3        = (ULONG) v3;            \
  9440. +       MyCaos.##r4        = (ULONG) v4;            \
  9441. +       MyCaos.a6        = (ULONG) bn;            \
  9442. +       MyCaos.M68kCacheMode    =    cm1;            \
  9443. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9444. +       {                                \
  9445. +         MyCaos.M68kStart    =    cs1;            \
  9446. +         MyCaos.M68kLength    =    cl1;            \
  9447. +       }                                \
  9448. +       MyCaos.PPCCacheMode    =    cm2;            \
  9449. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9450. +       {                                \
  9451. +         MyCaos.PPCStart    =    cs2;            \
  9452. +         MyCaos.PPCLength    =    cl2;            \
  9453. +       }                                \
  9454. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9455. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9456. +       _##name##_re;                        \
  9457. +    }                                \
  9458. + })
  9459. + #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 )    \
  9460. + ({                                \
  9461. +    struct Caos MyCaos;                        \
  9462. +    {                                \
  9463. +       rt _##name##_re;                        \
  9464. +       MyCaos.##r1        = (ULONG) v1;            \
  9465. +       MyCaos.##r2        = (ULONG) v2;            \
  9466. +       MyCaos.##r3        = (ULONG) v3;            \
  9467. +       MyCaos.##r4        = (ULONG) v4;            \
  9468. +       MyCaos.##r5        = (ULONG) v5;            \
  9469. +       MyCaos.a6        = (ULONG) bn;            \
  9470. +       MyCaos.M68kCacheMode    =    cm1;            \
  9471. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9472. +       {                                \
  9473. +         MyCaos.M68kStart    =    cs1;            \
  9474. +         MyCaos.M68kLength    =    cl1;            \
  9475. +       }                                \
  9476. +       MyCaos.PPCCacheMode    =    cm2;            \
  9477. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9478. +       {                                \
  9479. +         MyCaos.PPCStart    =    cs2;            \
  9480. +         MyCaos.PPCLength    =    cl2;            \
  9481. +       }                                \
  9482. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9483. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9484. +       _##name##_re;                        \
  9485. +    }                                \
  9486. + })
  9487. + #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 )    \
  9488. + ({                                \
  9489. +    struct Caos MyCaos;                        \
  9490. +    {                                \
  9491. +       MyCaos.##r1        = (ULONG) v1;            \
  9492. +       MyCaos.##r2        = (ULONG) v2;            \
  9493. +       MyCaos.##r3        = (ULONG) v3;            \
  9494. +       MyCaos.##r4        = (ULONG) v4;            \
  9495. +       MyCaos.##r5        = (ULONG) v5;            \
  9496. +       MyCaos.a6        = (ULONG) bn;            \
  9497. +       MyCaos.M68kCacheMode    =    cm1;            \
  9498. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9499. +       {                                \
  9500. +         MyCaos.M68kStart    =    cs1;            \
  9501. +         MyCaos.M68kLength    =    cl1;            \
  9502. +       }                                \
  9503. +       MyCaos.PPCCacheMode    =    cm2;            \
  9504. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9505. +       {                                \
  9506. +         MyCaos.PPCStart    =    cs2;            \
  9507. +         MyCaos.PPCLength    =    cl2;            \
  9508. +       }                                \
  9509. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9510. +       PPCCallOS(&MyCaos);                    \
  9511. +    }                                \
  9512. + })
  9513. + /* Only exec.library/MakeLibrary() */
  9514. + #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 )    \
  9515. + ({                                \
  9516. +    typedef fpt;                            \
  9517. +    struct Caos MyCaos;                        \
  9518. +    {                                \
  9519. +       rt _##name##_re;                        \
  9520. +       MyCaos.##r1        = (ULONG) v1;            \
  9521. +       MyCaos.##r2        = (ULONG) v2;            \
  9522. +       MyCaos.##r3        = (ULONG) v3;            \
  9523. +       MyCaos.##r4        = (ULONG) v4;            \
  9524. +       MyCaos.##r5        = (ULONG) v5;            \
  9525. +       MyCaos.a6        = (ULONG) bn;            \
  9526. +       MyCaos.M68kCacheMode    =    cm1;            \
  9527. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9528. +       {                                \
  9529. +         MyCaos.M68kStart    =    cs1;            \
  9530. +         MyCaos.M68kLength    =    cl1;            \
  9531. +       }                                \
  9532. +       MyCaos.PPCCacheMode    =    cm2;            \
  9533. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9534. +       {                                \
  9535. +         MyCaos.PPCStart    =    cs2;            \
  9536. +         MyCaos.PPCLength    =    cl2;            \
  9537. +       }                                \
  9538. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9539. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9540. +       _##name##_re;                        \
  9541. +    }                                \
  9542. + })
  9543. + #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 )    \
  9544. + ({                                \
  9545. +    struct Caos MyCaos;                        \
  9546. +    {                                \
  9547. +       rt _##name##_re;                        \
  9548. +       MyCaos.##r1        = (ULONG) v1;            \
  9549. +       MyCaos.##r2        = (ULONG) v2;            \
  9550. +       MyCaos.##r3        = (ULONG) v3;            \
  9551. +       MyCaos.##r4        = (ULONG) v4;            \
  9552. +       MyCaos.##r5        = (ULONG) v5;            \
  9553. +       MyCaos.##r6        = (ULONG) v6;            \
  9554. +       MyCaos.a6        = (ULONG) bn;            \
  9555. +       MyCaos.M68kCacheMode    =    cm1;            \
  9556. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9557. +       {                                \
  9558. +         MyCaos.M68kStart    =    cs1;            \
  9559. +         MyCaos.M68kLength    =    cl1;            \
  9560. +       }                                \
  9561. +       MyCaos.PPCCacheMode    =    cm2;            \
  9562. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9563. +       {                                \
  9564. +         MyCaos.PPCStart    =    cs2;            \
  9565. +         MyCaos.PPCLength    =    cl2;            \
  9566. +       }                                \
  9567. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9568. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9569. +       _##name##_re;                        \
  9570. +    }                                \
  9571. + })
  9572. + #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 )    \
  9573. + ({                                \
  9574. +    struct Caos MyCaos;                        \
  9575. +    {                                \
  9576. +       MyCaos.##r1        = (ULONG) v1;            \
  9577. +       MyCaos.##r2        = (ULONG) v2;            \
  9578. +       MyCaos.##r3        = (ULONG) v3;            \
  9579. +       MyCaos.##r4        = (ULONG) v4;            \
  9580. +       MyCaos.##r5        = (ULONG) v5;            \
  9581. +       MyCaos.##r6        = (ULONG) v6;            \
  9582. +       MyCaos.a6        = (ULONG) bn;            \
  9583. +       MyCaos.M68kCacheMode    =    cm1;            \
  9584. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9585. +       {                                \
  9586. +         MyCaos.M68kStart    =    cs1;            \
  9587. +         MyCaos.M68kLength    =    cl1;            \
  9588. +       }                                \
  9589. +       MyCaos.PPCCacheMode    =    cm2;            \
  9590. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9591. +       {                                \
  9592. +         MyCaos.PPCStart    =    cs2;            \
  9593. +         MyCaos.PPCLength    =    cl2;            \
  9594. +       }                                \
  9595. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9596. +       PPCCallOS(&MyCaos);                    \
  9597. +    }                                \
  9598. + })
  9599. + #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 )    \
  9600. + ({                                \
  9601. +    struct Caos MyCaos;                        \
  9602. +    {                                \
  9603. +       rt _##name##_re;                        \
  9604. +       MyCaos.##r1        = (ULONG) v1;            \
  9605. +       MyCaos.##r2        = (ULONG) v2;            \
  9606. +       MyCaos.##r3        = (ULONG) v3;            \
  9607. +       MyCaos.##r4        = (ULONG) v4;            \
  9608. +       MyCaos.##r5        = (ULONG) v5;            \
  9609. +       MyCaos.##r6        = (ULONG) v6;            \
  9610. +       MyCaos.##r7        = (ULONG) v7;            \
  9611. +       MyCaos.a6        = (ULONG) bn;            \
  9612. +       MyCaos.M68kCacheMode    =    cm1;            \
  9613. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9614. +       {                                \
  9615. +         MyCaos.M68kStart    =    cs1;            \
  9616. +         MyCaos.M68kLength    =    cl1;            \
  9617. +       }                                \
  9618. +       MyCaos.PPCCacheMode    =    cm2;            \
  9619. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9620. +       {                                \
  9621. +         MyCaos.PPCStart    =    cs2;            \
  9622. +         MyCaos.PPCLength    =    cl2;            \
  9623. +       }                                \
  9624. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9625. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9626. +       _##name##_re;                        \
  9627. +    }                                \
  9628. + })
  9629. + #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 )    \
  9630. + ({                                \
  9631. +    struct Caos MyCaos;                        \
  9632. +    {                                \
  9633. +       MyCaos.##r1        = (ULONG) v1;            \
  9634. +       MyCaos.##r2        = (ULONG) v2;            \
  9635. +       MyCaos.##r3        = (ULONG) v3;            \
  9636. +       MyCaos.##r4        = (ULONG) v4;            \
  9637. +       MyCaos.##r5        = (ULONG) v5;            \
  9638. +       MyCaos.##r6        = (ULONG) v6;            \
  9639. +       MyCaos.##r7        = (ULONG) v7;            \
  9640. +       MyCaos.a6        = (ULONG) bn;            \
  9641. +       MyCaos.M68kCacheMode    =    cm1;            \
  9642. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9643. +       {                                \
  9644. +         MyCaos.M68kStart    =    cs1;            \
  9645. +         MyCaos.M68kLength    =    cl1;            \
  9646. +       }                                \
  9647. +       MyCaos.PPCCacheMode    =    cm2;            \
  9648. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9649. +       {                                \
  9650. +         MyCaos.PPCStart    =    cs2;            \
  9651. +         MyCaos.PPCLength    =    cl2;            \
  9652. +       }                                \
  9653. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9654. +       PPCCallOS(&MyCaos);                    \
  9655. +    }                                \
  9656. + })
  9657. + /* Only workbench.library/AddAppIconA() */
  9658. + #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 )    \
  9659. + ({                                \
  9660. +    struct Caos MyCaos;                        \
  9661. +    {                                \
  9662. +       rt _##name##_re;                        \
  9663. +       MyCaos.##r1        = (ULONG) v1;            \
  9664. +       MyCaos.##r2        = (ULONG) v2;            \
  9665. +       MyCaos.##r3        = (ULONG) v3;            \
  9666. +       MyCaos.##r4        = (ULONG) v4;            \
  9667. +       MyCaos.##r5        = (ULONG) v5;            \
  9668. +       MyCaos.##r6        = (ULONG) v6;            \
  9669. +       MyCaos.##r7        = (ULONG) v7;            \
  9670. +       MyCaos.a6        = (ULONG) bn;            \
  9671. +       MyCaos.M68kCacheMode    =    cm1;            \
  9672. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9673. +       {                                \
  9674. +         MyCaos.M68kStart    =    cs1;            \
  9675. +         MyCaos.M68kLength    =    cl1;            \
  9676. +       }                                \
  9677. +       MyCaos.PPCCacheMode    =    cm2;            \
  9678. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9679. +       {                                \
  9680. +         MyCaos.PPCStart    =    cs2;            \
  9681. +         MyCaos.PPCLength    =    cl2;            \
  9682. +       }                                \
  9683. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9684. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9685. +       _##name##_re;                        \
  9686. +    }                                \
  9687. + })
  9688. + /* Would you believe that there really are beasts that need more than 7
  9689. +    arguments? :-) */
  9690. + /* For example intuition.library/AutoRequest() */
  9691. + #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 )    \
  9692. + ({                                \
  9693. +    struct Caos MyCaos;                        \
  9694. +    {                                \
  9695. +       rt _##name##_re;                        \
  9696. +       MyCaos.##r1        = (ULONG) v1;            \
  9697. +       MyCaos.##r2        = (ULONG) v2;            \
  9698. +       MyCaos.##r3        = (ULONG) v3;            \
  9699. +       MyCaos.##r4        = (ULONG) v4;            \
  9700. +       MyCaos.##r5        = (ULONG) v5;            \
  9701. +       MyCaos.##r6        = (ULONG) v6;            \
  9702. +       MyCaos.##r7        = (ULONG) v7;            \
  9703. +       MyCaos.##r8        = (ULONG) v8;            \
  9704. +       MyCaos.a6        = (ULONG) bn;            \
  9705. +       MyCaos.M68kCacheMode    =    cm1;            \
  9706. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9707. +       {                                \
  9708. +         MyCaos.M68kStart    =    cs1;            \
  9709. +         MyCaos.M68kLength    =    cl1;            \
  9710. +       }                                \
  9711. +       MyCaos.PPCCacheMode    =    cm2;            \
  9712. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9713. +       {                                \
  9714. +         MyCaos.PPCStart    =    cs2;            \
  9715. +         MyCaos.PPCLength    =    cl2;            \
  9716. +       }                                \
  9717. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9718. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9719. +       _##name##_re;                        \
  9720. +    }                                \
  9721. + })
  9722. + /* For example intuition.library/ModifyProp() */
  9723. + #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 )    \
  9724. + ({                                \
  9725. +    struct Caos MyCaos;                        \
  9726. +    {                                \
  9727. +       MyCaos.##r1        = (ULONG) v1;            \
  9728. +       MyCaos.##r2        = (ULONG) v2;            \
  9729. +       MyCaos.##r3        = (ULONG) v3;            \
  9730. +       MyCaos.##r4        = (ULONG) v4;            \
  9731. +       MyCaos.##r5        = (ULONG) v5;            \
  9732. +       MyCaos.##r6        = (ULONG) v6;            \
  9733. +       MyCaos.##r7        = (ULONG) v7;            \
  9734. +       MyCaos.##r8        = (ULONG) v8;            \
  9735. +       MyCaos.a6        = (ULONG) bn;            \
  9736. +       MyCaos.M68kCacheMode    =    cm1;            \
  9737. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9738. +       {                                \
  9739. +         MyCaos.M68kStart    =    cs1;            \
  9740. +         MyCaos.M68kLength    =    cl1;            \
  9741. +       }                                \
  9742. +       MyCaos.PPCCacheMode    =    cm2;            \
  9743. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9744. +       {                                \
  9745. +         MyCaos.PPCStart    =    cs2;            \
  9746. +         MyCaos.PPCLength    =    cl2;            \
  9747. +       }                                \
  9748. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9749. +       PPCCallOS(&MyCaos);                    \
  9750. +    }                                \
  9751. + })
  9752. + /* For example layers.library/CreateUpfrontHookLayer() */
  9753. + #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 )    \
  9754. + ({                                \
  9755. +    struct Caos MyCaos;                        \
  9756. +    {                                \
  9757. +       rt _##name##_re;                        \
  9758. +       MyCaos.##r1        = (ULONG) v1;            \
  9759. +       MyCaos.##r2        = (ULONG) v2;            \
  9760. +       MyCaos.##r3        = (ULONG) v3;            \
  9761. +       MyCaos.##r4        = (ULONG) v4;            \
  9762. +       MyCaos.##r5        = (ULONG) v5;            \
  9763. +       MyCaos.##r6        = (ULONG) v6;            \
  9764. +       MyCaos.##r7        = (ULONG) v7;            \
  9765. +       MyCaos.##r8        = (ULONG) v8;            \
  9766. +       MyCaos.##r9        = (ULONG) v9;            \
  9767. +       MyCaos.a6        = (ULONG) bn;            \
  9768. +       MyCaos.M68kCacheMode    =    cm1;            \
  9769. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9770. +       {                                \
  9771. +         MyCaos.M68kStart    =    cs1;            \
  9772. +         MyCaos.M68kLength    =    cl1;            \
  9773. +       }                                \
  9774. +       MyCaos.PPCCacheMode    =    cm2;            \
  9775. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9776. +       {                                \
  9777. +         MyCaos.PPCStart    =    cs2;            \
  9778. +         MyCaos.PPCLength    =    cl2;            \
  9779. +       }                                \
  9780. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9781. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9782. +       _##name##_re;                        \
  9783. +    }                                \
  9784. + })
  9785. + /* For example intuition.library/NewModifyProp() */
  9786. + #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 )    \
  9787. + ({                                \
  9788. +    struct Caos MyCaos;                        \
  9789. +    {                                \
  9790. +       MyCaos.##r1        = (ULONG) v1;            \
  9791. +       MyCaos.##r2        = (ULONG) v2;            \
  9792. +       MyCaos.##r3        = (ULONG) v3;            \
  9793. +       MyCaos.##r4        = (ULONG) v4;            \
  9794. +       MyCaos.##r5        = (ULONG) v5;            \
  9795. +       MyCaos.##r6        = (ULONG) v6;            \
  9796. +       MyCaos.##r7        = (ULONG) v7;            \
  9797. +       MyCaos.##r8        = (ULONG) v8;            \
  9798. +       MyCaos.##r9        = (ULONG) v9;            \
  9799. +       MyCaos.a6        = (ULONG) bn;            \
  9800. +       MyCaos.M68kCacheMode    =    cm1;            \
  9801. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9802. +       {                                \
  9803. +         MyCaos.M68kStart    =    cs1;            \
  9804. +         MyCaos.M68kLength    =    cl1;            \
  9805. +       }                                \
  9806. +       MyCaos.PPCCacheMode    =    cm2;            \
  9807. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9808. +       {                                \
  9809. +         MyCaos.PPCStart    =    cs2;            \
  9810. +         MyCaos.PPCLength    =    cl2;            \
  9811. +       }                                \
  9812. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9813. +       PPCCallOS(&MyCaos);                    \
  9814. +    }                                \
  9815. + })
  9816. + /* LP10 not needed... */
  9817. + /* Kriton Kyrimis <kyrimis@cti.gr> says CyberGraphics needs the following */
  9818. + #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 )    \
  9819. + ({                                \
  9820. +    struct Caos MyCaos;                        \
  9821. +    {                                \
  9822. +       rt _##name##_re;                        \
  9823. +       MyCaos.##r1        = (ULONG) v1;            \
  9824. +       MyCaos.##r2        = (ULONG) v2;            \
  9825. +       MyCaos.##r3        = (ULONG) v3;            \
  9826. +       MyCaos.##r4        = (ULONG) v4;            \
  9827. +       MyCaos.##r5        = (ULONG) v5;            \
  9828. +       MyCaos.##r6        = (ULONG) v6;            \
  9829. +       MyCaos.##r7        = (ULONG) v7;            \
  9830. +       MyCaos.##r8        = (ULONG) v8;            \
  9831. +       MyCaos.##r9        = (ULONG) v9;            \
  9832. +       MyCaos.##r10        = (ULONG) v10;            \
  9833. +       MyCaos.a6        = (ULONG) bn;            \
  9834. +       MyCaos.M68kCacheMode    =    cm1;            \
  9835. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9836. +       {                                \
  9837. +         MyCaos.M68kStart    =    cs1;            \
  9838. +         MyCaos.M68kLength    =    cl1;            \
  9839. +       }                                \
  9840. +       MyCaos.PPCCacheMode    =    cm2;            \
  9841. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9842. +       {                                \
  9843. +         MyCaos.PPCStart    =    cs2;            \
  9844. +         MyCaos.PPCLength    =    cl2;            \
  9845. +       }                                \
  9846. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9847. +       _##name##_re = (rt) PPCCallOS(&MyCaos);            \
  9848. +       _##name##_re;                        \
  9849. +    }                                \
  9850. + })
  9851. + /* Only graphics.library/BltMaskBitMapRastPort() */
  9852. + #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 )    \
  9853. + ({                                \
  9854. +    struct Caos MyCaos;                        \
  9855. +    {                                \
  9856. +       MyCaos.##r1        = (ULONG) v1;            \
  9857. +       MyCaos.##r2        = (ULONG) v2;            \
  9858. +       MyCaos.##r3        = (ULONG) v3;            \
  9859. +       MyCaos.##r4        = (ULONG) v4;            \
  9860. +       MyCaos.##r5        = (ULONG) v5;            \
  9861. +       MyCaos.##r6        = (ULONG) v6;            \
  9862. +       MyCaos.##r7        = (ULONG) v7;            \
  9863. +       MyCaos.##r8        = (ULONG) v8;            \
  9864. +       MyCaos.##r9        = (ULONG) v9;            \
  9865. +       MyCaos.##r10        = (ULONG) v10;            \
  9866. +       MyCaos.a6        = (ULONG) bn;            \
  9867. +       MyCaos.M68kCacheMode    =    cm1;            \
  9868. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9869. +       {                                \
  9870. +         MyCaos.M68kStart    =    cs1;            \
  9871. +         MyCaos.M68kLength    =    cl1;            \
  9872. +       }                                \
  9873. +       MyCaos.PPCCacheMode    =    cm2;            \
  9874. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9875. +       {                                \
  9876. +         MyCaos.PPCStart    =    cs2;            \
  9877. +         MyCaos.PPCLength    =    cl2;            \
  9878. +       }                                \
  9879. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  9880. +       PPCCallOS(&MyCaos);                    \
  9881. +    }                                \
  9882. + })
  9883. + /* Only graphics.library/BltBitMap() */
  9884. + #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 )    \
  9885. + ({                                \
  9886. +    struct Caos MyCaos;                        \
  9887. +    {                                \
  9888. +       rt _##name##_re;                        \
  9889. +       MyCaos.##r1        = (ULONG) v1;            \
  9890. +       MyCaos.##r2        = (ULONG) v2;            \
  9891. +       MyCaos.##r3        = (ULONG) v3;            \
  9892. +       MyCaos.##r4        = (ULONG) v4;            \
  9893. +       MyCaos.##r5        = (ULONG) v5;            \
  9894. +       MyCaos.##r6        = (ULONG) v6;            \
  9895. +       MyCaos.##r7        = (ULONG) v7;            \
  9896. +       MyCaos.##r8        = (ULONG) v8;            \
  9897. +       MyCaos.##r9        = (ULONG) v9;            \
  9898. +       MyCaos.##r10        = (ULONG) v10;            \
  9899. +       MyCaos.##r11        = (ULONG) v11;            \
  9900. +       MyCaos.a6        = (ULONG) bn;            \
  9901. +       MyCaos.M68kCacheMode    =    cm1;            \
  9902. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9903. +       {                                \
  9904. +         MyCaos.M68kStart    =    cs1;            \
  9905. +         MyCaos.M68kLength    =    cl1;            \
  9906. +       }                                \
  9907. +       MyCaos.PPCCacheMode    =    cm2;        
  9908. \ No newline at end of file
  9909. diff -c2 -d -P -r include_h/powerup/ppcinline/macros.h_old0 includenew/powerup/ppcinline/macros.h_old0
  9910. *** include_h/powerup/ppcinline/macros.h_old0    Thu Jan  1 00:00:00 1970
  9911. --- includenew/powerup/ppcinline/macros.h_old0    Thu Nov  2 22:27:08 2000
  9912. ***************
  9913. *** 0 ****
  9914. --- 1,1072 ----
  9915. + #ifndef __INLINE_MACROS_H
  9916. + #define __INLINE_MACROS_H
  9917. + #include <powerup/gcclib/powerup_protos.h>
  9918. + /* Use these macros to calculate cache flush start address and cache flush
  9919. + length. */
  9920. + #define __CACHE_START(start) ((void *) ((unsigned long int) (start) & ~31))
  9921. + #define __CACHE_LENGTH(start,length) ((((length) + (unsigned long int) (start) + 31) & ~31) - ((unsigned long int) (start) & ~31))
  9922. + /*
  9923. +    General macros for Amiga function calls. Not all the possibilities have
  9924. +    been created - only the ones which exist in OS 3.1. Third party libraries
  9925. +    and future versions of AmigaOS will maybe need some new ones...
  9926. +    LPX - functions that take X arguments.
  9927. +    Modifiers (variations are possible):
  9928. +    NR - no return (void),
  9929. +    A4, A5 - "a4" or "a5" is used as one of the arguments,
  9930. +    UB - base will be given explicitly by user (see cia.resource).
  9931. +    FP - one of the parameters has type "pointer to function".
  9932. +    "bt" arguments are not used - they are provided for backward compatibility
  9933. +    only.
  9934. +    Actually..the "bt" parameter is needed because otherwise the macro doesn`t
  9935. +    work for some reason i don`t know gcc puts an empty argument at the position
  9936. +    before the argument bn and without the placeholder "bt".
  9937. +    I think it has something to do with #define *_BASE_NAME
  9938. +    the (cm1==IF_CACHEFLUSHAREA) conditional is optimized away
  9939. + */
  9940. + #ifndef __INLINE_STUB_H
  9941. + #include <powerup/ppcinline/stubs.h>
  9942. + #endif
  9943. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  9944. + #include <powerup/ppclib/interface.h>
  9945. + #endif
  9946. + #define LP0(offs, rt, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9947. + ({                                \
  9948. +    struct Caos *MyCaos;                        \
  9949. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  9950. +    {                                \
  9951. +       rt _##name##_re;                        \
  9952. +       MyCaos->a6        = (ULONG) bn;            \
  9953. +       MyCaos->M68kCacheMode    =    cm1;            \
  9954. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9955. +       {                                \
  9956. +         MyCaos->M68kStart    =    cs1;            \
  9957. +         MyCaos->M68kLength    =    cl1;            \
  9958. +       }                                \
  9959. +       MyCaos->PPCCacheMode    =    cm2;            \
  9960. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9961. +       {                                \
  9962. +         MyCaos->PPCStart    =    cs2;            \
  9963. +         MyCaos->PPCLength    =    cl2;            \
  9964. +       }                                \
  9965. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  9966. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  9967. +       _##name##_re;                        \
  9968. +    }                                \
  9969. + })
  9970. + #define LP0NR(offs, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9971. + ({                                \
  9972. +    struct Caos *MyCaos;                        \
  9973. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  9974. +    {                                \
  9975. +       MyCaos->a6        = (ULONG) bn;            \
  9976. +       MyCaos->M68kCacheMode    =    cm1;            \
  9977. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  9978. +       {                                \
  9979. +         MyCaos->M68kStart    =    cs1;            \
  9980. +         MyCaos->M68kLength    =    cl1;            \
  9981. +       }                                \
  9982. +       MyCaos->PPCCacheMode    =    cm2;            \
  9983. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  9984. +       {                                \
  9985. +         MyCaos->PPCStart    =    cs2;            \
  9986. +         MyCaos->PPCLength    =    cl2;            \
  9987. +       }                                \
  9988. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  9989. +       PPCCallOS (MyCaos);                    \
  9990. +    }                                \
  9991. + })
  9992. + #define LP1(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  9993. + ({                                \
  9994. +    struct Caos *MyCaos;                        \
  9995. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  9996. +    {                                \
  9997. +       rt _##name##_re;                        \
  9998. +       MyCaos->##r1        = (ULONG) v1;            \
  9999. +       MyCaos->a6        = (ULONG) bn;            \
  10000. +       MyCaos->M68kCacheMode    =    cm1;            \
  10001. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10002. +       {                                \
  10003. +         MyCaos->M68kStart    =    cs1;            \
  10004. +         MyCaos->M68kLength    =    cl1;            \
  10005. +       }                                \
  10006. +       MyCaos->PPCCacheMode    =    cm2;            \
  10007. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10008. +       {                                \
  10009. +         MyCaos->PPCStart    =    cs2;            \
  10010. +         MyCaos->PPCLength    =    cl2;            \
  10011. +       }                                \
  10012. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10013. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10014. +       _##name##_re;                        \
  10015. +    }                                \
  10016. + })
  10017. + #define LP1NR(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10018. + ({                                \
  10019. +    struct Caos *MyCaos;                        \
  10020. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10021. +    {                                \
  10022. +       MyCaos->##r1        = (ULONG) v1;            \
  10023. +       MyCaos->a6        = (ULONG) bn;            \
  10024. +       MyCaos->M68kCacheMode    =    cm1;            \
  10025. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10026. +       {                                \
  10027. +         MyCaos->M68kStart    =    cs1;            \
  10028. +         MyCaos->M68kLength    =    cl1;            \
  10029. +       }                                \
  10030. +       MyCaos->PPCCacheMode    =    cm2;            \
  10031. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10032. +       {                                \
  10033. +         MyCaos->PPCStart    =    cs2;            \
  10034. +         MyCaos->PPCLength    =    cl2;            \
  10035. +       }                                \
  10036. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10037. +       PPCCallOS (MyCaos);                    \
  10038. +    }                                \
  10039. + })
  10040. + /* Only graphics.library/AttemptLockLayerRom() */
  10041. + #define LP1A5(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10042. + ({                                \
  10043. +    struct Caos *MyCaos;                        \
  10044. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10045. +    {                                \
  10046. +       rt _##name##_re;                        \
  10047. +       MyCaos->##r1        = (ULONG) v1;            \
  10048. +       MyCaos->a6        = (ULONG) bn;            \
  10049. +       MyCaos->M68kCacheMode    =    cm1;            \
  10050. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10051. +       {                                \
  10052. +         MyCaos->M68kStart    =    cs1;            \
  10053. +         MyCaos->M68kLength    =    cl1;            \
  10054. +       }                                \
  10055. +       MyCaos->PPCCacheMode    =    cm2;            \
  10056. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10057. +       {                                \
  10058. +         MyCaos->PPCStart    =    cs2;            \
  10059. +         MyCaos->PPCLength    =    cl2;            \
  10060. +       }                                \
  10061. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10062. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10063. +       _##name##_re;                        \
  10064. +    }                                \
  10065. + })
  10066. + /* Only graphics.library/LockLayerRom() and graphics.library/UnlockLayerRom() */
  10067. + #define LP1NRA5(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10068. + ({                                \
  10069. +    struct Caos *MyCaos;                        \
  10070. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10071. +    {                                \
  10072. +       MyCaos->##r1        = (ULONG) v1;            \
  10073. +       MyCaos->a6        = (ULONG) bn;            \
  10074. +       MyCaos->M68kCacheMode    =    cm1;            \
  10075. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10076. +       {                                \
  10077. +         MyCaos->M68kStart    =    cs1;            \
  10078. +         MyCaos->M68kLength    =    cl1;            \
  10079. +       }                                \
  10080. +       MyCaos->PPCCacheMode    =    cm2;            \
  10081. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10082. +       {                                \
  10083. +         MyCaos->PPCStart    =    cs2;            \
  10084. +         MyCaos->PPCLength    =    cl2;            \
  10085. +       }                                \
  10086. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10087. +       PPCCallOS (MyCaos);                    \
  10088. +    }                                \
  10089. + })
  10090. + /* Only exec.library/Supervisor() */
  10091. + #define LP1A5FP(offs, rt, name, t1, v1, r1, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10092. + ({                                \
  10093. +    typedef fpt;                            \
  10094. +    struct Caos *MyCaos;                        \
  10095. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10096. +    {                                \
  10097. +       rt _##name##_re;                        \
  10098. +       MyCaos->##r1        = (ULONG) v1;            \
  10099. +       MyCaos->a6        = (ULONG) bn;            \
  10100. +       MyCaos->M68kCacheMode    =    cm1;            \
  10101. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10102. +       {                                \
  10103. +         MyCaos->M68kStart    =    cs1;            \
  10104. +         MyCaos->M68kLength    =    cl1;            \
  10105. +       }                                \
  10106. +       MyCaos->PPCCacheMode    =    cm2;            \
  10107. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10108. +       {                                \
  10109. +         MyCaos->PPCStart    =    cs2;            \
  10110. +         MyCaos->PPCLength    =    cl2;            \
  10111. +       }                                \
  10112. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10113. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10114. +       _##name##_re;                        \
  10115. +    }                                \
  10116. + })
  10117. + #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10118. + ({                                \
  10119. +    struct Caos *MyCaos;                        \
  10120. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10121. +    {                                \
  10122. +       rt _##name##_re;                        \
  10123. +       MyCaos->##r1        = (ULONG) v1;            \
  10124. +       MyCaos->##r2        = (ULONG) v2;            \
  10125. +       MyCaos->a6        = (ULONG) bn;            \
  10126. +       MyCaos->M68kCacheMode    =    cm1;            \
  10127. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10128. +       {                                \
  10129. +         MyCaos->M68kStart    =    cs1;            \
  10130. +         MyCaos->M68kLength    =    cl1;            \
  10131. +       }                                \
  10132. +       MyCaos->PPCCacheMode    =    cm2;            \
  10133. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10134. +       {                                \
  10135. +         MyCaos->PPCStart    =    cs2;            \
  10136. +         MyCaos->PPCLength    =    cl2;            \
  10137. +       }                                \
  10138. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10139. +       _##name##_re = (rt) PPCCallOS (MyCaos);                      \
  10140. +       _##name##_re;                        \
  10141. +    }                                \
  10142. + })
  10143. + #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10144. + ({                                \
  10145. +    struct Caos *MyCaos;                        \
  10146. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10147. +    {                                \
  10148. +       MyCaos->##r1        = (ULONG) v1;            \
  10149. +       MyCaos->##r2        = (ULONG) v2;            \
  10150. +       MyCaos->a6        = (ULONG) bn;            \
  10151. +       MyCaos->M68kCacheMode    =    cm1;            \
  10152. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10153. +       {                                \
  10154. +         MyCaos->M68kStart    =    cs1;            \
  10155. +         MyCaos->M68kLength    =    cl1;            \
  10156. +       }                                \
  10157. +       MyCaos->PPCCacheMode    =    cm2;            \
  10158. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10159. +       {                                \
  10160. +         MyCaos->PPCStart    =    cs2;            \
  10161. +         MyCaos->PPCLength    =    cl2;            \
  10162. +       }                                \
  10163. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10164. +       PPCCallOS (MyCaos);                    \
  10165. +    }                                \
  10166. + })
  10167. + /* Only cia.resource/AbleICR() and cia.resource/SetICR() */
  10168. + #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10169. + ({                                \
  10170. +    struct Caos *MyCaos;                        \
  10171. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10172. +    {                                \
  10173. +       rt _##name##_re;                        \
  10174. +       MyCaos->##r1        = (ULONG) v1;            \
  10175. +       MyCaos->##r2        = (ULONG) v2;            \
  10176. +       MyCaos->M68kCacheMode    =    cm1;            \
  10177. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10178. +       {                                \
  10179. +         MyCaos->M68kStart    =    cs1;            \
  10180. +         MyCaos->M68kLength    =    cl1;            \
  10181. +       }                                \
  10182. +       MyCaos->PPCCacheMode    =    cm2;            \
  10183. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10184. +       {                                \
  10185. +         MyCaos->PPCStart    =    cs2;            \
  10186. +         MyCaos->PPCLength    =    cl2;            \
  10187. +       }                                \
  10188. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10189. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10190. +       _##name##_re;                        \
  10191. +    }                                \
  10192. + })
  10193. + /* Only dos.library/InternalUnLoadSeg() */
  10194. + #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10195. + ({                                \
  10196. +    typedef fpt;                            \
  10197. +    struct Caos *MyCaos;                        \
  10198. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10199. +    {                                \
  10200. +       rt _##name##_re;                        \
  10201. +       MyCaos->##r1        = (ULONG) v1;            \
  10202. +       MyCaos->##r2        = (ULONG) v2;            \
  10203. +       MyCaos->a6        = (ULONG) bn;            \
  10204. +       MyCaos->M68kCacheMode    =    cm1;            \
  10205. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10206. +       {                                \
  10207. +         MyCaos->M68kStart    =    cs1;            \
  10208. +         MyCaos->M68kLength    =    cl1;            \
  10209. +       }                                \
  10210. +       MyCaos->PPCCacheMode    =    cm2;            \
  10211. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10212. +       {                                \
  10213. +         MyCaos->PPCStart    =    cs2;            \
  10214. +         MyCaos->PPCLength    =    cl2;            \
  10215. +       }                                \
  10216. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10217. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10218. +       _##name##_re;                        \
  10219. +    }                                \
  10220. + })
  10221. + #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10222. + ({                                \
  10223. +    struct Caos *MyCaos;                        \
  10224. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10225. +    {                                \
  10226. +       rt _##name##_re;                        \
  10227. +       MyCaos->##r1        = (ULONG) v1;            \
  10228. +       MyCaos->##r2        = (ULONG) v2;            \
  10229. +       MyCaos->##r3        = (ULONG) v3;            \
  10230. +       MyCaos->a6        = (ULONG) bn;            \
  10231. +       MyCaos->M68kCacheMode    =    cm1;            \
  10232. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10233. +       {                                \
  10234. +         MyCaos->M68kStart    =    cs1;            \
  10235. +         MyCaos->M68kLength    =    cl1;            \
  10236. +       }                                \
  10237. +       MyCaos->PPCCacheMode    =    cm2;            \
  10238. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10239. +       {                                \
  10240. +         MyCaos->PPCStart    =    cs2;            \
  10241. +         MyCaos->PPCLength    =    cl2;            \
  10242. +       }                                \
  10243. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10244. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10245. +       _##name##_re;                        \
  10246. +    }                                \
  10247. + })
  10248. + #define LP3NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10249. + ({                                \
  10250. +    struct Caos *MyCaos;                        \
  10251. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10252. +    {                                \
  10253. +       MyCaos->##r1        = (ULONG) v1;            \
  10254. +       MyCaos->##r2        = (ULONG) v2;            \
  10255. +       MyCaos->##r3        = (ULONG) v3;            \
  10256. +       MyCaos->a6        = (ULONG) bn;            \
  10257. +       MyCaos->M68kCacheMode    =    cm1;            \
  10258. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10259. +       {                                \
  10260. +         MyCaos->M68kStart    =    cs1;            \
  10261. +         MyCaos->M68kLength    =    cl1;            \
  10262. +       }                                \
  10263. +       MyCaos->PPCCacheMode    =    cm2;            \
  10264. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10265. +       {                                \
  10266. +         MyCaos->PPCStart    =    cs2;            \
  10267. +         MyCaos->PPCLength    =    cl2;            \
  10268. +       }                                \
  10269. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10270. +       PPCCallOS (MyCaos);                    \
  10271. +    }                                \
  10272. + })
  10273. + /* Only cia.resource/AddICRVector() */
  10274. + #define LP3UB(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10275. + ({                                \
  10276. +    struct Caos *MyCaos;                        \
  10277. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10278. +    {                                \
  10279. +       rt _##name##_re;                        \
  10280. +       MyCaos->##r1        = (ULONG) v1;            \
  10281. +       MyCaos->##r2        = (ULONG) v2;            \
  10282. +       MyCaos->##r3        = (ULONG) v3;            \
  10283. +       MyCaos->M68kCacheMode    =    cm1;            \
  10284. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10285. +       {                                \
  10286. +         MyCaos->M68kStart    =    cs1;            \
  10287. +         MyCaos->M68kLength    =    cl1;            \
  10288. +       }                                \
  10289. +       MyCaos->PPCCacheMode    =    cm2;            \
  10290. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10291. +       {                                \
  10292. +         MyCaos->PPCStart    =    cs2;            \
  10293. +         MyCaos->PPCLength    =    cl2;            \
  10294. +       }                                \
  10295. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10296. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10297. +       _##name##_re;                        \
  10298. +    }                                \
  10299. + })
  10300. + /* Only cia.resource/RemICRVector() */
  10301. + #define LP3NRUB(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10302. + ({                                \
  10303. +    struct Caos *MyCaos;                        \
  10304. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10305. +    {                                \
  10306. +       MyCaos->##r1        = (ULONG) v1;            \
  10307. +       MyCaos->##r2        = (ULONG) v2;            \
  10308. +       MyCaos->##r3        = (ULONG) v3;            \
  10309. +       MyCaos->M68kCacheMode    =    cm1;            \
  10310. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10311. +       {                                \
  10312. +         MyCaos->M68kStart    =    cs1;            \
  10313. +         MyCaos->M68kLength    =    cl1;            \
  10314. +       }                                \
  10315. +       MyCaos->PPCCacheMode    =    cm2;            \
  10316. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10317. +       {                                \
  10318. +         MyCaos->PPCStart    =    cs2;            \
  10319. +         MyCaos->PPCLength    =    cl2;            \
  10320. +       }                                \
  10321. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10322. +       PPCCallOS (MyCaos);                    \
  10323. +    }                                \
  10324. + })
  10325. + /* Only exec.library/SetFunction() */
  10326. + #define LP3FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10327. + ({                                \
  10328. +    typedef fpt;                            \
  10329. +    struct Caos *MyCaos;                        \
  10330. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10331. +    {                                \
  10332. +       rt _##name##_re;                        \
  10333. +       MyCaos->##r1        = (ULONG) v1;            \
  10334. +       MyCaos->##r2        = (ULONG) v2;            \
  10335. +       MyCaos->##r3        = (ULONG) v3;            \
  10336. +       MyCaos->a6        = (ULONG) bn;            \
  10337. +       MyCaos->M68kCacheMode    =    cm1;            \
  10338. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10339. +       {                                \
  10340. +         MyCaos->M68kStart    =    cs1;            \
  10341. +         MyCaos->M68kLength    =    cl1;            \
  10342. +       }                                \
  10343. +       MyCaos->PPCCacheMode    =    cm2;            \
  10344. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10345. +       {                                \
  10346. +         MyCaos->PPCStart    =    cs2;            \
  10347. +         MyCaos->PPCLength    =    cl2;            \
  10348. +       }                                \
  10349. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10350. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10351. +       _##name##_re;                        \
  10352. +    }                                \
  10353. + })
  10354. + /* Only graphics.library/SetCollision() */
  10355. + #define LP3NRFP(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10356. + ({                                \
  10357. +    typedef fpt;                            \
  10358. +    struct Caos *MyCaos;                        \
  10359. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10360. +    {                                \
  10361. +       MyCaos->##r1        = (ULONG) v1;            \
  10362. +       MyCaos->##r2        = (ULONG) v2;            \
  10363. +       MyCaos->##r3        = (ULONG) v3;            \
  10364. +       MyCaos->a6        = (ULONG) bn;            \
  10365. +       MyCaos->M68kCacheMode    =    cm1;            \
  10366. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10367. +       {                                \
  10368. +         MyCaos->M68kStart    =    cs1;            \
  10369. +         MyCaos->M68kLength    =    cl1;            \
  10370. +       }                                \
  10371. +       MyCaos->PPCCacheMode    =    cm2;            \
  10372. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10373. +       {                                \
  10374. +         MyCaos->PPCStart    =    cs2;            \
  10375. +         MyCaos->PPCLength    =    cl2;            \
  10376. +       }                                \
  10377. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10378. +       PPCCallOS (MyCaos);                    \
  10379. +    }                                \
  10380. + })
  10381. + #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 )    \
  10382. + ({                                \
  10383. +    struct Caos *MyCaos;                        \
  10384. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10385. +    {                                \
  10386. +       rt _##name##_re;                        \
  10387. +       MyCaos->##r1        = (ULONG) v1;            \
  10388. +       MyCaos->##r2        = (ULONG) v2;            \
  10389. +       MyCaos->##r3        = (ULONG) v3;            \
  10390. +       MyCaos->##r4        = (ULONG) v4;            \
  10391. +       MyCaos->a6        = (ULONG) bn;            \
  10392. +       MyCaos->M68kCacheMode    =    cm1;            \
  10393. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10394. +       {                                \
  10395. +         MyCaos->M68kStart    =    cs1;            \
  10396. +         MyCaos->M68kLength    =    cl1;            \
  10397. +       }                                \
  10398. +       MyCaos->PPCCacheMode    =    cm2;            \
  10399. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10400. +       {                                \
  10401. +         MyCaos->PPCStart    =    cs2;            \
  10402. +         MyCaos->PPCLength    =    cl2;            \
  10403. +       }                                \
  10404. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10405. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10406. +       _##name##_re;                        \
  10407. +    }                                \
  10408. + })
  10409. + #define LP4NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10410. + ({                                \
  10411. +    struct Caos *MyCaos;                        \
  10412. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10413. +    {                                \
  10414. +       MyCaos->##r1        = (ULONG) v1;            \
  10415. +       MyCaos->##r2        = (ULONG) v2;            \
  10416. +       MyCaos->##r3        = (ULONG) v3;            \
  10417. +       MyCaos->##r4        = (ULONG) v4;            \
  10418. +       MyCaos->a6        = (ULONG) bn;            \
  10419. +       MyCaos->M68kCacheMode    =    cm1;            \
  10420. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10421. +       {                                \
  10422. +         MyCaos->M68kStart    =    cs1;            \
  10423. +         MyCaos->M68kLength    =    cl1;            \
  10424. +       }                                \
  10425. +       MyCaos->PPCCacheMode    =    cm2;            \
  10426. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10427. +       {                                \
  10428. +         MyCaos->PPCStart    =    cs2;            \
  10429. +         MyCaos->PPCLength    =    cl2;            \
  10430. +       }                                \
  10431. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10432. +       PPCCallOS (MyCaos);                    \
  10433. +    }                                \
  10434. + })
  10435. + /* Only exec.library/RawDoFmt() */
  10436. + #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 )    \
  10437. + ({                                \
  10438. +    typedef fpt;                            \
  10439. +    struct Caos *MyCaos;                        \
  10440. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10441. +    {                                \
  10442. +       rt _##name##_re;                        \
  10443. +       MyCaos->##r1        = (ULONG) v1;            \
  10444. +       MyCaos->##r2        = (ULONG) v2;            \
  10445. +       MyCaos->##r3        = (ULONG) v3;            \
  10446. +       MyCaos->##r4        = (ULONG) v4;            \
  10447. +       MyCaos->a6        = (ULONG) bn;            \
  10448. +       MyCaos->M68kCacheMode    =    cm1;            \
  10449. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10450. +       {                                \
  10451. +         MyCaos->M68kStart    =    cs1;            \
  10452. +         MyCaos->M68kLength    =    cl1;            \
  10453. +       }                                \
  10454. +       MyCaos->PPCCacheMode    =    cm2;            \
  10455. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10456. +       {                                \
  10457. +         MyCaos->PPCStart    =    cs2;            \
  10458. +         MyCaos->PPCLength    =    cl2;            \
  10459. +       }                                \
  10460. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10461. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10462. +       _##name##_re;                        \
  10463. +    }                                \
  10464. + })
  10465. + #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 )    \
  10466. + ({                                \
  10467. +    struct Caos *MyCaos;                        \
  10468. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10469. +    {                                \
  10470. +       rt _##name##_re;                        \
  10471. +       MyCaos->##r1        = (ULONG) v1;            \
  10472. +       MyCaos->##r2        = (ULONG) v2;            \
  10473. +       MyCaos->##r3        = (ULONG) v3;            \
  10474. +       MyCaos->##r4        = (ULONG) v4;            \
  10475. +       MyCaos->##r5        = (ULONG) v5;            \
  10476. +       MyCaos->a6        = (ULONG) bn;            \
  10477. +       MyCaos->M68kCacheMode    =    cm1;            \
  10478. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10479. +       {                                \
  10480. +         MyCaos->M68kStart    =    cs1;            \
  10481. +         MyCaos->M68kLength    =    cl1;            \
  10482. +       }                                \
  10483. +       MyCaos->PPCCacheMode    =    cm2;            \
  10484. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10485. +       {                                \
  10486. +         MyCaos->PPCStart    =    cs2;            \
  10487. +         MyCaos->PPCLength    =    cl2;            \
  10488. +       }                                \
  10489. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10490. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10491. +       _##name##_re;                        \
  10492. +    }                                \
  10493. + })
  10494. + #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 )    \
  10495. + ({                                \
  10496. +    struct Caos *MyCaos;                        \
  10497. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10498. +    {                                \
  10499. +       MyCaos->##r1        = (ULONG) v1;            \
  10500. +       MyCaos->##r2        = (ULONG) v2;            \
  10501. +       MyCaos->##r3        = (ULONG) v3;            \
  10502. +       MyCaos->##r4        = (ULONG) v4;            \
  10503. +       MyCaos->##r5        = (ULONG) v5;            \
  10504. +       MyCaos->a6        = (ULONG) bn;            \
  10505. +       MyCaos->M68kCacheMode    =    cm1;            \
  10506. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10507. +       {                                \
  10508. +         MyCaos->M68kStart    =    cs1;            \
  10509. +         MyCaos->M68kLength    =    cl1;            \
  10510. +       }                                \
  10511. +       MyCaos->PPCCacheMode    =    cm2;            \
  10512. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10513. +       {                                \
  10514. +         MyCaos->PPCStart    =    cs2;            \
  10515. +         MyCaos->PPCLength    =    cl2;            \
  10516. +       }                                \
  10517. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10518. +       PPCCallOS (MyCaos);                    \
  10519. +    }                                \
  10520. + })
  10521. + /* Only exec.library/MakeLibrary() */
  10522. + #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 )    \
  10523. + ({                                \
  10524. +    typedef fpt;                            \
  10525. +    struct Caos *MyCaos;                        \
  10526. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10527. +    {                                \
  10528. +       rt _##name##_re;                        \
  10529. +       MyCaos->##r1        = (ULONG) v1;            \
  10530. +       MyCaos->##r2        = (ULONG) v2;            \
  10531. +       MyCaos->##r3        = (ULONG) v3;            \
  10532. +       MyCaos->##r4        = (ULONG) v4;            \
  10533. +       MyCaos->##r5        = (ULONG) v5;            \
  10534. +       MyCaos->a6        = (ULONG) bn;            \
  10535. +       MyCaos->M68kCacheMode    =    cm1;            \
  10536. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10537. +       {                                \
  10538. +         MyCaos->M68kStart    =    cs1;            \
  10539. +         MyCaos->M68kLength    =    cl1;            \
  10540. +       }                                \
  10541. +       MyCaos->PPCCacheMode    =    cm2;            \
  10542. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10543. +       {                                \
  10544. +         MyCaos->PPCStart    =    cs2;            \
  10545. +         MyCaos->PPCLength    =    cl2;            \
  10546. +       }                                \
  10547. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10548. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10549. +       _##name##_re;                        \
  10550. +    }                                \
  10551. + })
  10552. + #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 )    \
  10553. + ({                                \
  10554. +    struct Caos *MyCaos;                        \
  10555. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10556. +    {                                \
  10557. +       rt _##name##_re;                        \
  10558. +       MyCaos->##r1        = (ULONG) v1;            \
  10559. +       MyCaos->##r2        = (ULONG) v2;            \
  10560. +       MyCaos->##r3        = (ULONG) v3;            \
  10561. +       MyCaos->##r4        = (ULONG) v4;            \
  10562. +       MyCaos->##r5        = (ULONG) v5;            \
  10563. +       MyCaos->##r6        = (ULONG) v6;            \
  10564. +       MyCaos->a6        = (ULONG) bn;            \
  10565. +       MyCaos->M68kCacheMode    =    cm1;            \
  10566. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10567. +       {                                \
  10568. +         MyCaos->M68kStart    =    cs1;            \
  10569. +         MyCaos->M68kLength    =    cl1;            \
  10570. +       }                                \
  10571. +       MyCaos->PPCCacheMode    =    cm2;            \
  10572. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10573. +       {                                \
  10574. +         MyCaos->PPCStart    =    cs2;            \
  10575. +         MyCaos->PPCLength    =    cl2;            \
  10576. +       }                                \
  10577. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10578. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10579. +       _##name##_re;                        \
  10580. +    }                                \
  10581. + })
  10582. + #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 )    \
  10583. + ({                                \
  10584. +    struct Caos *MyCaos;                        \
  10585. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10586. +    {                                \
  10587. +       MyCaos->##r1        = (ULONG) v1;            \
  10588. +       MyCaos->##r2        = (ULONG) v2;            \
  10589. +       MyCaos->##r3        = (ULONG) v3;            \
  10590. +       MyCaos->##r4        = (ULONG) v4;            \
  10591. +       MyCaos->##r5        = (ULONG) v5;            \
  10592. +       MyCaos->##r6        = (ULONG) v6;            \
  10593. +       MyCaos->a6        = (ULONG) bn;            \
  10594. +       MyCaos->M68kCacheMode    =    cm1;            \
  10595. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10596. +       {                                \
  10597. +         MyCaos->M68kStart    =    cs1;            \
  10598. +         MyCaos->M68kLength    =    cl1;            \
  10599. +       }                                \
  10600. +       MyCaos->PPCCacheMode    =    cm2;            \
  10601. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10602. +       {                                \
  10603. +         MyCaos->PPCStart    =    cs2;            \
  10604. +         MyCaos->PPCLength    =    cl2;            \
  10605. +       }                                \
  10606. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10607. +       PPCCallOS (MyCaos);                    \
  10608. +    }                                \
  10609. + })
  10610. + #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 )    \
  10611. + ({                                \
  10612. +    struct Caos *MyCaos;                        \
  10613. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10614. +    {                                \
  10615. +       rt _##name##_re;                        \
  10616. +       MyCaos->##r1        = (ULONG) v1;            \
  10617. +       MyCaos->##r2        = (ULONG) v2;            \
  10618. +       MyCaos->##r3        = (ULONG) v3;            \
  10619. +       MyCaos->##r4        = (ULONG) v4;            \
  10620. +       MyCaos->##r5        = (ULONG) v5;            \
  10621. +       MyCaos->##r6        = (ULONG) v6;            \
  10622. +       MyCaos->##r7        = (ULONG) v7;            \
  10623. +       MyCaos->a6        = (ULONG) bn;            \
  10624. +       MyCaos->M68kCacheMode    =    cm1;            \
  10625. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10626. +       {                                \
  10627. +         MyCaos->M68kStart    =    cs1;            \
  10628. +         MyCaos->M68kLength    =    cl1;            \
  10629. +       }                                \
  10630. +       MyCaos->PPCCacheMode    =    cm2;            \
  10631. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10632. +       {                                \
  10633. +         MyCaos->PPCStart    =    cs2;            \
  10634. +         MyCaos->PPCLength    =    cl2;            \
  10635. +       }                                \
  10636. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10637. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10638. +       _##name##_re;                        \
  10639. +    }                                \
  10640. + })
  10641. + #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 )    \
  10642. + ({                                \
  10643. +    struct Caos *MyCaos;                        \
  10644. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10645. +    {                                \
  10646. +       MyCaos->##r1        = (ULONG) v1;            \
  10647. +       MyCaos->##r2        = (ULONG) v2;            \
  10648. +       MyCaos->##r3        = (ULONG) v3;            \
  10649. +       MyCaos->##r4        = (ULONG) v4;            \
  10650. +       MyCaos->##r5        = (ULONG) v5;            \
  10651. +       MyCaos->##r6        = (ULONG) v6;            \
  10652. +       MyCaos->##r7        = (ULONG) v7;            \
  10653. +       MyCaos->a6        = (ULONG) bn;            \
  10654. +       MyCaos->M68kCacheMode    =    cm1;            \
  10655. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10656. +       {                                \
  10657. +         MyCaos->M68kStart    =    cs1;            \
  10658. +         MyCaos->M68kLength    =    cl1;            \
  10659. +       }                                \
  10660. +       MyCaos->PPCCacheMode    =    cm2;            \
  10661. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10662. +       {                                \
  10663. +         MyCaos->PPCStart    =    cs2;            \
  10664. +         MyCaos->PPCLength    =    cl2;            \
  10665. +       }                                \
  10666. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10667. +       PPCCallOS (MyCaos);                    \
  10668. +    }                                \
  10669. + })
  10670. + /* Only workbench.library/AddAppIconA() */
  10671. + #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 )    \
  10672. + ({                                \
  10673. +    struct Caos *MyCaos;                        \
  10674. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10675. +    {                                \
  10676. +       rt _##name##_re;                        \
  10677. +       MyCaos->##r1        = (ULONG) v1;            \
  10678. +       MyCaos->##r2        = (ULONG) v2;            \
  10679. +       MyCaos->##r3        = (ULONG) v3;            \
  10680. +       MyCaos->##r4        = (ULONG) v4;            \
  10681. +       MyCaos->##r5        = (ULONG) v5;            \
  10682. +       MyCaos->##r6        = (ULONG) v6;            \
  10683. +       MyCaos->##r7        = (ULONG) v7;            \
  10684. +       MyCaos->a6        = (ULONG) bn;            \
  10685. +       MyCaos->M68kCacheMode    =    cm1;            \
  10686. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10687. +       {                                \
  10688. +         MyCaos->M68kStart    =    cs1;            \
  10689. +         MyCaos->M68kLength    =    cl1;            \
  10690. +       }                                \
  10691. +       MyCaos->PPCCacheMode    =    cm2;            \
  10692. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10693. +       {                                \
  10694. +         MyCaos->PPCStart    =    cs2;            \
  10695. +         MyCaos->PPCLength    =    cl2;            \
  10696. +       }                                \
  10697. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10698. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10699. +       _##name##_re;                        \
  10700. +    }                                \
  10701. + })
  10702. + /* Would you believe that there really are beasts that need more than 7
  10703. +    arguments? :-) */
  10704. + /* For example intuition.library/AutoRequest() */
  10705. + #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 )    \
  10706. + ({                                \
  10707. +    struct Caos *MyCaos;                        \
  10708. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10709. +    {                                \
  10710. +       rt _##name##_re;                        \
  10711. +       MyCaos->##r1        = (ULONG) v1;            \
  10712. +       MyCaos->##r2        = (ULONG) v2;            \
  10713. +       MyCaos->##r3        = (ULONG) v3;            \
  10714. +       MyCaos->##r4        = (ULONG) v4;            \
  10715. +       MyCaos->##r5        = (ULONG) v5;            \
  10716. +       MyCaos->##r6        = (ULONG) v6;            \
  10717. +       MyCaos->##r7        = (ULONG) v7;            \
  10718. +       MyCaos->##r8        = (ULONG) v8;            \
  10719. +       MyCaos->a6        = (ULONG) bn;            \
  10720. +       MyCaos->M68kCacheMode    =    cm1;            \
  10721. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10722. +       {                                \
  10723. +         MyCaos->M68kStart    =    cs1;            \
  10724. +         MyCaos->M68kLength    =    cl1;            \
  10725. +       }                                \
  10726. +       MyCaos->PPCCacheMode    =    cm2;            \
  10727. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10728. +       {                                \
  10729. +         MyCaos->PPCStart    =    cs2;            \
  10730. +         MyCaos->PPCLength    =    cl2;            \
  10731. +       }                                \
  10732. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10733. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10734. +       _##name##_re;                        \
  10735. +    }                                \
  10736. + })
  10737. + /* For example intuition.library/ModifyProp() */
  10738. + #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 )    \
  10739. + ({                                \
  10740. +    struct Caos *MyCaos;                        \
  10741. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10742. +    {                                \
  10743. +       MyCaos->##r1        = (ULONG) v1;            \
  10744. +       MyCaos->##r2        = (ULONG) v2;            \
  10745. +       MyCaos->##r3        = (ULONG) v3;            \
  10746. +       MyCaos->##r4        = (ULONG) v4;            \
  10747. +       MyCaos->##r5        = (ULONG) v5;            \
  10748. +       MyCaos->##r6        = (ULONG) v6;            \
  10749. +       MyCaos->##r7        = (ULONG) v7;            \
  10750. +       MyCaos->##r8        = (ULONG) v8;            \
  10751. +       MyCaos->a6        = (ULONG) bn;            \
  10752. +       MyCaos->M68kCacheMode    =    cm1;            \
  10753. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10754. +       {                                \
  10755. +         MyCaos->M68kStart    =    cs1;            \
  10756. +         MyCaos->M68kLength    =    cl1;            \
  10757. +       }                                \
  10758. +       MyCaos->PPCCacheMode    =    cm2;            \
  10759. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10760. +       {                                \
  10761. +         MyCaos->PPCStart    =    cs2;            \
  10762. +         MyCaos->PPCLength    =    cl2;            \
  10763. +       }                                \
  10764. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10765. +       PPCCallOS (MyCaos);                    \
  10766. +    }                                \
  10767. + })
  10768. + /* For example layers.library/CreateUpfrontHookLayer() */
  10769. + #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 )    \
  10770. + ({                                \
  10771. +    struct Caos *MyCaos;                        \
  10772. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10773. +    {                                \
  10774. +       rt _##name##_re;                        \
  10775. +       MyCaos->##r1        = (ULONG) v1;            \
  10776. +       MyCaos->##r2        = (ULONG) v2;            \
  10777. +       MyCaos->##r3        = (ULONG) v3;            \
  10778. +       MyCaos->##r4        = (ULONG) v4;            \
  10779. +       MyCaos->##r5        = (ULONG) v5;            \
  10780. +       MyCaos->##r6        = (ULONG) v6;            \
  10781. +       MyCaos->##r7        = (ULONG) v7;            \
  10782. +       MyCaos->##r8        = (ULONG) v8;            \
  10783. +       MyCaos->##r9        = (ULONG) v9;            \
  10784. +       MyCaos->a6        = (ULONG) bn;            \
  10785. +       MyCaos->M68kCacheMode    =    cm1;            \
  10786. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10787. +       {                                \
  10788. +         MyCaos->M68kStart    =    cs1;            \
  10789. +         MyCaos->M68kLength    =    cl1;            \
  10790. +       }                                \
  10791. +       MyCaos->PPCCacheMode    =    cm2;            \
  10792. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10793. +       {                                \
  10794. +         MyCaos->PPCStart    =    cs2;            \
  10795. +         MyCaos->PPCLength    =    cl2;            \
  10796. +       }                                \
  10797. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10798. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10799. +       _##name##_re;                        \
  10800. +    }                                \
  10801. + })
  10802. + /* For example intuition.library/NewModifyProp() */
  10803. + #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 )    \
  10804. + ({                                \
  10805. +    struct Caos *MyCaos;                        \
  10806. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10807. +    {                                \
  10808. +       MyCaos->##r1        = (ULONG) v1;            \
  10809. +       MyCaos->##r2        = (ULONG) v2;            \
  10810. +       MyCaos->##r3        = (ULONG) v3;            \
  10811. +       MyCaos->##r4        = (ULONG) v4;            \
  10812. +       MyCaos->##r5        = (ULONG) v5;            \
  10813. +       MyCaos->##r6        = (ULONG) v6;            \
  10814. +       MyCaos->##r7        = (ULONG) v7;            \
  10815. +       MyCaos->##r8        = (ULONG) v8;            \
  10816. +       MyCaos->##r9        = (ULONG) v9;            \
  10817. +       MyCaos->a6        = (ULONG) bn;            \
  10818. +       MyCaos->M68kCacheMode    =    cm1;            \
  10819. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10820. +       {                                \
  10821. +         MyCaos->M68kStart    =    cs1;            \
  10822. +         MyCaos->M68kLength    =    cl1;            \
  10823. +       }                                \
  10824. +       MyCaos->PPCCacheMode    =    cm2;            \
  10825. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10826. +       {                                \
  10827. +         MyCaos->PPCStart    =    cs2;            \
  10828. +         MyCaos->PPCLength    =    cl2;            \
  10829. +       }                                \
  10830. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10831. +       PPCCallOS (MyCaos);                    \
  10832. +    }                                \
  10833. + })
  10834. + /* LP10 not needed... */
  10835. + /* Kriton Kyrimis <kyrimis@cti.gr> says CyberGraphics needs the following */
  10836. + #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 )    \
  10837. + ({                                \
  10838. +    struct Caos *MyCaos;                        \
  10839. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10840. +    {                                \
  10841. +       rt _##name##_re;                        \
  10842. +       MyCaos->##r1        = (ULONG) v1;            \
  10843. +       MyCaos->##r2        = (ULONG) v2;            \
  10844. +       MyCaos->##r3        = (ULONG) v3;            \
  10845. +       MyCaos->##r4        = (ULONG) v4;            \
  10846. +       MyCaos->##r5        = (ULONG) v5;            \
  10847. +       MyCaos->##r6        = (ULONG) v6;            \
  10848. +       MyCaos->##r7        = (ULONG) v7;            \
  10849. +       MyCaos->##r8        = (ULONG) v8;            \
  10850. +       MyCaos->##r9        = (ULONG) v9;            \
  10851. +       MyCaos->##r10        = (ULONG) v10;            \
  10852. +       MyCaos->a6        = (ULONG) bn;            \
  10853. +       MyCaos->M68kCacheMode    =    cm1;            \
  10854. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10855. +       {                                \
  10856. +         MyCaos->M68kStart    =    cs1;            \
  10857. +         MyCaos->M68kLength    =    cl1;            \
  10858. +       }                                \
  10859. +       MyCaos->PPCCacheMode    =    cm2;            \
  10860. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10861. +       {                                \
  10862. +         MyCaos->PPCStart    =    cs2;            \
  10863. +         MyCaos->PPCLength    =    cl2;            \
  10864. +       }                                \
  10865. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10866. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10867. +       _##name##_re;                        \
  10868. +    }                                \
  10869. + })
  10870. + /* Only graphics.library/BltMaskBitMapRastPort() */
  10871. + #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 )    \
  10872. + ({                                \
  10873. +    struct Caos *MyCaos;                        \
  10874. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10875. +    {                                \
  10876. +       MyCaos->##r1        = (ULONG) v1;            \
  10877. +       MyCaos->##r2        = (ULONG) v2;            \
  10878. +       MyCaos->##r3        = (ULONG) v3;            \
  10879. +       MyCaos->##r4        = (ULONG) v4;            \
  10880. +       MyCaos->##r5        = (ULONG) v5;            \
  10881. +       MyCaos->##r6        = (ULONG) v6;            \
  10882. +       MyCaos->##r7        = (ULONG) v7;            \
  10883. +       MyCaos->##r8        = (ULONG) v8;            \
  10884. +       MyCaos->##r9        = (ULONG) v9;            \
  10885. +       MyCaos->##r10        = (ULONG) v10;            \
  10886. +       MyCaos->a6        = (ULONG) bn;            \
  10887. +       MyCaos->M68kCacheMode    =    cm1;            \
  10888. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10889. +       {                                \
  10890. +         MyCaos->M68kStart    =    cs1;            \
  10891. +         MyCaos->M68kLength    =    cl1;            \
  10892. +       }                                \
  10893. +       MyCaos->PPCCacheMode    =    cm2;            \
  10894. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10895. +       {                                \
  10896. +         MyCaos->PPCStart    =    cs2;            \
  10897. +         MyCaos->PPCLength    =    cl2;            \
  10898. +       }                                \
  10899. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10900. +       PPCCallOS (MyCaos);                    \
  10901. +    }                                \
  10902. + })
  10903. + /* Only graphics.library/BltBitMap() */
  10904. + #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 )    \
  10905. + ({                                \
  10906. +    struct Caos *MyCaos;                        \
  10907. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10908. +    {                                \
  10909. +       rt _##name##_re;                        \
  10910. +       MyCaos->##r1        = (ULONG) v1;            \
  10911. +       MyCaos->##r2        = (ULONG) v2;            \
  10912. +       MyCaos->##r3        = (ULONG) v3;            \
  10913. +       MyCaos->##r4        = (ULONG) v4;            \
  10914. +       MyCaos->##r5        = (ULONG) v5;            \
  10915. +       MyCaos->##r6        = (ULONG) v6;            \
  10916. +       MyCaos->##r7        = (ULONG) v7;            \
  10917. +       MyCaos->##r8        = (ULONG) v8;            \
  10918. +       MyCaos->##r9        = (ULONG) v9;            \
  10919. +       MyCaos->##r10        = (ULONG) v10;            \
  10920. +       MyCaos->##r11        = (ULONG) v11;            \
  10921. +       MyCaos->a6        = (ULONG) bn;            \
  10922. +       MyCaos->M68kCacheMode    =    cm1;            \
  10923. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10924. +       {                                \
  10925. +         MyCaos->M68kStart    =    cs1;            \
  10926. +         MyCaos->M68kLength    =    cl1;            \
  10927. +       }                                \
  10928. +       MyCaos->PPCCacheMode    =    cm2;            \
  10929. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10930. +       {                                \
  10931. +         MyCaos->PPCStart    =    cs2;            \
  10932. +         MyCaos->PPCLength    =    cl2;            \
  10933. +       }                                \
  10934. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10935. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10936. +       _##name##_re;                        \
  10937. +    }                                \
  10938. + })
  10939. + #endif /* __INLINE_MACROS_H */
  10940. diff -c2 -d -P -r include_h/powerup/ppcinline/macros.h_old1 includenew/powerup/ppcinline/macros.h_old1
  10941. *** include_h/powerup/ppcinline/macros.h_old1    Thu Jan  1 00:00:00 1970
  10942. --- includenew/powerup/ppcinline/macros.h_old1    Thu Nov  2 22:27:10 2000
  10943. ***************
  10944. *** 0 ****
  10945. --- 1,1039 ----
  10946. + #ifndef __INLINE_MACROS_H
  10947. + #define __INLINE_MACROS_H
  10948. + #include <powerup/gcclib/powerup_protos.h>
  10949. + /* Use these macros to calculate cache flush start address and cache flush
  10950. + length. */
  10951. + #define __CACHE_START(start) ((void *) ((unsigned long int) (start) & ~31))
  10952. + #define __CACHE_LENGTH(start,length) ((((length) + (unsigned long int) (start) + 31) & ~31) - ((unsigned long int) (start) & ~31))
  10953. + /*
  10954. +    General macros for Amiga function calls. Not all the possibilities have
  10955. +    been created - only the ones which exist in OS 3.1. Third party libraries
  10956. +    and future versions of AmigaOS will maybe need some new ones...
  10957. +    LPX - functions that take X arguments.
  10958. +    Modifiers (variations are possible):
  10959. +    NR - no return (void),
  10960. +    A4, A5 - "a4" or "a5" is used as one of the arguments,
  10961. +    UB - base will be given explicitly by user (see cia.resource).
  10962. +    FP - one of the parameters has type "pointer to function".
  10963. +    "bt" arguments are not used - they are provided for backward compatibility
  10964. +    only.
  10965. +    Actually..the "bt" parameter is needed because otherwise the macro doesn`t
  10966. +    work for some reason i don`t know gcc puts an empty argument at the position
  10967. +    before the argument bn and without the placeholder "bt".
  10968. +    I think it has something to do with #define *_BASE_NAME
  10969. +    the (cm1==IF_CACHEFLUSHAREA) conditional is optimized away
  10970. + */
  10971. + #ifndef __INLINE_STUB_H
  10972. + #include <powerup/ppcinline/stubs.h>
  10973. + #endif
  10974. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  10975. + #include <powerup/ppclib/interface.h>
  10976. + #endif
  10977. + #define LP0(offs, rt, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  10978. + ({                                \
  10979. +    struct Caos *MyCaos;                        \
  10980. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  10981. +    {                                \
  10982. +       rt _##name##_re;                        \
  10983. +       MyCaos->a6        = (ULONG) bn;            \
  10984. +       MyCaos->M68kCacheMode    =    cm1;            \
  10985. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  10986. +       {                                \
  10987. +         MyCaos->M68kStart    =    cs1;            \
  10988. +         MyCaos->M68kLength    =    cl1;            \
  10989. +       }                                \
  10990. +       MyCaos->PPCCacheMode    =    cm2;            \
  10991. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  10992. +       {                                \
  10993. +         MyCaos->PPCStart    =    cs2;            \
  10994. +         MyCaos->PPCLength    =    cl2;            \
  10995. +       }                                \
  10996. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  10997. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  10998. +       _##name##_re;                        \
  10999. +    }                                \
  11000. + })
  11001. + #define LP0NR(offs, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11002. + ({                                \
  11003. +    struct Caos *MyCaos;                        \
  11004. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11005. +    {                                \
  11006. +       MyCaos->a6        = (ULONG) bn;            \
  11007. +       MyCaos->M68kCacheMode    =    cm1;            \
  11008. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11009. +       {                                \
  11010. +         MyCaos->M68kStart    =    cs1;            \
  11011. +         MyCaos->M68kLength    =    cl1;            \
  11012. +       }                                \
  11013. +       MyCaos->PPCCacheMode    =    cm2;            \
  11014. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11015. +       {                                \
  11016. +         MyCaos->PPCStart    =    cs2;            \
  11017. +         MyCaos->PPCLength    =    cl2;            \
  11018. +       }                                \
  11019. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11020. +       PPCCallOS (MyCaos);                    \
  11021. +    }                                \
  11022. + })
  11023. + #define LP1(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11024. + ({                                \
  11025. +    struct Caos *MyCaos;                        \
  11026. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11027. +    {                                \
  11028. +       rt _##name##_re;                        \
  11029. +       MyCaos->##r1        = (ULONG) v1;            \
  11030. +       MyCaos->a6        = (ULONG) bn;            \
  11031. +       MyCaos->M68kCacheMode    =    cm1;            \
  11032. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11033. +       {                                \
  11034. +         MyCaos->M68kStart    =    cs1;            \
  11035. +         MyCaos->M68kLength    =    cl1;            \
  11036. +       }                                \
  11037. +       MyCaos->PPCCacheMode    =    cm2;            \
  11038. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11039. +       {                                \
  11040. +         MyCaos->PPCStart    =    cs2;            \
  11041. +         MyCaos->PPCLength    =    cl2;            \
  11042. +       }                                \
  11043. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11044. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11045. +       _##name##_re;                        \
  11046. +    }                                \
  11047. + })
  11048. + #define LP1NR(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11049. + ({                                \
  11050. +    struct Caos *MyCaos;                        \
  11051. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11052. +    {                                \
  11053. +       MyCaos->##r1        = (ULONG) v1;            \
  11054. +       MyCaos->a6        = (ULONG) bn;            \
  11055. +       MyCaos->M68kCacheMode    =    cm1;            \
  11056. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11057. +       {                                \
  11058. +         MyCaos->M68kStart    =    cs1;            \
  11059. +         MyCaos->M68kLength    =    cl1;            \
  11060. +       }                                \
  11061. +       MyCaos->PPCCacheMode    =    cm2;            \
  11062. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11063. +       {                                \
  11064. +         MyCaos->PPCStart    =    cs2;            \
  11065. +         MyCaos->PPCLength    =    cl2;            \
  11066. +       }                                \
  11067. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11068. +       PPCCallOS (MyCaos);                    \
  11069. +    }                                \
  11070. + })
  11071. + /* Only graphics.library/AttemptLockLayerRom() */
  11072. + #define LP1A5(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11073. + ({                                \
  11074. +    struct Caos *MyCaos;                        \
  11075. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11076. +    {                                \
  11077. +       rt _##name##_re;                        \
  11078. +       MyCaos->##r1        = (ULONG) v1;            \
  11079. +       MyCaos->a6        = (ULONG) bn;            \
  11080. +       MyCaos->M68kCacheMode    =    cm1;            \
  11081. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11082. +       {                                \
  11083. +         MyCaos->M68kStart    =    cs1;            \
  11084. +         MyCaos->M68kLength    =    cl1;            \
  11085. +       }                                \
  11086. +       MyCaos->PPCCacheMode    =    cm2;            \
  11087. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11088. +       {                                \
  11089. +         MyCaos->PPCStart    =    cs2;            \
  11090. +         MyCaos->PPCLength    =    cl2;            \
  11091. +       }                                \
  11092. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11093. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11094. +       _##name##_re;                        \
  11095. +    }                                \
  11096. + })
  11097. + /* Only graphics.library/LockLayerRom() and graphics.library/UnlockLayerRom() */
  11098. + #define LP1NRA5(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11099. + ({                                \
  11100. +    struct Caos *MyCaos;                        \
  11101. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11102. +    {                                \
  11103. +       MyCaos->##r1        = (ULONG) v1;            \
  11104. +       MyCaos->a6        = (ULONG) bn;            \
  11105. +       MyCaos->M68kCacheMode    =    cm1;            \
  11106. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11107. +       {                                \
  11108. +         MyCaos->M68kStart    =    cs1;            \
  11109. +         MyCaos->M68kLength    =    cl1;            \
  11110. +       }                                \
  11111. +       MyCaos->PPCCacheMode    =    cm2;            \
  11112. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11113. +       {                                \
  11114. +         MyCaos->PPCStart    =    cs2;            \
  11115. +         MyCaos->PPCLength    =    cl2;            \
  11116. +       }                                \
  11117. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11118. +       PPCCallOS (MyCaos);                    \
  11119. +    }                                \
  11120. + })
  11121. + /* Only exec.library/Supervisor() */
  11122. + #define LP1A5FP(offs, rt, name, t1, v1, r1, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11123. + ({                                \
  11124. +    typedef fpt;                            \
  11125. +    struct Caos *MyCaos;                        \
  11126. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11127. +    {                                \
  11128. +       rt _##name##_re;                        \
  11129. +       MyCaos->##r1        = (ULONG) v1;            \
  11130. +       MyCaos->a6        = (ULONG) bn;            \
  11131. +       MyCaos->M68kCacheMode    =    cm1;            \
  11132. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11133. +       {                                \
  11134. +         MyCaos->M68kStart    =    cs1;            \
  11135. +         MyCaos->M68kLength    =    cl1;            \
  11136. +       }                                \
  11137. +       MyCaos->PPCCacheMode    =    cm2;            \
  11138. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11139. +       {                                \
  11140. +         MyCaos->PPCStart    =    cs2;            \
  11141. +         MyCaos->PPCLength    =    cl2;            \
  11142. +       }                                \
  11143. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11144. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11145. +       _##name##_re;                        \
  11146. +    }                                \
  11147. + })
  11148. + #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11149. + ({                                \
  11150. +    struct Caos *MyCaos;                        \
  11151. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11152. +    {                                \
  11153. +       rt _##name##_re;                        \
  11154. +       MyCaos->##r1        = (ULONG) v1;            \
  11155. +       MyCaos->##r2        = (ULONG) v2;            \
  11156. +       MyCaos->a6        = (ULONG) bn;            \
  11157. +       MyCaos->M68kCacheMode    =    cm1;            \
  11158. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11159. +       {                                \
  11160. +         MyCaos->M68kStart    =    cs1;            \
  11161. +         MyCaos->M68kLength    =    cl1;            \
  11162. +       }                                \
  11163. +       MyCaos->PPCCacheMode    =    cm2;            \
  11164. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11165. +       {                                \
  11166. +         MyCaos->PPCStart    =    cs2;            \
  11167. +         MyCaos->PPCLength    =    cl2;            \
  11168. +       }                                \
  11169. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11170. +       _##name##_re = (rt) PPCCallOS (MyCaos);                      \
  11171. +       _##name##_re;                        \
  11172. +    }                                \
  11173. + })
  11174. + #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11175. + ({                                \
  11176. +    struct Caos *MyCaos;                        \
  11177. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11178. +    {                                \
  11179. +       MyCaos->##r1        = (ULONG) v1;            \
  11180. +       MyCaos->##r2        = (ULONG) v2;            \
  11181. +       MyCaos->a6        = (ULONG) bn;            \
  11182. +       MyCaos->M68kCacheMode    =    cm1;            \
  11183. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11184. +       {                                \
  11185. +         MyCaos->M68kStart    =    cs1;            \
  11186. +         MyCaos->M68kLength    =    cl1;            \
  11187. +       }                                \
  11188. +       MyCaos->PPCCacheMode    =    cm2;            \
  11189. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11190. +       {                                \
  11191. +         MyCaos->PPCStart    =    cs2;            \
  11192. +         MyCaos->PPCLength    =    cl2;            \
  11193. +       }                                \
  11194. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11195. +       PPCCallOS (MyCaos);                    \
  11196. +    }                                \
  11197. + })
  11198. + /* Only cia.resource/AbleICR() and cia.resource/SetICR() */
  11199. + #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11200. + ({                                \
  11201. +    struct Caos *MyCaos;                        \
  11202. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11203. +    {                                \
  11204. +       rt _##name##_re;                        \
  11205. +       MyCaos->##r1        = (ULONG) v1;            \
  11206. +       MyCaos->##r2        = (ULONG) v2;            \
  11207. +       MyCaos->M68kCacheMode    =    cm1;            \
  11208. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11209. +       {                                \
  11210. +         MyCaos->M68kStart    =    cs1;            \
  11211. +         MyCaos->M68kLength    =    cl1;            \
  11212. +       }                                \
  11213. +       MyCaos->PPCCacheMode    =    cm2;            \
  11214. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11215. +       {                                \
  11216. +         MyCaos->PPCStart    =    cs2;            \
  11217. +         MyCaos->PPCLength    =    cl2;            \
  11218. +       }                                \
  11219. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11220. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11221. +       _##name##_re;                        \
  11222. +    }                                \
  11223. + })
  11224. + /* Only dos.library/InternalUnLoadSeg() */
  11225. + #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11226. + ({                                \
  11227. +    typedef fpt;                            \
  11228. +    struct Caos *MyCaos;                        \
  11229. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11230. +    {                                \
  11231. +       rt _##name##_re;                        \
  11232. +       MyCaos->##r1        = (ULONG) v1;            \
  11233. +       MyCaos->##r2        = (ULONG) v2;            \
  11234. +       MyCaos->a6        = (ULONG) bn;            \
  11235. +       MyCaos->M68kCacheMode    =    cm1;            \
  11236. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11237. +       {                                \
  11238. +         MyCaos->M68kStart    =    cs1;            \
  11239. +         MyCaos->M68kLength    =    cl1;            \
  11240. +       }                                \
  11241. +       MyCaos->PPCCacheMode    =    cm2;            \
  11242. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11243. +       {                                \
  11244. +         MyCaos->PPCStart    =    cs2;            \
  11245. +         MyCaos->PPCLength    =    cl2;            \
  11246. +       }                                \
  11247. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11248. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11249. +       _##name##_re;                        \
  11250. +    }                                \
  11251. + })
  11252. + #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11253. + ({                                \
  11254. +    struct Caos *MyCaos;                        \
  11255. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11256. +    {                                \
  11257. +       rt _##name##_re;                        \
  11258. +       MyCaos->##r1        = (ULONG) v1;            \
  11259. +       MyCaos->##r2        = (ULONG) v2;            \
  11260. +       MyCaos->##r3        = (ULONG) v3;            \
  11261. +       MyCaos->a6        = (ULONG) bn;            \
  11262. +       MyCaos->M68kCacheMode    =    cm1;            \
  11263. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11264. +       {                                \
  11265. +         MyCaos->M68kStart    =    cs1;            \
  11266. +         MyCaos->M68kLength    =    cl1;            \
  11267. +       }                                \
  11268. +       MyCaos->PPCCacheMode    =    cm2;            \
  11269. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11270. +       {                                \
  11271. +         MyCaos->PPCStart    =    cs2;            \
  11272. +         MyCaos->PPCLength    =    cl2;            \
  11273. +       }                                \
  11274. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11275. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11276. +       _##name##_re;                        \
  11277. +    }                                \
  11278. + })
  11279. + #define LP3NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11280. + ({                                \
  11281. +    struct Caos *MyCaos;                        \
  11282. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11283. +    {                                \
  11284. +       MyCaos->##r1        = (ULONG) v1;            \
  11285. +       MyCaos->##r2        = (ULONG) v2;            \
  11286. +       MyCaos->##r3        = (ULONG) v3;            \
  11287. +       MyCaos->a6        = (ULONG) bn;            \
  11288. +       MyCaos->M68kCacheMode    =    cm1;            \
  11289. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11290. +       {                                \
  11291. +         MyCaos->M68kStart    =    cs1;            \
  11292. +         MyCaos->M68kLength    =    cl1;            \
  11293. +       }                                \
  11294. +       MyCaos->PPCCacheMode    =    cm2;            \
  11295. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11296. +       {                                \
  11297. +         MyCaos->PPCStart    =    cs2;            \
  11298. +         MyCaos->PPCLength    =    cl2;            \
  11299. +       }                                \
  11300. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11301. +       PPCCallOS (MyCaos);                    \
  11302. +    }                                \
  11303. + })
  11304. + /* Only cia.resource/AddICRVector() */
  11305. + #define LP3UB(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11306. + ({                                \
  11307. +    struct Caos *MyCaos;                        \
  11308. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11309. +    {                                \
  11310. +       rt _##name##_re;                        \
  11311. +       MyCaos->##r1        = (ULONG) v1;            \
  11312. +       MyCaos->##r2        = (ULONG) v2;            \
  11313. +       MyCaos->##r3        = (ULONG) v3;            \
  11314. +       MyCaos->M68kCacheMode    =    cm1;            \
  11315. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11316. +       {                                \
  11317. +         MyCaos->M68kStart    =    cs1;            \
  11318. +         MyCaos->M68kLength    =    cl1;            \
  11319. +       }                                \
  11320. +       MyCaos->PPCCacheMode    =    cm2;            \
  11321. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11322. +       {                                \
  11323. +         MyCaos->PPCStart    =    cs2;            \
  11324. +         MyCaos->PPCLength    =    cl2;            \
  11325. +       }                                \
  11326. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11327. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11328. +       _##name##_re;                        \
  11329. +    }                                \
  11330. + })
  11331. + /* Only cia.resource/RemICRVector() */
  11332. + #define LP3NRUB(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11333. + ({                                \
  11334. +    struct Caos *MyCaos;                        \
  11335. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11336. +    {                                \
  11337. +       MyCaos->##r1        = (ULONG) v1;            \
  11338. +       MyCaos->##r2        = (ULONG) v2;            \
  11339. +       MyCaos->##r3        = (ULONG) v3;            \
  11340. +       MyCaos->M68kCacheMode    =    cm1;            \
  11341. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11342. +       {                                \
  11343. +         MyCaos->M68kStart    =    cs1;            \
  11344. +         MyCaos->M68kLength    =    cl1;            \
  11345. +       }                                \
  11346. +       MyCaos->PPCCacheMode    =    cm2;            \
  11347. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11348. +       {                                \
  11349. +         MyCaos->PPCStart    =    cs2;            \
  11350. +         MyCaos->PPCLength    =    cl2;            \
  11351. +       }                                \
  11352. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11353. +       PPCCallOS (MyCaos);                    \
  11354. +    }                                \
  11355. + })
  11356. + /* Only exec.library/SetFunction() */
  11357. + #define LP3FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11358. + ({                                \
  11359. +    typedef fpt;                            \
  11360. +    struct Caos *MyCaos;                        \
  11361. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11362. +    {                                \
  11363. +       rt _##name##_re;                        \
  11364. +       MyCaos->##r1        = (ULONG) v1;            \
  11365. +       MyCaos->##r2        = (ULONG) v2;            \
  11366. +       MyCaos->##r3        = (ULONG) v3;            \
  11367. +       MyCaos->a6        = (ULONG) bn;            \
  11368. +       MyCaos->M68kCacheMode    =    cm1;            \
  11369. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11370. +       {                                \
  11371. +         MyCaos->M68kStart    =    cs1;            \
  11372. +         MyCaos->M68kLength    =    cl1;            \
  11373. +       }                                \
  11374. +       MyCaos->PPCCacheMode    =    cm2;            \
  11375. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11376. +       {                                \
  11377. +         MyCaos->PPCStart    =    cs2;            \
  11378. +         MyCaos->PPCLength    =    cl2;            \
  11379. +       }                                \
  11380. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11381. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11382. +       _##name##_re;                        \
  11383. +    }                                \
  11384. + })
  11385. + /* Only graphics.library/SetCollision() */
  11386. + #define LP3NRFP(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11387. + ({                                \
  11388. +    typedef fpt;                            \
  11389. +    struct Caos *MyCaos;                        \
  11390. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11391. +    {                                \
  11392. +       MyCaos->##r1        = (ULONG) v1;            \
  11393. +       MyCaos->##r2        = (ULONG) v2;            \
  11394. +       MyCaos->##r3        = (ULONG) v3;            \
  11395. +       MyCaos->a6        = (ULONG) bn;            \
  11396. +       MyCaos->M68kCacheMode    =    cm1;            \
  11397. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11398. +       {                                \
  11399. +         MyCaos->M68kStart    =    cs1;            \
  11400. +         MyCaos->M68kLength    =    cl1;            \
  11401. +       }                                \
  11402. +       MyCaos->PPCCacheMode    =    cm2;            \
  11403. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11404. +       {                                \
  11405. +         MyCaos->PPCStart    =    cs2;            \
  11406. +         MyCaos->PPCLength    =    cl2;            \
  11407. +       }                                \
  11408. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11409. +       PPCCallOS (MyCaos);                    \
  11410. +    }                                \
  11411. + })
  11412. + #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 )    \
  11413. + ({                                \
  11414. +    struct Caos *MyCaos;                        \
  11415. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11416. +    {                                \
  11417. +       rt _##name##_re;                        \
  11418. +       MyCaos->##r1        = (ULONG) v1;            \
  11419. +       MyCaos->##r2        = (ULONG) v2;            \
  11420. +       MyCaos->##r3        = (ULONG) v3;            \
  11421. +       MyCaos->##r4        = (ULONG) v4;            \
  11422. +       MyCaos->a6        = (ULONG) bn;            \
  11423. +       MyCaos->M68kCacheMode    =    cm1;            \
  11424. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11425. +       {                                \
  11426. +         MyCaos->M68kStart    =    cs1;            \
  11427. +         MyCaos->M68kLength    =    cl1;            \
  11428. +       }                                \
  11429. +       MyCaos->PPCCacheMode    =    cm2;            \
  11430. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11431. +       {                                \
  11432. +         MyCaos->PPCStart    =    cs2;            \
  11433. +         MyCaos->PPCLength    =    cl2;            \
  11434. +       }                                \
  11435. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11436. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11437. +       _##name##_re;                        \
  11438. +    }                                \
  11439. + })
  11440. + #define LP4NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11441. + ({                                \
  11442. +    struct Caos *MyCaos;                        \
  11443. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11444. +    {                                \
  11445. +       MyCaos->##r1        = (ULONG) v1;            \
  11446. +       MyCaos->##r2        = (ULONG) v2;            \
  11447. +       MyCaos->##r3        = (ULONG) v3;            \
  11448. +       MyCaos->##r4        = (ULONG) v4;            \
  11449. +       MyCaos->a6        = (ULONG) bn;            \
  11450. +       MyCaos->M68kCacheMode    =    cm1;            \
  11451. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11452. +       {                                \
  11453. +         MyCaos->M68kStart    =    cs1;            \
  11454. +         MyCaos->M68kLength    =    cl1;            \
  11455. +       }                                \
  11456. +       MyCaos->PPCCacheMode    =    cm2;            \
  11457. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11458. +       {                                \
  11459. +         MyCaos->PPCStart    =    cs2;            \
  11460. +         MyCaos->PPCLength    =    cl2;            \
  11461. +       }                                \
  11462. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11463. +       PPCCallOS (MyCaos);                    \
  11464. +    }                                \
  11465. + })
  11466. + /* Only exec.library/RawDoFmt() */
  11467. + #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 )    \
  11468. + ({                                \
  11469. +    typedef fpt;                            \
  11470. +    struct Caos *MyCaos;                        \
  11471. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11472. +    {                                \
  11473. +       rt _##name##_re;                        \
  11474. +       MyCaos->##r1        = (ULONG) v1;            \
  11475. +       MyCaos->##r2        = (ULONG) v2;            \
  11476. +       MyCaos->##r3        = (ULONG) v3;            \
  11477. +       MyCaos->##r4        = (ULONG) v4;            \
  11478. +       MyCaos->a6        = (ULONG) bn;            \
  11479. +       MyCaos->M68kCacheMode    =    cm1;            \
  11480. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11481. +       {                                \
  11482. +         MyCaos->M68kStart    =    cs1;            \
  11483. +         MyCaos->M68kLength    =    cl1;            \
  11484. +       }                                \
  11485. +       MyCaos->PPCCacheMode    =    cm2;            \
  11486. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11487. +       {                                \
  11488. +         MyCaos->PPCStart    =    cs2;            \
  11489. +         MyCaos->PPCLength    =    cl2;            \
  11490. +       }                                \
  11491. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11492. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11493. +       _##name##_re;                        \
  11494. +    }                                \
  11495. + })
  11496. + #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 )    \
  11497. + ({                                \
  11498. +    struct Caos *MyCaos;                        \
  11499. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11500. +    {                                \
  11501. +       rt _##name##_re;                        \
  11502. +       MyCaos->##r1        = (ULONG) v1;            \
  11503. +       MyCaos->##r2        = (ULONG) v2;            \
  11504. +       MyCaos->##r3        = (ULONG) v3;            \
  11505. +       MyCaos->##r4        = (ULONG) v4;            \
  11506. +       MyCaos->##r5        = (ULONG) v5;            \
  11507. +       MyCaos->a6        = (ULONG) bn;            \
  11508. +       MyCaos->M68kCacheMode    =    cm1;            \
  11509. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11510. +       {                                \
  11511. +         MyCaos->M68kStart    =    cs1;            \
  11512. +         MyCaos->M68kLength    =    cl1;            \
  11513. +       }                                \
  11514. +       MyCaos->PPCCacheMode    =    cm2;            \
  11515. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11516. +       {                                \
  11517. +         MyCaos->PPCStart    =    cs2;            \
  11518. +         MyCaos->PPCLength    =    cl2;            \
  11519. +       }                                \
  11520. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11521. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11522. +       _##name##_re;                        \
  11523. +    }                                \
  11524. + })
  11525. + #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 )    \
  11526. + ({                                \
  11527. +    struct Caos *MyCaos;                        \
  11528. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11529. +    {                                \
  11530. +       MyCaos->##r1        = (ULONG) v1;            \
  11531. +       MyCaos->##r2        = (ULONG) v2;            \
  11532. +       MyCaos->##r3        = (ULONG) v3;            \
  11533. +       MyCaos->##r4        = (ULONG) v4;            \
  11534. +       MyCaos->##r5        = (ULONG) v5;            \
  11535. +       MyCaos->a6        = (ULONG) bn;            \
  11536. +       MyCaos->M68kCacheMode    =    cm1;            \
  11537. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11538. +       {                                \
  11539. +         MyCaos->M68kStart    =    cs1;            \
  11540. +         MyCaos->M68kLength    =    cl1;            \
  11541. +       }                                \
  11542. +       MyCaos->PPCCacheMode    =    cm2;            \
  11543. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11544. +       {                                \
  11545. +         MyCaos->PPCStart    =    cs2;            \
  11546. +         MyCaos->PPCLength    =    cl2;            \
  11547. +       }                                \
  11548. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11549. +       PPCCallOS (MyCaos);                    \
  11550. +    }                                \
  11551. + })
  11552. + /* Only exec.library/MakeLibrary() */
  11553. + #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 )    \
  11554. + ({                                \
  11555. +    typedef fpt;                            \
  11556. +    struct Caos *MyCaos;                        \
  11557. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11558. +    {                                \
  11559. +       rt _##name##_re;                        \
  11560. +       MyCaos->##r1        = (ULONG) v1;            \
  11561. +       MyCaos->##r2        = (ULONG) v2;            \
  11562. +       MyCaos->##r3        = (ULONG) v3;            \
  11563. +       MyCaos->##r4        = (ULONG) v4;            \
  11564. +       MyCaos->##r5        = (ULONG) v5;            \
  11565. +       MyCaos->a6        = (ULONG) bn;            \
  11566. +       MyCaos->M68kCacheMode    =    cm1;            \
  11567. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11568. +       {                                \
  11569. +         MyCaos->M68kStart    =    cs1;            \
  11570. +         MyCaos->M68kLength    =    cl1;            \
  11571. +       }                                \
  11572. +       MyCaos->PPCCacheMode    =    cm2;            \
  11573. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11574. +       {                                \
  11575. +         MyCaos->PPCStart    =    cs2;            \
  11576. +         MyCaos->PPCLength    =    cl2;            \
  11577. +       }                                \
  11578. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11579. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11580. +       _##name##_re;                        \
  11581. +    }                                \
  11582. + })
  11583. + #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 )    \
  11584. + ({                                \
  11585. +    struct Caos *MyCaos;                        \
  11586. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11587. +    {                                \
  11588. +       rt _##name##_re;                        \
  11589. +       MyCaos->##r1        = (ULONG) v1;            \
  11590. +       MyCaos->##r2        = (ULONG) v2;            \
  11591. +       MyCaos->##r3        = (ULONG) v3;            \
  11592. +       MyCaos->##r4        = (ULONG) v4;            \
  11593. +       MyCaos->##r5        = (ULONG) v5;            \
  11594. +       MyCaos->##r6        = (ULONG) v6;            \
  11595. +       MyCaos->a6        = (ULONG) bn;            \
  11596. +       MyCaos->M68kCacheMode    =    cm1;            \
  11597. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11598. +       {                                \
  11599. +         MyCaos->M68kStart    =    cs1;            \
  11600. +         MyCaos->M68kLength    =    cl1;            \
  11601. +       }                                \
  11602. +       MyCaos->PPCCacheMode    =    cm2;            \
  11603. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11604. +       {                                \
  11605. +         MyCaos->PPCStart    =    cs2;            \
  11606. +         MyCaos->PPCLength    =    cl2;            \
  11607. +       }                                \
  11608. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11609. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11610. +       _##name##_re;                        \
  11611. +    }                                \
  11612. + })
  11613. + #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 )    \
  11614. + ({                                \
  11615. +    struct Caos *MyCaos;                        \
  11616. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11617. +    {                                \
  11618. +       MyCaos->##r1        = (ULONG) v1;            \
  11619. +       MyCaos->##r2        = (ULONG) v2;            \
  11620. +       MyCaos->##r3        = (ULONG) v3;            \
  11621. +       MyCaos->##r4        = (ULONG) v4;            \
  11622. +       MyCaos->##r5        = (ULONG) v5;            \
  11623. +       MyCaos->##r6        = (ULONG) v6;            \
  11624. +       MyCaos->a6        = (ULONG) bn;            \
  11625. +       MyCaos->M68kCacheMode    =    cm1;            \
  11626. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11627. +       {                                \
  11628. +         MyCaos->M68kStart    =    cs1;            \
  11629. +         MyCaos->M68kLength    =    cl1;            \
  11630. +       }                                \
  11631. +       MyCaos->PPCCacheMode    =    cm2;            \
  11632. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11633. +       {                                \
  11634. +         MyCaos->PPCStart    =    cs2;            \
  11635. +         MyCaos->PPCLength    =    cl2;            \
  11636. +       }                                \
  11637. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11638. +       PPCCallOS (MyCaos);                    \
  11639. +    }                                \
  11640. + })
  11641. + #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 )    \
  11642. + ({                                \
  11643. +    struct Caos *MyCaos;                        \
  11644. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11645. +    {                                \
  11646. +       rt _##name##_re;                        \
  11647. +       MyCaos->##r1        = (ULONG) v1;            \
  11648. +       MyCaos->##r2        = (ULONG) v2;            \
  11649. +       MyCaos->##r3        = (ULONG) v3;            \
  11650. +       MyCaos->##r4        = (ULONG) v4;            \
  11651. +       MyCaos->##r5        = (ULONG) v5;            \
  11652. +       MyCaos->##r6        = (ULONG) v6;            \
  11653. +       MyCaos->##r7        = (ULONG) v7;            \
  11654. +       MyCaos->a6        = (ULONG) bn;            \
  11655. +       MyCaos->M68kCacheMode    =    cm1;            \
  11656. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11657. +       {                                \
  11658. +         MyCaos->M68kStart    =    cs1;            \
  11659. +         MyCaos->M68kLength    =    cl1;            \
  11660. +       }                                \
  11661. +       MyCaos->PPCCacheMode    =    cm2;            \
  11662. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11663. +       {                                \
  11664. +         MyCaos->PPCStart    =    cs2;            \
  11665. +         MyCaos->PPCLength    =    cl2;            \
  11666. +       }                                \
  11667. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11668. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11669. +       _##name##_re;                        \
  11670. +    }                                \
  11671. + })
  11672. + #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 )    \
  11673. + ({                                \
  11674. +    struct Caos *MyCaos;                        \
  11675. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11676. +    {                                \
  11677. +       MyCaos->##r1        = (ULONG) v1;            \
  11678. +       MyCaos->##r2        = (ULONG) v2;            \
  11679. +       MyCaos->##r3        = (ULONG) v3;            \
  11680. +       MyCaos->##r4        = (ULONG) v4;            \
  11681. +       MyCaos->##r5        = (ULONG) v5;            \
  11682. +       MyCaos->##r6        = (ULONG) v6;            \
  11683. +       MyCaos->##r7        = (ULONG) v7;            \
  11684. +       MyCaos->a6        = (ULONG) bn;            \
  11685. +       MyCaos->M68kCacheMode    =    cm1;            \
  11686. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11687. +       {                                \
  11688. +         MyCaos->M68kStart    =    cs1;            \
  11689. +         MyCaos->M68kLength    =    cl1;            \
  11690. +       }                                \
  11691. +       MyCaos->PPCCacheMode    =    cm2;            \
  11692. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11693. +       {                                \
  11694. +         MyCaos->PPCStart    =    cs2;            \
  11695. +         MyCaos->PPCLength    =    cl2;            \
  11696. +       }                                \
  11697. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11698. +       PPCCallOS (MyCaos);                    \
  11699. +    }                                \
  11700. + })
  11701. + /* Only workbench.library/AddAppIconA() */
  11702. + #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 )    \
  11703. + ({                                \
  11704. +    struct Caos *MyCaos;                        \
  11705. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11706. +    {                                \
  11707. +       rt _##name##_re;                        \
  11708. +       MyCaos->##r1        = (ULONG) v1;            \
  11709. +       MyCaos->##r2        = (ULONG) v2;            \
  11710. +       MyCaos->##r3        = (ULONG) v3;            \
  11711. +       MyCaos->##r4        = (ULONG) v4;            \
  11712. +       MyCaos->##r5        = (ULONG) v5;            \
  11713. +       MyCaos->##r6        = (ULONG) v6;            \
  11714. +       MyCaos->##r7        = (ULONG) v7;            \
  11715. +       MyCaos->a6        = (ULONG) bn;            \
  11716. +       MyCaos->M68kCacheMode    =    cm1;            \
  11717. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11718. +       {                                \
  11719. +         MyCaos->M68kStart    =    cs1;            \
  11720. +         MyCaos->M68kLength    =    cl1;            \
  11721. +       }                                \
  11722. +       MyCaos->PPCCacheMode    =    cm2;            \
  11723. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11724. +       {                                \
  11725. +         MyCaos->PPCStart    =    cs2;            \
  11726. +         MyCaos->PPCLength    =    cl2;            \
  11727. +       }                                \
  11728. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11729. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11730. +       _##name##_re;                        \
  11731. +    }                                \
  11732. + })
  11733. + /* Would you believe that there really are beasts that need more than 7
  11734. +    arguments? :-) */
  11735. + /* For example intuition.library/AutoRequest() */
  11736. + #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 )    \
  11737. + ({                                \
  11738. +    struct Caos *MyCaos;                        \
  11739. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11740. +    {                                \
  11741. +       rt _##name##_re;                        \
  11742. +       MyCaos->##r1        = (ULONG) v1;            \
  11743. +       MyCaos->##r2        = (ULONG) v2;            \
  11744. +       MyCaos->##r3        = (ULONG) v3;            \
  11745. +       MyCaos->##r4        = (ULONG) v4;            \
  11746. +       MyCaos->##r5        = (ULONG) v5;            \
  11747. +       MyCaos->##r6        = (ULONG) v6;            \
  11748. +       MyCaos->##r7        = (ULONG) v7;            \
  11749. +       MyCaos->##r8        = (ULONG) v8;            \
  11750. +       MyCaos->a6        = (ULONG) bn;            \
  11751. +       MyCaos->M68kCacheMode    =    cm1;            \
  11752. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11753. +       {                                \
  11754. +         MyCaos->M68kStart    =    cs1;            \
  11755. +         MyCaos->M68kLength    =    cl1;            \
  11756. +       }                                \
  11757. +       MyCaos->PPCCacheMode    =    cm2;            \
  11758. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11759. +       {                                \
  11760. +         MyCaos->PPCStart    =    cs2;            \
  11761. +         MyCaos->PPCLength    =    cl2;            \
  11762. +       }                                \
  11763. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11764. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11765. +       _##name##_re;                        \
  11766. +    }                                \
  11767. + })
  11768. + /* For example intuition.library/ModifyProp() */
  11769. + #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 )    \
  11770. + ({                                \
  11771. +    struct Caos *MyCaos;                        \
  11772. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11773. +    {                                \
  11774. +       MyCaos->##r1        = (ULONG) v1;            \
  11775. +       MyCaos->##r2        = (ULONG) v2;            \
  11776. +       MyCaos->##r3        = (ULONG) v3;            \
  11777. +       MyCaos->##r4        = (ULONG) v4;            \
  11778. +       MyCaos->##r5        = (ULONG) v5;            \
  11779. +       MyCaos->##r6        = (ULONG) v6;            \
  11780. +       MyCaos->##r7        = (ULONG) v7;            \
  11781. +       MyCaos->##r8        = (ULONG) v8;            \
  11782. +       MyCaos->a6        = (ULONG) bn;            \
  11783. +       MyCaos->M68kCacheMode    =    cm1;            \
  11784. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11785. +       {                                \
  11786. +         MyCaos->M68kStart    =    cs1;            \
  11787. +         MyCaos->M68kLength    =    cl1;            \
  11788. +       }                                \
  11789. +       MyCaos->PPCCacheMode    =    cm2;            \
  11790. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11791. +       {                                \
  11792. +         MyCaos->PPCStart    =    cs2;            \
  11793. +         MyCaos->PPCLength    =    cl2;            \
  11794. +       }                                \
  11795. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11796. +       PPCCallOS (MyCaos);                    \
  11797. +    }                                \
  11798. + })
  11799. + /* For example layers.library/CreateUpfrontHookLayer() */
  11800. + #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 )    \
  11801. + ({                                \
  11802. +    struct Caos *MyCaos;                        \
  11803. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11804. +    {                                \
  11805. +       rt _##name##_re;                        \
  11806. +       MyCaos->##r1        = (ULONG) v1;            \
  11807. +       MyCaos->##r2        = (ULONG) v2;            \
  11808. +       MyCaos->##r3        = (ULONG) v3;            \
  11809. +       MyCaos->##r4        = (ULONG) v4;            \
  11810. +       MyCaos->##r5        = (ULONG) v5;            \
  11811. +       MyCaos->##r6        = (ULONG) v6;            \
  11812. +       MyCaos->##r7        = (ULONG) v7;            \
  11813. +       MyCaos->##r8        = (ULONG) v8;            \
  11814. +       MyCaos->##r9        = (ULONG) v9;            \
  11815. +       MyCaos->a6        = (ULONG) bn;            \
  11816. +       MyCaos->M68kCacheMode    =    cm1;            \
  11817. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11818. +       {                                \
  11819. +         MyCaos->M68kStart    =    cs1;            \
  11820. +         MyCaos->M68kLength    =    cl1;            \
  11821. +       }                                \
  11822. +       MyCaos->PPCCacheMode    =    cm2;            \
  11823. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11824. +       {                                \
  11825. +         MyCaos->PPCStart    =    cs2;            \
  11826. +         MyCaos->PPCLength    =    cl2;            \
  11827. +       }                                \
  11828. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11829. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11830. +       _##name##_re;                        \
  11831. +    }                                \
  11832. + })
  11833. + /* For example intuition.library/NewModifyProp() */
  11834. + #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 )    \
  11835. + ({                                \
  11836. +    struct Caos *MyCaos;                        \
  11837. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11838. +    {                                \
  11839. +       MyCaos->##r1        = (ULONG) v1;            \
  11840. +       MyCaos->##r2        = (ULONG) v2;            \
  11841. +       MyCaos->##r3        = (ULONG) v3;            \
  11842. +       MyCaos->##r4        = (ULONG) v4;            \
  11843. +       MyCaos->##r5        = (ULONG) v5;            \
  11844. +       MyCaos->##r6        = (ULONG) v6;            \
  11845. +       MyCaos->##r7        = (ULONG) v7;            \
  11846. +       MyCaos->##r8        = (ULONG) v8;            \
  11847. +       MyCaos->##r9        = (ULONG) v9;            \
  11848. +       MyCaos->a6        = (ULONG) bn;            \
  11849. +       MyCaos->M68kCacheMode    =    cm1;            \
  11850. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11851. +       {                                \
  11852. +         MyCaos->M68kStart    =    cs1;            \
  11853. +         MyCaos->M68kLength    =    cl1;            \
  11854. +       }                                \
  11855. +       MyCaos->PPCCacheMode    =    cm2;            \
  11856. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11857. +       {                                \
  11858. +         MyCaos->PPCStart    =    cs2;            \
  11859. +         MyCaos->PPCLength    =    cl2;            \
  11860. +       }                                \
  11861. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11862. +       PPCCallOS (MyCaos);                    \
  11863. +    }                                \
  11864. + })
  11865. + /* LP10 not needed... */
  11866. + /* Only graphics.library/BltMaskBitMapRastPort() */
  11867. + #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 )    \
  11868. + ({                                \
  11869. +    struct Caos *MyCaos;                        \
  11870. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11871. +    {                                \
  11872. +       MyCaos->##r1        = (ULONG) v1;            \
  11873. +       MyCaos->##r2        = (ULONG) v2;            \
  11874. +       MyCaos->##r3        = (ULONG) v3;            \
  11875. +       MyCaos->##r4        = (ULONG) v4;            \
  11876. +       MyCaos->##r5        = (ULONG) v5;            \
  11877. +       MyCaos->##r6        = (ULONG) v6;            \
  11878. +       MyCaos->##r7        = (ULONG) v7;            \
  11879. +       MyCaos->##r8        = (ULONG) v8;            \
  11880. +       MyCaos->##r9        = (ULONG) v9;            \
  11881. +       MyCaos->##r10        = (ULONG) v10;            \
  11882. +       MyCaos->a6        = (ULONG) bn;            \
  11883. +       MyCaos->M68kCacheMode    =    cm1;            \
  11884. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11885. +       {                                \
  11886. +         MyCaos->M68kStart    =    cs1;            \
  11887. +         MyCaos->M68kLength    =    cl1;            \
  11888. +       }                                \
  11889. +       MyCaos->PPCCacheMode    =    cm2;            \
  11890. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11891. +       {                                \
  11892. +         MyCaos->PPCStart    =    cs2;            \
  11893. +         MyCaos->PPCLength    =    cl2;            \
  11894. +       }                                \
  11895. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11896. +       PPCCallOS (MyCaos);                    \
  11897. +    }                                \
  11898. + })
  11899. + /* Only graphics.library/BltBitMap() */
  11900. + #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 )    \
  11901. + ({                                \
  11902. +    struct Caos *MyCaos;                        \
  11903. +    MyCaos = (struct Caos *) ((unsigned long int) ((char *) alloca (sizeof (struct Caos) + 31) + 31) & ~31); \
  11904. +    {                                \
  11905. +       rt _##name##_re;                        \
  11906. +       MyCaos->##r1        = (ULONG) v1;            \
  11907. +       MyCaos->##r2        = (ULONG) v2;            \
  11908. +       MyCaos->##r3        = (ULONG) v3;            \
  11909. +       MyCaos->##r4        = (ULONG) v4;            \
  11910. +       MyCaos->##r5        = (ULONG) v5;            \
  11911. +       MyCaos->##r6        = (ULONG) v6;            \
  11912. +       MyCaos->##r7        = (ULONG) v7;            \
  11913. +       MyCaos->##r8        = (ULONG) v8;            \
  11914. +       MyCaos->##r9        = (ULONG) v9;            \
  11915. +       MyCaos->##r10        = (ULONG) v10;            \
  11916. +       MyCaos->##r11        = (ULONG) v11;            \
  11917. +       MyCaos->a6        = (ULONG) bn;            \
  11918. +       MyCaos->M68kCacheMode    =    cm1;            \
  11919. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11920. +       {                                \
  11921. +         MyCaos->M68kStart    =    cs1;            \
  11922. +         MyCaos->M68kLength    =    cl1;            \
  11923. +       }                                \
  11924. +       MyCaos->PPCCacheMode    =    cm2;            \
  11925. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11926. +       {                                \
  11927. +         MyCaos->PPCStart    =    cs2;            \
  11928. +         MyCaos->PPCLength    =    cl2;            \
  11929. +       }                                \
  11930. +       MyCaos->caos_Un.Offset    =    (-offs);        \
  11931. +       _##name##_re = (rt) PPCCallOS (MyCaos);            \
  11932. +       _##name##_re;                        \
  11933. +    }                                \
  11934. + })
  11935. + #endif /* __INLINE_MACROS_H */
  11936. diff -c2 -d -P -r include_h/powerup/ppcinline/macros.h_old2 includenew/powerup/ppcinline/macros.h_old2
  11937. *** include_h/powerup/ppcinline/macros.h_old2    Thu Jan  1 00:00:00 1970
  11938. --- includenew/powerup/ppcinline/macros.h_old2    Thu Nov  2 22:27:10 2000
  11939. ***************
  11940. *** 0 ****
  11941. --- 1,1132 ----
  11942. + #ifndef __INLINE_MACROS_H
  11943. + #define __INLINE_MACROS_H
  11944. + /*
  11945. +    General macros for Amiga function calls. Not all the possibilities have
  11946. +    been created - only the ones which exist in OS 3.1. Third party libraries
  11947. +    and future versions of AmigaOS will maybe need some new ones...
  11948. +    LPX - functions that take X arguments.
  11949. +    Modifiers (variations are possible):
  11950. +    NR - no return (void),
  11951. +    A4, A5 - "a4" or "a5" is used as one of the arguments,
  11952. +    UB - base will be given explicitly by user (see cia.resource).
  11953. +    FP - one of the parameters has type "pointer to function".
  11954. +    "bt" arguments are not used - they are provided for backward compatibility
  11955. +    only.
  11956. +    Actually..the "bt" parameter is needed because otherwise the macro doesn`t
  11957. +    work for some reason i don`t know gcc puts an empty argument at the position
  11958. +    before the argument bn and without the placeholder "bt".
  11959. +    I think it has something to do with #define *_BASE_NAME
  11960. +    the (cm1==IF_CACHEFLUSHAREA) conditional is optimized away
  11961. + */
  11962. + #ifndef __INLINE_STUB_H
  11963. + #include <powerup/ppcinline/stubs.h>
  11964. + #endif
  11965. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  11966. + #include <powerup/ppclib/interface.h>
  11967. + #endif
  11968. + #define LP0(offs, rt, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11969. + ({                                \
  11970. +    struct Caos    MyCaos;                        \
  11971. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  11972. +    {                                \
  11973. +       register rt _##name##_re __asm("r3");            \
  11974. +       MyCaos.a6            =(ULONG) bn;            \
  11975. +       MyCaos.M68kCacheMode    =    cm1;            \
  11976. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  11977. +       {                                \
  11978. +         MyCaos.M68kStart    =    cs1;            \
  11979. +         MyCaos.M68kLength    =    cl1;            \
  11980. +       }                                \
  11981. +       MyCaos.PPCCacheMode    =    cm2;            \
  11982. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  11983. +       {                                \
  11984. +         MyCaos.PPCStart        =    cs2;            \
  11985. +         MyCaos.PPCLength    =    cl2;            \
  11986. +       }                                \
  11987. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  11988. +       __asm volatile ("bl PPCCallOS"                \
  11989. +       : "=r" (_##name##_re)                    \
  11990. +       : "r" (MyCaosReg)                      \
  11991. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  11992. +       _##name##_re;                        \
  11993. +    }                                \
  11994. + })
  11995. + #define LP0NR(offs, name, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  11996. + ({                                \
  11997. +    struct Caos    MyCaos;                        \
  11998. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  11999. +    {                                \
  12000. +       MyCaos.a6            =(ULONG) bn;            \
  12001. +       MyCaos.M68kCacheMode    =    cm1;            \
  12002. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12003. +       {                                \
  12004. +         MyCaos.M68kStart    =    cs1;            \
  12005. +         MyCaos.M68kLength    =    cl1;            \
  12006. +       }                                \
  12007. +       MyCaos.PPCCacheMode    =    cm2;            \
  12008. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12009. +       {                                \
  12010. +         MyCaos.PPCStart        =    cs2;            \
  12011. +         MyCaos.PPCLength    =    cl2;            \
  12012. +       }                                \
  12013. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12014. +       __asm volatile ("bl PPCCallOS"                \
  12015. +       :                                \
  12016. +       : "r" (MyCaosReg)                      \
  12017. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12018. +    }                                \
  12019. + })
  12020. + #define LP1(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12021. + ({                                \
  12022. +    struct Caos    MyCaos;                        \
  12023. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12024. +    {                                \
  12025. +       register rt _##name##_re __asm("r3");            \
  12026. +       MyCaos.##r1        =(ULONG) v1;            \
  12027. +       MyCaos.a6            =(ULONG) bn;            \
  12028. +       MyCaos.M68kCacheMode    =    cm1;            \
  12029. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12030. +       {                                \
  12031. +         MyCaos.M68kStart    =    cs1;            \
  12032. +         MyCaos.M68kLength    =    cl1;            \
  12033. +       }                                \
  12034. +       MyCaos.PPCCacheMode    =    cm2;            \
  12035. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12036. +       {                                \
  12037. +         MyCaos.PPCStart        =    cs2;            \
  12038. +         MyCaos.PPCLength    =    cl2;            \
  12039. +       }                                \
  12040. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12041. +       __asm volatile ("bl PPCCallOS"                \
  12042. +       : "=r" (_##name##_re)                    \
  12043. +       : "r" (MyCaosReg)                      \
  12044. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12045. +       _##name##_re;                        \
  12046. +    }                                \
  12047. + })
  12048. + #define LP1NR(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12049. + ({                                \
  12050. +    struct Caos    MyCaos;                        \
  12051. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12052. +    {                                \
  12053. +       MyCaos.##r1        =(ULONG) v1;            \
  12054. +       MyCaos.a6            =(ULONG) bn;            \
  12055. +       MyCaos.M68kCacheMode    =    cm1;            \
  12056. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12057. +       {                                \
  12058. +         MyCaos.M68kStart    =    cs1;            \
  12059. +         MyCaos.M68kLength    =    cl1;            \
  12060. +       }                                \
  12061. +       MyCaos.PPCCacheMode    =    cm2;            \
  12062. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12063. +       {                                \
  12064. +         MyCaos.PPCStart        =    cs2;            \
  12065. +         MyCaos.PPCLength    =    cl2;            \
  12066. +       }                                \
  12067. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12068. +       __asm volatile ("bl PPCCallOS"                \
  12069. +       :                                \
  12070. +       : "r" (MyCaosReg)                      \
  12071. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12072. +    }                                \
  12073. + })
  12074. + /* Only graphics.library/AttemptLockLayerRom() */
  12075. + #define LP1A5(offs, rt, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12076. + ({                                \
  12077. +    struct Caos    MyCaos;                        \
  12078. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12079. +    {                                \
  12080. +       register rt _##name##_re __asm("r3");            \
  12081. +       MyCaos.##r1        =(ULONG) v1;            \
  12082. +       MyCaos.a6            =(ULONG) bn;            \
  12083. +       MyCaos.M68kCacheMode    =    cm1;            \
  12084. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12085. +       {                                \
  12086. +         MyCaos.M68kStart    =    cs1;            \
  12087. +         MyCaos.M68kLength    =    cl1;            \
  12088. +       }                                \
  12089. +       MyCaos.PPCCacheMode    =    cm2;            \
  12090. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12091. +       {                                \
  12092. +         MyCaos.PPCStart        =    cs2;            \
  12093. +         MyCaos.PPCLength    =    cl2;            \
  12094. +       }                                \
  12095. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12096. +       __asm volatile ("bl PPCCallOS"                \
  12097. +       : "=r" (_##name##_re)                    \
  12098. +       : "r" (MyCaosReg)                      \
  12099. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12100. +       _##name##_re;                        \
  12101. +    }                                \
  12102. + })
  12103. + /* Only graphics.library/LockLayerRom() and graphics.library/UnlockLayerRom() */
  12104. + #define LP1NRA5(offs, name, t1, v1, r1, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12105. + ({                                \
  12106. +    struct Caos    MyCaos;                        \
  12107. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12108. +    {                                \
  12109. +       MyCaos.##r1        =(ULONG) v1;            \
  12110. +       MyCaos.a6            =(ULONG) bn;            \
  12111. +       MyCaos.M68kCacheMode    =    cm1;            \
  12112. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12113. +       {                                \
  12114. +         MyCaos.M68kStart    =    cs1;            \
  12115. +         MyCaos.M68kLength    =    cl1;            \
  12116. +       }                                \
  12117. +       MyCaos.PPCCacheMode    =    cm2;            \
  12118. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12119. +       {                                \
  12120. +         MyCaos.PPCStart        =    cs2;            \
  12121. +         MyCaos.PPCLength    =    cl2;            \
  12122. +       }                                \
  12123. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12124. +       __asm volatile ("bl PPCCallOS"                \
  12125. +       :                                \
  12126. +       : "r" (MyCaosReg)                      \
  12127. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12128. +    }                                \
  12129. + })
  12130. + /* Only exec.library/Supervisor() */
  12131. + #define LP1A5FP(offs, rt, name, t1, v1, r1, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12132. + ({                                \
  12133. +    typedef fpt;                            \
  12134. +    struct Caos    MyCaos;                        \
  12135. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12136. +    {                                \
  12137. +       register rt _##name##_re __asm("r3");            \
  12138. +       MyCaos.##r1        =(ULONG) v1;            \
  12139. +       MyCaos.a6            =(ULONG) bn;            \
  12140. +       MyCaos.M68kCacheMode    =    cm1;            \
  12141. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12142. +       {                                \
  12143. +         MyCaos.M68kStart    =    cs1;            \
  12144. +         MyCaos.M68kLength    =    cl1;            \
  12145. +       }                                \
  12146. +       MyCaos.PPCCacheMode    =    cm2;            \
  12147. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12148. +       {                                \
  12149. +         MyCaos.PPCStart        =    cs2;            \
  12150. +         MyCaos.PPCLength    =    cl2;            \
  12151. +       }                                \
  12152. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12153. +       __asm volatile ("bl PPCCallOS"                \
  12154. +       : "=r" (_##name##_re)                    \
  12155. +       : "r" (MyCaosReg)                      \
  12156. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12157. +       _##name##_re;                        \
  12158. +    }                                \
  12159. + })
  12160. + #define LP2(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12161. + ({                                \
  12162. +    struct Caos    MyCaos;                        \
  12163. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12164. +    {                                \
  12165. +       register rt _##name##_re __asm("r3");            \
  12166. +       MyCaos.##r1        =(ULONG) v1;            \
  12167. +       MyCaos.##r2        =(ULONG) v2;            \
  12168. +       MyCaos.a6            =(ULONG) bn;            \
  12169. +       MyCaos.M68kCacheMode    =    cm1;            \
  12170. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12171. +       {                                \
  12172. +         MyCaos.M68kStart    =    cs1;            \
  12173. +         MyCaos.M68kLength    =    cl1;            \
  12174. +       }                                \
  12175. +       MyCaos.PPCCacheMode    =    cm2;            \
  12176. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12177. +       {                                \
  12178. +         MyCaos.PPCStart        =    cs2;            \
  12179. +         MyCaos.PPCLength    =    cl2;            \
  12180. +       }                                \
  12181. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12182. +       __asm volatile ("bl PPCCallOS"                \
  12183. +       : "=r" (_##name##_re)                    \
  12184. +       : "r" (MyCaosReg)                      \
  12185. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12186. +       _##name##_re;                        \
  12187. +    }                                \
  12188. + })
  12189. + #define LP2NR(offs, name, t1, v1, r1, t2, v2, r2, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12190. + ({                                \
  12191. +    struct Caos    MyCaos;                        \
  12192. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12193. +    {                                \
  12194. +       MyCaos.##r1        =(ULONG) v1;            \
  12195. +       MyCaos.##r2        =(ULONG) v2;            \
  12196. +       MyCaos.a6            =(ULONG) bn;            \
  12197. +       MyCaos.M68kCacheMode    =    cm1;            \
  12198. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12199. +       {                                \
  12200. +         MyCaos.M68kStart    =    cs1;            \
  12201. +         MyCaos.M68kLength    =    cl1;            \
  12202. +       }                                \
  12203. +       MyCaos.PPCCacheMode    =    cm2;            \
  12204. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12205. +       {                                \
  12206. +         MyCaos.PPCStart        =    cs2;            \
  12207. +         MyCaos.PPCLength    =    cl2;            \
  12208. +       }                                \
  12209. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12210. +       __asm volatile ("bl PPCCallOS"                \
  12211. +       :                                \
  12212. +       : "r" (MyCaosReg)                      \
  12213. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12214. +    }                                \
  12215. + })
  12216. + /* Only cia.resource/AbleICR() and cia.resource/SetICR() */
  12217. + #define LP2UB(offs, rt, name, t1, v1, r1, t2, v2, r2, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12218. + ({                                \
  12219. +    struct Caos    MyCaos;                        \
  12220. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12221. +    {                                \
  12222. +       register rt _##name##_re __asm("r3");            \
  12223. +       MyCaos.##r1        =(ULONG) v1;            \
  12224. +       MyCaos.##r2        =(ULONG) v2;            \
  12225. +       MyCaos.M68kCacheMode    =    cm1;            \
  12226. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12227. +       {                                \
  12228. +         MyCaos.M68kStart    =    cs1;            \
  12229. +         MyCaos.M68kLength    =    cl1;            \
  12230. +       }                                \
  12231. +       MyCaos.PPCCacheMode    =    cm2;            \
  12232. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12233. +       {                                \
  12234. +         MyCaos.PPCStart        =    cs2;            \
  12235. +         MyCaos.PPCLength    =    cl2;            \
  12236. +       }                                \
  12237. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12238. +       __asm volatile ("bl PPCCallOS"                \
  12239. +       : "=r" (_##name##_re)                    \
  12240. +       : "r" (MyCaosReg)                      \
  12241. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12242. +       _##name##_re;                        \
  12243. +    }                                \
  12244. + })
  12245. + /* Only dos.library/InternalUnLoadSeg() */
  12246. + #define LP2FP(offs, rt, name, t1, v1, r1, t2, v2, r2, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12247. + ({                                \
  12248. +    typedef fpt;                            \
  12249. +    struct Caos    MyCaos;                        \
  12250. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12251. +    {                                \
  12252. +       register rt _##name##_re __asm("r3");            \
  12253. +       MyCaos.##r1        =(ULONG) v1;            \
  12254. +       MyCaos.##r2        =(ULONG) v2;            \
  12255. +       MyCaos.a6            =(ULONG) bn;            \
  12256. +       MyCaos.M68kCacheMode    =    cm1;            \
  12257. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12258. +       {                                \
  12259. +         MyCaos.M68kStart    =    cs1;            \
  12260. +         MyCaos.M68kLength    =    cl1;            \
  12261. +       }                                \
  12262. +       MyCaos.PPCCacheMode    =    cm2;            \
  12263. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12264. +       {                                \
  12265. +         MyCaos.PPCStart        =    cs2;            \
  12266. +         MyCaos.PPCLength    =    cl2;            \
  12267. +       }                                \
  12268. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12269. +       __asm volatile ("bl PPCCallOS"                \
  12270. +       : "=r" (_##name##_re)                    \
  12271. +       : "r" (MyCaosReg)                      \
  12272. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12273. +       _##name##_re;                        \
  12274. +    }                                \
  12275. + })
  12276. + #define LP3(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12277. + ({                                \
  12278. +    struct Caos    MyCaos;                        \
  12279. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12280. +    {                                \
  12281. +       register rt _##name##_re __asm("r3");            \
  12282. +       MyCaos.##r1        =(ULONG) v1;            \
  12283. +       MyCaos.##r2        =(ULONG) v2;            \
  12284. +       MyCaos.##r3        =(ULONG) v3;            \
  12285. +       MyCaos.a6            =(ULONG) bn;            \
  12286. +       MyCaos.M68kCacheMode    =    cm1;            \
  12287. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12288. +       {                                \
  12289. +         MyCaos.M68kStart    =    cs1;            \
  12290. +         MyCaos.M68kLength    =    cl1;            \
  12291. +       }                                \
  12292. +       MyCaos.PPCCacheMode    =    cm2;            \
  12293. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12294. +       {                                \
  12295. +         MyCaos.PPCStart        =    cs2;            \
  12296. +         MyCaos.PPCLength    =    cl2;            \
  12297. +       }                                \
  12298. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12299. +       __asm volatile ("bl PPCCallOS"                \
  12300. +       : "=r" (_##name##_re)                    \
  12301. +       : "r" (MyCaosReg)                      \
  12302. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12303. +       _##name##_re;                        \
  12304. +    }                                \
  12305. + })
  12306. + #define LP3NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12307. + ({                                \
  12308. +    struct Caos    MyCaos;                        \
  12309. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12310. +    {                                \
  12311. +       MyCaos.##r1        =(ULONG) v1;            \
  12312. +       MyCaos.##r2        =(ULONG) v2;            \
  12313. +       MyCaos.##r3        =(ULONG) v3;            \
  12314. +       MyCaos.a6            =(ULONG) bn;            \
  12315. +       MyCaos.M68kCacheMode    =    cm1;            \
  12316. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12317. +       {                                \
  12318. +         MyCaos.M68kStart    =    cs1;            \
  12319. +         MyCaos.M68kLength    =    cl1;            \
  12320. +       }                                \
  12321. +       MyCaos.PPCCacheMode    =    cm2;            \
  12322. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12323. +       {                                \
  12324. +         MyCaos.PPCStart        =    cs2;            \
  12325. +         MyCaos.PPCLength    =    cl2;            \
  12326. +       }                                \
  12327. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12328. +       __asm volatile ("bl PPCCallOS"                \
  12329. +       :                                \
  12330. +       : "r" (MyCaosReg)                      \
  12331. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12332. +    }                                \
  12333. + })
  12334. + /* Only cia.resource/AddICRVector() */
  12335. + #define LP3UB(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12336. + ({                                \
  12337. +    struct Caos    MyCaos;                        \
  12338. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12339. +    {                                \
  12340. +       register rt _##name##_re __asm("r3");            \
  12341. +       MyCaos.##r1        =(ULONG) v1;            \
  12342. +       MyCaos.##r2        =(ULONG) v2;            \
  12343. +       MyCaos.##r3        =(ULONG) v3;            \
  12344. +       MyCaos.M68kCacheMode    =    cm1;            \
  12345. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12346. +       {                                \
  12347. +         MyCaos.M68kStart    =    cs1;            \
  12348. +         MyCaos.M68kLength    =    cl1;            \
  12349. +       }                                \
  12350. +       MyCaos.PPCCacheMode    =    cm2;            \
  12351. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12352. +       {                                \
  12353. +         MyCaos.PPCStart        =    cs2;            \
  12354. +         MyCaos.PPCLength    =    cl2;            \
  12355. +       }                                \
  12356. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12357. +       __asm volatile ("bl PPCCallOS"                \
  12358. +       : "=r" (_##name##_re)                    \
  12359. +       : "r" (MyCaosReg)                      \
  12360. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12361. +       _##name##_re;                        \
  12362. +    }                                \
  12363. + })
  12364. + /* Only cia.resource/RemICRVector() */
  12365. + #define LP3NRUB(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12366. + ({                                \
  12367. +    struct Caos    MyCaos;                        \
  12368. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12369. +    {                                \
  12370. +       MyCaos.##r1        =(ULONG) v1;            \
  12371. +       MyCaos.##r2        =(ULONG) v2;            \
  12372. +       MyCaos.##r3        =(ULONG) v3;            \
  12373. +       MyCaos.M68kCacheMode    =    cm1;            \
  12374. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12375. +       {                                \
  12376. +         MyCaos.M68kStart    =    cs1;            \
  12377. +         MyCaos.M68kLength    =    cl1;            \
  12378. +       }                                \
  12379. +       MyCaos.PPCCacheMode    =    cm2;            \
  12380. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12381. +       {                                \
  12382. +         MyCaos.PPCStart        =    cs2;            \
  12383. +         MyCaos.PPCLength    =    cl2;            \
  12384. +       }                                \
  12385. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12386. +       __asm volatile ("bl PPCCallOS"                \
  12387. +       :                                \
  12388. +       : "r" (MyCaosReg)                      \
  12389. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12390. +    }                                \
  12391. + })
  12392. + /* Only exec.library/SetFunction() */
  12393. + #define LP3FP(offs, rt, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12394. + ({                                \
  12395. +    typedef fpt;                            \
  12396. +    struct Caos    MyCaos;                        \
  12397. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12398. +    {                                \
  12399. +       register rt _##name##_re __asm("r3");            \
  12400. +       MyCaos.##r1        =(ULONG) v1;            \
  12401. +       MyCaos.##r2        =(ULONG) v2;            \
  12402. +       MyCaos.##r3        =(ULONG) v3;            \
  12403. +       MyCaos.a6            =(ULONG) bn;            \
  12404. +       MyCaos.M68kCacheMode    =    cm1;            \
  12405. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12406. +       {                                \
  12407. +         MyCaos.M68kStart    =    cs1;            \
  12408. +         MyCaos.M68kLength    =    cl1;            \
  12409. +       }                                \
  12410. +       MyCaos.PPCCacheMode    =    cm2;            \
  12411. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12412. +       {                                \
  12413. +         MyCaos.PPCStart        =    cs2;            \
  12414. +         MyCaos.PPCLength    =    cl2;            \
  12415. +       }                                \
  12416. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12417. +       __asm volatile ("bl PPCCallOS"                \
  12418. +       : "=r" (_##name##_re)                    \
  12419. +       : "r" (MyCaosReg)                      \
  12420. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12421. +       _##name##_re;                        \
  12422. +    }                                \
  12423. + })
  12424. + /* Only graphics.library/SetCollision() */
  12425. + #define LP3NRFP(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, bt, bn, fpt, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12426. + ({                                \
  12427. +    typedef fpt;                            \
  12428. +    struct Caos    MyCaos;                        \
  12429. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12430. +    {                                \
  12431. +       MyCaos.##r1        =(ULONG) v1;            \
  12432. +       MyCaos.##r2        =(ULONG) v2;            \
  12433. +       MyCaos.##r3        =(ULONG) v3;            \
  12434. +       MyCaos.a6            =(ULONG) bn;            \
  12435. +       MyCaos.M68kCacheMode    =    cm1;            \
  12436. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12437. +       {                                \
  12438. +         MyCaos.M68kStart    =    cs1;            \
  12439. +         MyCaos.M68kLength    =    cl1;            \
  12440. +       }                                \
  12441. +       MyCaos.PPCCacheMode    =    cm2;            \
  12442. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12443. +       {                                \
  12444. +         MyCaos.PPCStart        =    cs2;            \
  12445. +         MyCaos.PPCLength    =    cl2;            \
  12446. +       }                                \
  12447. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12448. +       __asm volatile ("bl PPCCallOS"                \
  12449. +       :                                \
  12450. +       : "r" (MyCaosReg)                      \
  12451. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12452. +    }                                \
  12453. + })
  12454. + #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 )    \
  12455. + ({                                \
  12456. +    struct Caos    MyCaos;                        \
  12457. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12458. +    {                                \
  12459. +       register rt _##name##_re __asm("r3");            \
  12460. +       MyCaos.##r1        =(ULONG) v1;            \
  12461. +       MyCaos.##r2        =(ULONG) v2;            \
  12462. +       MyCaos.##r3        =(ULONG) v3;            \
  12463. +       MyCaos.##r4        =(ULONG) v4;            \
  12464. +       MyCaos.a6            =(ULONG) bn;            \
  12465. +       MyCaos.M68kCacheMode    =    cm1;            \
  12466. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12467. +       {                                \
  12468. +         MyCaos.M68kStart    =    cs1;            \
  12469. +         MyCaos.M68kLength    =    cl1;            \
  12470. +       }                                \
  12471. +       MyCaos.PPCCacheMode    =    cm2;            \
  12472. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12473. +       {                                \
  12474. +         MyCaos.PPCStart        =    cs2;            \
  12475. +         MyCaos.PPCLength    =    cl2;            \
  12476. +       }                                \
  12477. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12478. +       __asm volatile ("bl PPCCallOS"                \
  12479. +       : "=r" (_##name##_re)                    \
  12480. +       : "r" (MyCaosReg)                      \
  12481. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12482. +       _##name##_re;                        \
  12483. +    }                                \
  12484. + })
  12485. + #define LP4NR(offs, name, t1, v1, r1, t2, v2, r2, t3, v3, r3, t4, v4, r4, bt, bn, cm1, cs1, cl1, cm2, cs2, cl2 )    \
  12486. + ({                                \
  12487. +    struct Caos    MyCaos;                        \
  12488. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12489. +    {                                \
  12490. +       MyCaos.##r1        =(ULONG) v1;            \
  12491. +       MyCaos.##r2        =(ULONG) v2;            \
  12492. +       MyCaos.##r3        =(ULONG) v3;            \
  12493. +       MyCaos.##r4        =(ULONG) v4;            \
  12494. +       MyCaos.a6            =(ULONG) bn;            \
  12495. +       MyCaos.M68kCacheMode    =    cm1;            \
  12496. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12497. +       {                                \
  12498. +         MyCaos.M68kStart    =    cs1;            \
  12499. +         MyCaos.M68kLength    =    cl1;            \
  12500. +       }                                \
  12501. +       MyCaos.PPCCacheMode    =    cm2;            \
  12502. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12503. +       {                                \
  12504. +         MyCaos.PPCStart        =    cs2;            \
  12505. +         MyCaos.PPCLength    =    cl2;            \
  12506. +       }                                \
  12507. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12508. +       __asm volatile ("bl PPCCallOS"                \
  12509. +       :                                \
  12510. +       : "r" (MyCaosReg)                      \
  12511. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12512. +    }                                \
  12513. + })
  12514. + /* Only exec.library/RawDoFmt() */
  12515. + #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 )    \
  12516. + ({                                \
  12517. +    typedef fpt;                            \
  12518. +    struct Caos    MyCaos;                        \
  12519. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12520. +    {                                \
  12521. +       register rt _##name##_re __asm("r3");            \
  12522. +       MyCaos.##r1        =(ULONG) v1;            \
  12523. +       MyCaos.##r2        =(ULONG) v2;            \
  12524. +       MyCaos.##r3        =(ULONG) v3;            \
  12525. +       MyCaos.##r4        =(ULONG) v4;            \
  12526. +       MyCaos.a6            =(ULONG) bn;            \
  12527. +       MyCaos.M68kCacheMode    =    cm1;            \
  12528. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12529. +       {                                \
  12530. +         MyCaos.M68kStart    =    cs1;            \
  12531. +         MyCaos.M68kLength    =    cl1;            \
  12532. +       }                                \
  12533. +       MyCaos.PPCCacheMode    =    cm2;            \
  12534. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12535. +       {                                \
  12536. +         MyCaos.PPCStart        =    cs2;            \
  12537. +         MyCaos.PPCLength    =    cl2;            \
  12538. +       }                                \
  12539. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12540. +       __asm volatile ("bl PPCCallOS"                \
  12541. +       : "=r" (_##name##_re)                    \
  12542. +       : "r" (MyCaosReg)                      \
  12543. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12544. +       _##name##_re;                        \
  12545. +    }                                \
  12546. + })
  12547. + #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 )    \
  12548. + ({                                \
  12549. +    struct Caos    MyCaos;                        \
  12550. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12551. +    {                                \
  12552. +       register rt _##name##_re __asm("r3");            \
  12553. +       MyCaos.##r1        =(ULONG) v1;            \
  12554. +       MyCaos.##r2        =(ULONG) v2;            \
  12555. +       MyCaos.##r3        =(ULONG) v3;            \
  12556. +       MyCaos.##r4        =(ULONG) v4;            \
  12557. +       MyCaos.##r5        =(ULONG) v5;            \
  12558. +       MyCaos.a6            =(ULONG) bn;            \
  12559. +       MyCaos.M68kCacheMode    =    cm1;            \
  12560. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12561. +       {                                \
  12562. +         MyCaos.M68kStart    =    cs1;            \
  12563. +         MyCaos.M68kLength    =    cl1;            \
  12564. +       }                                \
  12565. +       MyCaos.PPCCacheMode    =    cm2;            \
  12566. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12567. +       {                                \
  12568. +         MyCaos.PPCStart        =    cs2;            \
  12569. +         MyCaos.PPCLength    =    cl2;            \
  12570. +       }                                \
  12571. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12572. +       __asm volatile ("bl PPCCallOS"                \
  12573. +       : "=r" (_##name##_re)                    \
  12574. +       : "r" (MyCaosReg)                      \
  12575. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12576. +       _##name##_re;                        \
  12577. +    }                                \
  12578. + })
  12579. + #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 )    \
  12580. + ({                                \
  12581. +    struct Caos    MyCaos;                        \
  12582. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12583. +    {                                \
  12584. +       MyCaos.##r1        =(ULONG) v1;            \
  12585. +       MyCaos.##r2        =(ULONG) v2;            \
  12586. +       MyCaos.##r3        =(ULONG) v3;            \
  12587. +       MyCaos.##r4        =(ULONG) v4;            \
  12588. +       MyCaos.##r5        =(ULONG) v5;            \
  12589. +       MyCaos.a6            =(ULONG) bn;            \
  12590. +       MyCaos.M68kCacheMode    =    cm1;            \
  12591. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12592. +       {                                \
  12593. +         MyCaos.M68kStart    =    cs1;            \
  12594. +         MyCaos.M68kLength    =    cl1;            \
  12595. +       }                                \
  12596. +       MyCaos.PPCCacheMode    =    cm2;            \
  12597. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12598. +       {                                \
  12599. +         MyCaos.PPCStart        =    cs2;            \
  12600. +         MyCaos.PPCLength    =    cl2;            \
  12601. +       }                                \
  12602. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12603. +       __asm volatile ("bl PPCCallOS"                \
  12604. +       :                                \
  12605. +       : "r" (MyCaosReg)                      \
  12606. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12607. +    }                                \
  12608. + })
  12609. + /* Only exec.library/MakeLibrary() */
  12610. + #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 )    \
  12611. + ({                                \
  12612. +    typedef fpt;                            \
  12613. +    struct Caos    MyCaos;                        \
  12614. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12615. +    {                                \
  12616. +       register rt _##name##_re __asm("r3");            \
  12617. +       MyCaos.##r1        =(ULONG) v1;            \
  12618. +       MyCaos.##r2        =(ULONG) v2;            \
  12619. +       MyCaos.##r3        =(ULONG) v3;            \
  12620. +       MyCaos.##r4        =(ULONG) v4;            \
  12621. +       MyCaos.##r5        =(ULONG) v5;            \
  12622. +       MyCaos.a6            =(ULONG) bn;            \
  12623. +       MyCaos.M68kCacheMode    =    cm1;            \
  12624. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12625. +       {                                \
  12626. +         MyCaos.M68kStart    =    cs1;            \
  12627. +         MyCaos.M68kLength    =    cl1;            \
  12628. +       }                                \
  12629. +       MyCaos.PPCCacheMode    =    cm2;            \
  12630. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12631. +       {                                \
  12632. +         MyCaos.PPCStart        =    cs2;            \
  12633. +         MyCaos.PPCLength    =    cl2;            \
  12634. +       }                                \
  12635. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12636. +       __asm volatile ("bl PPCCallOS"                \
  12637. +       : "=r" (_##name##_re)                    \
  12638. +       : "r" (MyCaosReg)                      \
  12639. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12640. +       _##name##_re;                        \
  12641. +    }                                \
  12642. + })
  12643. + #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 )    \
  12644. + ({                                \
  12645. +    struct Caos    MyCaos;                        \
  12646. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12647. +    {                                \
  12648. +       register rt _##name##_re __asm("r3");            \
  12649. +       MyCaos.##r1        =(ULONG) v1;            \
  12650. +       MyCaos.##r2        =(ULONG) v2;            \
  12651. +       MyCaos.##r3        =(ULONG) v3;            \
  12652. +       MyCaos.##r4        =(ULONG) v4;            \
  12653. +       MyCaos.##r5        =(ULONG) v5;            \
  12654. +       MyCaos.##r6        =(ULONG) v6;            \
  12655. +       MyCaos.a6            =(ULONG) bn;            \
  12656. +       MyCaos.M68kCacheMode    =    cm1;            \
  12657. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12658. +       {                                \
  12659. +         MyCaos.M68kStart    =    cs1;            \
  12660. +         MyCaos.M68kLength    =    cl1;            \
  12661. +       }                                \
  12662. +       MyCaos.PPCCacheMode    =    cm2;            \
  12663. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12664. +       {                                \
  12665. +         MyCaos.PPCStart        =    cs2;            \
  12666. +         MyCaos.PPCLength    =    cl2;            \
  12667. +       }                                \
  12668. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12669. +       __asm volatile ("bl PPCCallOS"                \
  12670. +       : "=r" (_##name##_re)                    \
  12671. +       : "r" (MyCaosReg)                      \
  12672. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12673. +       _##name##_re;                        \
  12674. +    }                                \
  12675. + })
  12676. + #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 )    \
  12677. + ({                                \
  12678. +    struct Caos    MyCaos;                        \
  12679. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12680. +    {                                \
  12681. +       MyCaos.##r1        =(ULONG) v1;            \
  12682. +       MyCaos.##r2        =(ULONG) v2;            \
  12683. +       MyCaos.##r3        =(ULONG) v3;            \
  12684. +       MyCaos.##r4        =(ULONG) v4;            \
  12685. +       MyCaos.##r5        =(ULONG) v5;            \
  12686. +       MyCaos.##r6        =(ULONG) v6;            \
  12687. +       MyCaos.a6            =(ULONG) bn;            \
  12688. +       MyCaos.M68kCacheMode    =    cm1;            \
  12689. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12690. +       {                                \
  12691. +         MyCaos.M68kStart    =    cs1;            \
  12692. +         MyCaos.M68kLength    =    cl1;            \
  12693. +       }                                \
  12694. +       MyCaos.PPCCacheMode    =    cm2;            \
  12695. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12696. +       {                                \
  12697. +         MyCaos.PPCStart        =    cs2;            \
  12698. +         MyCaos.PPCLength    =    cl2;            \
  12699. +       }                                \
  12700. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12701. +       __asm volatile ("bl PPCCallOS"                \
  12702. +       :                                \
  12703. +       : "r" (MyCaosReg)                      \
  12704. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12705. +    }                                \
  12706. + })
  12707. + #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 )    \
  12708. + ({                                \
  12709. +    struct Caos    MyCaos;                        \
  12710. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12711. +    {                                \
  12712. +       register rt _##name##_re __asm("r3");            \
  12713. +       MyCaos.##r1        =(ULONG) v1;            \
  12714. +       MyCaos.##r2        =(ULONG) v2;            \
  12715. +       MyCaos.##r3        =(ULONG) v3;            \
  12716. +       MyCaos.##r4        =(ULONG) v4;            \
  12717. +       MyCaos.##r5        =(ULONG) v5;            \
  12718. +       MyCaos.##r6        =(ULONG) v6;            \
  12719. +       MyCaos.##r7        =(ULONG) v7;            \
  12720. +       MyCaos.a6            =(ULONG) bn;            \
  12721. +       MyCaos.M68kCacheMode    =    cm1;            \
  12722. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12723. +       {                                \
  12724. +         MyCaos.M68kStart    =    cs1;            \
  12725. +         MyCaos.M68kLength    =    cl1;            \
  12726. +       }                                \
  12727. +       MyCaos.PPCCacheMode    =    cm2;            \
  12728. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12729. +       {                                \
  12730. +         MyCaos.PPCStart        =    cs2;            \
  12731. +         MyCaos.PPCLength    =    cl2;            \
  12732. +       }                                \
  12733. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12734. +       __asm volatile ("bl PPCCallOS"                \
  12735. +       : "=r" (_##name##_re)                    \
  12736. +       : "r" (MyCaosReg)                      \
  12737. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12738. +       _##name##_re;                        \
  12739. +    }                                \
  12740. + })
  12741. + #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 )    \
  12742. + ({                                \
  12743. +    struct Caos    MyCaos;                        \
  12744. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12745. +    {                                \
  12746. +       MyCaos.##r1        =(ULONG) v1;            \
  12747. +       MyCaos.##r2        =(ULONG) v2;            \
  12748. +       MyCaos.##r3        =(ULONG) v3;            \
  12749. +       MyCaos.##r4        =(ULONG) v4;            \
  12750. +       MyCaos.##r5        =(ULONG) v5;            \
  12751. +       MyCaos.##r6        =(ULONG) v6;            \
  12752. +       MyCaos.##r7        =(ULONG) v7;            \
  12753. +       MyCaos.a6            =(ULONG) bn;            \
  12754. +       MyCaos.M68kCacheMode    =    cm1;            \
  12755. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12756. +       {                                \
  12757. +         MyCaos.M68kStart    =    cs1;            \
  12758. +         MyCaos.M68kLength    =    cl1;            \
  12759. +       }                                \
  12760. +       MyCaos.PPCCacheMode    =    cm2;            \
  12761. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12762. +       {                                \
  12763. +         MyCaos.PPCStart        =    cs2;            \
  12764. +         MyCaos.PPCLength    =    cl2;            \
  12765. +       }                                \
  12766. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12767. +       __asm volatile ("bl PPCCallOS"                \
  12768. +       :                                \
  12769. +       : "r" (MyCaosReg)                      \
  12770. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12771. +    }                                \
  12772. + })
  12773. + /* Only workbench.library/AddAppIconA() */
  12774. + #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 )    \
  12775. + ({                                \
  12776. +    struct Caos    MyCaos;                        \
  12777. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12778. +    {                                \
  12779. +       register rt _##name##_re __asm("r3");            \
  12780. +       MyCaos.##r1        =(ULONG) v1;            \
  12781. +       MyCaos.##r2        =(ULONG) v2;            \
  12782. +       MyCaos.##r3        =(ULONG) v3;            \
  12783. +       MyCaos.##r4        =(ULONG) v4;            \
  12784. +       MyCaos.##r5        =(ULONG) v5;            \
  12785. +       MyCaos.##r6        =(ULONG) v6;            \
  12786. +       MyCaos.##r7        =(ULONG) v7;            \
  12787. +       MyCaos.a6            =(ULONG) bn;            \
  12788. +       MyCaos.M68kCacheMode    =    cm1;            \
  12789. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12790. +       {                                \
  12791. +         MyCaos.M68kStart    =    cs1;            \
  12792. +         MyCaos.M68kLength    =    cl1;            \
  12793. +       }                                \
  12794. +       MyCaos.PPCCacheMode    =    cm2;            \
  12795. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12796. +       {                                \
  12797. +         MyCaos.PPCStart        =    cs2;            \
  12798. +         MyCaos.PPCLength    =    cl2;            \
  12799. +       }                                \
  12800. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12801. +       __asm volatile ("bl PPCCallOS"                \
  12802. +       : "=r" (_##name##_re)                    \
  12803. +       : "r" (MyCaosReg)                      \
  12804. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12805. +       _##name##_re;                        \
  12806. +    }                                \
  12807. + })
  12808. + /* Would you believe that there really are beasts that need more than 7
  12809. +    arguments? :-) */
  12810. + /* For example intuition.library/AutoRequest() */
  12811. + #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 )    \
  12812. + ({                                \
  12813. +    struct Caos    MyCaos;                        \
  12814. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12815. +    {                                \
  12816. +       register rt _##name##_re __asm("r3");            \
  12817. +       MyCaos.##r1        =(ULONG) v1;            \
  12818. +       MyCaos.##r2        =(ULONG) v2;            \
  12819. +       MyCaos.##r3        =(ULONG) v3;            \
  12820. +       MyCaos.##r4        =(ULONG) v4;            \
  12821. +       MyCaos.##r5        =(ULONG) v5;            \
  12822. +       MyCaos.##r6        =(ULONG) v6;            \
  12823. +       MyCaos.##r7        =(ULONG) v7;            \
  12824. +       MyCaos.##r8        =(ULONG) v8;            \
  12825. +       MyCaos.a6            =(ULONG) bn;            \
  12826. +       MyCaos.M68kCacheMode    =    cm1;            \
  12827. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12828. +       {                                \
  12829. +         MyCaos.M68kStart    =    cs1;            \
  12830. +         MyCaos.M68kLength    =    cl1;            \
  12831. +       }                                \
  12832. +       MyCaos.PPCCacheMode    =    cm2;            \
  12833. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12834. +       {                                \
  12835. +         MyCaos.PPCStart        =    cs2;            \
  12836. +         MyCaos.PPCLength    =    cl2;            \
  12837. +       }                                \
  12838. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12839. +       __asm volatile ("bl PPCCallOS"                \
  12840. +       : "=r" (_##name##_re)                    \
  12841. +       : "r" (MyCaosReg)                      \
  12842. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12843. +       _##name##_re;                        \
  12844. +    }                                \
  12845. + })
  12846. + /* For example intuition.library/ModifyProp() */
  12847. + #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 )    \
  12848. + ({                                \
  12849. +    struct Caos    MyCaos;                        \
  12850. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12851. +    {                                \
  12852. +       MyCaos.##r1        =(ULONG) v1;            \
  12853. +       MyCaos.##r2        =(ULONG) v2;            \
  12854. +       MyCaos.##r3        =(ULONG) v3;            \
  12855. +       MyCaos.##r4        =(ULONG) v4;            \
  12856. +       MyCaos.##r5        =(ULONG) v5;            \
  12857. +       MyCaos.##r6        =(ULONG) v6;            \
  12858. +       MyCaos.##r7        =(ULONG) v7;            \
  12859. +       MyCaos.##r8        =(ULONG) v8;            \
  12860. +       MyCaos.a6            =(ULONG) bn;            \
  12861. +       MyCaos.M68kCacheMode    =    cm1;            \
  12862. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12863. +       {                                \
  12864. +         MyCaos.M68kStart    =    cs1;            \
  12865. +         MyCaos.M68kLength    =    cl1;            \
  12866. +       }                                \
  12867. +       MyCaos.PPCCacheMode    =    cm2;            \
  12868. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12869. +       {                                \
  12870. +         MyCaos.PPCStart        =    cs2;            \
  12871. +         MyCaos.PPCLength    =    cl2;            \
  12872. +       }                                \
  12873. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12874. +       __asm volatile ("bl PPCCallOS"                \
  12875. +       :                                \
  12876. +       : "r" (MyCaosReg)                      \
  12877. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12878. +    }                                \
  12879. + })
  12880. + /* For example layers.library/CreateUpfrontHookLayer() */
  12881. + #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 )    \
  12882. + ({                                \
  12883. +    struct Caos    MyCaos;                        \
  12884. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12885. +    {                                \
  12886. +       register rt _##name##_re __asm("r3");            \
  12887. +       MyCaos.##r1        =(ULONG) v1;            \
  12888. +       MyCaos.##r2        =(ULONG) v2;            \
  12889. +       MyCaos.##r3        =(ULONG) v3;            \
  12890. +       MyCaos.##r4        =(ULONG) v4;            \
  12891. +       MyCaos.##r5        =(ULONG) v5;            \
  12892. +       MyCaos.##r6        =(ULONG) v6;            \
  12893. +       MyCaos.##r7        =(ULONG) v7;            \
  12894. +       MyCaos.##r8        =(ULONG) v8;            \
  12895. +       MyCaos.##r9        =(ULONG) v9;            \
  12896. +       MyCaos.a6            =(ULONG) bn;            \
  12897. +       MyCaos.M68kCacheMode    =    cm1;            \
  12898. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12899. +       {                                \
  12900. +         MyCaos.M68kStart    =    cs1;            \
  12901. +         MyCaos.M68kLength    =    cl1;            \
  12902. +       }                                \
  12903. +       MyCaos.PPCCacheMode    =    cm2;            \
  12904. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12905. +       {                                \
  12906. +         MyCaos.PPCStart        =    cs2;            \
  12907. +         MyCaos.PPCLength    =    cl2;            \
  12908. +       }                                \
  12909. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12910. +       __asm volatile ("bl PPCCallOS"                \
  12911. +       : "=r" (_##name##_re)                    \
  12912. +       : "r" (MyCaosReg)                      \
  12913. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12914. +       _##name##_re;                        \
  12915. +    }                                \
  12916. + })
  12917. + /* For example intuition.library/NewModifyProp() */
  12918. + #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 )    \
  12919. + ({                                \
  12920. +    struct Caos    MyCaos;                        \
  12921. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12922. +    {                                \
  12923. +       MyCaos.##r1        =(ULONG) v1;            \
  12924. +       MyCaos.##r2        =(ULONG) v2;            \
  12925. +       MyCaos.##r3        =(ULONG) v3;            \
  12926. +       MyCaos.##r4        =(ULONG) v4;            \
  12927. +       MyCaos.##r5        =(ULONG) v5;            \
  12928. +       MyCaos.##r6        =(ULONG) v6;            \
  12929. +       MyCaos.##r7        =(ULONG) v7;            \
  12930. +       MyCaos.##r8        =(ULONG) v8;            \
  12931. +       MyCaos.##r9        =(ULONG) v9;            \
  12932. +       MyCaos.a6            =(ULONG) bn;            \
  12933. +       MyCaos.M68kCacheMode    =    cm1;            \
  12934. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12935. +       {                                \
  12936. +         MyCaos.M68kStart    =    cs1;            \
  12937. +         MyCaos.M68kLength    =    cl1;            \
  12938. +       }                                \
  12939. +       MyCaos.PPCCacheMode    =    cm2;            \
  12940. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12941. +       {                                \
  12942. +         MyCaos.PPCStart        =    cs2;            \
  12943. +         MyCaos.PPCLength    =    cl2;            \
  12944. +       }                                \
  12945. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12946. +       __asm volatile ("bl PPCCallOS"                \
  12947. +       :                                \
  12948. +       : "r" (MyCaosReg)                      \
  12949. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12950. +    }                                \
  12951. + })
  12952. + /* LP10 not needed... */
  12953. + /* Only graphics.library/BltMaskBitMapRastPort() */
  12954. + #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 )    \
  12955. + ({                                \
  12956. +    struct Caos    MyCaos;                        \
  12957. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12958. +    {                                \
  12959. +       MyCaos.##r1        =(ULONG) v1;            \
  12960. +       MyCaos.##r2        =(ULONG) v2;            \
  12961. +       MyCaos.##r3        =(ULONG) v3;            \
  12962. +       MyCaos.##r4        =(ULONG) v4;            \
  12963. +       MyCaos.##r5        =(ULONG) v5;            \
  12964. +       MyCaos.##r6        =(ULONG) v6;            \
  12965. +       MyCaos.##r7        =(ULONG) v7;            \
  12966. +       MyCaos.##r8        =(ULONG) v8;            \
  12967. +       MyCaos.##r9        =(ULONG) v9;            \
  12968. +       MyCaos.##r10        =(ULONG) v10;            \
  12969. +       MyCaos.a6            =(ULONG) bn;            \
  12970. +       MyCaos.M68kCacheMode    =    cm1;            \
  12971. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  12972. +       {                                \
  12973. +         MyCaos.M68kStart    =    cs1;            \
  12974. +         MyCaos.M68kLength    =    cl1;            \
  12975. +       }                                \
  12976. +       MyCaos.PPCCacheMode    =    cm2;            \
  12977. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  12978. +       {                                \
  12979. +         MyCaos.PPCStart        =    cs2;            \
  12980. +         MyCaos.PPCLength    =    cl2;            \
  12981. +       }                                \
  12982. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  12983. +       __asm volatile ("bl PPCCallOS"                \
  12984. +       :                                \
  12985. +       : "r" (MyCaosReg)                      \
  12986. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  12987. +    }                                \
  12988. + })
  12989. + /* Only graphics.library/BltBitMap() */
  12990. + #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 )    \
  12991. + ({                                \
  12992. +    struct Caos    MyCaos;                        \
  12993. +    register struct Caos *MyCaosReg __asm("r3") = &MyCaos;    \
  12994. +    {                                \
  12995. +       register rt _##name##_re __asm("r3");            \
  12996. +       MyCaos.##r1        =(ULONG) v1;            \
  12997. +       MyCaos.##r2        =(ULONG) v2;            \
  12998. +       MyCaos.##r3        =(ULONG) v3;            \
  12999. +       MyCaos.##r4        =(ULONG) v4;            \
  13000. +       MyCaos.##r5        =(ULONG) v5;            \
  13001. +       MyCaos.##r6        =(ULONG) v6;            \
  13002. +       MyCaos.##r7        =(ULONG) v7;            \
  13003. +       MyCaos.##r8        =(ULONG) v8;            \
  13004. +       MyCaos.##r9        =(ULONG) v9;            \
  13005. +       MyCaos.##r10        =(ULONG) v10;            \
  13006. +       MyCaos.##r11        =(ULONG) v11;            \
  13007. +       MyCaos.a6            =(ULONG) bn;            \
  13008. +       MyCaos.M68kCacheMode    =    cm1;            \
  13009. +       if ((cm1==IF_CACHEFLUSHAREA) || (cm1==IF_CACHEINVALIDAREA))    \
  13010. +       {                                \
  13011. +         MyCaos.M68kStart    =    cs1;            \
  13012. +         MyCaos.M68kLength    =    cl1;            \
  13013. +       }                                \
  13014. +       MyCaos.PPCCacheMode    =    cm2;            \
  13015. +       if ((cm2==IF_CACHEFLUSHAREA) || (cm2==IF_CACHEINVALIDAREA))    \
  13016. +       {                                \
  13017. +         MyCaos.PPCStart        =    cs2;            \
  13018. +         MyCaos.PPCLength    =    cl2;            \
  13019. +       }                                \
  13020. +       MyCaos.caos_Un.Offset    =    (-offs);        \
  13021. +       __asm volatile ("bl PPCCallOS"                \
  13022. +       : "=r" (_##name##_re)                    \
  13023. +       : "r" (MyCaosReg)                      \
  13024. +       : "r0", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12",  "lr", "ctr", "cc", "memory");    \
  13025. +       _##name##_re;                        \
  13026. +    }                                \
  13027. + })
  13028. + #endif /* __INLINE_MACROS_H */
  13029. diff -c2 -d -P -r include_h/powerup/ppcinline/mathieeedoubbas.h includenew/powerup/ppcinline/mathieeedoubbas.h
  13030. *** include_h/powerup/ppcinline/mathieeedoubbas.h    Thu Jan  1 00:00:00 1970
  13031. --- includenew/powerup/ppcinline/mathieeedoubbas.h    Thu Nov  2 22:27:09 2000
  13032. ***************
  13033. *** 0 ****
  13034. --- 1,62 ----
  13035. + /* Automatically generated header! Do not edit! */
  13036. + #ifndef _PPCINLINE_MATHIEEEDOUBBAS_H
  13037. + #define _PPCINLINE_MATHIEEEDOUBBAS_H
  13038. + #ifndef __PPCINLINE_MACROS_H
  13039. + #include <powerup/ppcinline/macros.h>
  13040. + #endif /* !__PPCINLINE_MACROS_H */
  13041. + #ifndef MATHIEEEDOUBBAS_BASE_NAME
  13042. + #define MATHIEEEDOUBBAS_BASE_NAME MathIeeeDoubBasBase
  13043. + #endif /* !MATHIEEEDOUBBAS_BASE_NAME */
  13044. + #define IEEEDPAbs(parm) \
  13045. +     LP1(0x36, DOUBLE, IEEEDPAbs, DOUBLE, parm, d0, \
  13046. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13047. + #define IEEEDPAdd(leftParm, rightParm) \
  13048. +     LP2(0x42, DOUBLE, IEEEDPAdd, DOUBLE, leftParm, d0, DOUBLE, rightParm, d2, \
  13049. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13050. + #define IEEEDPCeil(parm) \
  13051. +     LP1(0x60, DOUBLE, IEEEDPCeil, DOUBLE, parm, d0, \
  13052. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13053. + #define IEEEDPCmp(leftParm, rightParm) \
  13054. +     LP2(0x2a, LONG, IEEEDPCmp, DOUBLE, leftParm, d0, DOUBLE, rightParm, d2, \
  13055. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13056. + #define IEEEDPDiv(dividend, divisor) \
  13057. +     LP2(0x54, DOUBLE, IEEEDPDiv, DOUBLE, dividend, d0, DOUBLE, divisor, d2, \
  13058. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13059. + #define IEEEDPFix(parm) \
  13060. +     LP1(0x1e, LONG, IEEEDPFix, DOUBLE, parm, d0, \
  13061. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13062. + #define IEEEDPFloor(parm) \
  13063. +     LP1(0x5a, DOUBLE, IEEEDPFloor, DOUBLE, parm, d0, \
  13064. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13065. + #define IEEEDPFlt(integer) \
  13066. +     LP1(0x24, DOUBLE, IEEEDPFlt, long, integer, d0, \
  13067. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13068. + #define IEEEDPMul(factor1, factor2) \
  13069. +     LP2(0x4e, DOUBLE, IEEEDPMul, DOUBLE, factor1, d0, DOUBLE, factor2, d2, \
  13070. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13071. + #define IEEEDPNeg(parm) \
  13072. +     LP1(0x3c, DOUBLE, IEEEDPNeg, DOUBLE, parm, d0, \
  13073. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13074. + #define IEEEDPSub(leftParm, rightParm) \
  13075. +     LP2(0x48, DOUBLE, IEEEDPSub, DOUBLE, leftParm, d0, DOUBLE, rightParm, d2, \
  13076. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13077. + #define IEEEDPTst(parm) \
  13078. +     LP1(0x30, LONG, IEEEDPTst, DOUBLE, parm, d0, \
  13079. +     , MATHIEEEDOUBBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13080. + #endif /* !_PPCINLINE_MATHIEEEDOUBBAS_H */
  13081. diff -c2 -d -P -r include_h/powerup/ppcinline/mathieeedoubtrans.h includenew/powerup/ppcinline/mathieeedoubtrans.h
  13082. *** include_h/powerup/ppcinline/mathieeedoubtrans.h    Thu Jan  1 00:00:00 1970
  13083. --- includenew/powerup/ppcinline/mathieeedoubtrans.h    Thu Nov  2 22:27:09 2000
  13084. ***************
  13085. *** 0 ****
  13086. --- 1,82 ----
  13087. + /* Automatically generated header! Do not edit! */
  13088. + #ifndef _PPCINLINE_MATHIEEEDOUBTRANS_H
  13089. + #define _PPCINLINE_MATHIEEEDOUBTRANS_H
  13090. + #ifndef __PPCINLINE_MACROS_H
  13091. + #include <powerup/ppcinline/macros.h>
  13092. + #endif /* !__PPCINLINE_MACROS_H */
  13093. + #ifndef MATHIEEEDOUBTRANS_BASE_NAME
  13094. + #define MATHIEEEDOUBTRANS_BASE_NAME MathIeeeDoubTransBase
  13095. + #endif /* !MATHIEEEDOUBTRANS_BASE_NAME */
  13096. + #define IEEEDPAcos(parm) \
  13097. +     LP1(0x78, DOUBLE, IEEEDPAcos, DOUBLE, parm, d0, \
  13098. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13099. + #define IEEEDPAsin(parm) \
  13100. +     LP1(0x72, DOUBLE, IEEEDPAsin, DOUBLE, parm, d0, \
  13101. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13102. + #define IEEEDPAtan(parm) \
  13103. +     LP1(0x1e, DOUBLE, IEEEDPAtan, DOUBLE, parm, d0, \
  13104. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13105. + #define IEEEDPCos(parm) \
  13106. +     LP1(0x2a, DOUBLE, IEEEDPCos, DOUBLE, parm, d0, \
  13107. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13108. + #define IEEEDPCosh(parm) \
  13109. +     LP1(0x42, DOUBLE, IEEEDPCosh, DOUBLE, parm, d0, \
  13110. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13111. + #define IEEEDPExp(parm) \
  13112. +     LP1(0x4e, DOUBLE, IEEEDPExp, DOUBLE, parm, d0, \
  13113. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13114. + #define IEEEDPFieee(single) \
  13115. +     LP1(0x6c, DOUBLE, IEEEDPFieee, FLOAT, single, d0, \
  13116. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13117. + #define IEEEDPLog(parm) \
  13118. +     LP1(0x54, DOUBLE, IEEEDPLog, DOUBLE, parm, d0, \
  13119. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13120. + #define IEEEDPLog10(parm) \
  13121. +     LP1(0x7e, DOUBLE, IEEEDPLog10, DOUBLE, parm, d0, \
  13122. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13123. + #define IEEEDPPow(exp, arg) \
  13124. +     LP2(0x5a, DOUBLE, IEEEDPPow, DOUBLE, exp, d2, DOUBLE, arg, d0, \
  13125. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13126. + #define IEEEDPSin(parm) \
  13127. +     LP1(0x24, DOUBLE, IEEEDPSin, DOUBLE, parm, d0, \
  13128. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13129. + #define IEEEDPSincos(pf2, parm) \
  13130. +     LP2(0x36, DOUBLE, IEEEDPSincos, DOUBLE *, pf2, a0, DOUBLE, parm, d0, \
  13131. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13132. + #define IEEEDPSinh(parm) \
  13133. +     LP1(0x3c, DOUBLE, IEEEDPSinh, DOUBLE, parm, d0, \
  13134. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13135. + #define IEEEDPSqrt(parm) \
  13136. +     LP1(0x60, DOUBLE, IEEEDPSqrt, DOUBLE, parm, d0, \
  13137. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13138. + #define IEEEDPTan(parm) \
  13139. +     LP1(0x30, DOUBLE, IEEEDPTan, DOUBLE, parm, d0, \
  13140. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13141. + #define IEEEDPTanh(parm) \
  13142. +     LP1(0x48, DOUBLE, IEEEDPTanh, DOUBLE, parm, d0, \
  13143. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13144. + #define IEEEDPTieee(parm) \
  13145. +     LP1(0x66, FLOAT, IEEEDPTieee, DOUBLE, parm, d0, \
  13146. +     , MATHIEEEDOUBTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13147. + #endif /* !_PPCINLINE_MATHIEEEDOUBTRANS_H */
  13148. diff -c2 -d -P -r include_h/powerup/ppcinline/mathieeesingbas.h includenew/powerup/ppcinline/mathieeesingbas.h
  13149. *** include_h/powerup/ppcinline/mathieeesingbas.h    Thu Jan  1 00:00:00 1970
  13150. --- includenew/powerup/ppcinline/mathieeesingbas.h    Thu Nov  2 22:27:09 2000
  13151. ***************
  13152. *** 0 ****
  13153. --- 1,62 ----
  13154. + /* Automatically generated header! Do not edit! */
  13155. + #ifndef _PPCINLINE_MATHIEEESINGBAS_H
  13156. + #define _PPCINLINE_MATHIEEESINGBAS_H
  13157. + #ifndef __PPCINLINE_MACROS_H
  13158. + #include <powerup/ppcinline/macros.h>
  13159. + #endif /* !__PPCINLINE_MACROS_H */
  13160. + #ifndef MATHIEEESINGBAS_BASE_NAME
  13161. + #define MATHIEEESINGBAS_BASE_NAME MathIeeeSingBasBase
  13162. + #endif /* !MATHIEEESINGBAS_BASE_NAME */
  13163. + #define IEEESPAbs(parm) \
  13164. +     LP1(0x36, FLOAT, IEEESPAbs, FLOAT, parm, d0, \
  13165. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13166. + #define IEEESPAdd(leftParm, rightParm) \
  13167. +     LP2(0x42, FLOAT, IEEESPAdd, FLOAT, leftParm, d0, FLOAT, rightParm, d1, \
  13168. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13169. + #define IEEESPCeil(parm) \
  13170. +     LP1(0x60, FLOAT, IEEESPCeil, FLOAT, parm, d0, \
  13171. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13172. + #define IEEESPCmp(leftParm, rightParm) \
  13173. +     LP2(0x2a, LONG, IEEESPCmp, FLOAT, leftParm, d0, FLOAT, rightParm, d1, \
  13174. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13175. + #define IEEESPDiv(dividend, divisor) \
  13176. +     LP2(0x54, FLOAT, IEEESPDiv, FLOAT, dividend, d0, FLOAT, divisor, d1, \
  13177. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13178. + #define IEEESPFix(parm) \
  13179. +     LP1(0x1e, LONG, IEEESPFix, FLOAT, parm, d0, \
  13180. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13181. + #define IEEESPFloor(parm) \
  13182. +     LP1(0x5a, FLOAT, IEEESPFloor, FLOAT, parm, d0, \
  13183. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13184. + #define IEEESPFlt(integer) \
  13185. +     LP1(0x24, FLOAT, IEEESPFlt, long, integer, d0, \
  13186. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13187. + #define IEEESPMul(leftParm, rightParm) \
  13188. +     LP2(0x4e, FLOAT, IEEESPMul, FLOAT, leftParm, d0, FLOAT, rightParm, d1, \
  13189. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13190. + #define IEEESPNeg(parm) \
  13191. +     LP1(0x3c, FLOAT, IEEESPNeg, FLOAT, parm, d0, \
  13192. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13193. + #define IEEESPSub(leftParm, rightParm) \
  13194. +     LP2(0x48, FLOAT, IEEESPSub, FLOAT, leftParm, d0, FLOAT, rightParm, d1, \
  13195. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13196. + #define IEEESPTst(parm) \
  13197. +     LP1(0x30, LONG, IEEESPTst, FLOAT, parm, d0, \
  13198. +     , MATHIEEESINGBAS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13199. + #endif /* !_PPCINLINE_MATHIEEESINGBAS_H */
  13200. diff -c2 -d -P -r include_h/powerup/ppcinline/mathieeesingtrans.h includenew/powerup/ppcinline/mathieeesingtrans.h
  13201. *** include_h/powerup/ppcinline/mathieeesingtrans.h    Thu Jan  1 00:00:00 1970
  13202. --- includenew/powerup/ppcinline/mathieeesingtrans.h    Thu Nov  2 22:27:09 2000
  13203. ***************
  13204. *** 0 ****
  13205. --- 1,82 ----
  13206. + /* Automatically generated header! Do not edit! */
  13207. + #ifndef _PPCINLINE_MATHIEEESINGTRANS_H
  13208. + #define _PPCINLINE_MATHIEEESINGTRANS_H
  13209. + #ifndef __PPCINLINE_MACROS_H
  13210. + #include <powerup/ppcinline/macros.h>
  13211. + #endif /* !__PPCINLINE_MACROS_H */
  13212. + #ifndef MATHIEEESINGTRANS_BASE_NAME
  13213. + #define MATHIEEESINGTRANS_BASE_NAME MathIeeeSingTransBase
  13214. + #endif /* !MATHIEEESINGTRANS_BASE_NAME */
  13215. + #define IEEESPAcos(parm) \
  13216. +     LP1(0x78, FLOAT, IEEESPAcos, FLOAT, parm, d0, \
  13217. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13218. + #define IEEESPAsin(parm) \
  13219. +     LP1(0x72, FLOAT, IEEESPAsin, FLOAT, parm, d0, \
  13220. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13221. + #define IEEESPAtan(parm) \
  13222. +     LP1(0x1e, FLOAT, IEEESPAtan, FLOAT, parm, d0, \
  13223. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13224. + #define IEEESPCos(parm) \
  13225. +     LP1(0x2a, FLOAT, IEEESPCos, FLOAT, parm, d0, \
  13226. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13227. + #define IEEESPCosh(parm) \
  13228. +     LP1(0x42, FLOAT, IEEESPCosh, FLOAT, parm, d0, \
  13229. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13230. + #define IEEESPExp(parm) \
  13231. +     LP1(0x4e, FLOAT, IEEESPExp, FLOAT, parm, d0, \
  13232. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13233. + #define IEEESPFieee(parm) \
  13234. +     LP1(0x6c, FLOAT, IEEESPFieee, FLOAT, parm, d0, \
  13235. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13236. + #define IEEESPLog(parm) \
  13237. +     LP1(0x54, FLOAT, IEEESPLog, FLOAT, parm, d0, \
  13238. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13239. + #define IEEESPLog10(parm) \
  13240. +     LP1(0x7e, FLOAT, IEEESPLog10, FLOAT, parm, d0, \
  13241. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13242. + #define IEEESPPow(exp, arg) \
  13243. +     LP2(0x5a, FLOAT, IEEESPPow, FLOAT, exp, d1, FLOAT, arg, d0, \
  13244. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13245. + #define IEEESPSin(parm) \
  13246. +     LP1(0x24, FLOAT, IEEESPSin, FLOAT, parm, d0, \
  13247. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13248. + #define IEEESPSincos(cosptr, parm) \
  13249. +     LP2(0x36, FLOAT, IEEESPSincos, FLOAT *, cosptr, a0, FLOAT, parm, d0, \
  13250. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13251. + #define IEEESPSinh(parm) \
  13252. +     LP1(0x3c, FLOAT, IEEESPSinh, FLOAT, parm, d0, \
  13253. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13254. + #define IEEESPSqrt(parm) \
  13255. +     LP1(0x60, FLOAT, IEEESPSqrt, FLOAT, parm, d0, \
  13256. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13257. + #define IEEESPTan(parm) \
  13258. +     LP1(0x30, FLOAT, IEEESPTan, FLOAT, parm, d0, \
  13259. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13260. + #define IEEESPTanh(parm) \
  13261. +     LP1(0x48, FLOAT, IEEESPTanh, FLOAT, parm, d0, \
  13262. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13263. + #define IEEESPTieee(parm) \
  13264. +     LP1(0x66, FLOAT, IEEESPTieee, FLOAT, parm, d0, \
  13265. +     , MATHIEEESINGTRANS_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13266. + #endif /* !_PPCINLINE_MATHIEEESINGTRANS_H */
  13267. diff -c2 -d -P -r include_h/powerup/ppcinline/misc.h includenew/powerup/ppcinline/misc.h
  13268. *** include_h/powerup/ppcinline/misc.h    Thu Jan  1 00:00:00 1970
  13269. --- includenew/powerup/ppcinline/misc.h    Thu Nov  2 22:27:09 2000
  13270. ***************
  13271. *** 0 ****
  13272. --- 1,22 ----
  13273. + /* Automatically generated header! Do not edit! */
  13274. + #ifndef _PPCINLINE_MISC_H
  13275. + #define _PPCINLINE_MISC_H
  13276. + #ifndef __PPCINLINE_MACROS_H
  13277. + #include <powerup/ppcinline/macros.h>
  13278. + #endif /* !__PPCINLINE_MACROS_H */
  13279. + #ifndef MISC_BASE_NAME
  13280. + #define MISC_BASE_NAME MiscBase
  13281. + #endif /* !MISC_BASE_NAME */
  13282. + #define AllocMiscResource(unitNum, name) \
  13283. +     LP2(0x6, UBYTE *, AllocMiscResource, unsigned long, unitNum, d0, UBYTE *, name, a1, \
  13284. +     , MISC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13285. + #define FreeMiscResource(unitNum) \
  13286. +     LP1NR(0xc, FreeMiscResource, unsigned long, unitNum, d0, \
  13287. +     , MISC_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13288. + #endif /* !_PPCINLINE_MISC_H */
  13289. diff -c2 -d -P -r include_h/powerup/ppcinline/nonvolatile.h includenew/powerup/ppcinline/nonvolatile.h
  13290. *** include_h/powerup/ppcinline/nonvolatile.h    Thu Jan  1 00:00:00 1970
  13291. --- includenew/powerup/ppcinline/nonvolatile.h    Thu Nov  2 22:27:07 2000
  13292. ***************
  13293. *** 0 ****
  13294. --- 1,42 ----
  13295. + /* Automatically generated header! Do not edit! */
  13296. + #ifndef _PPCINLINE_NONVOLATILE_H
  13297. + #define _PPCINLINE_NONVOLATILE_H
  13298. + #ifndef __PPCINLINE_MACROS_H
  13299. + #include <powerup/ppcinline/macros.h>
  13300. + #endif /* !__PPCINLINE_MACROS_H */
  13301. + #ifndef NONVOLATILE_BASE_NAME
  13302. + #define NONVOLATILE_BASE_NAME NVBase
  13303. + #endif /* !NONVOLATILE_BASE_NAME */
  13304. + #define DeleteNV(appName, itemName, killRequesters) \
  13305. +     LP3(0x30, BOOL, DeleteNV, STRPTR, appName, a0, STRPTR, itemName, a1, long, killRequesters, d1, \
  13306. +     , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13307. + #define FreeNVData(data) \
  13308. +     LP1NR(0x24, FreeNVData, APTR, data, a0, \
  13309. +     , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13310. + #define GetCopyNV(appName, itemName, killRequesters) \
  13311. +     LP3(0x1e, APTR, GetCopyNV, STRPTR, appName, a0, STRPTR, itemName, a1, long, killRequesters, d1, \
  13312. +     , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13313. + #define GetNVInfo(killRequesters) \
  13314. +     LP1(0x36, struct NVInfo *, GetNVInfo, long, killRequesters, d1, \
  13315. +     , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13316. + #define GetNVList(appName, killRequesters) \
  13317. +     LP2(0x3c, struct MinList *, GetNVList, STRPTR, appName, a0, long, killRequesters, d1, \
  13318. +     , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13319. + #define SetNVProtection(appName, itemName, mask, killRequesters) \
  13320. +     LP4(0x42, BOOL, SetNVProtection, STRPTR, appName, a0, STRPTR, itemName, a1, long, mask, d2, long, killRequesters, d1, \
  13321. +     , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13322. + #define StoreNV(appName, itemName, data, length, killRequesters) \
  13323. +     LP5(0x2a, UWORD, StoreNV, STRPTR, appName, a0, STRPTR, itemName, a1, APTR, data, a2, unsigned long, length, d0, long, killRequesters, d1, \
  13324. +     , NONVOLATILE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13325. + #endif /* !_PPCINLINE_NONVOLATILE_H */
  13326. diff -c2 -d -P -r include_h/powerup/ppcinline/potgo.h includenew/powerup/ppcinline/potgo.h
  13327. *** include_h/powerup/ppcinline/potgo.h    Thu Jan  1 00:00:00 1970
  13328. --- includenew/powerup/ppcinline/potgo.h    Thu Nov  2 22:27:07 2000
  13329. ***************
  13330. *** 0 ****
  13331. --- 1,26 ----
  13332. + /* Automatically generated header! Do not edit! */
  13333. + #ifndef _PPCINLINE_POTGO_H
  13334. + #define _PPCINLINE_POTGO_H
  13335. + #ifndef __PPCINLINE_MACROS_H
  13336. + #include <powerup/ppcinline/macros.h>
  13337. + #endif /* !__PPCINLINE_MACROS_H */
  13338. + #ifndef POTGO_BASE_NAME
  13339. + #define POTGO_BASE_NAME PotgoBase
  13340. + #endif /* !POTGO_BASE_NAME */
  13341. + #define AllocPotBits(bits) \
  13342. +     LP1(0x6, UWORD, AllocPotBits, unsigned long, bits, d0, \
  13343. +     , POTGO_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13344. + #define FreePotBits(bits) \
  13345. +     LP1NR(0xc, FreePotBits, unsigned long, bits, d0, \
  13346. +     , POTGO_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13347. + #define WritePotgo(word, mask) \
  13348. +     LP2NR(0x12, WritePotgo, unsigned long, word, d0, unsigned long, mask, d1, \
  13349. +     , POTGO_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13350. + #endif /* !_PPCINLINE_POTGO_H */
  13351. diff -c2 -d -P -r include_h/powerup/ppcinline/ramdrive.h includenew/powerup/ppcinline/ramdrive.h
  13352. *** include_h/powerup/ppcinline/ramdrive.h    Thu Jan  1 00:00:00 1970
  13353. --- includenew/powerup/ppcinline/ramdrive.h    Thu Nov  2 22:27:07 2000
  13354. ***************
  13355. *** 0 ****
  13356. --- 1,22 ----
  13357. + /* Automatically generated header! Do not edit! */
  13358. + #ifndef _PPCINLINE_RAMDRIVE_H
  13359. + #define _PPCINLINE_RAMDRIVE_H
  13360. + #ifndef __PPCINLINE_MACROS_H
  13361. + #include <powerup/ppcinline/macros.h>
  13362. + #endif /* !__PPCINLINE_MACROS_H */
  13363. + #ifndef RAMDRIVE_BASE_NAME
  13364. + #define RAMDRIVE_BASE_NAME RamdriveDevice
  13365. + #endif /* !RAMDRIVE_BASE_NAME */
  13366. + #define KillRAD(unit) \
  13367. +     LP1(0x30, STRPTR, KillRAD, unsigned long, unit, d0, \
  13368. +     , RAMDRIVE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13369. + #define KillRAD0() \
  13370. +     LP0(0x2a, STRPTR, KillRAD0, \
  13371. +     , RAMDRIVE_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13372. + #endif /* !_PPCINLINE_RAMDRIVE_H */
  13373. diff -c2 -d -P -r include_h/powerup/ppcinline/realtime.h includenew/powerup/ppcinline/realtime.h
  13374. *** include_h/powerup/ppcinline/realtime.h    Thu Jan  1 00:00:00 1970
  13375. --- includenew/powerup/ppcinline/realtime.h    Thu Nov  2 22:27:07 2000
  13376. ***************
  13377. *** 0 ****
  13378. --- 1,69 ----
  13379. + /* Automatically generated header! Do not edit! */
  13380. + #ifndef _PPCINLINE_REALTIME_H
  13381. + #define _PPCINLINE_REALTIME_H
  13382. + #ifndef __PPCINLINE_MACROS_H
  13383. + #include <powerup/ppcinline/macros.h>
  13384. + #endif /* !__PPCINLINE_MACROS_H */
  13385. + #ifndef REALTIME_BASE_NAME
  13386. + #define REALTIME_BASE_NAME RealTimeBase
  13387. + #endif /* !REALTIME_BASE_NAME */
  13388. + #define CreatePlayerA(tagList) \
  13389. +     LP1(0x2a, struct Player *, CreatePlayerA, struct TagItem *, tagList, a0, \
  13390. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13391. + #ifndef NO_PPCINLINE_STDARG
  13392. + #define CreatePlayer(tags...) \
  13393. +     ({ULONG _tags[] = { tags }; CreatePlayerA((struct TagItem *)_tags);})
  13394. + #endif /* !NO_PPCINLINE_STDARG */
  13395. + #define DeletePlayer(player) \
  13396. +     LP1NR(0x30, DeletePlayer, struct Player *, player, a0, \
  13397. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13398. + #define ExternalSync(player, minTime, maxTime) \
  13399. +     LP3(0x42, BOOL, ExternalSync, struct Player *, player, a0, long, minTime, d0, long, maxTime, d1, \
  13400. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13401. + #define FindConductor(name) \
  13402. +     LP1(0x4e, struct Conductor *, FindConductor, STRPTR, name, a0, \
  13403. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13404. + #define GetPlayerAttrsA(player, tagList) \
  13405. +     LP2(0x54, ULONG, GetPlayerAttrsA, struct Player *, player, a0, struct TagItem *, tagList, a1, \
  13406. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13407. + #ifndef NO_PPCINLINE_STDARG
  13408. + #define GetPlayerAttrs(a0, tags...) \
  13409. +     ({ULONG _tags[] = { tags }; GetPlayerAttrsA((a0), (struct TagItem *)_tags);})
  13410. + #endif /* !NO_PPCINLINE_STDARG */
  13411. + #define LockRealTime(lockType) \
  13412. +     LP1(0x1e, APTR, LockRealTime, unsigned long, lockType, d0, \
  13413. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13414. + #define NextConductor(previousConductor) \
  13415. +     LP1(0x48, struct Conductor *, NextConductor, struct Conductor *, previousConductor, a0, \
  13416. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13417. + #define SetConductorState(player, state, time) \
  13418. +     LP3(0x3c, LONG, SetConductorState, struct Player *, player, a0, unsigned long, state, d0, long, time, d1, \
  13419. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13420. + #define SetPlayerAttrsA(player, tagList) \
  13421. +     LP2(0x36, BOOL, SetPlayerAttrsA, struct Player *, player, a0, struct TagItem *, tagList, a1, \
  13422. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13423. + #ifndef NO_PPCINLINE_STDARG
  13424. + #define SetPlayerAttrs(a0, tags...) \
  13425. +     ({ULONG _tags[] = { tags }; SetPlayerAttrsA((a0), (struct TagItem *)_tags);})
  13426. + #endif /* !NO_PPCINLINE_STDARG */
  13427. + #define UnlockRealTime(lock) \
  13428. +     LP1NR(0x24, UnlockRealTime, APTR, lock, a0, \
  13429. +     , REALTIME_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13430. + #endif /* !_PPCINLINE_REALTIME_H */
  13431. diff -c2 -d -P -r include_h/powerup/ppcinline/rexxsyslib.h includenew/powerup/ppcinline/rexxsyslib.h
  13432. *** include_h/powerup/ppcinline/rexxsyslib.h    Thu Jan  1 00:00:00 1970
  13433. --- includenew/powerup/ppcinline/rexxsyslib.h    Thu Nov  2 22:27:08 2000
  13434. ***************
  13435. *** 0 ****
  13436. --- 1,54 ----
  13437. + /* Automatically generated header! Do not edit! */
  13438. + #ifndef _PPCINLINE_REXXSYSLIB_H
  13439. + #define _PPCINLINE_REXXSYSLIB_H
  13440. + #ifndef __PPCINLINE_MACROS_H
  13441. + #include <powerup/ppcinline/macros.h>
  13442. + #endif /* !__PPCINLINE_MACROS_H */
  13443. + #ifndef REXXSYSLIB_BASE_NAME
  13444. + #define REXXSYSLIB_BASE_NAME RexxSysBase
  13445. + #endif /* !REXXSYSLIB_BASE_NAME */
  13446. + #define ClearRexxMsg(msgptr, count) \
  13447. +     LP2NR(0x9c, ClearRexxMsg, struct RexxMsg *, msgptr, a0, unsigned long, count, d0, \
  13448. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13449. + #define CreateArgstring(string, length) \
  13450. +     LP2(0x7e, UBYTE *, CreateArgstring, UBYTE *, string, a0, unsigned long, length, d0, \
  13451. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13452. + #define CreateRexxMsg(port, extension, host) \
  13453. +     LP3(0x90, struct RexxMsg *, CreateRexxMsg, struct MsgPort *, port, a0, UBYTE *, extension, a1, UBYTE *, host, d0, \
  13454. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13455. + #define DeleteArgstring(argstring) \
  13456. +     LP1NR(0x84, DeleteArgstring, UBYTE *, argstring, a0, \
  13457. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13458. + #define DeleteRexxMsg(packet) \
  13459. +     LP1NR(0x96, DeleteRexxMsg, struct RexxMsg *, packet, a0, \
  13460. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13461. + #define FillRexxMsg(msgptr, count, mask) \
  13462. +     LP3(0xa2, BOOL, FillRexxMsg, struct RexxMsg *, msgptr, a0, unsigned long, count, d0, unsigned long, mask, d1, \
  13463. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13464. + #define IsRexxMsg(msgptr) \
  13465. +     LP1(0xa8, BOOL, IsRexxMsg, struct RexxMsg *, msgptr, a0, \
  13466. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13467. + #define LengthArgstring(argstring) \
  13468. +     LP1(0x8a, ULONG, LengthArgstring, UBYTE *, argstring, a0, \
  13469. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13470. + #define LockRexxBase(resource) \
  13471. +     LP1NR(0x1c2, LockRexxBase, unsigned long, resource, d0, \
  13472. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13473. + #define UnlockRexxBase(resource) \
  13474. +     LP1NR(0x1c8, UnlockRexxBase, unsigned long, resource, d0, \
  13475. +     , REXXSYSLIB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13476. + #endif /* !_PPCINLINE_REXXSYSLIB_H */
  13477. diff -c2 -d -P -r include_h/powerup/ppcinline/stubs.h includenew/powerup/ppcinline/stubs.h
  13478. *** include_h/powerup/ppcinline/stubs.h    Thu Jan  1 00:00:00 1970
  13479. --- includenew/powerup/ppcinline/stubs.h    Thu Nov  2 22:27:10 2000
  13480. ***************
  13481. *** 0 ****
  13482. --- 1,141 ----
  13483. + #ifndef __INLINE_STUB_H
  13484. + #define __INLINE_STUB_H
  13485. + #ifndef EXEC_TYPES_H
  13486. + #include <exec/types.h>
  13487. + #endif
  13488. + #ifndef EXEC_NODES_H
  13489. + #include <exec/lists.h>
  13490. + #endif
  13491. + #ifndef DOS_DOS_H
  13492. + #include <dos/dos.h>
  13493. + #endif
  13494. + #ifndef INTUITION_CLASSES_H
  13495. + #include <intuition/classes.h>
  13496. + #endif
  13497. + #ifndef GRAPHICS_DISPLAYINFO_H
  13498. + #include <graphics/displayinfo.h>
  13499. + #endif
  13500. + #ifndef LIBRARIES_COMMODITIES_H
  13501. + #include <libraries/commodities.h>
  13502. + #endif
  13503. + struct AnchorPath;
  13504. + struct AnimOb;
  13505. + struct AreaInfo;
  13506. + struct BitMap;
  13507. + struct BitScaleArgs;
  13508. + struct Bob;
  13509. + struct Border;
  13510. + struct Catalog;
  13511. + struct CardHandle;
  13512. + struct ClipboardHandle;
  13513. + struct ClipRect;
  13514. + struct ClockData;
  13515. + struct ColorMap;
  13516. + struct ColorWheelRGB;
  13517. + struct ColorWheelHSB;
  13518. + struct ConfigDev;
  13519. + struct CSource;
  13520. + struct CopList;
  13521. + struct CurrentBinding;
  13522. + struct DataBase;
  13523. + struct DateStamp;
  13524. + struct DateTime;
  13525. + struct Device;
  13526. + struct DeviceNode;
  13527. + struct DeviceTData;
  13528. + struct DiskObject;
  13529. + struct DosLibrary;
  13530. + struct DosList;
  13531. + struct DevProc;
  13532. + struct DosPacket;
  13533. + struct DrawInfo;
  13534. + struct EasyStruct;
  13535. + struct EClockVal;
  13536. + struct ExAllControl;
  13537. + struct ExAllData;
  13538. + struct ExecBase;
  13539. + struct ExpansionBase;
  13540. + struct FileInfoBlock;
  13541. + struct FileLock;
  13542. + struct FileRequester;
  13543. + struct FontContentsHeader;
  13544. + struct FreeList;
  13545. + struct Gadget;
  13546. + struct GadgetInfo;
  13547. + struct GelsInfo;
  13548. + struct GlyphEngine;
  13549. + struct GlyphMap;
  13550. + struct GfxBase;
  13551. + struct HelpNode;
  13552. + struct Hook;
  13553. + struct IClass;
  13554. + struct Image;
  13555. + struct InfoData;
  13556. + struct InputEvent;
  13557. + struct Interrupt;
  13558. + struct IntuiText;
  13559. + struct IntuitionBase;
  13560. + struct IORequest;
  13561. + struct KeyMap;
  13562. + struct KeyQuery;
  13563. + struct Layer;
  13564. + struct Layer_Info;
  13565. + struct Library;
  13566. + struct List;
  13567. + struct Locale;
  13568. + struct LocaleBase;
  13569. + struct MathIEEEBase;
  13570. + struct MemHeader;
  13571. + struct MemList;
  13572. + struct Menu;
  13573. + struct MenuItem;
  13574. + struct Message;
  13575. + struct MiscResource;
  13576. + struct MsgPort;
  13577. + struct NamedObject;
  13578. + struct Node;
  13579. + struct NewAmigaGuide;
  13580. + struct NewGadget;
  13581. + struct NewMenu;
  13582. + struct NewScreen;
  13583. + struct NewWindow;
  13584. + struct NotifyRequest;
  13585. + struct Preferences;
  13586. + struct RDArgs;
  13587. + struct RastPort;
  13588. + struct RealTimeBase;
  13589. + struct RecordLock;
  13590. + struct Rectangle;
  13591. + struct Region;
  13592. + struct Remember;
  13593. + struct Requester;
  13594. + struct ReqToolsBase;
  13595. + struct Resident;
  13596. + struct RexxMsg;
  13597. + struct RomBootBase;
  13598. + struct RxsLib;
  13599. + struct Screen;
  13600. + struct Semaphore;
  13601. + struct SignalSemaphore;
  13602. + struct SimpleSprite;
  13603. + struct TagItem;
  13604. + struct Task;
  13605. + struct TextAttr;
  13606. + struct TextExtent;
  13607. + struct TextFont;
  13608. + struct timeval;
  13609. + struct UCopList;
  13610. + struct View;
  13611. + struct ViewPort;
  13612. + struct VSprite;
  13613. + struct WBObject;
  13614. + struct Window;
  13615. + struct bltnode;
  13616. + struct cprlist;
  13617. + struct gpLayout;
  13618. + struct dtPrint;
  13619. + #endif /* __INLINE_STUB_H */
  13620. diff -c2 -d -P -r include_h/powerup/ppcinline/timer.h includenew/powerup/ppcinline/timer.h
  13621. *** include_h/powerup/ppcinline/timer.h    Thu Jan  1 00:00:00 1970
  13622. --- includenew/powerup/ppcinline/timer.h    Thu Nov  2 22:27:08 2000
  13623. ***************
  13624. *** 0 ****
  13625. --- 1,34 ----
  13626. + /* Automatically generated header! Do not edit! */
  13627. + #ifndef _PPCINLINE_TIMER_H
  13628. + #define _PPCINLINE_TIMER_H
  13629. + #ifndef __PPCINLINE_MACROS_H
  13630. + #include <powerup/ppcinline/macros.h>
  13631. + #endif /* !__PPCINLINE_MACROS_H */
  13632. + #ifndef TIMER_BASE_NAME
  13633. + #define TIMER_BASE_NAME TimerBase
  13634. + #endif /* !TIMER_BASE_NAME */
  13635. + #define AddTime(dest, src) \
  13636. +     LP2NR(0x2a, AddTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  13637. +     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13638. + #define CmpTime(dest, src) \
  13639. +     LP2(0x36, LONG, CmpTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  13640. +     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13641. + #define GetSysTime(dest) \
  13642. +     LP1NR(0x42, GetSysTime, struct timeval *, dest, a0, \
  13643. +     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13644. + #define ReadEClock(dest) \
  13645. +     LP1(0x3c, ULONG, ReadEClock, struct EClockVal *, dest, a0, \
  13646. +     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13647. + #define SubTime(dest, src) \
  13648. +     LP2NR(0x30, SubTime, struct timeval *, dest, a0, struct timeval *, src, a1, \
  13649. +     , TIMER_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13650. + #endif /* !_PPCINLINE_TIMER_H */
  13651. diff -c2 -d -P -r include_h/powerup/ppcinline/translator.h includenew/powerup/ppcinline/translator.h
  13652. *** include_h/powerup/ppcinline/translator.h    Thu Jan  1 00:00:00 1970
  13653. --- includenew/powerup/ppcinline/translator.h    Thu Nov  2 22:27:08 2000
  13654. ***************
  13655. *** 0 ****
  13656. --- 1,18 ----
  13657. + /* Automatically generated header! Do not edit! */
  13658. + #ifndef _PPCINLINE_TRANSLATOR_H
  13659. + #define _PPCINLINE_TRANSLATOR_H
  13660. + #ifndef __PPCINLINE_MACROS_H
  13661. + #include <powerup/ppcinline/macros.h>
  13662. + #endif /* !__PPCINLINE_MACROS_H */
  13663. + #ifndef TRANSLATOR_BASE_NAME
  13664. + #define TRANSLATOR_BASE_NAME TranslatorBase
  13665. + #endif /* !TRANSLATOR_BASE_NAME */
  13666. + #define Translate(inputString, inputLength, outputBuffer, bufferSize) \
  13667. +     LP4(0x1e, LONG, Translate, STRPTR, inputString, a0, long, inputLength, d0, STRPTR, outputBuffer, a1, long, bufferSize, d1, \
  13668. +     , TRANSLATOR_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13669. + #endif /* !_PPCINLINE_TRANSLATOR_H */
  13670. diff -c2 -d -P -r include_h/powerup/ppcinline/utility.h includenew/powerup/ppcinline/utility.h
  13671. *** include_h/powerup/ppcinline/utility.h    Thu Jan  1 00:00:00 1970
  13672. --- includenew/powerup/ppcinline/utility.h    Thu Nov  2 22:27:08 2000
  13673. ***************
  13674. *** 0 ****
  13675. --- 1,171 ----
  13676. + /* Automatically generated header! Do not edit! */
  13677. + #ifndef _PPCINLINE_UTILITY_H
  13678. + #define _PPCINLINE_UTILITY_H
  13679. + #ifndef __PPCINLINE_MACROS_H
  13680. + #include <powerup/ppcinline/macros.h>
  13681. + #endif /* !__PPCINLINE_MACROS_H */
  13682. + #ifndef UTILITY_BASE_NAME
  13683. + #define UTILITY_BASE_NAME UtilityBase
  13684. + #endif /* !UTILITY_BASE_NAME */
  13685. + #define AddNamedObject(nameSpace, object) \
  13686. +     LP2(0xde, BOOL, AddNamedObject, struct NamedObject *, nameSpace, a0, struct NamedObject *, object, a1, \
  13687. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13688. + #define AllocNamedObjectA(name, tagList) \
  13689. +     LP2(0xe4, struct NamedObject *, AllocNamedObjectA, STRPTR, name, a0, struct TagItem *, tagList, a1, \
  13690. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13691. + #ifndef NO_PPCINLINE_STDARG
  13692. + #define AllocNamedObject(a0, tags...) \
  13693. +     ({ULONG _tags[] = { tags }; AllocNamedObjectA((a0), (struct TagItem *)_tags);})
  13694. + #endif /* !NO_PPCINLINE_STDARG */
  13695. + #define AllocateTagItems(numTags) \
  13696. +     LP1(0x42, struct TagItem *, AllocateTagItems, unsigned long, numTags, d0, \
  13697. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13698. + #define Amiga2Date(seconds, result) \
  13699. +     LP2NR(0x78, Amiga2Date, unsigned long, seconds, d0, struct ClockData *, result, a0, \
  13700. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13701. + #define ApplyTagChanges(list, changeList) \
  13702. +     LP2NR(0xba, ApplyTagChanges, struct TagItem *, list, a0, struct TagItem *, changeList, a1, \
  13703. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13704. + #define AttemptRemNamedObject(object) \
  13705. +     LP1(0xea, LONG, AttemptRemNamedObject, struct NamedObject *, object, a0, \
  13706. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13707. + #define CallHookPkt(hook, object, paramPacket) \
  13708. +     LP3(0x66, ULONG, CallHookPkt, struct Hook *, hook, a0, APTR, object, a2, APTR, paramPacket, a1, \
  13709. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13710. + #define CheckDate(date) \
  13711. +     LP1(0x84, ULONG, CheckDate, struct ClockData *, date, a0, \
  13712. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13713. + #define CloneTagItems(tagList) \
  13714. +     LP1(0x48, struct TagItem *, CloneTagItems, struct TagItem *, tagList, a0, \
  13715. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13716. + #define Date2Amiga(date) \
  13717. +     LP1(0x7e, ULONG, Date2Amiga, struct ClockData *, date, a0, \
  13718. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13719. + #define FilterTagChanges(changeList, originalList, apply) \
  13720. +     LP3NR(0x36, FilterTagChanges, struct TagItem *, changeList, a0, struct TagItem *, originalList, a1, unsigned long, apply, d0, \
  13721. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13722. + #define FilterTagItems(tagList, filterArray, logic) \
  13723. +     LP3(0x60, ULONG, FilterTagItems, struct TagItem *, tagList, a0, Tag *, filterArray, a1, unsigned long, logic, d0, \
  13724. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13725. + #define FindNamedObject(nameSpace, name, lastObject) \
  13726. +     LP3(0xf0, struct NamedObject *, FindNamedObject, struct NamedObject *, nameSpace, a0, STRPTR, name, a1, struct NamedObject *, lastObject, a2, \
  13727. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13728. + #define FindTagItem(tagVal, tagList) \
  13729. +     LP2(0x1e, struct TagItem *, FindTagItem, Tag, tagVal, d0, struct TagItem *, tagList, a0, \
  13730. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13731. + #define FreeNamedObject(object) \
  13732. +     LP1NR(0xf6, FreeNamedObject, struct NamedObject *, object, a0, \
  13733. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13734. + #define FreeTagItems(tagList) \
  13735. +     LP1NR(0x4e, FreeTagItems, struct TagItem *, tagList, a0, \
  13736. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13737. + #define GetTagData(tagValue, defaultVal, tagList) \
  13738. +     LP3(0x24, ULONG, GetTagData, Tag, tagValue, d0, unsigned long, defaultVal, d1, struct TagItem *, tagList, a0, \
  13739. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13740. + #define GetUniqueID() \
  13741. +     LP0(0x10e, ULONG, GetUniqueID, \
  13742. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13743. + #define MapTags(tagList, mapList, mapType) \
  13744. +     LP3NR(0x3c, MapTags, struct TagItem *, tagList, a0, struct TagItem *, mapList, a1, unsigned long, mapType, d0, \
  13745. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13746. + #define NamedObjectName(object) \
  13747. +     LP1(0xfc, STRPTR, NamedObjectName, struct NamedObject *, object, a0, \
  13748. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13749. + #define NextTagItem(tagListPtr) \
  13750. +     LP1(0x30, struct TagItem *, NextTagItem, struct TagItem **, tagListPtr, a0, \
  13751. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13752. + #define PackBoolTags(initialFlags, tagList, boolMap) \
  13753. +     LP3(0x2a, ULONG, PackBoolTags, unsigned long, initialFlags, d0, struct TagItem *, tagList, a0, struct TagItem *, boolMap, a1, \
  13754. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13755. + #define PackStructureTags(pack, packTable, tagList) \
  13756. +     LP3(0xd2, ULONG, PackStructureTags, APTR, pack, a0, ULONG *, packTable, a1, struct TagItem *, tagList, a2, \
  13757. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13758. + #define RefreshTagItemClones(clone, original) \
  13759. +     LP2NR(0x54, RefreshTagItemClones, struct TagItem *, clone, a0, struct TagItem *, original, a1, \
  13760. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13761. + #define ReleaseNamedObject(object) \
  13762. +     LP1NR(0x102, ReleaseNamedObject, struct NamedObject *, object, a0, \
  13763. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13764. + #define RemNamedObject(object, message) \
  13765. +     LP2NR(0x108, RemNamedObject, struct NamedObject *, object, a0, struct Message *, message, a1, \
  13766. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13767. + #define SDivMod32(dividend, divisor) \
  13768. +     LP2(0x96, LONG, SDivMod32, long, dividend, d0, long, divisor, d1, \
  13769. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13770. + #define SMult32(arg1, arg2) \
  13771. +     LP2(0x8a, LONG, SMult32, long, arg1, d0, long, arg2, d1, \
  13772. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13773. + #define SMult64(arg1, arg2) \
  13774. +     LP2(0xc6, LONG, SMult64, long, arg1, d0, long, arg2, d1, \
  13775. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13776. + #define Stricmp(string1, string2) \
  13777. +     LP2(0xa2, LONG, Stricmp, STRPTR, string1, a0, STRPTR, string2, a1, \
  13778. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13779. + #define Strnicmp(string1, string2, length) \
  13780. +     LP3(0xa8, LONG, Strnicmp, STRPTR, string1, a0, STRPTR, string2, a1, long, length, d0, \
  13781. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13782. + #define TagInArray(tagValue, tagArray) \
  13783. +     LP2(0x5a, BOOL, TagInArray, Tag, tagValue, d0, Tag *, tagArray, a0, \
  13784. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13785. + #define ToLower(character) \
  13786. +     LP1(0xb4, UBYTE, ToLower, unsigned long, character, d0, \
  13787. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13788. + #define ToUpper(character) \
  13789. +     LP1(0xae, UBYTE, ToUpper, unsigned long, character, d0, \
  13790. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13791. + #define UDivMod32(dividend, divisor) \
  13792. +     LP2(0x9c, ULONG, UDivMod32, unsigned long, dividend, d0, unsigned long, divisor, d1, \
  13793. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13794. + #define UMult32(arg1, arg2) \
  13795. +     LP2(0x90, ULONG, UMult32, unsigned long, arg1, d0, unsigned long, arg2, d1, \
  13796. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13797. + #define UMult64(arg1, arg2) \
  13798. +     LP2(0xcc, ULONG, UMult64, unsigned long, arg1, d0, unsigned long, arg2, d1, \
  13799. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13800. + #define UnpackStructureTags(pack, packTable, tagList) \
  13801. +     LP3(0xd8, ULONG, UnpackStructureTags, APTR, pack, a0, ULONG *, packTable, a1, struct TagItem *, tagList, a2, \
  13802. +     , UTILITY_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13803. + #endif /* !_PPCINLINE_UTILITY_H */
  13804. diff -c2 -d -P -r include_h/powerup/ppcinline/wb.h includenew/powerup/ppcinline/wb.h
  13805. *** include_h/powerup/ppcinline/wb.h    Thu Jan  1 00:00:00 1970
  13806. --- includenew/powerup/ppcinline/wb.h    Thu Nov  2 22:27:08 2000
  13807. ***************
  13808. *** 0 ****
  13809. --- 1,57 ----
  13810. + /* Automatically generated header! Do not edit! */
  13811. + #ifndef _PPCINLINE_WB_H
  13812. + #define _PPCINLINE_WB_H
  13813. + #ifndef __PPCINLINE_MACROS_H
  13814. + #include <powerup/ppcinline/macros.h>
  13815. + #endif /* !__PPCINLINE_MACROS_H */
  13816. + #ifndef WB_BASE_NAME
  13817. + #define WB_BASE_NAME WorkbenchBase
  13818. + #endif /* !WB_BASE_NAME */
  13819. + #define AddAppIconA(id, userdata, text, msgport, lock, diskobj, taglist) \
  13820. +     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, \
  13821. +     , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13822. + #ifndef NO_PPCINLINE_STDARG
  13823. + #define AddAppIcon(a0, a1, a2, a3, a4, a5, tags...) \
  13824. +     ({ULONG _tags[] = { tags }; AddAppIconA((a0), (a1), (a2), (a3), (a4), (a5), (struct TagItem *)_tags);})
  13825. + #endif /* !NO_PPCINLINE_STDARG */
  13826. + #define AddAppMenuItemA(id, userdata, text, msgport, taglist) \
  13827. +     LP5(0x48, struct AppMenuItem *, AddAppMenuItemA, unsigned long, id, d0, unsigned long, userdata, d1, UBYTE *, text, a0, struct MsgPort *, msgport, a1, struct TagItem *, taglist, a2, \
  13828. +     , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13829. + #ifndef NO_PPCINLINE_STDARG
  13830. + #define AddAppMenuItem(a0, a1, a2, a3, tags...) \
  13831. +     ({ULONG _tags[] = { tags }; AddAppMenuItemA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);})
  13832. + #endif /* !NO_PPCINLINE_STDARG */
  13833. + #define AddAppWindowA(id, userdata, window, msgport, taglist) \
  13834. +     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, \
  13835. +     , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13836. + #ifndef NO_PPCINLINE_STDARG
  13837. + #define AddAppWindow(a0, a1, a2, a3, tags...) \
  13838. +     ({ULONG _tags[] = { tags }; AddAppWindowA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);})
  13839. + #endif /* !NO_PPCINLINE_STDARG */
  13840. + #define RemoveAppIcon(appIcon) \
  13841. +     LP1(0x42, BOOL, RemoveAppIcon, struct AppIcon *, appIcon, a0, \
  13842. +     , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13843. + #define RemoveAppMenuItem(appMenuItem) \
  13844. +     LP1(0x4e, BOOL, RemoveAppMenuItem, struct AppMenuItem *, appMenuItem, a0, \
  13845. +     , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13846. + #define RemoveAppWindow(appWindow) \
  13847. +     LP1(0x36, BOOL, RemoveAppWindow, struct AppWindow *, appWindow, a0, \
  13848. +     , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13849. + #define WBInfo(lock, name, screen) \
  13850. +     LP3NR(0x5a, WBInfo, BPTR, lock, a0, STRPTR, name, a1, struct Screen *, screen, a2, \
  13851. +     , WB_BASE_NAME, IF_CACHEFLUSHALL, NULL, 0, IF_CACHEFLUSHALL, NULL, 0)
  13852. + #endif /* !_PPCINLINE_WB_H */
  13853. diff -c2 -d -P -r include_h/powerup/ppclib/interface.h includenew/powerup/ppclib/interface.h
  13854. *** include_h/powerup/ppclib/interface.h    Thu Jan  1 00:00:00 1970
  13855. --- includenew/powerup/ppclib/interface.h    Thu Nov  2 22:27:17 2000
  13856. ***************
  13857. *** 0 ****
  13858. --- 1,166 ----
  13859. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  13860. + #define POWERUP_PPCLIB_INTERFACE_H
  13861. + #include <exec/types.h>
  13862. + /*
  13863. +  * Structure which is used on the PPC side to call
  13864. +  * AmigaOS library functions or sub routines.
  13865. +  *
  13866. +  */
  13867. + /*****************************/
  13868. + /* About the CacheMode field */
  13869. + /*****************************/
  13870. + /*
  13871. +  * For calling functions from the PPC under M68k AmigaOS or for
  13872. +  * calling functions on the PPC Supervisor mode you have to care
  13873. +  * for the cache issues. Please read the Cache chapter in the
  13874. +  * docs/powerup.guide about the cache problems involved.
  13875. +  * If you do something wrong here you can expect that you loose
  13876. +  * data, get wrong data or simply crash the machine.
  13877. +  *
  13878. +  * IF_CACHEFLUSHNO:
  13879. +  * You use this mode for the cpu if your function
  13880. +  * touches no memory both cpus use.
  13881. +  *
  13882. +  * Example: Close(File)
  13883. +  *          If you call this function by the PPC there`s no need
  13884. +  *          to flush the cache because the PPC isn`t allowed to
  13885. +  *          touch any memory which has to do with the File BPTR.
  13886. +  * ATTENTION:
  13887. +  *          The PPC MUST NOT be used to poke into AmigaOS system
  13888. +  *          structures.
  13889. +  *
  13890. +  * IF_CACHEFLUSHALL:
  13891. +  * You use this mode for the cpu if your function
  13892. +  * touches memory both cpus use and it`s no simple memory area
  13893. +  * which may be flushed individually. This should be used by default.
  13894. +  *
  13895. +  * Example: OpenWindowTagList(NewWindow,TagList)
  13896. +  *          Here you pass a complex data structure which may use
  13897. +  *          memory areas at several different areas.
  13898. +  *
  13899. +  * IF_CACHEFLUSHAREA:
  13900. +  * You use this mode for the cpu if your function
  13901. +  * touches memory both cpus use and it`s a memory area which isn`t
  13902. +  * very big. It depends on the size and how many lines are dirty
  13903. +  * if this is faster than IF_CACHEFLUSHALL.
  13904. +  * With the Start and Length fields of each cpu you can define
  13905. +  * the area.
  13906. +  *
  13907. +  * Example: Write(File,Address,Length)
  13908. +  *          When the PPC runs this function the PPC must make sure
  13909. +  *          that all data in the to be written memory area is in
  13910. +  *          in the memory and not only in the cache.
  13911. +  *
  13912. +  * IF_CACHEINVALIDAREA: (V45)
  13913. +  * You use this mode for the cpu if your function
  13914. +  * touches memory both cpus use and it`s a memory area where you
  13915. +  * don`t care for valid data anymore.
  13916. +  * With the Start and Length fields of each cpu you can define
  13917. +  * the area.
  13918. +  *
  13919. +  * Example: Read(File,Address,Length)
  13920. +  *          When the PPC runs this function the PPC has no need
  13921. +  *          anymore for anything which is in its cache for the
  13922. +  *          area the Address and Length define, so you could
  13923. +  *          invalidate this instead of doing a cacheflush which
  13924. +  *          may write back dirty lines.
  13925. +  *          Be VERY careful about this.
  13926. +  *
  13927. +  * ATTENTION! The Address must be 32Byte aligned, so you should always
  13928. +  * use PPCAllocMem for data which is used on the M68k and PPC
  13929. +  * You are NOT allowed to use normal pools for exchanging data between
  13930. +  * the M68k and PPC.
  13931. +  *
  13932. +  * IF_ASYNC: (V45)
  13933. +  * If you use this flag, the function is called asynchronous and
  13934. +  * the PPC doesn`t have to wait for a result.
  13935. +  * This flag is only checked in the M68kCacheMode field.
  13936. +  * This also means that the result of the PPCCall#? function
  13937. +  * is meaningless.
  13938. +  * Normally this flag doesn`t really fit into a CacheMode flag, but
  13939. +  * well..too bad i haven`t declared another flag field there.
  13940. +  */
  13941. + struct Caos
  13942. + {
  13943. +     union
  13944. +     {
  13945. +         int    Offset;
  13946. +         APTR    Function;
  13947. +     } caos_Un;
  13948. +     ULONG    M68kCacheMode;
  13949. +     APTR    M68kStart;
  13950. +     ULONG    M68kLength;
  13951. +     ULONG    PPCCacheMode;
  13952. +     APTR    PPCStart;
  13953. +     ULONG    PPCLength;
  13954. +     ULONG    d0;
  13955. +     ULONG    d1;
  13956. +     ULONG    d2;
  13957. +     ULONG    d3;
  13958. +     ULONG    d4;
  13959. +     ULONG    d5;
  13960. +     ULONG    d6;
  13961. +     ULONG    d7;
  13962. +     ULONG    a0;
  13963. +     ULONG    a1;
  13964. +     ULONG    a2;
  13965. +     ULONG    a3;
  13966. +     ULONG    a4;
  13967. +     ULONG    a5;
  13968. + /*
  13969. +  * here you have to put the LibBasePtr if you want
  13970. +  * to call a Library.
  13971. +  */
  13972. +     ULONG    a6;
  13973. + };
  13974. + #define    IF_CACHEFLUSHNO        0
  13975. + #define    IF_CACHEFLUSHALL    1
  13976. + #define    IF_CACHEFLUSHAREA    2
  13977. + #define    IF_CACHEINVALIDAREA    4
  13978. + #define    IF_ASYNC        0x10000
  13979. + /*
  13980. +  * Structure which is used on the M68k side to run
  13981. +  * a Kernel Supervisor ElfObject. During this time
  13982. +  * the multitasking on the PPC stops
  13983. +  * PPCRunKernelModule() ONLY !!!!!!!!!!!!!!!!!!!!!
  13984. +  * If you set IF_CACHEASYNC in PPCCacheMode the operation
  13985. +  * doesn`t return a valid result as it`s asynchron.
  13986. +  */
  13987. + struct ModuleArgs
  13988. + {
  13989. +     ULONG    M68kCacheMode;
  13990. +     APTR    M68kStart;
  13991. +     ULONG    M68kLength;
  13992. +     ULONG    PPCCacheMode;
  13993. +     APTR    PPCStart;
  13994. +     ULONG    PPCLength;
  13995. +     ULONG    Arg1;    /* GPR3=C Integer Arg1  */
  13996. +     ULONG    Arg2;    /* GPR4=C Integer Arg2  */
  13997. +     ULONG    Arg3;    /* GPR5=C Integer Arg3  */
  13998. +     ULONG    Arg4;    /* GPR6=C Integer Arg4  */
  13999. +     ULONG    Arg5;    /* GPR7=C Integer Arg5  */
  14000. +     ULONG    Arg6;    /* GPR8=C Integer Arg6  */
  14001. +     ULONG    Arg7;    /* GPR9=C Integer Arg7  */
  14002. +     ULONG    Arg8;    /* GPR10=C Integer Arg8 */
  14003. +     DOUBLE    FArg1;    /* FPR1=C FPU Arg1 */
  14004. +     DOUBLE    FArg2;    /* FPR2=C FPU Arg2 */
  14005. +     DOUBLE    FArg3;    /* FPR3=C FPU Arg3 */
  14006. +     DOUBLE    FArg4;    /* FPR4=C FPU Arg4 */
  14007. +     DOUBLE    FArg5;    /* FPR5=C FPU Arg5 */
  14008. +     DOUBLE    FArg6;    /* FPR6=C FPU Arg6 */
  14009. +     DOUBLE    FArg7;    /* FPR7=C FPU Arg7 */
  14010. +     DOUBLE    FArg8;    /* FPR8=C FPU Arg8 */
  14011. + };
  14012. + #endif
  14013. diff -c2 -d -P -r include_h/powerup/ppclib/interface.i includenew/powerup/ppclib/interface.i
  14014. *** include_h/powerup/ppclib/interface.i    Thu Jan  1 00:00:00 1970
  14015. --- includenew/powerup/ppclib/interface.i    Thu Nov  2 22:27:17 2000
  14016. ***************
  14017. *** 0 ****
  14018. --- 1,157 ----
  14019. +     IFND POWERUP_PPCLIB_INTERFACES_I
  14020. + POWERUP_PPCLIB_INTERFACES_I    SET    1
  14021. +     include    "exec/types.i"
  14022. + ;/*
  14023. + ; * Structure which is used on the PPC side to call
  14024. + ; * AmigaOS library functions or sub routines.
  14025. + ; *
  14026. + ; */
  14027. + ;/*****************************/
  14028. + ;/* About the CacheMode field */
  14029. + ;/*****************************/
  14030. + ;/*
  14031. + ; * For calling functions from the PPC under M68k AmigaOS or for
  14032. + ; * calling functions on the PPC Supervisor mode you have to care
  14033. + ; * for the cache issues. Please read the Cache chapter in the
  14034. + ; * docs/powerup.guide about the cache problems involved.
  14035. + ; * If you do something wrong here you can expect that you loose
  14036. + ; * data, get wrong data or simply crash the machine.
  14037. + ; *
  14038. + ; * IF_CACHEFLUSHNO:
  14039. + ; * You use this mode for the cpu if your function
  14040. + ; * touches no memory both cpus use.
  14041. + ; *
  14042. + ; * Example: Close(File)
  14043. + ; *          If you call this function by the PPC there`s no need
  14044. + ; *          to flush the cache because the PPC isn`t allowed to
  14045. + ; *          touch any memory which has to do with the File BPTR.
  14046. + ; * ATTENTION:
  14047. + ; *          The PPC MUST NOT be used to poke into AmigaOS system
  14048. + ; *          structures.
  14049. + ; *
  14050. + ; * IF_CACHEFLUSHALL:
  14051. + ; * You use this mode for the cpu if your function
  14052. + ; * touches memory both cpus use and it`s no simple memory area
  14053. + ; * which may be flushed individually. This should be used by default.
  14054. + ; *
  14055. + ; * Example: OpenWindowTagList(NewWindow,TagList)
  14056. + ; *          Here you pass a complex data structure which may use
  14057. + ; *          memory areas at several different areas.
  14058. + ; *
  14059. + ; * IF_CACHEFLUSHAREA:
  14060. + ; * You use this mode for the cpu if your function
  14061. + ; * touches memory both cpus use and it`s a memory area which isn`t
  14062. + ; * very big. It depends on the size and how many lines are dirty
  14063. + ; * if this is faster than IF_CACHEFLUSHALL.
  14064. + ; * With the Start and Length fields of each cpu you can define
  14065. + ; * the area.
  14066. + ; *
  14067. + ; * Example: Write(File,Address,Length)
  14068. + ; *          When the PPC runs this function the PPC must make sure
  14069. + ; *          that all data in the to be written memory area is in
  14070. + ; *          in the memory and not only in the cache.
  14071. + ; *
  14072. + ; * IF_CACHEINVALIDAREA: (V45)
  14073. + ; * You use this mode for the cpu if your function
  14074. + ; * touches memory both cpus use and it`s a memory area where you
  14075. + ; * don`t care for valid data anymore.
  14076. + ; * With the Start and Length fields of each cpu you can define
  14077. + ; * the area.
  14078. + ; *
  14079. + ; * Example: Read(File,Address,Length)
  14080. + ; *          When the PPC runs this function the PPC has no need
  14081. + ; *          anymore for anything which is in its cache for the
  14082. + ; *          area the Address and Length define, so you could
  14083. + ; *          invalidate this instead of doing a cacheflush which
  14084. + ; *          may write back dirty lines.
  14085. + ; *          Be VERY careful about this.
  14086. + ; *
  14087. + ; * ATTENTION! The Address must be 32Byte aligned, so you should always
  14088. + ; * use PPCAllocMem for data which is used on the M68k and PPC
  14089. + ; * You are NOT allowed to use normal pools for exchanging data between
  14090. + ; * the M68k and PPC.
  14091. + ; *
  14092. + ; * IF_ASYNC: (V45)
  14093. + ; * If you use this flag, the function is called asynchronous and
  14094. + ; * the PPC doesn`t have to wait for a result.
  14095. + ; * This flag is only checked in the M68kCacheMode field.
  14096. + ; * This also means that the result of the PPCCall#? function
  14097. + ; * is meaningless.
  14098. + ; * Normally this flag doesn`t really fit into a CacheMode flag, but
  14099. + ; * well..too bad i haven`t declared another flag field there.
  14100. + ; */
  14101. +     STRUCTURE    Caos,0
  14102. +     LABEL    caos_Function
  14103. +     LONG    caos_Offset
  14104. +     ULONG    caos_M68kCacheMode;
  14105. +     APTR    caos_M68kStart;
  14106. +     ULONG    caos_M68kLength;
  14107. +     ULONG    caos_PPCCacheMode;
  14108. +     APTR    caos_PPCStart;
  14109. +     ULONG    caos_PPCLength;
  14110. +     ULONG    caos_d0
  14111. +     ULONG    caos_d1
  14112. +     ULONG    caos_d2
  14113. +     ULONG    caos_d3
  14114. +     ULONG    caos_d4
  14115. +     ULONG    caos_d5
  14116. +     ULONG    caos_d6
  14117. +     ULONG    caos_d7
  14118. +     ULONG    caos_a0
  14119. +     ULONG    caos_a1
  14120. +     ULONG    caos_a2
  14121. +     ULONG    caos_a3
  14122. +     ULONG    caos_a4
  14123. +     ULONG    caos_a5
  14124. +     ULONG    caos_a6
  14125. +     LABEL    caos_SIZE
  14126. + IF_CACHEFLUSHNO        =    0
  14127. + IF_CACHEFLUSHALL    =    1
  14128. + IF_CACHEFLUSHAREA    =    2
  14129. + IF_CACHEINVALIDAREA    =    4
  14130. + IF_ASYNC        =    $10000
  14131. + ;/*
  14132. + ; * Structure which is used on the M68k side to run
  14133. + ; * a Kernel Supervisor ElfObject. During this time
  14134. + ; * the multitasking on the PPC stop
  14135. + ; * Better allocate this struct by PPCAllocMem to get
  14136. + ; * a Cache Line and FPU data alignment which is an
  14137. + ; * automatic effect
  14138. + ; * PPCRunKernelModule() ONLY !!!!!!!!!!!!!!!!!!!!!
  14139. + ; * If you set IF_CACHEASYNC in PPCCacheMode the operation
  14140. + ; * doesn`t return a valid result as it`s asynchron.
  14141. + ; */
  14142. +     STRUCTURE    ModuleArgs,0
  14143. +     ULONG        ma_M68kCacheMode;
  14144. +     APTR        ma_M68kStart;
  14145. +     ULONG        ma_M68kLength;
  14146. +     ULONG        ma_PPCCacheMode;
  14147. +     APTR        ma_PPCStart;
  14148. +     ULONG        ma_PPCLength;
  14149. +     ULONG        ma_Arg1    ;/* Gpr3=C Arg1 */
  14150. +     ULONG        ma_Arg2    ;/* Gpr4=C Arg2  */
  14151. +     ULONG        ma_Arg3    ;/* Gpr5=C Arg3  */
  14152. +     ULONG        ma_Arg4    ;/* Gpr6=C Arg4  */
  14153. +     ULONG        ma_Arg5    ;/* Gpr7=C Arg5  */
  14154. +     ULONG        ma_Arg6    ;/* Gpr8=C Arg6  */
  14155. +     ULONG        ma_Arg7    ;/* Gpr9=C Arg7  */
  14156. +     ULONG        ma_Arg8    ;/* Gpr10=C Arg8 */
  14157. +     DOUBLE        ma_FArg1;/* FPR1=C FPU Arg1 */
  14158. +     DOUBLE        ma_FArg2;/* FPR2=C FPU Arg2 */
  14159. +     DOUBLE        ma_FArg3;/* FPR3=C FPU Arg3 */
  14160. +     DOUBLE        ma_FArg4;/* FPR4=C FPU Arg4 */
  14161. +     DOUBLE        ma_FArg5;/* FPR5=C FPU Arg5 */
  14162. +     DOUBLE        ma_FArg6;/* FPR6=C FPU Arg6 */
  14163. +     DOUBLE        ma_FArg7;/* FPR7=C FPU Arg7 */
  14164. +     DOUBLE        ma_FArg8;/* FPR8=C FPU Arg8 */
  14165. +     LABEL        ModuleArgs_SIZEOF
  14166. +     ENDC
  14167. diff -c2 -d -P -r include_h/powerup/ppclib/memory.h includenew/powerup/ppclib/memory.h
  14168. *** include_h/powerup/ppclib/memory.h    Thu Jan  1 00:00:00 1970
  14169. --- includenew/powerup/ppclib/memory.h    Thu Nov  2 22:27:18 2000
  14170. ***************
  14171. *** 0 ****
  14172. --- 1,58 ----
  14173. + #ifndef POWERUP_PPCLIB_MEMORY_H
  14174. + #define POWERUP_PPCLIB_MEMORY_H
  14175. + /* Allocate Memory with the Pages marked as writethrough
  14176. +    on the PPC. This means the whole memory size which is allocated
  14177. +    is aligned to 4k pages. So you better use Pools.
  14178. +  */
  14179. +    
  14180. + #define MEMF_WRITETHROUGHPPC    (1L<<22)    /* WriteThrough Pools */
  14181. + /* Allocate Memory with the Pages marked as writethrough
  14182. +    on the PPC. This means the whole memory size which is allocated
  14183. +    is aligned to 4k pages. So you better use Pools.
  14184. +    (V46)
  14185. +  */
  14186. +    
  14187. + #define MEMF_WRITETHROUGHM68K    (1L<<23)    /* WriteThrough Pools */
  14188. + /* Allocate Memory with the Pages marked as NOCACHE (not synchronisized)
  14189. +    on the PPC. This means the whole memory size which is allocated
  14190. +    is aligned to 4k pages. So you better use Pools.
  14191. +    (V46)
  14192. +  */
  14193. +    
  14194. + #define MEMF_NOCACHEPPC        (1L<<24)    /* NoCache Pools */
  14195. + /* Allocate Memory with the Pages marked as NOCACHE
  14196. +    on the M68k. This means the whole memory size which is allocated
  14197. +    is aligned to 4k pages. So you better use Pools.
  14198. +    (V46)
  14199. +  */
  14200. + #define MEMF_NOCACHEM68K    (1L<<25)    /* NoCache Pools */
  14201. + /* Allocate Memory with the Pages marked as NOCACHE GUARD(synchronisized)
  14202. +    on the PPC. This means the whole memory size which is allocated
  14203. +    is aligned to 4k pages. So you better use Pools.
  14204. +    (V46)
  14205. +  */
  14206. +    
  14207. + #define MEMF_NOCACHESYNCPPC    (1L<<29)    /* NoCache synchronized Pools */
  14208. + /* Allocate Memory with the Pages marked as NOCACHE synchronisized
  14209. +    on the M68k. This means the whole memory size which is allocated
  14210. +    is aligned to 4k pages. So you better use Pools.
  14211. +  */
  14212. + #define MEMF_NOCACHESYNCM68K    (1L<<30)    /* NoCache synchronized Pools */
  14213. + #define MEMF_PPCMASK        (MEMF_NOCACHEPPC |        \
  14214. +                                  MEMF_NOCACHEM68K |        \
  14215. +                                  MEMF_NOCACHESYNCPPC |        \
  14216. +                                  MEMF_NOCACHESYNCM68K |        \
  14217. +                                  MEMF_WRITETHROUGHPPC |        \
  14218. +                                  MEMF_WRITETHROUGHM68K)
  14219. + #endif
  14220. diff -c2 -d -P -r include_h/powerup/ppclib/message.h includenew/powerup/ppclib/message.h
  14221. *** include_h/powerup/ppclib/message.h    Thu Jan  1 00:00:00 1970
  14222. --- includenew/powerup/ppclib/message.h    Thu Nov  2 22:27:18 2000
  14223. ***************
  14224. *** 0 ****
  14225. --- 1,54 ----
  14226. + #ifndef POWERUP_PPCLIB_MESSAGE_H
  14227. + #define POWERUP_PPCLIB_MESSAGE_H
  14228. + #include <utility/tagitem.h>
  14229. + /* This file should be used under SAS and GCC
  14230. +  */
  14231. + #define    PPCPORTTAG_Dummy    (TAG_USER + 0x24000)
  14232. + #define    PPCPORTTAG_NAME        (PPCPORTTAG_Dummy + 0)
  14233. + #define    PPCPORTTAG_ERROR    (PPCPORTTAG_Dummy + 1)
  14234. + /*
  14235. +  * PPCObtainPort()
  14236. +  */
  14237. + /* To define a different network timeout
  14238. +  * if PPCPORTTAG_MACHINE is used
  14239. +  * Not supported yet
  14240. +  */
  14241. + #define    PPCPORTTAG_TIMEOUT    (PPCPORTTAG_Dummy + 2)
  14242. + /* To define a machine in the network
  14243. +  * Not supported yet
  14244. +  */
  14245. + #define    PPCPORTTAG_MACHINE    (PPCPORTTAG_Dummy + 3)
  14246. + /* Search port on the local processor
  14247. +  * Not supported yet
  14248. +  */
  14249. + #define    PPCPORTTAG_LOCAL    (PPCPORTTAG_Dummy + 4)
  14250. + /* Search port on all processors
  14251. +  * Not supported yet
  14252. +  */
  14253. + #define    PPCPORTTAG_GLOBAL    (PPCPORTTAG_Dummy + 5)
  14254. + #define    PPCMSGTAG_Dummy        (TAG_USER + 0x25000)
  14255. + #define    PPCMSGTAG_DATA        (PPCMSGTAG_Dummy + 0)
  14256. + #define    PPCMSGTAG_DATALENGTH    (PPCMSGTAG_Dummy + 1)
  14257. + #define    PPCMSGTAG_MSGID        (PPCMSGTAG_Dummy + 2)
  14258. + /* Returns NT_REPLYMSG or NT_MESSAGE or NT_FREEMSG */
  14259. + #define    PPCMSGTAG_MSGTYPE    (PPCMSGTAG_Dummy + 3)
  14260. + #define    PPCPORTERROR_OK        0
  14261. + #define    PPCPORTERROR_MEMORY    1
  14262. + #define    PPCPORTERROR_SIGNAL    2
  14263. + #define    PPCPORTERROR_PORTEXISTS    3
  14264. + #define    PPCPORTERROR_NOTFOUND    4
  14265. + #define    PPCPORTERROR_TIMEOUT    5
  14266. + #define    PPCPORTLISTTAG_Dummy        (TAG_USER + 0x26000)
  14267. + #define    PPCPORTLISTTAG_EXTENDEDSIGNALS    (PPCPORTLISTTAG_Dummy + 0)
  14268. + #define    PPCPORTLISTTAG_RECEIVEDSIGNALS    (PPCPORTLISTTAG_Dummy + 1)
  14269. + #endif
  14270. diff -c2 -d -P -r include_h/powerup/ppclib/message.i includenew/powerup/ppclib/message.i
  14271. *** include_h/powerup/ppclib/message.i    Thu Jan  1 00:00:00 1970
  14272. --- includenew/powerup/ppclib/message.i    Thu Nov  2 22:27:18 2000
  14273. ***************
  14274. *** 0 ****
  14275. --- 1,55 ----
  14276. +     IFND POWERUP_PPCLIB_MESSAGE_I
  14277. + POWERUP_PPCLIB_MESSAGE_I    SET    1
  14278. +     include "utility/tagitem.i"
  14279. + ;/* This file should be used under SAS and GCC
  14280. + ; */
  14281. + PPCPORTTAG_Dummy    =    (TAG_USER+$24000)
  14282. + PPCPORTTAG_NAME        =    (PPCPORTTAG_Dummy+0)
  14283. + PPCPORTTAG_ERROR    =    (PPCPORTTAG_Dummy+1)
  14284. + ;/*
  14285. + ; * PPCObtainPort()
  14286. + ; */
  14287. + ;/* To define a different network timeout
  14288. + ; * if PPCPORTTAG_MACHINE is used
  14289. + ; * Not supported yet
  14290. + ; */
  14291. + PPCPORTTAG_TIMEOUT    =    (PPCPORTTAG_Dummy+2)
  14292. + ;/* To define a machine in the network
  14293. + ; * Not supported yet
  14294. + ; */
  14295. + PPCPORTTAG_MACHINE    =    (PPCPORTTAG_Dummy+3)
  14296. + ;/* Search port on the local processor
  14297. + ; * Not supported yet
  14298. + ; */
  14299. + PPCPORTTAG_LOCAL    =    (PPCPORTTAG_Dummy+4)
  14300. + ;/* Search port on all processors
  14301. + ; * Not supported yet
  14302. + ; */
  14303. + PPCPORTTAG_GLOBAL    =    (PPCPORTTAG_Dummy+5)
  14304. + PPCMSGTAG_Dummy        =    (TAG_USER+$25000)
  14305. + PPCMSGTAG_DATA        =    (PPCMSGTAG_Dummy+0)
  14306. + PPCMSGTAG_DATALENGTH    =    (PPCMSGTAG_Dummy+1)
  14307. + PPCMSGTAG_MSGID        =    (PPCMSGTAG_Dummy+2)
  14308. + ;/* Returns NT_REPLYMSG or NT_MESSAGE or NT_FREEMSG */
  14309. + PPCMSGTAG_MSGTYPE    =    (PPCMSGTAG_Dummy+3)
  14310. + PPCPORTERROR_OK        =    0
  14311. + PPCPORTERROR_MEMORY    =    1
  14312. + PPCPORTERROR_SIGNAL    =    2
  14313. + PPCPORTERROR_PORTEXISTS    =    3
  14314. + PPCPORTERROR_NOTFOUND    =    4
  14315. + PPCPORTERROR_TIMEOUT    =    5
  14316. + PPCPORTLISTTAG_Dummy        =    (TAG_USER+$26000)
  14317. + PPCPORTLISTTAG_EXTENDEDSIGNALS    =    (PPCPORTLISTTAG_Dummy+0)
  14318. + PPCPORTLISTTAG_RECEIVEDSIGNALS    =    (PPCPORTLISTTAG_Dummy+1)
  14319. +     ENDC
  14320. diff -c2 -d -P -r include_h/powerup/ppclib/object.h includenew/powerup/ppclib/object.h
  14321. *** include_h/powerup/ppclib/object.h    Thu Jan  1 00:00:00 1970
  14322. --- includenew/powerup/ppclib/object.h    Thu Nov  2 22:27:18 2000
  14323. ***************
  14324. *** 0 ****
  14325. --- 1,254 ----
  14326. + #ifndef POWERUP_PPCLIB_OBJECT_H
  14327. + #define POWERUP_PPCLIB_OBJECT_H
  14328. + /**************************************************
  14329. +  *
  14330. +  *
  14331. +  *              PPCLoadElfObjectTags()
  14332. +  *
  14333. +  *
  14334. +  **************************************************/
  14335. + #define    PPCELFLOADOBJECTTAG_DUMMY    (TAG_USER + 0x23300)
  14336. + /* pointer to a filename of the elf file */
  14337. + #define    PPCELFLOADTAG_ELFNAME        (PPCELFLOADOBJECTTAG_DUMMY + 0x0)
  14338. + /* pointer to the elf stream resident in memory.
  14339. +  * PPCELFLOADTAG_ELFNAME and PPCELFLOADTAG_ELFADDRESS
  14340. +  * are mutually exclusive
  14341. +  */
  14342. + #define    PPCELFLOADTAG_ELFADDRESS    (PPCELFLOADOBJECTTAG_DUMMY + 0x1)
  14343. + /* length of the elf stream. This tag is optional
  14344. +  */
  14345. + #define    PPCELFLOADTAG_ELFLENGTH        (PPCELFLOADOBJECTTAG_DUMMY + 0x2)
  14346. + /* Stream IO Hook
  14347. +  * so you can implement your own loader system
  14348. +  * BOOL CallHookPkt(hook,Handle,&Msg);
  14349. +  *
  14350. +  */
  14351. + #define    PPCELFLOADTAG_HOOK        (PPCELFLOADOBJECTTAG_DUMMY + 0x3)
  14352. + /* Load an ElfObject as a SharedLib Module
  14353. +  * BOOL
  14354. +  */
  14355. + #define    PPCELFLOADTAG_LIBRARY        (PPCELFLOADOBJECTTAG_DUMMY + 0x4)
  14356. + /* File Ptr
  14357. +  * BPTR
  14358. +  */
  14359. + #define    PPCELFLOADTAG_FILE        (PPCELFLOADOBJECTTAG_DUMMY + 0x5)
  14360. + /* pointer to THE name of the elf lib */
  14361. + #define    PPCELFLOADTAG_ELFLIBNAME    (PPCELFLOADOBJECTTAG_DUMMY + 0x6)
  14362. + /* Ask for at least version x of a SharedLib Module
  14363. +  * ULONG
  14364. +  */
  14365. + #define    PPCELFLOADTAG_LIBVERSION    (PPCELFLOADOBJECTTAG_DUMMY + 0x7)
  14366. + /* Ask for at least revision x of a SharedLib Module
  14367. +  * ULONG
  14368. +  */
  14369. + #define    PPCELFLOADTAG_LIBREVISION    (PPCELFLOADOBJECTTAG_DUMMY + 0x8)
  14370. + /* Ask for the specific version of a SharedLib Module
  14371. +  * BOOL
  14372. +  */
  14373. + #define    PPCELFLOADTAG_LIBEXACTVERSION    (PPCELFLOADOBJECTTAG_DUMMY + 0x9)
  14374. + #define    PPCELFLOADTAG_LIBEXACTREVISION    (PPCELFLOADOBJECTTAG_DUMMY + 0xa)
  14375. + struct ElfStreamMsg
  14376. + {
  14377. +     ULONG    Type;
  14378. +     ULONG    Arg1;    /* Open->No Meaning,Close->No Meaning,Read->Address,Seek->Offset */
  14379. +     ULONG    Arg2;    /* Open->No Meaning,Close->No Meaning,Read->Length,Seek->Type */
  14380. + };
  14381. + /* The Result must be a Handle */
  14382. + #define    PPCELFLOADTYPE_OPEN    0
  14383. + /* The Result must be a boolean */
  14384. + #define    PPCELFLOADTYPE_CLOSE    1
  14385. + /* The Result must be the read length or -1 */
  14386. + #define    PPCELFLOADTYPE_READ    2
  14387. + /* The Result must be the old offset or -1 */
  14388. + #define    PPCELFLOADTYPE_SEEK    3
  14389. + /**************************************************
  14390. +  *
  14391. +  *
  14392. +  *              PPCGetElfInfos() Tags
  14393. +  *
  14394. +  *
  14395. +  **************************************************/
  14396. + #define    PPCELFINFOTAG_DUMMY        (TAG_USER + 0x23000)
  14397. + /* Returns the name of an elfobject */
  14398. + #define    PPCELFINFOTAG_NAME        (PPCELFINFOTAG_DUMMY + 0x0)
  14399. + /* Returns infos about a reloc instead of a symbol
  14400. +  * A special PPCSymbolStruct is passed by ti_Data
  14401. +  * which tells if you search for a symbol name
  14402. +  * or wanna find a symbol for a certain address.
  14403. +  * Result=TRUE if the search was successful and then
  14404. +  * the SymbolStruct contains other important infos
  14405. +  */
  14406. + #define    PPCELFINFOTAG_RELOC        (PPCELFINFOTAG_DUMMY + 0x1)
  14407. + /* Set this Boolean if you want the infos global.
  14408. +    Then all Elfobjects are searched.
  14409. +  */
  14410. + #define    PPCELFINFOTAG_GLOBAL        (PPCELFINFOTAG_DUMMY + 0x2)
  14411. + /* Define this Hook if you wanna get informations about every
  14412. +    Symbol in a specific ElfObject or in all.
  14413. +    (ElfObject==NULL || PPCELFINFOTAG_GLOBAL=TRUE)
  14414. +    That`s the way how the PPCGetObjectInfo() calls your hook.
  14415. +    MyInfo contains the passed infos, so you could show all
  14416. +    important symbols or relocs if possible.
  14417. +    CallHookPkt(ScanSymbolHook,
  14418. +                (APTR) ElfSubStructure, // Not really useful
  14419. +                (APTR) MyInfo);
  14420. +  */
  14421. + #define    PPCELFINFOTAG_SCANSYMBOLHOOK    (PPCELFINFOTAG_DUMMY + 0x3)
  14422. + struct    PPCObjectInfo
  14423. + {
  14424. +     ULONG    Address;
  14425. + /* Name of the Object
  14426. +  * If this is set PPCGetElfInfo search for the Name
  14427. +  * Otherwise Address is used to search for an object
  14428. +  */
  14429. +     char    *Name;
  14430. + /* Type of the object
  14431. +  */
  14432. +     ULONG    Type;
  14433. + /* Subtype of the object
  14434. +  * Symbol:
  14435. +  * COMMON=BSS
  14436. +  * FUNCTION
  14437. +  * ...
  14438. +  * Section:
  14439. +  *
  14440. +  * Reloc:
  14441. +  * Relocation Type
  14442. +  */
  14443. +     ULONG    SubType;
  14444. + /* Symbol:
  14445. +  * Local,Global,Weak
  14446. +  * Section:
  14447. +  *
  14448. +  */
  14449. +     ULONG    Binding;
  14450. + /* Size of the object
  14451. +  */
  14452. +     ULONG    Size;
  14453. + };
  14454. + #define    PPCELFINFOTYPE_SECTION        0
  14455. + /* A Symbol whose SubType defines the real
  14456. +    symbol Type and Binding contains the
  14457. +    state of the symbol.
  14458. +  */
  14459. + #define    PPCELFINFOTYPE_SYMBOL        1
  14460. + /* A common section(BSS) symbol whose SubType
  14461. +    defines the real symbol Type and Binding
  14462. +    contains the state of the symbol.
  14463. +  */
  14464. + #define    PPCELFINFOTYPE_COMSYMBOL    2
  14465. + /* A reloc entry is quite simular to a symbol.
  14466. +    It`s only useful to connect certain instruction
  14467. +    addresses with certain symbols where you can`t
  14468. +    calculate the symbol value in an easy way.
  14469. +    i.e 16 bit PPC addressmodes..ADDR16_HI,HA
  14470. +  */
  14471. + #define    PPCELFINFOTYPE_RELOC        3
  14472. + /*------------------------------------------------------------------------*/
  14473. + /*  definition of the symbol types`                                            */
  14474. + /*------------------------------------------------------------------------*/
  14475. + #define    STT_NOTYPE    0
  14476. + #define    STT_OBJECT    1
  14477. + #define    STT_FUNC    2
  14478. + #define    STT_SECTION    3
  14479. + #define    STT_FILE    4
  14480. + #define    STT_LOPROC    13
  14481. + #define    STT_HIPROC    15
  14482. + /*------------------------------------------------------------------------*/
  14483. + /*  definition of the symbol bindings                                        */
  14484. + /*------------------------------------------------------------------------*/
  14485. + #define    STB_LOCAL        0
  14486. + #define    STB_GLOBAL        1
  14487. + #define    STB_WEAK        2
  14488. + #define    STB_LOPROC        13
  14489. + #define    STB_HIPROC        15
  14490. + /*------------------------------------------------------------------------*/
  14491. + /*  definition of the supported elf.rela types                            */
  14492. + /*------------------------------------------------------------------------*/
  14493. + #define  R_PPC_NONE            0
  14494. + #define  R_PPC_ADDR32            1
  14495. + #define  R_PPC_ADDR24            2
  14496. + #define  R_PPC_ADDR16            3
  14497. + #define  R_PPC_ADDR16_L            4
  14498. + #define  R_PPC_ADDR16_HI        5
  14499. + #define  R_PPC_ADDR16_HA        6
  14500. + #define  R_PPC_ADDR14            7
  14501. + #define  R_PPC_ADDR14_BRTAKEN        8
  14502. + #define  R_PPC_ADDR14_BRNTAKEN        9
  14503. + #define  R_PPC_REL24            10
  14504. + #define  R_PPC_REL14            11
  14505. + #define  R_PPC_REL14_BRTAKEN        12
  14506. + #define  R_PPC_REL14_BRNTAKEN        13
  14507. + #define  R_PPC_GOT16            14
  14508. + #define  R_PPC_GOT16_LO            15
  14509. + #define  R_PPC_GOT16_HI            16
  14510. + #define  R_PPC_GOT16_HA            17
  14511. + #define  R_PPC_PLTREL24            18
  14512. + #define  R_PPC_COPY            19
  14513. + #define  R_PPC_GLOB_DAT            20
  14514. + #define  R_PPC_JMP_SLOT            21
  14515. + #define  R_PPC_RELATIVE            22
  14516. + #define  R_PPC_LOCAL24PC        23
  14517. + #define  R_PPC_UADDR32            24
  14518. + #define  R_PPC_UADDR16            25
  14519. + #define  R_PPC_REL32            26
  14520. + #define  R_PPC_PLT32            27
  14521. + #define  R_PPC_PLTREL32            28
  14522. + #define  R_PPC_PLT16_LO            29
  14523. + #define  R_PPC_PLT16_HI            30
  14524. + #define  R_PPC_PLT16_HA            31
  14525. + #define  R_PPC_SDAREL16            32
  14526. + #define  R_PPC_SECTOFF            33
  14527. + #define  R_PPC_SECTOFF_LO        34
  14528. + #define  R_PPC_SECTOFF_HI        35
  14529. + #define  R_PPC_SECTOFF_HA        34
  14530. + #endif
  14531. diff -c2 -d -P -r include_h/powerup/ppclib/ppc.h includenew/powerup/ppclib/ppc.h
  14532. *** include_h/powerup/ppclib/ppc.h    Thu Jan  1 00:00:00 1970
  14533. --- includenew/powerup/ppclib/ppc.h    Thu Nov  2 22:27:18 2000
  14534. ***************
  14535. *** 0 ****
  14536. --- 1,108 ----
  14537. + #ifndef POWERUP_PPCLIB_PPC_H
  14538. + #define POWERUP_PPCLIB_PPC_H
  14539. + #include <utility/tagitem.h>
  14540. + /* PPCGetInfo() Tags */
  14541. + #define    PPCINFOTAG_Dummy        (TAG_USER + 0x1f000)
  14542. + /* Version of the CPU
  14543. +  * (Get)
  14544. +  */
  14545. + #define    PPCINFOTAG_CPU            (PPCINFOTAG_Dummy + 0x1)
  14546. + /* CPU Count
  14547. +  * (Get)
  14548. +  */
  14549. + #define    PPCINFOTAG_CPUCOUNT        (PPCINFOTAG_Dummy + 0x2)
  14550. + /* Clock of the CPU
  14551. +  * (Get)
  14552. +  */
  14553. + #define    PPCINFOTAG_CPUCLOCK        (PPCINFOTAG_Dummy + 0x3)
  14554. + /* Revision of the CPU
  14555. +  * (Get)
  14556. +  */
  14557. + #define    PPCINFOTAG_CPUREV        (PPCINFOTAG_Dummy + 0x4)
  14558. + /* Default ExceptionHook
  14559. +  * If you want to install an ExceptionHook
  14560. +  * to catch all exceptions by a debugger for example
  14561. +  * (Get/Set)
  14562. +  */
  14563. + #define    PPCINFOTAG_EXCEPTIONHOOK    (PPCINFOTAG_Dummy + 0x5)
  14564. + /* Add PPCCreateTask Hook (V45)
  14565. +  * If you want to be notified when a new PPC Task
  14566. +  * is created. Usable for a debugger or a Task Viewer.
  14567. +  *
  14568. +  * BOOL CallHookPkt(YourHookHook, TaskObject, TaskHookMsg);
  14569. +  *
  14570. +  * If you want to install a new TrapHandler you can do it
  14571. +  * now in your Hook function. Or tell the Task to stop at the
  14572. +  * first instruction.
  14573. +  * The PPC Task is initiated after all Hook functions complete.
  14574. +  * The result defines if potential hooks should not be called.
  14575. +  * If you return TRUE no other hooks are called.
  14576. +  * (Set)
  14577. +  */
  14578. + #define    PPCINFOTAG_TASKHOOK    (PPCINFOTAG_Dummy + 0x6)
  14579. + /* Remove a TaskHook (V45)
  14580. +  * (Set)
  14581. +  */
  14582. + #define    PPCINFOTAG_REMTASKHOOK    (PPCINFOTAG_Dummy + 0x7)
  14583. + /* PLL Devider of the CPU (V45)
  14584. +  * (Get)
  14585. +  */
  14586. + #define    PPCINFOTAG_CPUPLL    (PPCINFOTAG_Dummy + 0x8)
  14587. + struct TaskHookMsg_Create
  14588. + {
  14589. +     ULONG        MethodID;
  14590. +     ULONG        Version;
  14591. +     void        *ElfObject;
  14592. +     struct TagItem    *Tags;
  14593. + };
  14594. + struct TaskHookMsg_Delete
  14595. + {
  14596. +     ULONG        MethodID;
  14597. +     ULONG        Version;
  14598. + };
  14599. + struct TaskHookMsg_Get
  14600. + {
  14601. +     ULONG        MethodID;
  14602. +     ULONG        Version;
  14603. +     struct TagItem    *Tags;
  14604. + };
  14605. + struct TaskHookMsg_Set
  14606. + {
  14607. +     ULONG        MethodID;
  14608. +     ULONG        Version;
  14609. +     struct TagItem    *Tags;
  14610. + };
  14611. + #define    PPCTASKHOOKMETHOD_CREATE    0
  14612. + #define    PPCTASKHOOKMETHOD_DELETE    1
  14613. + #define    PPCTASKHOOKMETHOD_GET        2
  14614. + #define    PPCTASKHOOKMETHOD_SET        3
  14615. + /* Current known PowerPC CPU versions */
  14616. + #define    CPU_603        3
  14617. + #define    CPU_604        4
  14618. + #define    CPU_602        5
  14619. + #define    CPU_603e    6
  14620. + #define    CPU_603p    7
  14621. + #define    CPU_604e    9
  14622. + #endif
  14623. diff -c2 -d -P -r include_h/powerup/ppclib/ppc.i includenew/powerup/ppclib/ppc.i
  14624. *** include_h/powerup/ppclib/ppc.i    Thu Jan  1 00:00:00 1970
  14625. --- includenew/powerup/ppclib/ppc.i    Thu Nov  2 22:27:18 2000
  14626. ***************
  14627. *** 0 ****
  14628. --- 1,102 ----
  14629. +     IFND POWERUP_PPCLIB_PPC_I
  14630. + POWERUP_PPCLIB_PPC_I    SET    1
  14631. +     include "utility/tagitem.i"
  14632. + ;/* PPCGetInfo() Tags */
  14633. + PPCINFOTAG_Dummy    =    (TAG_USER+$1f000)
  14634. + ;/* Version of the CPU
  14635. + ; * (Get)
  14636. + ; */
  14637. + PPCINFOTAG_CPU        =    (PPCINFOTAG_Dummy+$1)
  14638. + ;/* CPU Count
  14639. + ; * (Get)
  14640. + ; */
  14641. + PPCINFOTAG_CPUCOUNT    =    (PPCINFOTAG_Dummy+$2)
  14642. + ;/* Clock of the CPU
  14643. + ; * (Get)
  14644. + ; */
  14645. + PPCINFOTAG_CPUCLOCK    =    (PPCINFOTAG_Dummy+$3)
  14646. + ;/* Revision of the CPU
  14647. + ; * (Get)
  14648. + ; */
  14649. + PPCINFOTAG_CPUREV    =    (PPCINFOTAG_Dummy+$4)
  14650. + ;/* Default ExceptionHook
  14651. + ; * If you want to install an ExceptionHook
  14652. + ; * to catch all exceptions by a debugger for example
  14653. + ; * (Get/Set)
  14654. + ; */
  14655. + ; */
  14656. + PPCINFOTAG_EXCEPTIONHOOK=    (PPCINFOTAG_Dummy+$5)
  14657. + ;/* Add PPCCreateTask Hook (V45)
  14658. + ; * If you want to be notified when a new PPC Task
  14659. + ; * is created. Usable for a debugger or a Task Viewer.
  14660. + ; *
  14661. + ; * BOOL CallHookPkt(DeleteTaskHook, MyTaskObject, TaskHookMsg);
  14662. + ; *
  14663. + ; * If you want to install a new TrapHandler you can do it
  14664. + ; * now in your Hook function. Or tell the Task to stop at the
  14665. + ; * first instruction.
  14666. + ; * The PPC Task is initiated after all Hook functions complete.
  14667. + ; * The result defines if potential hooks should not be called.
  14668. + ; * If you return TRUE no other hooks are called.
  14669. + ; * (Set)
  14670. + ; */
  14671. + PPCINFOTAG_TASKHOOK=    (PPCINFOTAG_Dummy+$6)
  14672. + ;/* Remove a TaskHook (V45)
  14673. + ; * (Set)
  14674. + ; */
  14675. + PPCINFOTAG_REMTASKHOOK=    (PPCINFOTAG_Dummy+$7)
  14676. + ;/* PLL Devider of the CPU (V45)
  14677. + ; * (Get)
  14678. + ; */
  14679. + PPCINFOTAG_CPUPLL    =    (PPCINFOTAG_Dummy+$8)
  14680. +     STRUCTURE    TaskHookMsg_Create,0
  14681. +     ULONG        mc_MethodID
  14682. +     ULONG        mc_Version
  14683. +     APTR        mc_ElfObject
  14684. +     APTR        mc_Tags
  14685. +     LABEL        TaskHookMsg_Create_SIZEOF
  14686. +     STRUCTURE    TaskHookMsg_Delete,0
  14687. +     ULONG        md_MethodID
  14688. +     ULONG        md_Version
  14689. +     LABEL        TaskHookMsg_Delete_SIZEOF
  14690. +     STRUCTURE    TaskHookMsg_Get,0
  14691. +     ULONG        mg_MethodID
  14692. +     ULONG        mg_Version
  14693. +     APTR        mg_Tags
  14694. +     LABEL        TaskHookMsg_Get_SIZEOF
  14695. +     STRUCTURE    TaskHookMsg_Set,0
  14696. +     ULONG        ms_MethodID
  14697. +     ULONG        ms_Version
  14698. +     APTR        ms_Tags
  14699. +     LABEL        TaskHookMsg_Set_SIZEOF
  14700. + PPCTASKHOOKMETHOD_CREATE    =    0
  14701. + PPCTASKHOOKMETHOD_DELETE    =    1
  14702. + PPCTASKHOOKMETHOD_GET        =    2
  14703. + PPCTASKHOOKMETHOD_SET        =    3
  14704. + ;/* Current known PowerPC CPU versions */
  14705. + CPU_603        =    3
  14706. + CPU_604        =    4
  14707. + CPU_602        =    5
  14708. + CPU_603e    =    6
  14709. + CPU_603p    =    7
  14710. + CPU_604e    =    9
  14711. +     ENDC
  14712. diff -c2 -d -P -r include_h/powerup/ppclib/semaphore.h includenew/powerup/ppclib/semaphore.h
  14713. *** include_h/powerup/ppclib/semaphore.h    Thu Jan  1 00:00:00 1970
  14714. --- includenew/powerup/ppclib/semaphore.h    Thu Nov  2 22:27:18 2000
  14715. ***************
  14716. *** 0 ****
  14717. --- 1,23 ----
  14718. + #ifndef POWERUP_PPCLIB_SEMAPHORE_H
  14719. + #define POWERUP_PPCLIB_SEMAPHORE_H
  14720. + #include <utility/tagitem.h>
  14721. + #define    PPCSEMAPHORETAG_BASE    (TAG_USER + 0x25000)
  14722. + /* Sets the Name for the Semaphore and automaticly adds the Semaphore to
  14723. +    the public List
  14724. +  */
  14725. + #define    PPCSEMAPHORETAG_NAME    (PPCSEMAPHORETAG_BASE+0)
  14726. + #define    PPCSEMAPHORETAG_ERROR    (PPCSEMAPHORETAG_BASE+1)
  14727. + #define    PPCSEMAPHOREERROR_OK        0
  14728. + #define    PPCSEMAPHOREERROR_MEMORY    1
  14729. + #define    PPCSEMAPHOREERROR_ALREDYEXISTS    2
  14730. + #define    PPCSEMAPHOREERROR_NOTFOUND    3
  14731. + #define    PPCSEMAPHOREERROR_OBTAINED    4
  14732. + #define    PPCSEMAPHOREERROR_NONAME    5
  14733. + #endif
  14734. diff -c2 -d -P -r include_h/powerup/ppclib/semaphore.i includenew/powerup/ppclib/semaphore.i
  14735. *** include_h/powerup/ppclib/semaphore.i    Thu Jan  1 00:00:00 1970
  14736. --- includenew/powerup/ppclib/semaphore.i    Thu Nov  2 22:27:18 2000
  14737. ***************
  14738. *** 0 ****
  14739. --- 1,24 ----
  14740. +     IFND POWERUP_PPCLIB_SEMAPHORE_I
  14741. + POWERUP_PPCLIB_SEMAPHORE_I    SET    1
  14742. +     include "utility/tagitem.i"
  14743. + PPCSEMAPHORETAG_BASE        =    (TAG_USER+$25000)
  14744. + ;/* Sets the Name for the Semaphore and automaticly adds the Semaphore to
  14745. + ;   the public List
  14746. + ; */
  14747. + PPCSEMAPHORETAG_NAME        =    (PPCSEMAPHORETAG_BASE+0)
  14748. + PPCSEMAPHORETAG_ERROR        =    (PPCSEMAPHORETAG_BASE+1)
  14749. + PPCSEMAPHOREERROR_OK        =    0
  14750. + PPCSEMAPHOREERROR_MEMORY    =    1
  14751. + PPCSEMAPHOREERROR_ALREDYEXISTS    =    2
  14752. + PPCSEMAPHOREERROR_NOTFOUND    =    3
  14753. + PPCSEMAPHOREERROR_OBTAINED    =    4
  14754. + PPCSEMAPHOREERROR_NONAME    =    5
  14755. +     ENDC
  14756. diff -c2 -d -P -r include_h/powerup/ppclib/tasks.h includenew/powerup/ppclib/tasks.h
  14757. *** include_h/powerup/ppclib/tasks.h    Thu Jan  1 00:00:00 1970
  14758. --- includenew/powerup/ppclib/tasks.h    Thu Nov  2 22:27:18 2000
  14759. ***************
  14760. *** 0 ****
  14761. --- 1,556 ----
  14762. + #ifndef POWERUP_PPCLIB_TASKS_H
  14763. + #define POWERUP_PPCLIB_TASKS_H
  14764. + /**************************************************
  14765. +  *
  14766. +  *
  14767. +  *              PPCCreateTask() Tags
  14768. +  *
  14769. +  *
  14770. +  **************************************************/
  14771. + #define    PPCTASKTAG_DUMMY    (TAG_USER + 0x20000)
  14772. + /* ElfObject which discribes the PPC program
  14773. +  * Needed to start one.
  14774. +  */
  14775. + #define    PPCTASKTAG_ELFOBJECT    (PPCTASKTAG_DUMMY + 0x1)
  14776. + /* Name of the new Task. */
  14777. + #define    PPCTASKTAG_NAME        (PPCTASKTAG_DUMMY + 0x2)
  14778. + /* First Argument..gpr3 */
  14779. + #define    PPCTASKTAG_ARG1        (PPCTASKTAG_DUMMY + 0x3)
  14780. + /* First Argument..gpr4 */
  14781. + #define    PPCTASKTAG_ARG2        (PPCTASKTAG_DUMMY + 0x4)
  14782. + /* First Argument..gpr5 */
  14783. + #define    PPCTASKTAG_ARG3        (PPCTASKTAG_DUMMY + 0x5)
  14784. + /* First Argument..gpr6 */
  14785. + #define    PPCTASKTAG_ARG4        (PPCTASKTAG_DUMMY + 0x6)
  14786. + /* First Argument..gpr7 */
  14787. + #define    PPCTASKTAG_ARG5        (PPCTASKTAG_DUMMY + 0x7)
  14788. + /* First Argument..gpr8 */
  14789. + #define    PPCTASKTAG_ARG6        (PPCTASKTAG_DUMMY + 0x8)
  14790. + /* First Argument..gpr9 */
  14791. + #define    PPCTASKTAG_ARG7        (PPCTASKTAG_DUMMY + 0x9)
  14792. + /* First Argument..gpr10 */
  14793. + #define    PPCTASKTAG_ARG8        (PPCTASKTAG_DUMMY + 0xa)
  14794. + /* Default=TRUE means that the cacheflush is handled automaticly
  14795. +  * You need cacheflushs when you use OS functions to share data.
  14796. +  * If you know it better than the stupid cacheflush routine you
  14797. +  * can handle that yourself and optimize your routines.
  14798. +  */
  14799. + #define    PPCTASKTAG_CACHEFLUSH    (PPCTASKTAG_DUMMY + 0xb)
  14800. + /* Ptr to an ULONG Errorfield where a better error description
  14801. +  * can be stored.
  14802. +  */
  14803. + #define    PPCTASKTAG_ERROR    (PPCTASKTAG_DUMMY + 0xc)
  14804. + /* PPC Stacksize...Default 8192
  14805. +  * Supported by PowerUP's PPCGetTaskAttr() (V45)
  14806. +  */
  14807. + #define    PPCTASKTAG_STACKSIZE    (PPCTASKTAG_DUMMY + 0xd)
  14808. + /* Task Priority..Default 0 */
  14809. + #define    PPCTASKTAG_PRIORITY    (PPCTASKTAG_DUMMY + 0xe)
  14810. + /* Input Handle..Default Open("Nil:")
  14811. +  * The handle is closed when the PPC task completes
  14812. +  */
  14813. + #define    PPCTASKTAG_INPUTHANDLE    (PPCTASKTAG_DUMMY + 0xf)
  14814. + /* Output Handle..Default Open("Nil:")
  14815. +  * The handle is closed when the PPC task completes
  14816. +  */
  14817. + #define    PPCTASKTAG_OUTPUTHANDLE    (PPCTASKTAG_DUMMY + 0x10)
  14818. + /* Error Handle..Default Open("Nil:")
  14819. +  * The handle is closed when the PPC task completes
  14820. +  */
  14821. + #define    PPCTASKTAG_ERRORHANDLE    (PPCTASKTAG_DUMMY + 0x11)
  14822. + /*
  14823. +  * When you set this Tag the Task is stopped
  14824. +  * before the first instruction is executed
  14825. +  * Only useful for debuggers
  14826. +  */
  14827. + #define    PPCTASKTAG_STOPTASK    (PPCTASKTAG_DUMMY + 0x12)
  14828. + /* ExceptionHook
  14829. +  * The M68k Hook is called when a PPC TaskObject gets an
  14830. +  * exception which can be processor or software(Kernel Msg)
  14831. +  * related.
  14832. +  * That`s the way the ppc.library calls the Hook:
  14833. +  *
  14834. +  * BOOL CallHookPkt(hook,TaskObject,ExceptionMsg);
  14835. +  *
  14836. +  * The Hook Function is NOT allowed to call PPCLibBase
  14837. +  * functions to avoid deadlocks.
  14838. +  * And after the Hook function returns the ExceptionMsg
  14839. +  * contents IS NOT valid anymore.
  14840. +  * So you should copy the ExceptionMsg contents to a private
  14841. +  * buffer and then signal your debugger control task about
  14842. +  * the event.
  14843. +  * The Hook return BOOL should tell the ppc.library if all
  14844. +  * worked fine.
  14845. +  */
  14846. + #define    PPCTASKTAG_EXCEPTIONHOOK    (PPCTASKTAG_DUMMY + 0x13)
  14847. + /* If you want that the PPCTask gets a MsgPort you can tell
  14848. +  * PPCCreateTask by a TRUE that you want one.
  14849. +  * I made this optional because it may cause an initial speed
  14850. +  * loss if you only need a ppc task for a quick run job where
  14851. +  * the init latency may be a serious issue.
  14852. +  * Supported by PowerUP's PPCGetTaskAttr()
  14853. +  */
  14854. + #define    PPCTASKTAG_MSGPORT        (PPCTASKTAG_DUMMY + 0x14)
  14855. + /* If you wanna provide the ppc a startup msg. This msg will
  14856. +  * be replied by the ppc.library after the PPC Task ends so
  14857. +  * you can use this to know that the PPCTask is gone so a
  14858. +  * PPCUnloadObject() is save now.
  14859. +  * Supported by PowerUP's PPCGetTaskAttr()
  14860. +  */
  14861. + #define    PPCTASKTAG_STARTUP_MSG        (PPCTASKTAG_DUMMY + 0x15)
  14862. + /* The Data field for the PPCMessage
  14863. +  * Supported by PowerUP's PPCGetTaskAttr()
  14864. +  */
  14865. + #define    PPCTASKTAG_STARTUP_MSGDATA    (PPCTASKTAG_DUMMY + 0x16)
  14866. + /* The Length field for the PPCMessage
  14867. +  * Supported by PowerUP's PPCGetTaskAttr()
  14868. +  */
  14869. + #define    PPCTASKTAG_STARTUP_MSGLENGTH    (PPCTASKTAG_DUMMY + 0x17)
  14870. + /* The MsgID field for the PPCMessage
  14871. +  * Supported by PowerUP's PPCGetTaskAttr()
  14872. +  */
  14873. + #define    PPCTASKTAG_STARTUP_MSGID    (PPCTASKTAG_DUMMY + 0x18)
  14874. + /* The flag to activate the CTRL-C;D;E;F gateway to
  14875. +  * the PPC Task by PPCSignalTask();
  14876. +  */
  14877. + #define    PPCTASKTAG_BREAKSIGNAL        (PPCTASKTAG_DUMMY + 0x19)
  14878. + /* The CPU number the task should start on.
  14879. +  * This is only a hint and no gurantee.
  14880. +  */
  14881. + #define    PPCTASKTAG_CPUHINT        (PPCTASKTAG_DUMMY + 0x1a)
  14882. + /* Ptr to ixemul UserData
  14883. +  * ONLY supported by PowerUP's PPCGetTaskAttr(),PPCSetTaskAttr()
  14884. +  */
  14885. + #define    PPCTASKTAG_EXTUSERDATA        (PPCTASKTAG_DUMMY + 0x1b)
  14886. + /* Run Task Synchron Flag which means that the PPCCreateTask
  14887. +  * doesn`t return until the task completes and the return
  14888. +  * value is not the TaskObject but the Task`s return value.
  14889. +  * To check if the task runned correctly check out the
  14890. +  * PPCTASKTAG_ERROR fieldptr.
  14891. +  * With this Tag you can do the same what the old RunTaskObject
  14892. +  * does which interface is a bit limited(compatibility to the
  14893. +  * first ppc.library version)
  14894. +  */
  14895. + #define    PPCTASKTAG_WAITFINISH    (PPCTASKTAG_DUMMY + 0x31)
  14896. + /* 
  14897. +  * PPCTASKTAG_ERROR types
  14898. +  */
  14899. + #define    ERROR_OK        0
  14900. + #define    ERROR_MEMORY        1
  14901. + #define    ERROR_NOPC        2
  14902. + #define    ERROR_CREATEMSGINTASK    3
  14903. + #define    ERROR_INPUTHANDLE    4
  14904. + #define    ERROR_OUTPUTHANDLE    5
  14905. + #define    ERROR_ERRORHANDLE    6
  14906. + /**************************************************
  14907. +  *
  14908. +  *
  14909. +  * PPCGetTaskAttrs(), PPCSetTaskAttrs() Tags
  14910. +  *
  14911. +  *
  14912. +  **************************************************/
  14913. + /*
  14914. +  * V45 adds the ti_Data data Set/Get passing if it`s possible
  14915. +  */
  14916. + #define    PPCTASKINFOTAG_DUMMY        (TAG_USER + 0x21000)
  14917. + /* (Get) */
  14918. + #define    PPCTASKINFOTAG_NAME        (PPCTASKINFOTAG_DUMMY + 0x1)
  14919. + /* (Get/Set) */
  14920. + #define    PPCTASKINFOTAG_PRIORITY        (PPCTASKINFOTAG_DUMMY + 0x2)
  14921. + /* (Get/Set) */
  14922. + #define    PPCTASKINFOTAG_CACHEFLUSH    (PPCTASKINFOTAG_DUMMY + 0x3)
  14923. + /* (Get) */
  14924. + #define    PPCTASKINFOTAG_STACKSIZE    (PPCTASKINFOTAG_DUMMY + 0x4)
  14925. + /* (Get) */
  14926. + #define    PPCTASKINFOTAG_STATE        (PPCTASKINFOTAG_DUMMY + 0x5)
  14927. + /* (Get/Set) */
  14928. + #define    PPCTASKINFOTAG_TASK        (PPCTASKINFOTAG_DUMMY + 0x6)
  14929. + /* This means the HOOK function is called for every Task */
  14930. + #define    PPCTASKINFOTAG_ALLTASK        (PPCTASKINFOTAG_DUMMY + 0x7)
  14931. + /* Hook function which is called for a task so you can ask special fields
  14932. +  * you may want to use.
  14933. +  * Msg Parameter is NULL for now.
  14934. +  * Object Parameter is the TaskObject
  14935. +  *
  14936. +  *    HookFunc(Hook, TaskObject, NULL)
  14937. +  */
  14938. + #define    PPCTASKINFOTAG_HOOK        (PPCTASKINFOTAG_DUMMY + 0x8)
  14939. + /* (Get) */
  14940. + #define    PPCTASKINFOTAG_SIGALLOC        (PPCTASKINFOTAG_DUMMY + 0x9)
  14941. + /* (Get) */
  14942. + #define    PPCTASKINFOTAG_SIGWAIT        (PPCTASKINFOTAG_DUMMY + 0xa)
  14943. + /* (Get) */
  14944. + #define    PPCTASKINFOTAG_SIGRECVD        (PPCTASKINFOTAG_DUMMY + 0xb)
  14945. + /* (Get) */
  14946. + #define    PPCTASKINFOTAG_USEDSTACKSIZE    (PPCTASKINFOTAG_DUMMY + 0xc)
  14947. + /* (Get/Set) */
  14948. + #define    PPCTASKINFOTAG_INPUTHANDLE    (PPCTASKINFOTAG_DUMMY + 0xd)
  14949. + /* (Get/Set) */
  14950. + #define    PPCTASKINFOTAG_OUTPUTHANDLE    (PPCTASKINFOTAG_DUMMY + 0xe)
  14951. + /* (Get/Set) */
  14952. + #define    PPCTASKINFOTAG_ERRORHANDLE    (PPCTASKINFOTAG_DUMMY + 0xf)
  14953. + /* Return the ElfObject of a Task
  14954. +  * (Get)
  14955. +  * (V45)
  14956. +  */
  14957. + #define    PPCTASKINFOTAG_ELFOBJECT    (PPCTASKINFOTAG_DUMMY + 0x10)
  14958. + /* See equal PPCTASKTAG_EXCEPTIONHOOK
  14959. +  * (V45)
  14960. +  * (Set)
  14961. +  */
  14962. + #define    PPCTASKINFOTAG_EXCEPTIONHOOK        (PPCTASKINFOTAG_DUMMY + 0x11)
  14963. + /* Tell the task to stop at the first instruction.
  14964. +  * Only allowed to be used when you get a TaskHookMsg
  14965. +  * with the MethodID PPCTASKHOOKMETHOD_CREATE.
  14966. +  * It must not be called while a PPC Task runs.
  14967. +  * (V45)
  14968. +  * (Set)
  14969. +  */
  14970. + #define    PPCTASKINFOTAG_STOPTASK            (PPCTASKINFOTAG_DUMMY + 0x12)
  14971. + /* See equal PPCTASKTAG_MSGPORT
  14972. +  * (V45)
  14973. +  */
  14974. + #define    PPCTASKINFOTAG_MSGPORT            (PPCTASKINFOTAG_DUMMY + 0x13)
  14975. + /* See equal PPCTASKTAG_STARTUP_MSG
  14976. +  * (V45)
  14977. +  */
  14978. + #define    PPCTASKINFOTAG_STARTUP_MSG        (PPCTASKINFOTAG_DUMMY + 0x14)
  14979. + /* See equal PPCTASKTAG_STARTUP_MSGDATA
  14980. +  * (V45)
  14981. +  */
  14982. + #define    PPCTASKINFOTAG_STARTUP_MSGDATA        (PPCTASKINFOTAG_DUMMY + 0x15)
  14983. + /* See equal PPCTASKTAG_STARTUP_MSGLENGTH
  14984. +  * (V45)
  14985. +  */
  14986. + #define    PPCTASKINFOTAG_STARTUP_MSGLENGTH    (PPCTASKINFOTAG_DUMMY + 0x16)
  14987. + /* See equal PPCTASKTAG_STARTUP_MSGID
  14988. +  * (V45)
  14989. +  */
  14990. + #define    PPCTASKINFOTAG_STARTUP_MSGID        (PPCTASKINFOTAG_DUMMY + 0x17)
  14991. + /*
  14992. +  * All Register Tags only accept Ptrs at ti_Data so I don`t have to
  14993. +  * change the API when there`s a 64Bit PPC some time.
  14994. +  */
  14995. + /* SRR0=PC
  14996. +  * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  14997. +  * (Get/Set)
  14998. +  */
  14999. + #define    PPCTASKINFOTAG_PC        (PPCTASKINFOTAG_DUMMY + 0x20)
  15000. + /* SRR1=MSR
  15001. +  * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15002. +  * (Get/Set)
  15003. +  */
  15004. + #define    PPCTASKINFOTAG_MSR        (PPCTASKINFOTAG_DUMMY + 0x21)
  15005. + /* 32bit value in function Result
  15006. +  * Get/Set through ti_Data
  15007. +  * (Get/Set)
  15008. +  */
  15009. + #define    PPCTASKINFOTAG_CR        (PPCTASKINFOTAG_DUMMY + 0x22)
  15010. + /* 32bit value in function Result
  15011. +  * Get/Set through ti_Data
  15012. +  * (Get/Set)
  15013. +  */
  15014. + #define    PPCTASKINFOTAG_XER        (PPCTASKINFOTAG_DUMMY + 0x23)
  15015. + /* Result by PPCTASKINFOTAG_VALUEPTR
  15016. +  * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15017. +  * (Get/Set)
  15018. +  */
  15019. + #define    PPCTASKINFOTAG_LR        (PPCTASKINFOTAG_DUMMY + 0x24)
  15020. + /* Result by PPCTASKINFOTAG_VALUEPTR
  15021. +  * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15022. +  * (Get/Set)
  15023. +  */
  15024. + #define    PPCTASKINFOTAG_CTR        (PPCTASKINFOTAG_DUMMY + 0x25)
  15025. + /* Result by PPCTASKINFOTAG_VALUEPTR
  15026. +  * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15027. +  * (Get/Set)
  15028. +  */
  15029. + #define    PPCTASKINFOTAG_FPSCR        (PPCTASKINFOTAG_DUMMY + 0x26)
  15030. + /* ti_Data=Register Number
  15031. +  * Get/Set through PPCTASKINFOTAG_VALUEPTR
  15032. +  * (Get/Set)
  15033. +  */
  15034. + #define    PPCTASKINFOTAG_GPR        (PPCTASKINFOTAG_DUMMY + 0x30)
  15035. + /* ti_Data=Register Number
  15036. +  * Get/Set through PPCTASKINFOTAG_VALUEPTR
  15037. +  * (Get/Set)
  15038. +  */
  15039. + #define    PPCTASKINFOTAG_FPR        (PPCTASKINFOTAG_DUMMY + 0x31)
  15040. + /* Address where to read/write the register value from.
  15041. +  * I use a ptr to be size indepent with the registers
  15042. +  * (Get/Set)
  15043. +  */
  15044. + #define    PPCTASKINFOTAG_VALUEPTR        (PPCTASKINFOTAG_DUMMY + 0x32)
  15045. + /* With PPCTASKINFOTAG_WAITFINISHTASK
  15046. +  * it returns the parent process in which you created
  15047. +  * a synchron PPC Task. Synchron PPC Task`s are created
  15048. +  * with the PPCTASKTAG_WAITINFISH,TRUE or outdated a
  15049. +  * PPCRunObject.
  15050. +  * The reason for this function is to find the shell
  15051. +  * task easily and check for a CTRL-C for example.
  15052. +  * (Get)
  15053. +  * (V45)
  15054. +  */
  15055. + #define    PPCTASKINFOTAG_WAITFINISHTASK    (PPCTASKTAG_DUMMY + 0x33)
  15056. + /**************************************************
  15057. +  *
  15058. +  *
  15059. +  *           TaskObject ExceptionHook
  15060. +  *
  15061. +  *
  15062. +  **************************************************/
  15063. + struct    ExceptionMsg
  15064. + {
  15065. +     ULONG            Version;
  15066. +     ULONG            Type;
  15067. +     ULONG            GPR[32];
  15068. +     DOUBLE            FPR[32];
  15069. +     ULONG            SR[16];
  15070. +     ULONG            CR;
  15071. +     DOUBLE            FPSCR;
  15072. +     ULONG            XER;
  15073. +     ULONG            LR;
  15074. +     ULONG            CTR;
  15075. +     ULONG            PVR;
  15076. +     ULONG            IBAT0U;
  15077. +     ULONG            IBAT0L;
  15078. +     ULONG            IBAT1U;
  15079. +     ULONG            IBAT1L;
  15080. +     ULONG            IBAT2U;
  15081. +     ULONG            IBAT2L;
  15082. +     ULONG            IBAT3U;
  15083. +     ULONG            IBAT3L;
  15084. +     ULONG            DBAT0U;
  15085. +     ULONG            DBAT0L;
  15086. +     ULONG            DBAT1U;
  15087. +     ULONG            DBAT1L;
  15088. +     ULONG            DBAT2U;
  15089. +     ULONG            DBAT2L;
  15090. +     ULONG            DBAT3U;
  15091. +     ULONG            DBAT3L;
  15092. +     ULONG            SDR1;
  15093. +     ULONG            ASR;
  15094. +     ULONG            DAR;
  15095. +     ULONG            DSISR;
  15096. +     ULONG            SRR0;
  15097. +     ULONG            SRR1;
  15098. +     ULONG            SPRG0;
  15099. +     ULONG            SPRG1;
  15100. +     ULONG            SPRG2;
  15101. +     ULONG            SPRG3;
  15102. +     ULONG            TBL;
  15103. +     ULONG            TBU;
  15104. +     ULONG            DEC;
  15105. +     ULONG            DABR;
  15106. +     /* 603 special registers */
  15107. +     ULONG            DMISS;
  15108. +     ULONG            DCMP;
  15109. +     ULONG            HASH1;
  15110. +     ULONG            HASH2;
  15111. +     ULONG            IMISS;
  15112. +     ULONG            ICMP;
  15113. +     ULONG            RPA;
  15114. +     /* 604e special registers */
  15115. +     /* Version 0 ends here */
  15116. +     ULONG            MSR;
  15117. +     /* Version 1 ends here */
  15118. +     /* Size depends on Version */
  15119. + };
  15120. + /* Current supported Version
  15121. +  */
  15122. + #define    EXCEPTIONMSG_VERSION    1
  15123. + /*
  15124. +  * Current supported Types
  15125. +  */
  15126. + /*
  15127. +  * These are the processor exceptions
  15128. +  */
  15129. + #define    EXCEPTION_UNKNOWN        0    /* Won`t happen */
  15130. + #define    EXCEPTION_RESET            1    /* Won`t happen */
  15131. + #define    EXCEPTION_MACHINECHECK        2    /* Won`t happen */
  15132. + #define    EXCEPTION_DATAACCESS        3
  15133. + #define    EXCEPTION_INSTRUCTIONACCESS    4
  15134. + #define    EXCEPTION_EXTERNALINTERRUPT    5    /* Won`t happen */
  15135. + #define    EXCEPTION_ALIGNMENT        6
  15136. + #define    EXCEPTION_PROGRAM        7
  15137. + #define    EXCEPTION_FPUUNAVAILABLE    8
  15138. + #define    EXCEPTION_DECREMENTER        9
  15139. + #define    EXCEPTION_INTERFACEERROR    10
  15140. + #define    EXCEPTION_RESERVED_B        11
  15141. + #define    EXCEPTION_SYSTEMCALL        12
  15142. + #define    EXCEPTION_TRACE            13
  15143. + #define    EXCEPTION_FPUASSIST        14
  15144. + #define    EXCEPTION_RESERVED_F        15
  15145. + #define    EXCEPTION_IMISS            16
  15146. + #define    EXCEPTION_DLOADMISS        17
  15147. + #define    EXCEPTION_DSTOREMISS        18
  15148. + #define    EXCEPTION_IADDRESSBREAK        19
  15149. + #define    EXCEPTION_SYSTEMMANAGEMENTINT    20
  15150. + /*
  15151. +  * These are the kernel exceptions
  15152. +  * to signal certain events
  15153. +  */
  15154. + #define    EXCEPTION_MSG            0x80000000
  15155. + /*
  15156. +  * You receive this exception type
  15157. +  * when the Kernel could stop a Task
  15158. +  * successfully after a Stop or Trace
  15159. +  * operation.
  15160. +  * Look at PPCTASKTAG_STOPTASK for example
  15161. +  */
  15162. + #define    EXCEPTION_STOPTASK        (EXCEPTION_MSG + 0x0)
  15163. + /*
  15164. +  * You receive this exception type
  15165. +  * when the task completes.
  15166. +  * In this case the ONLY valid fields in the
  15167. +  * ExceptionMsg are the Version field and the
  15168. +  * the Message type.
  15169. +  */
  15170. + #define    EXCEPTION_FINISHTASK        (EXCEPTION_MSG + 0x1)
  15171. + /**************************************************
  15172. +  *
  15173. +  *
  15174. +  *              PPCStartTask() Tags
  15175. +  *
  15176. +  *
  15177. +  **************************************************/
  15178. + #define    PPCTASKSTARTTAG_DUMMY        (TAG_USER + 0x22000)
  15179. + /* Just run a Task again
  15180. +  * ti_Data=BOOL
  15181. +  */
  15182. + #define    PPCTASKSTARTTAG_RUN        (PPCTASKSTARTTAG_DUMMY + 0x0)
  15183. + /* Single Step the next instruction
  15184. +  * ti_Data=BOOL
  15185. +  */
  15186. + #define    PPCTASKSTARTTAG_TRACE        (PPCTASKSTARTTAG_DUMMY + 0x1)
  15187. + /* Branch until a Trace instruction
  15188. +  * Processor dependent
  15189. +  * ti_Data=BOOL
  15190. +  * NOT SUPPORTED YET
  15191. +  */
  15192. + #define    PPCTASKSTARTTAG_BRANCHTRACE    (PPCTASKSTARTTAG_DUMMY + 0x2)
  15193. + /* Run until Instruction hit
  15194. +  * the Breakpoint Address
  15195. +  * Processor dependent
  15196. +  * ti_Data=BOOL
  15197. +  * NOT SUPPORTED YET
  15198. +  */
  15199. + #define    PPCTASKSTARTTAG_IBREAK        (PPCTASKSTARTTAG_DUMMY + 0x3)
  15200. + /* Run until DataAccess hit
  15201. +  * the Breakpoint Address
  15202. +  * Processor dependent
  15203. +  * ti_Data=BOOL
  15204. +  * NOT SUPPORTED YET
  15205. +  */
  15206. + #define    PPCTASKSTARTTAG_DBREAK        (PPCTASKSTARTTAG_DUMMY + 0x4)
  15207. + #endif
  15208. diff -c2 -d -P -r include_h/powerup/ppclib/tasks.i includenew/powerup/ppclib/tasks.i
  15209. *** include_h/powerup/ppclib/tasks.i    Thu Jan  1 00:00:00 1970
  15210. --- includenew/powerup/ppclib/tasks.i    Thu Nov  2 22:27:18 2000
  15211. ***************
  15212. *** 0 ****
  15213. --- 1,532 ----
  15214. +     IFND POWERUP_PPCLIB_TASKS_I
  15215. + POWERUP_PPCLIB_TASKS_I    SET    1
  15216. + ;/**************************************************
  15217. + ; *
  15218. + ; *
  15219. + ; *              PPCCreateTask() Tags
  15220. + ; *
  15221. + ; *
  15222. + ; **************************************************/
  15223. + PPCTASKTAG_DUMMY    =(TAG_USER+$20000)
  15224. + ;/* Program Counter Start of the Task; */
  15225. + PPCTASKTAG_ELFOBJECT    =(PPCTASKTAG_DUMMY+$1)
  15226. + ;/* Name of the new Task.; */
  15227. + PPCTASKTAG_NAME        =(PPCTASKTAG_DUMMY+$2)
  15228. + ;/* First Argument..gpr3; */
  15229. + PPCTASKTAG_ARG1        =(PPCTASKTAG_DUMMY+$3)
  15230. + ;/* First Argument..gpr4; */
  15231. + PPCTASKTAG_ARG2        =(PPCTASKTAG_DUMMY+$4)
  15232. + ;/* First Argument..gpr5; */
  15233. + PPCTASKTAG_ARG3        =(PPCTASKTAG_DUMMY+$5)
  15234. + ;/* First Argument..gpr6; */
  15235. + PPCTASKTAG_ARG4        =(PPCTASKTAG_DUMMY+$6)
  15236. + ;/* First Argument..gpr7; */
  15237. + PPCTASKTAG_ARG5        =(PPCTASKTAG_DUMMY+$7)
  15238. + ;/* First Argument..gpr8; */
  15239. + PPCTASKTAG_ARG6        =(PPCTASKTAG_DUMMY+$8)
  15240. + ;/* First Argument..gpr9; */
  15241. + PPCTASKTAG_ARG7        =(PPCTASKTAG_DUMMY+$9)
  15242. + ;/* First Argument..gpr10; */
  15243. + PPCTASKTAG_ARG8        =(PPCTASKTAG_DUMMY+$a)
  15244. + ;/* Default=TRUE means that the cacheflush is handled automaticly
  15245. + ; * You need cacheflushs when you use OS functions to share data.
  15246. + ; * If you know it better than the stupid cacheflush routine you
  15247. + ; * can handle that yourself and optimize your routines.
  15248. + ; */
  15249. + PPCTASKTAG_CACHEFLUSH    =(PPCTASKTAG_DUMMY+$b)
  15250. + ;/* Ptr to an ULONG Errorfield where a better error description
  15251. + ; * can be stored.
  15252. + ; */
  15253. + PPCTASKTAG_ERROR    =(PPCTASKTAG_DUMMY+$c)
  15254. + ;/* PPC Stacksize...Default 8192;
  15255. + ; * Supported by PowerUP's PPCGetTaskAttr() (V45)
  15256. + ; */
  15257. + PPCTASKTAG_STACKSIZE    =(PPCTASKTAG_DUMMY+$d)
  15258. + ;/* Task Priority..Default 0; */
  15259. + PPCTASKTAG_PRIORITY    =(PPCTASKTAG_DUMMY+$e)
  15260. + ;/* Input Handle..Default Open("Nil:")
  15261. + ; * The handle is closed when the PPC task completes
  15262. + ; */
  15263. + PPCTASKTAG_INPUTHANDLE    =(PPCTASKTAG_DUMMY+$f)
  15264. + ;/* Output Handle..Default Open("Nil:")
  15265. + ; * The handle is closed when the PPC task completes
  15266. + ; */
  15267. + PPCTASKTAG_OUTPUTHANDLE    =(PPCTASKTAG_DUMMY+$10)
  15268. + ;/* Error Handle..Default Open("Nil:")
  15269. + ; * The handle is closed when the PPC task completes
  15270. + ; */
  15271. + PPCTASKTAG_ERRORHANDLE    =(PPCTASKTAG_DUMMY+$11)
  15272. + ;/*
  15273. + ; * When you set this Tag the Task is stopped
  15274. + ; * before the first instruction is executed
  15275. + ; * Only useful for debuggers
  15276. + ; */
  15277. + PPCTASKTAG_STOPTASK    =(PPCTASKTAG_DUMMY+$12)
  15278. + ;/* ExceptionHook
  15279. + ; * The M68k Hook is called when a PPC TaskObject gets an
  15280. + ; * exception which can be processor or software(Kernel Msg)
  15281. + ; * related.
  15282. + ; * That`s the way the ppc.library calls the Hook:
  15283. + ; *
  15284. + ; * BOOL CallHookPkt(hook,TaskObject,ExceptionMsg);
  15285. + ; *
  15286. + ; * The Hook Function is NOT allowed to call PPCLibBase
  15287. + ; * functions to avoid deadlocks.
  15288. + ; * And after the Hook function returns the ExceptionMsg
  15289. + ; * contents IS NOT valid anymore.
  15290. + ; * So you should copy the ExceptionMsg contents to a private
  15291. + ; * buffer and then signal your debugger control task about
  15292. + ; * the event.
  15293. + ; * The Hook return BOOL should tell the ppc.library if all
  15294. + ; * worked fine.
  15295. + ; */
  15296. + PPCTASKTAG_EXCEPTIONHOOK    =(PPCTASKTAG_DUMMY+$13)
  15297. + ;/* If you want that the PPCPort gets a MsgPort you can tell
  15298. + ; * PPCCreateTask by a TRUE that you want one.
  15299. + ; * I made this optional because it may cause an initial speed
  15300. + ; * loss if you only need a ppc task for a quick run job where
  15301. + ; * the init latency may be a serious issue.
  15302. + ; * Supported by PowerUP's PPCGetTaskAttr()
  15303. + ; */
  15304. + PPCTASKTAG_MSGPORT        =(PPCTASKTAG_DUMMY+$14)
  15305. + ;/* If you wanna provide the ppc a startup msg. This msg will
  15306. + ; * be replied by the ppc.library after the PPC Task ends so
  15307. + ; * you can use this to abitrate your PPCUnloadObject()
  15308. + ; * Supported by PowerUP's PPCGetTaskAttr()
  15309. + ; */
  15310. + PPCTASKTAG_STARTUP_MSG        =(PPCTASKTAG_DUMMY+$15)
  15311. + ;/* The Data field for the PPCMessage
  15312. + ; * Supported by PowerUP's PPCGetTaskAttr()
  15313. + ; */
  15314. + PPCTASKTAG_STARTUP_MSGDATA    =(PPCTASKTAG_DUMMY+$16)
  15315. + ;/* The Length field for the PPCMessage
  15316. + ; * Supported by PowerUP's PPCGetTaskAttr()
  15317. + ; */
  15318. + PPCTASKTAG_STARTUP_MSGLENGTH    =(PPCTASKTAG_DUMMY+$17)
  15319. + ;/* The MsgID field for the PPCMessage
  15320. + ; * Supported by PowerUP's PPCGetTaskAttr()
  15321. + ; */
  15322. + PPCTASKTAG_STARTUP_MSGID    =(PPCTASKTAG_DUMMY+$18)
  15323. + ;/* The flag to activate the CTRL-C;D;E;F gateway to
  15324. + ; * the PPC Task by PPCSendSignal();
  15325. + ; */
  15326. + PPCTASKTAG_BREAKSIGNAL        =(PPCTASKTAG_DUMMY+$19)
  15327. + ;/* The CPU number the task should start on.
  15328. + ; * This is only a hint and no gurantee.
  15329. + ; */
  15330. + PPCTASKTAG_CPUHINT        =(PPCTASKTAG_DUMMY+$1a)
  15331. + ;/* Ptr to ixemul UserData
  15332. + ; * ONLY supported by PowerUP's PPCGetTaskAttr(),PPCSetTaskAttr()
  15333. + ; */
  15334. + PPCTASKTAG_EXTUSERDATA        =(PPCTASKTAG_DUMMY+$1b)
  15335. + ;/* Run Task Synchron Flag which means that the PPCCreateTask
  15336. + ; * doesn`t return until the task completes and the return
  15337. + ; * value is not the TaskObject but the Task`s return value.
  15338. + ; * To check if the task runned correctly check out the
  15339. + ; * PPCTASKTAG_ERROR fieldptr.
  15340. + ; * With this Tag you can do the same what the old RunTaskObject
  15341. + ; * does which interface is a bit limited(compatibility to the
  15342. + ; * first ppc.library version)
  15343. + ; */
  15344. + PPCTASKTAG_WAITFINISH    =(PPCTASKTAG_DUMMY+$31)
  15345. + ;/* 
  15346. + ; * PPCTAGTAG_ERROR types
  15347. + ; */
  15348. + ERROR_OK        =0
  15349. + ERROR_MEMORY        =1
  15350. + ERROR_NOPC        =2
  15351. + ERROR_CREATEMSGINTASK    =3
  15352. + ERROR_INPUTHANDLE    =4
  15353. + ERROR_OUTPUTHANDLE    =5
  15354. + ERROR_ERRORHANDLE    =6
  15355. + ;/**************************************************
  15356. + ; *
  15357. + ; *
  15358. + ; *             PPCGetTaskInfo() Tags
  15359. + ; *
  15360. + ; *
  15361. + ; **************************************************/
  15362. + ;/*
  15363. + ; * V45 adds the ti_Data data Set/Get passing if it`s possible
  15364. + ; */
  15365. + PPCTASKINFOTAG_DUMMY        =(TAG_USER+$21000)
  15366. + PPCTASKINFOTAG_NAME        =(PPCTASKINFOTAG_DUMMY+$1)
  15367. + PPCTASKINFOTAG_PRIORITY        =(PPCTASKINFOTAG_DUMMY+$2)
  15368. + PPCTASKINFOTAG_CACHEFLUSH    =(PPCTASKINFOTAG_DUMMY+$3)
  15369. + PPCTASKINFOTAG_STACKSIZE    =(PPCTASKINFOTAG_DUMMY+$4)
  15370. + PPCTASKINFOTAG_STATE        =(PPCTASKINFOTAG_DUMMY+$5)
  15371. + PPCTASKINFOTAG_TASK        =(PPCTASKINFOTAG_DUMMY+$6)
  15372. + ;/* This means the HOOK function is called for every Task; */
  15373. + PPCTASKINFOTAG_ALLTASK        =(PPCTASKINFOTAG_DUMMY+$7)
  15374. + ;/* Hook function which is called for a task so you can ask special fields
  15375. + ; * you may want to use.
  15376. + ; * Msg Parameter is NULL for now.
  15377. + ; * Object Parameter is the TaskObject
  15378. + ; *
  15379. + ; *    HookFunc(Hook, TaskObject, NULL)
  15380. + ; */
  15381. + PPCTASKINFOTAG_HOOK        =(PPCTASKINFOTAG_DUMMY+$8)
  15382. + PPCTASKINFOTAG_SIGALLOC        =(PPCTASKINFOTAG_DUMMY+$9)
  15383. + PPCTASKINFOTAG_SIGWAIT        =(PPCTASKINFOTAG_DUMMY+$a)
  15384. + PPCTASKINFOTAG_SIGRECVD        =(PPCTASKINFOTAG_DUMMY+$b)
  15385. + PPCTASKINFOTAG_USEDSTACKSIZE    =(PPCTASKINFOTAG_DUMMY+$c)
  15386. + PPCTASKINFOTAG_INPUTHANDLE    =(PPCTASKINFOTAG_DUMMY+$d)
  15387. + PPCTASKINFOTAG_OUTPUTHANDLE    =(PPCTASKINFOTAG_DUMMY+$e)
  15388. + PPCTASKINFOTAG_ERRORHANDLE    =(PPCTASKINFOTAG_DUMMY+$f)
  15389. + ;/* Return the ElfObject of a Task
  15390. + ; * (Get)
  15391. + ; * (V45)
  15392. + ; */
  15393. + PPCTASKINFOTAG_ELFOBJECT        =(PPCTASKINFOTAG_DUMMY+$10)
  15394. + ;/* See equal PPCTASKTAG_EXCEPTIONHOOK
  15395. + ; * (V45)
  15396. + ; * (Set)
  15397. + ; */
  15398. + PPCTASKINFOTAG_EXCEPTIONHOOK        =(PPCTASKINFOTAG_DUMMY+$11)
  15399. + ;/* Tell the task to stop at the first instruction.
  15400. + ; * Only allowed to be used when you get a TaskHookMsg
  15401. + ; * with the MethodID PPCTASKHOOKMETHOD_CREATE.
  15402. + ; * It must not be called while a PPC Task runs.
  15403. + ; * (V45)
  15404. + ; * (Set)
  15405. + ; */
  15406. + PPCTASKINFOTAG_STOPTASK            =(PPCTASKINFOTAG_DUMMY+$12)
  15407. + ;/* See equal PPCTASKTAG_MSGPORT
  15408. + ; * (V45)
  15409. + ; */
  15410. + PPCTASKINFOTAG_MSGPORT            =(PPCTASKINFOTAG_DUMMY+$13)
  15411. + ;/* See equal PPCTASKTAG_STARTUP_MSG
  15412. + ; * (V45)
  15413. + ; */
  15414. + PPCTASKINFOTAG_STARTUP_MSG        =(PPCTASKINFOTAG_DUMMY+$14)
  15415. + ;/* See equal PPCTASKTAG_STARTUP_MSGDATA
  15416. + ; * (V45)
  15417. + ; */
  15418. + PPCTASKINFOTAG_STARTUP_MSGDATA        =(PPCTASKINFOTAG_DUMMY+$15)
  15419. + ;/* See equal PPCTASKTAG_STARTUP_MSGLENGTH
  15420. + ; * (V45)
  15421. + ; */
  15422. + PPCTASKINFOTAG_STARTUP_MSGLENGTH    =(PPCTASKINFOTAG_DUMMY+$16)
  15423. + ;/* See equal PPCTASKTAG_STARTUP_MSGID
  15424. + ; * (V45)
  15425. + ; */
  15426. + PPCTASKINFOTAG_STARTUP_MSGID        =(PPCTASKINFOTAG_DUMMY+$17)
  15427. + ;/*
  15428. + ; * All Register Tags only accept Ptrs at ti_Data so I don`t have to
  15429. + ; * change the API when there`s a 64Bit PPC some time.
  15430. + ; */
  15431. + ;/* SRR0=PC;
  15432. + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15433. + ; * (Get/Set)
  15434. + ; */
  15435. + PPCTASKINFOTAG_PC        =(PPCTASKINFOTAG_DUMMY+$20)
  15436. + ;/* SRR1=MSR;
  15437. + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15438. + ; * (Get/Set)
  15439. + ; */
  15440. + PPCTASKINFOTAG_MSR        =(PPCTASKINFOTAG_DUMMY+$21)
  15441. + ;/* 32bit value in function Result;
  15442. + ; * Get/Set through ti_Data
  15443. + ; * (Get/Set)
  15444. + ; */
  15445. + PPCTASKINFOTAG_CR        =(PPCTASKINFOTAG_DUMMY+$22)
  15446. + ;/* 32bit value in function Result;
  15447. + ; * Get/Set through ti_Data
  15448. + ; * (Get/Set)
  15449. + ; */
  15450. + PPCTASKINFOTAG_XER        =(PPCTASKINFOTAG_DUMMY+$23)
  15451. + ;/* Result by PPCTASKINFOTAG_VALUEPTR;
  15452. + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15453. + ; * (Get/Set)
  15454. + ; */
  15455. + PPCTASKINFOTAG_LR        =(PPCTASKINFOTAG_DUMMY+$24)
  15456. + ;/* Result by PPCTASKINFOTAG_VALUEPTR;
  15457. + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15458. + ; * (Get/Set)
  15459. + ; */
  15460. + PPCTASKINFOTAG_CTR        =(PPCTASKINFOTAG_DUMMY+$25)
  15461. + ;/* Result by PPCTASKINFOTAG_VALUEPTR;
  15462. + ; * Get/Set through ti_Data or PPCTASKINFOTAG_VALUEPTR
  15463. + ; * (Get/Set)
  15464. + ; */
  15465. + PPCTASKINFOTAG_FPSCR        =(PPCTASKINFOTAG_DUMMY+$26)
  15466. + ;/* ti_Data=Register Number
  15467. + ; * Get/Set through PPCTASKINFOTAG_VALUEPTR
  15468. + ; * (Get/Set)
  15469. + ; */
  15470. + PPCTASKINFOTAG_GPR        =(PPCTASKINFOTAG_DUMMY+$30)
  15471. + ;/* ti_Data=Register Number
  15472. + ; * Get/Set through PPCTASKINFOTAG_VALUEPTR
  15473. + ; * (Get/Set)
  15474. + ; */
  15475. + PPCTASKINFOTAG_FPR        =(PPCTASKINFOTAG_DUMMY+$31)
  15476. + ;/* Address where to read/write the register value from.
  15477. + ; * I use a ptr to be size indepent with the registers
  15478. + ; */
  15479. + PPCTASKINFOTAG_VALUEPTR        =(PPCTASKINFOTAG_DUMMY+$32)
  15480. + ;/* With PPCTASKINFOTAG_WAITFINISHTASK
  15481. + ; * it returns the parent process in which you created
  15482. + ; * a synchron PPC Task. Synchron PPC Task`s are created
  15483. + ; * with the PPCTASKTAG_WAITINFISH,TRUE or outdated a
  15484. + ; * PPCRunObject.
  15485. + ; * The reason for this function is to find the shell
  15486. + ; * task easily and check for a CTRL-C for example.
  15487. + ; * (Get)
  15488. + ; * (V45)
  15489. + ; */
  15490. + PPCTASKINFOTAG_WAITFINISHTASK    =(PPCTASKTAG_DUMMY+$33)
  15491. + ;/**************************************************
  15492. + ; *
  15493. + ; *
  15494. + ; *           TaskObject ExceptionHook
  15495. + ; *
  15496. + ; *
  15497. + ; **************************************************/
  15498. +     STRUCTURE    ExceptionMsg,0
  15499. +     ULONG            Version;
  15500. +     ULONG            Type;
  15501. +     STRUCT            GPR,32*4;
  15502. +     STRUCT            FPR,32*8;
  15503. +     STRUCT            SR,16*4;
  15504. +     ULONG            CR;
  15505. +     DOUBLE            FPSCR;
  15506. +     ULONG            XER;
  15507. +     ULONG            LR;
  15508. +     ULONG            CTR;
  15509. +     ULONG            PVR;
  15510. +     ULONG            IBAT0U;
  15511. +     ULONG            IBAT0L;
  15512. +     ULONG            IBAT1U;
  15513. +     ULONG            IBAT1L;
  15514. +     ULONG            IBAT2U;
  15515. +     ULONG            IBAT2L;
  15516. +     ULONG            IBAT3U;
  15517. +     ULONG            IBAT3L;
  15518. +     ULONG            DBAT0U;
  15519. +     ULONG            DBAT0L;
  15520. +     ULONG            DBAT1U;
  15521. +     ULONG            DBAT1L;
  15522. +     ULONG            DBAT2U;
  15523. +     ULONG            DBAT2L;
  15524. +     ULONG            DBAT3U;
  15525. +     ULONG            DBAT3L;
  15526. +     ULONG            SDR1;
  15527. +     ULONG            ASR;
  15528. +     ULONG            DAR;
  15529. +     ULONG            DSISR;
  15530. +     ULONG            SRR0;
  15531. +     ULONG            SRR1;
  15532. +     ULONG            SPRG0;
  15533. +     ULONG            SPRG1;
  15534. +     ULONG            SPRG2;
  15535. +     ULONG            SPRG3;
  15536. +     ULONG            TBL;
  15537. +     ULONG            TBU;
  15538. +     ULONG            DEC;
  15539. +     ULONG            DABR;
  15540. +     ;/* 603 special registers; */
  15541. +     ULONG            DMISS;
  15542. +     ULONG            DCMP;
  15543. +     ULONG            HASH1;
  15544. +     ULONG            HASH2;
  15545. +     ULONG            IMISS;
  15546. +     ULONG            ICMP;
  15547. +     ULONG            RPA;
  15548. +     ;/* 604e special registers; */
  15549. +     ;/* Version 0 ends here; */
  15550. +     ULONG            MSR;
  15551. +     ;/* Version 1 ends here */
  15552. +     ;/* Size depends on Version; */
  15553. + ;/* Current supported Version
  15554. + ; */
  15555. + EXCEPTIONMSG_VERSION    =    1
  15556. + ;/*
  15557. + ; * Current supported Types
  15558. + ; */
  15559. + ;/*
  15560. + ; * These are the processor exceptions
  15561. + ; */
  15562. + EXCEPTION_UNKNOWN        =0    ;/* Won`t happen; */
  15563. + EXCEPTION_RESET            =1    ;/* Won`t happen; */
  15564. + EXCEPTION_MACHINECHECK        =2    ;/* Won`t happen; */
  15565. + EXCEPTION_DATAACCESS        =3
  15566. + EXCEPTION_INSTRUCTIONACCESS    =4
  15567. + EXCEPTION_EXTERNALINTERRUPT    =5    ;/* Won`t happen; */
  15568. + EXCEPTION_ALIGNMENT        =6
  15569. + EXCEPTION_PROGRAM        =7
  15570. + EXCEPTION_FPUUNAVAILABLE    =8
  15571. + EXCEPTION_DECREMENTER        =9
  15572. + EXCEPTION_INTERFACEERROR    =10
  15573. + EXCEPTION_RESERVED_B        =11
  15574. + EXCEPTION_SYSTEMCALL        =12
  15575. + EXCEPTION_TRACE            =13
  15576. + EXCEPTION_FPUASSIST        =14
  15577. + EXCEPTION_RESERVED_F        =15
  15578. + EXCEPTION_IMISS            =16
  15579. + EXCEPTION_DLOADMISS        =17
  15580. + EXCEPTION_DSTOREMISS        =18
  15581. + EXCEPTION_IADDRESSBREAK        =19
  15582. + EXCEPTION_SYSTEMMANAGEMENTINT    =20
  15583. + ;/*
  15584. + ; * These are the kernel exceptions
  15585. + ; * to signal certain events
  15586. + ; */
  15587. + EXCEPTION_MSG            =$80000000
  15588. + ;/*
  15589. + ; * You receive this exception type
  15590. + ; * when the Kernel could stop a Task
  15591. + ; * successfully after a Stop or Trace
  15592. + ; * operation.
  15593. + ; * Look at PPCTASKTAG_STOPTASK for example
  15594. + ; */
  15595. + EXCEPTION_STOPTASK        =(EXCEPTION_MSG+$0)
  15596. + ;/*
  15597. + ; * You receive this exception type
  15598. + ; * when the task completes.
  15599. + ; * In this case the ONLY valid fields in the
  15600. + ; * ExceptionMsg are the Version field and the
  15601. + ; * the Message type.
  15602. + ; */
  15603. + EXCEPTION_FINISHTASK        =(EXCEPTION_MSG+$1)
  15604. + ;/**************************************************
  15605. + ; *
  15606. + ; *
  15607. + ; *              PPCStartTask() Tags
  15608. + ; *
  15609. + ; *
  15610. + ; **************************************************/
  15611. + PPCTASKSTARTTAG_DUMMY        =(TAG_USER+$22000)
  15612. + ;/* Just run a Task again
  15613. + ; * ti_Data=BOOL
  15614. + ; */
  15615. + PPCTASKSTARTTAG_RUN        =(PPCTASKSTARTTAG_DUMMY+$0)
  15616. + ;/* Single Step the next instruction
  15617. + ; * ti_Data=BOOL
  15618. + ; */
  15619. + PPCTASKSTARTTAG_TRACE        =(PPCTASKSTARTTAG_DUMMY+$1)
  15620. + ;/* Branch until a Trace instruction
  15621. + ; * Processor dependent
  15622. + ; * ti_Data=BOOL
  15623. + ; * NOT SUPPORTED YET
  15624. + ; */
  15625. + PPCTASKSTARTTAG_BRANCHTRACE    =(PPCTASKSTARTTAG_DUMMY+$2)
  15626. + ;/* Run until Instruction hit
  15627. + ; * the Breakpoint Address
  15628. + ; * Processor dependent
  15629. + ; * ti_Data=BOOL
  15630. + ; * NOT SUPPORTED YET
  15631. + ; */
  15632. + PPCTASKSTARTTAG_IBREAK        =(PPCTASKSTARTTAG_DUMMY+$3)
  15633. + ;/* Run until DataAccess hit
  15634. + ; * the Breakpoint Address
  15635. + ; * Processor dependent
  15636. + ; * ti_Data=BOOL
  15637. + ; * NOT SUPPORTED YET
  15638. + ; */
  15639. + PPCTASKSTARTTAG_DBREAK        =(PPCTASKSTARTTAG_DUMMY+$4)
  15640. +     ENDC
  15641. diff -c2 -d -P -r include_h/powerup/ppclib/time.h includenew/powerup/ppclib/time.h
  15642. *** include_h/powerup/ppclib/time.h    Thu Jan  1 00:00:00 1970
  15643. --- includenew/powerup/ppclib/time.h    Thu Nov  2 22:27:18 2000
  15644. ***************
  15645. *** 0 ****
  15646. --- 1,84 ----
  15647. + #ifndef POWERUP_PPCLIB_TIME_H
  15648. + #define POWERUP_PPCLIB_TIME_H
  15649. + #define    PPCTIMERTAG_Dummy        (TAG_USER + 0x24000)
  15650. + /* PPCCreateTimerObject Tags */
  15651. + /* ptr to an optional error reason field
  15652. +  */
  15653. + #define    PPCTIMERTAG_ERROR        (PPCTIMERTAG_Dummy + 0x0)
  15654. + /* use the CPU timer to do simple synchron
  15655. +  * timer based operations
  15656. +  */
  15657. + #define    PPCTIMERTAG_CPU            (PPCTIMERTAG_Dummy + 0x1)
  15658. + /* create a job in a 50Hz timer queue
  15659. +  * which will send your task a signal after
  15660. +  * the ticks you specified run to zero.
  15661. +  * You specify the number of 50Hz ticks
  15662. +  * with the Tag.
  15663. +  */
  15664. + #define    PPCTIMERTAG_50HZ        (PPCTIMERTAG_Dummy + 0x2)
  15665. + /* The signalmask necessary for the 50Hz
  15666. +  * timer to signal your task
  15667. +  */
  15668. + #define    PPCTIMERTAG_SIGNALMASK        (PPCTIMERTAG_Dummy + 0x3)
  15669. + /* After the ticks ran down and the task
  15670. +  * is signaled the timer request is removed from the queue.
  15671. +  */
  15672. + #define    PPCTIMERTAG_AUTOREMOVE        (PPCTIMERTAG_Dummy + 0x4)
  15673. + /* PPCSetTimerObject() Tags */
  15674. + /* Start Timer,Start Job(add to the joblist) or
  15675. +  * Start ticks for PPCGetTimerObject()
  15676. +  */
  15677. + #define    PPCTIMERTAG_START        (PPCTIMERTAG_Dummy + 0x11)
  15678. + /* Stop Timer,Stop Job(remove from the joblist) or
  15679. +  * Stop ticks for PPCGetTimerObject()
  15680. +  */
  15681. + #define    PPCTIMERTAG_STOP        (PPCTIMERTAG_Dummy + 0x12)
  15682. + /* PPCGetTimerObject() Tags */
  15683. + /* Get ticks per second */
  15684. + #define    PPCTIMERTAG_TICKSPERSEC        (PPCTIMERTAG_Dummy + 0x13)
  15685. + /* Get current ticks */
  15686. + #define    PPCTIMERTAG_CURRENTTICKS    (PPCTIMERTAG_Dummy + 0x14)
  15687. + /* Get diff ticks after a start and stop */
  15688. + #define    PPCTIMERTAG_DIFFTICKS        (PPCTIMERTAG_Dummy + 0x15)
  15689. + /* Get diff microseconds after a start and stop */
  15690. + #define    PPCTIMERTAG_DIFFMICRO        (PPCTIMERTAG_Dummy + 0x16)
  15691. + /* Get diff seconds after a start and stop */
  15692. + #define    PPCTIMERTAG_DIFFSECS        (PPCTIMERTAG_Dummy + 0x17)
  15693. + /* Get diff minutes after a start and stop */
  15694. + #define    PPCTIMERTAG_DIFFMINS        (PPCTIMERTAG_Dummy + 0x18)
  15695. + /* Get diff hours after a start and stop */
  15696. + #define    PPCTIMERTAG_DIFFHOURS        (PPCTIMERTAG_Dummy + 0x19)
  15697. + /* Get diff days after a start and stop */
  15698. + #define    PPCTIMERTAG_DIFFDAYS        (PPCTIMERTAG_Dummy + 0x1a)
  15699. + #define    PPCTIMERERROR_OK    0
  15700. + #define    PPCTIMERERROR_MEMORY    1
  15701. + #endif
  15702. diff -c2 -d -P -r include_h/powerup/ppcpragmas/amigaguide_pragmas.h includenew/powerup/ppcpragmas/amigaguide_pragmas.h
  15703. *** include_h/powerup/ppcpragmas/amigaguide_pragmas.h    Thu Jan  1 00:00:00 1970
  15704. --- includenew/powerup/ppcpragmas/amigaguide_pragmas.h    Thu Nov  2 22:27:14 2000
  15705. ***************
  15706. *** 0 ****
  15707. --- 1,405 ----
  15708. + /* Automatically generated header! Do not edit! */
  15709. + #ifndef _PPCPRAGMA_AMIGAGUIDE_H
  15710. + #define _PPCPRAGMA_AMIGAGUIDE_H
  15711. + #ifdef __GNUC__
  15712. + #ifndef _PPCINLINE__AMIGAGUIDE_H
  15713. + #include <powerup/ppcinline/amigaguide.h>
  15714. + #endif
  15715. + #else
  15716. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  15717. + #include <powerup/ppclib/interface.h>
  15718. + #endif
  15719. + #ifndef POWERUP_GCCLIB_PROTOS_H
  15720. + #include <powerup/gcclib/powerup_protos.h>
  15721. + #endif
  15722. + #ifndef NO_PPCINLINE_STDARG
  15723. + #define NO_PPCINLINE_STDARG
  15724. + #endif/* SAS C PPC inlines */
  15725. + #ifndef AMIGAGUIDE_BASE_NAME
  15726. + #define AMIGAGUIDE_BASE_NAME AmigaGuideBase
  15727. + #endif /* !AMIGAGUIDE_BASE_NAME */
  15728. + #define    AddAmigaGuideHostA(h, name, attrs)    _AddAmigaGuideHostA(AMIGAGUIDE_BASE_NAME, h, name, attrs)
  15729. + static __inline APTR
  15730. + _AddAmigaGuideHostA(void *AmigaGuideBase, struct Hook *h, STRPTR name, struct TagItem *attrs)
  15731. + {
  15732. + struct Caos    MyCaos;
  15733. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15734. + //    MyCaos.M68kStart    =    NULL;
  15735. + //    MyCaos.M68kSize        =    0;
  15736. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15737. + //    MyCaos.PPCStart        =    NULL;
  15738. + //    MyCaos.PPCSize        =    0;
  15739. +     MyCaos.a0        =(ULONG) h;
  15740. +     MyCaos.d0        =(ULONG) name;
  15741. +     MyCaos.a1        =(ULONG) attrs;
  15742. +     MyCaos.caos_Un.Offset    =    (-138);
  15743. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15744. +     return((APTR)PPCCallOS(&MyCaos));
  15745. + }
  15746. + #ifndef NO_PPCINLINE_STDARG
  15747. + #define AddAmigaGuideHost(a0, a1, tags...) \
  15748. +     ({ULONG _tags[] = { tags }; AddAmigaGuideHostA((a0), (a1), (struct TagItem *)_tags);})
  15749. + #endif /* !NO_PPCINLINE_STDARG */
  15750. + #define    AmigaGuideSignal(cl)    _AmigaGuideSignal(AMIGAGUIDE_BASE_NAME, cl)
  15751. + static __inline ULONG
  15752. + _AmigaGuideSignal(void *AmigaGuideBase, APTR cl)
  15753. + {
  15754. + struct Caos    MyCaos;
  15755. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15756. + //    MyCaos.M68kStart    =    NULL;
  15757. + //    MyCaos.M68kSize        =    0;
  15758. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15759. + //    MyCaos.PPCStart        =    NULL;
  15760. + //    MyCaos.PPCSize        =    0;
  15761. +     MyCaos.a0        =(ULONG) cl;
  15762. +     MyCaos.caos_Un.Offset    =    (-72);
  15763. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15764. +     return((ULONG)PPCCallOS(&MyCaos));
  15765. + }
  15766. + #define    CloseAmigaGuide(cl)    _CloseAmigaGuide(AMIGAGUIDE_BASE_NAME, cl)
  15767. + static __inline void
  15768. + _CloseAmigaGuide(void *AmigaGuideBase, APTR cl)
  15769. + {
  15770. + struct Caos    MyCaos;
  15771. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15772. + //    MyCaos.M68kStart    =    NULL;
  15773. + //    MyCaos.M68kSize        =    0;
  15774. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15775. + //    MyCaos.PPCStart        =    NULL;
  15776. + //    MyCaos.PPCSize        =    0;
  15777. +     MyCaos.a0        =(ULONG) cl;
  15778. +     MyCaos.caos_Un.Offset    =    (-66);
  15779. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15780. +     PPCCallOS(&MyCaos);
  15781. + }
  15782. + #define    ExpungeXRef()    _ExpungeXRef(AMIGAGUIDE_BASE_NAME)
  15783. + static __inline void
  15784. + _ExpungeXRef(void *AmigaGuideBase)
  15785. + {
  15786. + struct Caos    MyCaos;
  15787. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15788. + //    MyCaos.M68kStart    =    NULL;
  15789. + //    MyCaos.M68kSize        =    0;
  15790. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15791. + //    MyCaos.PPCStart        =    NULL;
  15792. + //    MyCaos.PPCSize        =    0;
  15793. +     MyCaos.caos_Un.Offset    =    (-132);
  15794. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15795. +     PPCCallOS(&MyCaos);
  15796. + }
  15797. + #define    GetAmigaGuideAttr(tag, cl, storage)    _GetAmigaGuideAttr(AMIGAGUIDE_BASE_NAME, tag, cl, storage)
  15798. + static __inline LONG
  15799. + _GetAmigaGuideAttr(void *AmigaGuideBase, Tag tag, APTR cl, ULONG *storage)
  15800. + {
  15801. + struct Caos    MyCaos;
  15802. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15803. + //    MyCaos.M68kStart    =    NULL;
  15804. + //    MyCaos.M68kSize        =    0;
  15805. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15806. + //    MyCaos.PPCStart        =    NULL;
  15807. + //    MyCaos.PPCSize        =    0;
  15808. +     MyCaos.d0        =(ULONG) tag;
  15809. +     MyCaos.a0        =(ULONG) cl;
  15810. +     MyCaos.a1        =(ULONG) storage;
  15811. +     MyCaos.caos_Un.Offset    =    (-114);
  15812. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15813. +     return((LONG)PPCCallOS(&MyCaos));
  15814. + }
  15815. + #define    GetAmigaGuideMsg(cl)    _GetAmigaGuideMsg(AMIGAGUIDE_BASE_NAME, cl)
  15816. + static __inline struct AmigaGuideMsg *
  15817. + _GetAmigaGuideMsg(void *AmigaGuideBase, APTR cl)
  15818. + {
  15819. + struct Caos    MyCaos;
  15820. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15821. + //    MyCaos.M68kStart    =    NULL;
  15822. + //    MyCaos.M68kSize        =    0;
  15823. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15824. + //    MyCaos.PPCStart        =    NULL;
  15825. + //    MyCaos.PPCSize        =    0;
  15826. +     MyCaos.a0        =(ULONG) cl;
  15827. +     MyCaos.caos_Un.Offset    =    (-78);
  15828. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15829. +     return((struct AmigaGuideMsg *)PPCCallOS(&MyCaos));
  15830. + }
  15831. + #define    GetAmigaGuideString(id)    _GetAmigaGuideString(AMIGAGUIDE_BASE_NAME, id)
  15832. + static __inline STRPTR
  15833. + _GetAmigaGuideString(void *AmigaGuideBase, long id)
  15834. + {
  15835. + struct Caos    MyCaos;
  15836. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15837. + //    MyCaos.M68kStart    =    NULL;
  15838. + //    MyCaos.M68kSize        =    0;
  15839. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15840. + //    MyCaos.PPCStart        =    NULL;
  15841. + //    MyCaos.PPCSize        =    0;
  15842. +     MyCaos.d0        =(ULONG) id;
  15843. +     MyCaos.caos_Un.Offset    =    (-210);
  15844. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15845. +     return((STRPTR)PPCCallOS(&MyCaos));
  15846. + }
  15847. + #define    LoadXRef(lock, name)    _LoadXRef(AMIGAGUIDE_BASE_NAME, lock, name)
  15848. + static __inline LONG
  15849. + _LoadXRef(void *AmigaGuideBase, BPTR lock, STRPTR name)
  15850. + {
  15851. + struct Caos    MyCaos;
  15852. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15853. + //    MyCaos.M68kStart    =    NULL;
  15854. + //    MyCaos.M68kSize        =    0;
  15855. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15856. + //    MyCaos.PPCStart        =    NULL;
  15857. + //    MyCaos.PPCSize        =    0;
  15858. +     MyCaos.a0        =(ULONG) lock;
  15859. +     MyCaos.a1        =(ULONG) name;
  15860. +     MyCaos.caos_Un.Offset    =    (-126);
  15861. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15862. +     return((LONG)PPCCallOS(&MyCaos));
  15863. + }
  15864. + #define    LockAmigaGuideBase(handle)    _LockAmigaGuideBase(AMIGAGUIDE_BASE_NAME, handle)
  15865. + static __inline LONG
  15866. + _LockAmigaGuideBase(void *AmigaGuideBase, APTR handle)
  15867. + {
  15868. + struct Caos    MyCaos;
  15869. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15870. + //    MyCaos.M68kStart    =    NULL;
  15871. + //    MyCaos.M68kSize        =    0;
  15872. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15873. + //    MyCaos.PPCStart        =    NULL;
  15874. + //    MyCaos.PPCSize        =    0;
  15875. +     MyCaos.a0        =(ULONG) handle;
  15876. +     MyCaos.caos_Un.Offset    =    (-36);
  15877. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15878. +     return((LONG)PPCCallOS(&MyCaos));
  15879. + }
  15880. + #define    OpenAmigaGuideA(nag, attrs)    _OpenAmigaGuideA(AMIGAGUIDE_BASE_NAME, nag, attrs)
  15881. + static __inline APTR
  15882. + _OpenAmigaGuideA(void *AmigaGuideBase, struct NewAmigaGuide *nag, struct TagItem *attrs)
  15883. + {
  15884. + struct Caos    MyCaos;
  15885. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15886. + //    MyCaos.M68kStart    =    NULL;
  15887. + //    MyCaos.M68kSize        =    0;
  15888. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15889. + //    MyCaos.PPCStart        =    NULL;
  15890. + //    MyCaos.PPCSize        =    0;
  15891. +     MyCaos.a0        =(ULONG) nag;
  15892. +     MyCaos.a1        =(ULONG) attrs;
  15893. +     MyCaos.caos_Un.Offset    =    (-54);
  15894. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15895. +     return((APTR)PPCCallOS(&MyCaos));
  15896. + }
  15897. + #ifndef NO_PPCINLINE_STDARG
  15898. + #define OpenAmigaGuide(a0, tags...) \
  15899. +     ({ULONG _tags[] = { tags }; OpenAmigaGuideA((a0), (struct TagItem *)_tags);})
  15900. + #endif /* !NO_PPCINLINE_STDARG */
  15901. + #define    OpenAmigaGuideAsyncA(nag, attrs)    _OpenAmigaGuideAsyncA(AMIGAGUIDE_BASE_NAME, nag, attrs)
  15902. + static __inline APTR
  15903. + _OpenAmigaGuideAsyncA(void *AmigaGuideBase, struct NewAmigaGuide *nag, struct TagItem *attrs)
  15904. + {
  15905. + struct Caos    MyCaos;
  15906. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15907. + //    MyCaos.M68kStart    =    NULL;
  15908. + //    MyCaos.M68kSize        =    0;
  15909. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15910. + //    MyCaos.PPCStart        =    NULL;
  15911. + //    MyCaos.PPCSize        =    0;
  15912. +     MyCaos.a0        =(ULONG) nag;
  15913. +     MyCaos.d0        =(ULONG) attrs;
  15914. +     MyCaos.caos_Un.Offset    =    (-60);
  15915. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15916. +     return((APTR)PPCCallOS(&MyCaos));
  15917. + }
  15918. + #ifndef NO_PPCINLINE_STDARG
  15919. + #define OpenAmigaGuideAsync(a0, tags...) \
  15920. +     ({ULONG _tags[] = { tags }; OpenAmigaGuideAsyncA((a0), (struct TagItem *)_tags);})
  15921. + #endif /* !NO_PPCINLINE_STDARG */
  15922. + #define    RemoveAmigaGuideHostA(hh, attrs)    _RemoveAmigaGuideHostA(AMIGAGUIDE_BASE_NAME, hh, attrs)
  15923. + static __inline LONG
  15924. + _RemoveAmigaGuideHostA(void *AmigaGuideBase, APTR hh, struct TagItem *attrs)
  15925. + {
  15926. + struct Caos    MyCaos;
  15927. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15928. + //    MyCaos.M68kStart    =    NULL;
  15929. + //    MyCaos.M68kSize        =    0;
  15930. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15931. + //    MyCaos.PPCStart        =    NULL;
  15932. + //    MyCaos.PPCSize        =    0;
  15933. +     MyCaos.a0        =(ULONG) hh;
  15934. +     MyCaos.a1        =(ULONG) attrs;
  15935. +     MyCaos.caos_Un.Offset    =    (-144);
  15936. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15937. +     return((LONG)PPCCallOS(&MyCaos));
  15938. + }
  15939. + #ifndef NO_PPCINLINE_STDARG
  15940. + #define RemoveAmigaGuideHost(a0, tags...) \
  15941. +     ({ULONG _tags[] = { tags }; RemoveAmigaGuideHostA((a0), (struct TagItem *)_tags);})
  15942. + #endif /* !NO_PPCINLINE_STDARG */
  15943. + #define    ReplyAmigaGuideMsg(amsg)    _ReplyAmigaGuideMsg(AMIGAGUIDE_BASE_NAME, amsg)
  15944. + static __inline void
  15945. + _ReplyAmigaGuideMsg(void *AmigaGuideBase, struct AmigaGuideMsg *amsg)
  15946. + {
  15947. + struct Caos    MyCaos;
  15948. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15949. + //    MyCaos.M68kStart    =    NULL;
  15950. + //    MyCaos.M68kSize        =    0;
  15951. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15952. + //    MyCaos.PPCStart        =    NULL;
  15953. + //    MyCaos.PPCSize        =    0;
  15954. +     MyCaos.a0        =(ULONG) amsg;
  15955. +     MyCaos.caos_Un.Offset    =    (-84);
  15956. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15957. +     PPCCallOS(&MyCaos);
  15958. + }
  15959. + #define    SendAmigaGuideCmdA(cl, cmd, attrs)    _SendAmigaGuideCmdA(AMIGAGUIDE_BASE_NAME, cl, cmd, attrs)
  15960. + static __inline LONG
  15961. + _SendAmigaGuideCmdA(void *AmigaGuideBase, APTR cl, STRPTR cmd, struct TagItem *attrs)
  15962. + {
  15963. + struct Caos    MyCaos;
  15964. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15965. + //    MyCaos.M68kStart    =    NULL;
  15966. + //    MyCaos.M68kSize        =    0;
  15967. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15968. + //    MyCaos.PPCStart        =    NULL;
  15969. + //    MyCaos.PPCSize        =    0;
  15970. +     MyCaos.a0        =(ULONG) cl;
  15971. +     MyCaos.d0        =(ULONG) cmd;
  15972. +     MyCaos.d1        =(ULONG) attrs;
  15973. +     MyCaos.caos_Un.Offset    =    (-102);
  15974. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15975. +     return((LONG)PPCCallOS(&MyCaos));
  15976. + }
  15977. + #ifndef NO_PPCINLINE_STDARG
  15978. + #define SendAmigaGuideCmd(a0, a1, tags...) \
  15979. +     ({ULONG _tags[] = { tags }; SendAmigaGuideCmdA((a0), (a1), (struct TagItem *)_tags);})
  15980. + #endif /* !NO_PPCINLINE_STDARG */
  15981. + #define    SendAmigaGuideContextA(cl, attrs)    _SendAmigaGuideContextA(AMIGAGUIDE_BASE_NAME, cl, attrs)
  15982. + static __inline LONG
  15983. + _SendAmigaGuideContextA(void *AmigaGuideBase, APTR cl, struct TagItem *attrs)
  15984. + {
  15985. + struct Caos    MyCaos;
  15986. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  15987. + //    MyCaos.M68kStart    =    NULL;
  15988. + //    MyCaos.M68kSize        =    0;
  15989. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  15990. + //    MyCaos.PPCStart        =    NULL;
  15991. + //    MyCaos.PPCSize        =    0;
  15992. +     MyCaos.a0        =(ULONG) cl;
  15993. +     MyCaos.d0        =(ULONG) attrs;
  15994. +     MyCaos.caos_Un.Offset    =    (-96);
  15995. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  15996. +     return((LONG)PPCCallOS(&MyCaos));
  15997. + }
  15998. + #ifndef NO_PPCINLINE_STDARG
  15999. + #define SendAmigaGuideContext(a0, tags...) \
  16000. +     ({ULONG _tags[] = { tags }; SendAmigaGuideContextA((a0), (struct TagItem *)_tags);})
  16001. + #endif /* !NO_PPCINLINE_STDARG */
  16002. + #define    SetAmigaGuideAttrsA(cl, attrs)    _SetAmigaGuideAttrsA(AMIGAGUIDE_BASE_NAME, cl, attrs)
  16003. + static __inline LONG
  16004. + _SetAmigaGuideAttrsA(void *AmigaGuideBase, APTR cl, struct TagItem *attrs)
  16005. + {
  16006. + struct Caos    MyCaos;
  16007. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16008. + //    MyCaos.M68kStart    =    NULL;
  16009. + //    MyCaos.M68kSize        =    0;
  16010. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16011. + //    MyCaos.PPCStart        =    NULL;
  16012. + //    MyCaos.PPCSize        =    0;
  16013. +     MyCaos.a0        =(ULONG) cl;
  16014. +     MyCaos.a1        =(ULONG) attrs;
  16015. +     MyCaos.caos_Un.Offset    =    (-108);
  16016. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  16017. +     return((LONG)PPCCallOS(&MyCaos));
  16018. + }
  16019. + #ifndef NO_PPCINLINE_STDARG
  16020. + #define SetAmigaGuideAttrs(a0, tags...) \
  16021. +     ({ULONG _tags[] = { tags }; SetAmigaGuideAttrsA((a0), (struct TagItem *)_tags);})
  16022. + #endif /* !NO_PPCINLINE_STDARG */
  16023. + #define    SetAmigaGuideContextA(cl, id, attrs)    _SetAmigaGuideContextA(AMIGAGUIDE_BASE_NAME, cl, id, attrs)
  16024. + static __inline LONG
  16025. + _SetAmigaGuideContextA(void *AmigaGuideBase, APTR cl, unsigned long id, struct TagItem *attrs)
  16026. + {
  16027. + struct Caos    MyCaos;
  16028. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16029. + //    MyCaos.M68kStart    =    NULL;
  16030. + //    MyCaos.M68kSize        =    0;
  16031. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16032. + //    MyCaos.PPCStart        =    NULL;
  16033. + //    MyCaos.PPCSize        =    0;
  16034. +     MyCaos.a0        =(ULONG) cl;
  16035. +     MyCaos.d0        =(ULONG) id;
  16036. +     MyCaos.d1        =(ULONG) attrs;
  16037. +     MyCaos.caos_Un.Offset    =    (-90);
  16038. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  16039. +     return((LONG)PPCCallOS(&MyCaos));
  16040. + }
  16041. + #ifndef NO_PPCINLINE_STDARG
  16042. + #define SetAmigaGuideContext(a0, a1, tags...) \
  16043. +     ({ULONG _tags[] = { tags }; SetAmigaGuideContextA((a0), (a1), (struct TagItem *)_tags);})
  16044. + #endif /* !NO_PPCINLINE_STDARG */
  16045. + #define    UnlockAmigaGuideBase(key)    _UnlockAmigaGuideBase(AMIGAGUIDE_BASE_NAME, key)
  16046. + static __inline void
  16047. + _UnlockAmigaGuideBase(void *AmigaGuideBase, long key)
  16048. + {
  16049. + struct Caos    MyCaos;
  16050. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16051. + //    MyCaos.M68kStart    =    NULL;
  16052. + //    MyCaos.M68kSize        =    0;
  16053. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16054. + //    MyCaos.PPCStart        =    NULL;
  16055. + //    MyCaos.PPCSize        =    0;
  16056. +     MyCaos.d0        =(ULONG) key;
  16057. +     MyCaos.caos_Un.Offset    =    (-42);
  16058. +     MyCaos.a6        =(ULONG) AmigaGuideBase;    
  16059. +     PPCCallOS(&MyCaos);
  16060. + }
  16061. + #endif /* SASC Pragmas */
  16062. + #endif /* !_PPCPRAGMA_AMIGAGUIDE_H */
  16063. diff -c2 -d -P -r include_h/powerup/ppcpragmas/asl_pragmas.h includenew/powerup/ppcpragmas/asl_pragmas.h
  16064. *** include_h/powerup/ppcpragmas/asl_pragmas.h    Thu Jan  1 00:00:00 1970
  16065. --- includenew/powerup/ppcpragmas/asl_pragmas.h    Thu Nov  2 22:27:14 2000
  16066. ***************
  16067. *** 0 ****
  16068. --- 1,147 ----
  16069. + /* Automatically generated header! Do not edit! */
  16070. + #ifndef _PPCPRAGMA_ASL_H
  16071. + #define _PPCPRAGMA_ASL_H
  16072. + #ifdef __GNUC__
  16073. + #ifndef _PPCINLINE__ASL_H
  16074. + #include <powerup/ppcinline/asl.h>
  16075. + #endif
  16076. + #else
  16077. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  16078. + #include <powerup/ppclib/interface.h>
  16079. + #endif
  16080. + #ifndef POWERUP_GCCLIB_PROTOS_H
  16081. + #include <powerup/gcclib/powerup_protos.h>
  16082. + #endif
  16083. + #ifndef NO_PPCINLINE_STDARG
  16084. + #define NO_PPCINLINE_STDARG
  16085. + #endif/* SAS C PPC inlines */
  16086. + #ifndef ASL_BASE_NAME
  16087. + #define ASL_BASE_NAME AslBase
  16088. + #endif /* !ASL_BASE_NAME */
  16089. + #define    AllocAslRequest(reqType, tagList)    _AllocAslRequest(ASL_BASE_NAME, reqType, tagList)
  16090. + static __inline APTR
  16091. + _AllocAslRequest(void *AslBase, unsigned long reqType, struct TagItem *tagList)
  16092. + {
  16093. + struct Caos    MyCaos;
  16094. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16095. + //    MyCaos.M68kStart    =    NULL;
  16096. + //    MyCaos.M68kSize        =    0;
  16097. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16098. + //    MyCaos.PPCStart        =    NULL;
  16099. + //    MyCaos.PPCSize        =    0;
  16100. +     MyCaos.d0        =(ULONG) reqType;
  16101. +     MyCaos.a0        =(ULONG) tagList;
  16102. +     MyCaos.caos_Un.Offset    =    (-48);
  16103. +     MyCaos.a6        =(ULONG) AslBase;    
  16104. +     return((APTR)PPCCallOS(&MyCaos));
  16105. + }
  16106. + #ifndef NO_PPCINLINE_STDARG
  16107. + #define AllocAslRequestTags(a0, tags...) \
  16108. +     ({ULONG _tags[] = { tags }; AllocAslRequest((a0), (struct TagItem *)_tags);})
  16109. + #endif /* !NO_PPCINLINE_STDARG */
  16110. + #define    AllocFileRequest()    _AllocFileRequest(ASL_BASE_NAME)
  16111. + static __inline struct FileRequester *
  16112. + _AllocFileRequest(void *AslBase)
  16113. + {
  16114. + struct Caos    MyCaos;
  16115. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16116. + //    MyCaos.M68kStart    =    NULL;
  16117. + //    MyCaos.M68kSize        =    0;
  16118. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16119. + //    MyCaos.PPCStart        =    NULL;
  16120. + //    MyCaos.PPCSize        =    0;
  16121. +     MyCaos.caos_Un.Offset    =    (-30);
  16122. +     MyCaos.a6        =(ULONG) AslBase;    
  16123. +     return((struct FileRequester *)PPCCallOS(&MyCaos));
  16124. + }
  16125. + #define    AslRequest(requester, tagList)    _AslRequest(ASL_BASE_NAME, requester, tagList)
  16126. + static __inline BOOL
  16127. + _AslRequest(void *AslBase, APTR requester, struct TagItem *tagList)
  16128. + {
  16129. + struct Caos    MyCaos;
  16130. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16131. + //    MyCaos.M68kStart    =    NULL;
  16132. + //    MyCaos.M68kSize        =    0;
  16133. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16134. + //    MyCaos.PPCStart        =    NULL;
  16135. + //    MyCaos.PPCSize        =    0;
  16136. +     MyCaos.a0        =(ULONG) requester;
  16137. +     MyCaos.a1        =(ULONG) tagList;
  16138. +     MyCaos.caos_Un.Offset    =    (-60);
  16139. +     MyCaos.a6        =(ULONG) AslBase;    
  16140. +     return((BOOL)PPCCallOS(&MyCaos));
  16141. + }
  16142. + #ifndef NO_PPCINLINE_STDARG
  16143. + #define AslRequestTags(a0, tags...) \
  16144. +     ({ULONG _tags[] = { tags }; AslRequest((a0), (struct TagItem *)_tags);})
  16145. + #endif /* !NO_PPCINLINE_STDARG */
  16146. + #define    FreeAslRequest(requester)    _FreeAslRequest(ASL_BASE_NAME, requester)
  16147. + static __inline void
  16148. + _FreeAslRequest(void *AslBase, APTR requester)
  16149. + {
  16150. + struct Caos    MyCaos;
  16151. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16152. + //    MyCaos.M68kStart    =    NULL;
  16153. + //    MyCaos.M68kSize        =    0;
  16154. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16155. + //    MyCaos.PPCStart        =    NULL;
  16156. + //    MyCaos.PPCSize        =    0;
  16157. +     MyCaos.a0        =(ULONG) requester;
  16158. +     MyCaos.caos_Un.Offset    =    (-54);
  16159. +     MyCaos.a6        =(ULONG) AslBase;    
  16160. +     PPCCallOS(&MyCaos);
  16161. + }
  16162. + #define    FreeFileRequest(fileReq)    _FreeFileRequest(ASL_BASE_NAME, fileReq)
  16163. + static __inline void
  16164. + _FreeFileRequest(void *AslBase, struct FileRequester *fileReq)
  16165. + {
  16166. + struct Caos    MyCaos;
  16167. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16168. + //    MyCaos.M68kStart    =    NULL;
  16169. + //    MyCaos.M68kSize        =    0;
  16170. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16171. + //    MyCaos.PPCStart        =    NULL;
  16172. + //    MyCaos.PPCSize        =    0;
  16173. +     MyCaos.a0        =(ULONG) fileReq;
  16174. +     MyCaos.caos_Un.Offset    =    (-36);
  16175. +     MyCaos.a6        =(ULONG) AslBase;    
  16176. +     PPCCallOS(&MyCaos);
  16177. + }
  16178. + #define    RequestFile(fileReq)    _RequestFile(ASL_BASE_NAME, fileReq)
  16179. + static __inline BOOL
  16180. + _RequestFile(void *AslBase, struct FileRequester *fileReq)
  16181. + {
  16182. + struct Caos    MyCaos;
  16183. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16184. + //    MyCaos.M68kStart    =    NULL;
  16185. + //    MyCaos.M68kSize        =    0;
  16186. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16187. + //    MyCaos.PPCStart        =    NULL;
  16188. + //    MyCaos.PPCSize        =    0;
  16189. +     MyCaos.a0        =(ULONG) fileReq;
  16190. +     MyCaos.caos_Un.Offset    =    (-42);
  16191. +     MyCaos.a6        =(ULONG) AslBase;    
  16192. +     return((BOOL)PPCCallOS(&MyCaos));
  16193. + }
  16194. + #endif /* SASC Pragmas */
  16195. + #endif /* !_PPCPRAGMA_ASL_H */
  16196. diff -c2 -d -P -r include_h/powerup/ppcpragmas/battclock_pragmas.h includenew/powerup/ppcpragmas/battclock_pragmas.h
  16197. *** include_h/powerup/ppcpragmas/battclock_pragmas.h    Thu Jan  1 00:00:00 1970
  16198. --- includenew/powerup/ppcpragmas/battclock_pragmas.h    Thu Nov  2 22:27:14 2000
  16199. ***************
  16200. *** 0 ****
  16201. --- 1,80 ----
  16202. + /* Automatically generated header! Do not edit! */
  16203. + #ifndef _PPCPRAGMA_BATTCLOCK_H
  16204. + #define _PPCPRAGMA_BATTCLOCK_H
  16205. + #ifdef __GNUC__
  16206. + #ifndef _PPCINLINE__BATTCLOCK_H
  16207. + #include <powerup/ppcinline/battclock.h>
  16208. + #endif
  16209. + #else
  16210. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  16211. + #include <powerup/ppclib/interface.h>
  16212. + #endif
  16213. + #ifndef POWERUP_GCCLIB_PROTOS_H
  16214. + #include <powerup/gcclib/powerup_protos.h>
  16215. + #endif
  16216. + #ifndef NO_PPCINLINE_STDARG
  16217. + #define NO_PPCINLINE_STDARG
  16218. + #endif/* SAS C PPC inlines */
  16219. + #ifndef BATTCLOCK_BASE_NAME
  16220. + #define BATTCLOCK_BASE_NAME BattClockBase
  16221. + #endif /* !BATTCLOCK_BASE_NAME */
  16222. + #define    ReadBattClock()    _ReadBattClock(BATTCLOCK_BASE_NAME)
  16223. + static __inline ULONG
  16224. + _ReadBattClock(void *BattClockBase)
  16225. + {
  16226. + struct Caos    MyCaos;
  16227. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16228. + //    MyCaos.M68kStart    =    NULL;
  16229. + //    MyCaos.M68kSize        =    0;
  16230. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16231. + //    MyCaos.PPCStart        =    NULL;
  16232. + //    MyCaos.PPCSize        =    0;
  16233. +     MyCaos.caos_Un.Offset    =    (-12);
  16234. +     MyCaos.a6        =(ULONG) BattClockBase;    
  16235. +     return((ULONG)PPCCallOS(&MyCaos));
  16236. + }
  16237. + #define    ResetBattClock()    _ResetBattClock(BATTCLOCK_BASE_NAME)
  16238. + static __inline void
  16239. + _ResetBattClock(void *BattClockBase)
  16240. + {
  16241. + struct Caos    MyCaos;
  16242. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16243. + //    MyCaos.M68kStart    =    NULL;
  16244. + //    MyCaos.M68kSize        =    0;
  16245. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16246. + //    MyCaos.PPCStart        =    NULL;
  16247. + //    MyCaos.PPCSize        =    0;
  16248. +     MyCaos.caos_Un.Offset    =    (-6);
  16249. +     MyCaos.a6        =(ULONG) BattClockBase;    
  16250. +     PPCCallOS(&MyCaos);
  16251. + }
  16252. + #define    WriteBattClock(time)    _WriteBattClock(BATTCLOCK_BASE_NAME, time)
  16253. + static __inline void
  16254. + _WriteBattClock(void *BattClockBase, unsigned long time)
  16255. + {
  16256. + struct Caos    MyCaos;
  16257. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16258. + //    MyCaos.M68kStart    =    NULL;
  16259. + //    MyCaos.M68kSize        =    0;
  16260. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16261. + //    MyCaos.PPCStart        =    NULL;
  16262. + //    MyCaos.PPCSize        =    0;
  16263. +     MyCaos.d0        =(ULONG) time;
  16264. +     MyCaos.caos_Un.Offset    =    (-18);
  16265. +     MyCaos.a6        =(ULONG) BattClockBase;    
  16266. +     PPCCallOS(&MyCaos);
  16267. + }
  16268. + #endif /* SASC Pragmas */
  16269. + #endif /* !_PPCPRAGMA_BATTCLOCK_H */
  16270. diff -c2 -d -P -r include_h/powerup/ppcpragmas/battmem_pragmas.h includenew/powerup/ppcpragmas/battmem_pragmas.h
  16271. *** include_h/powerup/ppcpragmas/battmem_pragmas.h    Thu Jan  1 00:00:00 1970
  16272. --- includenew/powerup/ppcpragmas/battmem_pragmas.h    Thu Nov  2 22:27:14 2000
  16273. ***************
  16274. *** 0 ****
  16275. --- 1,102 ----
  16276. + /* Automatically generated header! Do not edit! */
  16277. + #ifndef _PPCPRAGMA_BATTMEM_H
  16278. + #define _PPCPRAGMA_BATTMEM_H
  16279. + #ifdef __GNUC__
  16280. + #ifndef _PPCINLINE__BATTMEM_H
  16281. + #include <powerup/ppcinline/battmem.h>
  16282. + #endif
  16283. + #else
  16284. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  16285. + #include <powerup/ppclib/interface.h>
  16286. + #endif
  16287. + #ifndef POWERUP_GCCLIB_PROTOS_H
  16288. + #include <powerup/gcclib/powerup_protos.h>
  16289. + #endif
  16290. + #ifndef NO_PPCINLINE_STDARG
  16291. + #define NO_PPCINLINE_STDARG
  16292. + #endif/* SAS C PPC inlines */
  16293. + #ifndef BATTMEM_BASE_NAME
  16294. + #define BATTMEM_BASE_NAME BattMemBase
  16295. + #endif /* !BATTMEM_BASE_NAME */
  16296. + #define    ObtainBattSemaphore()    _ObtainBattSemaphore(BATTMEM_BASE_NAME)
  16297. + static __inline void
  16298. + _ObtainBattSemaphore(void *BattMemBase)
  16299. + {
  16300. + struct Caos    MyCaos;
  16301. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16302. + //    MyCaos.M68kStart    =    NULL;
  16303. + //    MyCaos.M68kSize        =    0;
  16304. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16305. + //    MyCaos.PPCStart        =    NULL;
  16306. + //    MyCaos.PPCSize        =    0;
  16307. +     MyCaos.caos_Un.Offset    =    (-6);
  16308. +     MyCaos.a6        =(ULONG) BattMemBase;    
  16309. +     PPCCallOS(&MyCaos);
  16310. + }
  16311. + #define    ReadBattMem(buffer, offset, length)    _ReadBattMem(BATTMEM_BASE_NAME, buffer, offset, length)
  16312. + static __inline ULONG
  16313. + _ReadBattMem(void *BattMemBase, APTR buffer, unsigned long offset, unsigned long length)
  16314. + {
  16315. + struct Caos    MyCaos;
  16316. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16317. + //    MyCaos.M68kStart    =    NULL;
  16318. + //    MyCaos.M68kSize        =    0;
  16319. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16320. + //    MyCaos.PPCStart        =    NULL;
  16321. + //    MyCaos.PPCSize        =    0;
  16322. +     MyCaos.a0        =(ULONG) buffer;
  16323. +     MyCaos.d0        =(ULONG) offset;
  16324. +     MyCaos.d1        =(ULONG) length;
  16325. +     MyCaos.caos_Un.Offset    =    (-18);
  16326. +     MyCaos.a6        =(ULONG) BattMemBase;    
  16327. +     return((ULONG)PPCCallOS(&MyCaos));
  16328. + }
  16329. + #define    ReleaseBattSemaphore()    _ReleaseBattSemaphore(BATTMEM_BASE_NAME)
  16330. + static __inline void
  16331. + _ReleaseBattSemaphore(void *BattMemBase)
  16332. + {
  16333. + struct Caos    MyCaos;
  16334. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16335. + //    MyCaos.M68kStart    =    NULL;
  16336. + //    MyCaos.M68kSize        =    0;
  16337. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16338. + //    MyCaos.PPCStart        =    NULL;
  16339. + //    MyCaos.PPCSize        =    0;
  16340. +     MyCaos.caos_Un.Offset    =    (-12);
  16341. +     MyCaos.a6        =(ULONG) BattMemBase;    
  16342. +     PPCCallOS(&MyCaos);
  16343. + }
  16344. + #define    WriteBattMem(buffer, offset, length)    _WriteBattMem(BATTMEM_BASE_NAME, buffer, offset, length)
  16345. + static __inline ULONG
  16346. + _WriteBattMem(void *BattMemBase, APTR buffer, unsigned long offset, unsigned long length)
  16347. + {
  16348. + struct Caos    MyCaos;
  16349. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16350. + //    MyCaos.M68kStart    =    NULL;
  16351. + //    MyCaos.M68kSize        =    0;
  16352. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16353. + //    MyCaos.PPCStart        =    NULL;
  16354. + //    MyCaos.PPCSize        =    0;
  16355. +     MyCaos.a0        =(ULONG) buffer;
  16356. +     MyCaos.d0        =(ULONG) offset;
  16357. +     MyCaos.d1        =(ULONG) length;
  16358. +     MyCaos.caos_Un.Offset    =    (-24);
  16359. +     MyCaos.a6        =(ULONG) BattMemBase;    
  16360. +     return((ULONG)PPCCallOS(&MyCaos));
  16361. + }
  16362. + #endif /* SASC Pragmas */
  16363. + #endif /* !_PPCPRAGMA_BATTMEM_H */
  16364. diff -c2 -d -P -r include_h/powerup/ppcpragmas/bullet_pragmas.h includenew/powerup/ppcpragmas/bullet_pragmas.h
  16365. *** include_h/powerup/ppcpragmas/bullet_pragmas.h    Thu Jan  1 00:00:00 1970
  16366. --- includenew/powerup/ppcpragmas/bullet_pragmas.h    Thu Nov  2 22:27:14 2000
  16367. ***************
  16368. *** 0 ****
  16369. --- 1,135 ----
  16370. + /* Automatically generated header! Do not edit! */
  16371. + #ifndef _PPCPRAGMA_BULLET_H
  16372. + #define _PPCPRAGMA_BULLET_H
  16373. + #ifdef __GNUC__
  16374. + #ifndef _PPCINLINE__BULLET_H
  16375. + #include <powerup/ppcinline/bullet.h>
  16376. + #endif
  16377. + #else
  16378. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  16379. + #include <powerup/ppclib/interface.h>
  16380. + #endif
  16381. + #ifndef POWERUP_GCCLIB_PROTOS_H
  16382. + #include <powerup/gcclib/powerup_protos.h>
  16383. + #endif
  16384. + #ifndef NO_PPCINLINE_STDARG
  16385. + #define NO_PPCINLINE_STDARG
  16386. + #endif/* SAS C PPC inlines */
  16387. + #ifndef BULLET_BASE_NAME
  16388. + #define BULLET_BASE_NAME BulletBase
  16389. + #endif /* !BULLET_BASE_NAME */
  16390. + #define    CloseEngine(glyphEngine)    _CloseEngine(BULLET_BASE_NAME, glyphEngine)
  16391. + static __inline void
  16392. + _CloseEngine(void *BulletBase, struct GlyphEngine *glyphEngine)
  16393. + {
  16394. + struct Caos    MyCaos;
  16395. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16396. + //    MyCaos.M68kStart    =    NULL;
  16397. + //    MyCaos.M68kSize        =    0;
  16398. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16399. + //    MyCaos.PPCStart        =    NULL;
  16400. + //    MyCaos.PPCSize        =    0;
  16401. +     MyCaos.a0        =(ULONG) glyphEngine;
  16402. +     MyCaos.caos_Un.Offset    =    (-36);
  16403. +     MyCaos.a6        =(ULONG) BulletBase;    
  16404. +     PPCCallOS(&MyCaos);
  16405. + }
  16406. + #define    ObtainInfoA(glyphEngine, tagList)    _ObtainInfoA(BULLET_BASE_NAME, glyphEngine, tagList)
  16407. + static __inline ULONG
  16408. + _ObtainInfoA(void *BulletBase, struct GlyphEngine *glyphEngine, struct TagItem *tagList)
  16409. + {
  16410. + struct Caos    MyCaos;
  16411. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16412. + //    MyCaos.M68kStart    =    NULL;
  16413. + //    MyCaos.M68kSize        =    0;
  16414. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16415. + //    MyCaos.PPCStart        =    NULL;
  16416. + //    MyCaos.PPCSize        =    0;
  16417. +     MyCaos.a0        =(ULONG) glyphEngine;
  16418. +     MyCaos.a1        =(ULONG) tagList;
  16419. +     MyCaos.caos_Un.Offset    =    (-48);
  16420. +     MyCaos.a6        =(ULONG) BulletBase;    
  16421. +     return((ULONG)PPCCallOS(&MyCaos));
  16422. + }
  16423. + #ifndef NO_PPCINLINE_STDARG
  16424. + #define ObtainInfo(a0, tags...) \
  16425. +     ({ULONG _tags[] = { tags }; ObtainInfoA((a0), (struct TagItem *)_tags);})
  16426. + #endif /* !NO_PPCINLINE_STDARG */
  16427. + #define    OpenEngine()    _OpenEngine(BULLET_BASE_NAME)
  16428. + static __inline struct GlyphEngine *
  16429. + _OpenEngine(void *BulletBase)
  16430. + {
  16431. + struct Caos    MyCaos;
  16432. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16433. + //    MyCaos.M68kStart    =    NULL;
  16434. + //    MyCaos.M68kSize        =    0;
  16435. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16436. + //    MyCaos.PPCStart        =    NULL;
  16437. + //    MyCaos.PPCSize        =    0;
  16438. +     MyCaos.caos_Un.Offset    =    (-30);
  16439. +     MyCaos.a6        =(ULONG) BulletBase;    
  16440. +     return((struct GlyphEngine *)PPCCallOS(&MyCaos));
  16441. + }
  16442. + #define    ReleaseInfoA(glyphEngine, tagList)    _ReleaseInfoA(BULLET_BASE_NAME, glyphEngine, tagList)
  16443. + static __inline ULONG
  16444. + _ReleaseInfoA(void *BulletBase, struct GlyphEngine *glyphEngine, struct TagItem *tagList)
  16445. + {
  16446. + struct Caos    MyCaos;
  16447. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16448. + //    MyCaos.M68kStart    =    NULL;
  16449. + //    MyCaos.M68kSize        =    0;
  16450. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16451. + //    MyCaos.PPCStart        =    NULL;
  16452. + //    MyCaos.PPCSize        =    0;
  16453. +     MyCaos.a0        =(ULONG) glyphEngine;
  16454. +     MyCaos.a1        =(ULONG) tagList;
  16455. +     MyCaos.caos_Un.Offset    =    (-54);
  16456. +     MyCaos.a6        =(ULONG) BulletBase;    
  16457. +     return((ULONG)PPCCallOS(&MyCaos));
  16458. + }
  16459. + #ifndef NO_PPCINLINE_STDARG
  16460. + #define ReleaseInfo(a0, tags...) \
  16461. +     ({ULONG _tags[] = { tags }; ReleaseInfoA((a0), (struct TagItem *)_tags);})
  16462. + #endif /* !NO_PPCINLINE_STDARG */
  16463. + #define    SetInfoA(glyphEngine, tagList)    _SetInfoA(BULLET_BASE_NAME, glyphEngine, tagList)
  16464. + static __inline ULONG
  16465. + _SetInfoA(void *BulletBase, struct GlyphEngine *glyphEngine, struct TagItem *tagList)
  16466. + {
  16467. + struct Caos    MyCaos;
  16468. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16469. + //    MyCaos.M68kStart    =    NULL;
  16470. + //    MyCaos.M68kSize        =    0;
  16471. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16472. + //    MyCaos.PPCStart        =    NULL;
  16473. + //    MyCaos.PPCSize        =    0;
  16474. +     MyCaos.a0        =(ULONG) glyphEngine;
  16475. +     MyCaos.a1        =(ULONG) tagList;
  16476. +     MyCaos.caos_Un.Offset    =    (-42);
  16477. +     MyCaos.a6        =(ULONG) BulletBase;    
  16478. +     return((ULONG)PPCCallOS(&MyCaos));
  16479. + }
  16480. + #ifndef NO_PPCINLINE_STDARG
  16481. + #define SetInfo(a0, tags...) \
  16482. +     ({ULONG _tags[] = { tags }; SetInfoA((a0), (struct TagItem *)_tags);})
  16483. + #endif /* !NO_PPCINLINE_STDARG */
  16484. + #endif /* SASC Pragmas */
  16485. + #endif /* !_PPCPRAGMA_BULLET_H */
  16486. diff -c2 -d -P -r include_h/powerup/ppcpragmas/cardres_pragmas.h includenew/powerup/ppcpragmas/cardres_pragmas.h
  16487. *** include_h/powerup/ppcpragmas/cardres_pragmas.h    Thu Jan  1 00:00:00 1970
  16488. --- includenew/powerup/ppcpragmas/cardres_pragmas.h    Thu Nov  2 22:27:14 2000
  16489. ***************
  16490. *** 0 ****
  16491. --- 1,338 ----
  16492. + /* Automatically generated header! Do not edit! */
  16493. + #ifndef _PPCPRAGMA_CARDRES_H
  16494. + #define _PPCPRAGMA_CARDRES_H
  16495. + #ifdef __GNUC__
  16496. + #ifndef _PPCINLINE__CARDRES_H
  16497. + #include <powerup/ppcinline/cardres.h>
  16498. + #endif
  16499. + #else
  16500. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  16501. + #include <powerup/ppclib/interface.h>
  16502. + #endif
  16503. + #ifndef POWERUP_GCCLIB_PROTOS_H
  16504. + #include <powerup/gcclib/powerup_protos.h>
  16505. + #endif
  16506. + #ifndef NO_PPCINLINE_STDARG
  16507. + #define NO_PPCINLINE_STDARG
  16508. + #endif/* SAS C PPC inlines */
  16509. + #ifndef CARDRES_BASE_NAME
  16510. + #define CARDRES_BASE_NAME CardResource
  16511. + #endif /* !CARDRES_BASE_NAME */
  16512. + #define    BeginCardAccess(handle)    _BeginCardAccess(CARDRES_BASE_NAME, handle)
  16513. + static __inline BOOL
  16514. + _BeginCardAccess(void *CardResource, struct CardHandle *handle)
  16515. + {
  16516. + struct Caos    MyCaos;
  16517. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16518. + //    MyCaos.M68kStart    =    NULL;
  16519. + //    MyCaos.M68kSize        =    0;
  16520. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16521. + //    MyCaos.PPCStart        =    NULL;
  16522. + //    MyCaos.PPCSize        =    0;
  16523. +     MyCaos.a1        =(ULONG) handle;
  16524. +     MyCaos.caos_Un.Offset    =    (-24);
  16525. +     MyCaos.a6        =(ULONG) CardResource;    
  16526. +     return((BOOL)PPCCallOS(&MyCaos));
  16527. + }
  16528. + #define    CardAccessSpeed(handle, nanoseconds)    _CardAccessSpeed(CARDRES_BASE_NAME, handle, nanoseconds)
  16529. + static __inline ULONG
  16530. + _CardAccessSpeed(void *CardResource, struct CardHandle *handle, unsigned long nanoseconds)
  16531. + {
  16532. + struct Caos    MyCaos;
  16533. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16534. + //    MyCaos.M68kStart    =    NULL;
  16535. + //    MyCaos.M68kSize        =    0;
  16536. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16537. + //    MyCaos.PPCStart        =    NULL;
  16538. + //    MyCaos.PPCSize        =    0;
  16539. +     MyCaos.a1        =(ULONG) handle;
  16540. +     MyCaos.d0        =(ULONG) nanoseconds;
  16541. +     MyCaos.caos_Un.Offset    =    (-54);
  16542. +     MyCaos.a6        =(ULONG) CardResource;    
  16543. +     return((ULONG)PPCCallOS(&MyCaos));
  16544. + }
  16545. + #define    CardChangeCount()    _CardChangeCount(CARDRES_BASE_NAME)
  16546. + static __inline ULONG
  16547. + _CardChangeCount(void *CardResource)
  16548. + {
  16549. + struct Caos    MyCaos;
  16550. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16551. + //    MyCaos.M68kStart    =    NULL;
  16552. + //    MyCaos.M68kSize        =    0;
  16553. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16554. + //    MyCaos.PPCStart        =    NULL;
  16555. + //    MyCaos.PPCSize        =    0;
  16556. +     MyCaos.caos_Un.Offset    =    (-96);
  16557. +     MyCaos.a6        =(ULONG) CardResource;    
  16558. +     return((ULONG)PPCCallOS(&MyCaos));
  16559. + }
  16560. + #define    CardForceChange()    _CardForceChange(CARDRES_BASE_NAME)
  16561. + static __inline BOOL
  16562. + _CardForceChange(void *CardResource)
  16563. + {
  16564. + struct Caos    MyCaos;
  16565. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16566. + //    MyCaos.M68kStart    =    NULL;
  16567. + //    MyCaos.M68kSize        =    0;
  16568. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16569. + //    MyCaos.PPCStart        =    NULL;
  16570. + //    MyCaos.PPCSize        =    0;
  16571. +     MyCaos.caos_Un.Offset    =    (-90);
  16572. +     MyCaos.a6        =(ULONG) CardResource;    
  16573. +     return((BOOL)PPCCallOS(&MyCaos));
  16574. + }
  16575. + #define    CardInterface()    _CardInterface(CARDRES_BASE_NAME)
  16576. + static __inline ULONG
  16577. + _CardInterface(void *CardResource)
  16578. + {
  16579. + struct Caos    MyCaos;
  16580. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16581. + //    MyCaos.M68kStart    =    NULL;
  16582. + //    MyCaos.M68kSize        =    0;
  16583. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16584. + //    MyCaos.PPCStart        =    NULL;
  16585. + //    MyCaos.PPCSize        =    0;
  16586. +     MyCaos.caos_Un.Offset    =    (-102);
  16587. +     MyCaos.a6        =(ULONG) CardResource;    
  16588. +     return((ULONG)PPCCallOS(&MyCaos));
  16589. + }
  16590. + #define    CardMiscControl(handle, control_bits)    _CardMiscControl(CARDRES_BASE_NAME, handle, control_bits)
  16591. + static __inline UBYTE
  16592. + _CardMiscControl(void *CardResource, struct CardHandle *handle, unsigned long control_bits)
  16593. + {
  16594. + struct Caos    MyCaos;
  16595. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16596. + //    MyCaos.M68kStart    =    NULL;
  16597. + //    MyCaos.M68kSize        =    0;
  16598. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16599. + //    MyCaos.PPCStart        =    NULL;
  16600. + //    MyCaos.PPCSize        =    0;
  16601. +     MyCaos.a1        =(ULONG) handle;
  16602. +     MyCaos.d1        =(ULONG) control_bits;
  16603. +     MyCaos.caos_Un.Offset    =    (-48);
  16604. +     MyCaos.a6        =(ULONG) CardResource;    
  16605. +     return((UBYTE)PPCCallOS(&MyCaos));
  16606. + }
  16607. + #define    CardProgramVoltage(handle, voltage)    _CardProgramVoltage(CARDRES_BASE_NAME, handle, voltage)
  16608. + static __inline LONG
  16609. + _CardProgramVoltage(void *CardResource, struct CardHandle *handle, unsigned long voltage)
  16610. + {
  16611. + struct Caos    MyCaos;
  16612. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16613. + //    MyCaos.M68kStart    =    NULL;
  16614. + //    MyCaos.M68kSize        =    0;
  16615. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16616. + //    MyCaos.PPCStart        =    NULL;
  16617. + //    MyCaos.PPCSize        =    0;
  16618. +     MyCaos.a1        =(ULONG) handle;
  16619. +     MyCaos.d0        =(ULONG) voltage;
  16620. +     MyCaos.caos_Un.Offset    =    (-60);
  16621. +     MyCaos.a6        =(ULONG) CardResource;    
  16622. +     return((LONG)PPCCallOS(&MyCaos));
  16623. + }
  16624. + #define    CardResetCard(handle)    _CardResetCard(CARDRES_BASE_NAME, handle)
  16625. + static __inline BOOL
  16626. + _CardResetCard(void *CardResource, struct CardHandle *handle)
  16627. + {
  16628. + struct Caos    MyCaos;
  16629. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16630. + //    MyCaos.M68kStart    =    NULL;
  16631. + //    MyCaos.M68kSize        =    0;
  16632. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16633. + //    MyCaos.PPCStart        =    NULL;
  16634. + //    MyCaos.PPCSize        =    0;
  16635. +     MyCaos.a1        =(ULONG) handle;
  16636. +     MyCaos.caos_Un.Offset    =    (-66);
  16637. +     MyCaos.a6        =(ULONG) CardResource;    
  16638. +     return((BOOL)PPCCallOS(&MyCaos));
  16639. + }
  16640. + #define    CardResetRemove(handle, flag)    _CardResetRemove(CARDRES_BASE_NAME, handle, flag)
  16641. + static __inline BOOL
  16642. + _CardResetRemove(void *CardResource, struct CardHandle *handle, unsigned long flag)
  16643. + {
  16644. + struct Caos    MyCaos;
  16645. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16646. + //    MyCaos.M68kStart    =    NULL;
  16647. + //    MyCaos.M68kSize        =    0;
  16648. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16649. + //    MyCaos.PPCStart        =    NULL;
  16650. + //    MyCaos.PPCSize        =    0;
  16651. +     MyCaos.a1        =(ULONG) handle;
  16652. +     MyCaos.d0        =(ULONG) flag;
  16653. +     MyCaos.caos_Un.Offset    =    (-42);
  16654. +     MyCaos.a6        =(ULONG) CardResource;    
  16655. +     return((BOOL)PPCCallOS(&MyCaos));
  16656. + }
  16657. + #define    CopyTuple(handle, buffer, tuplecode, size)    _CopyTuple(CARDRES_BASE_NAME, handle, buffer, tuplecode, size)
  16658. + static __inline BOOL
  16659. + _CopyTuple(void *CardResource, struct CardHandle *handle, UBYTE *buffer, unsigned long tuplecode, unsigned long size)
  16660. + {
  16661. + struct Caos    MyCaos;
  16662. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16663. + //    MyCaos.M68kStart    =    NULL;
  16664. + //    MyCaos.M68kSize        =    0;
  16665. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16666. + //    MyCaos.PPCStart        =    NULL;
  16667. + //    MyCaos.PPCSize        =    0;
  16668. +     MyCaos.a1        =(ULONG) handle;
  16669. +     MyCaos.a0        =(ULONG) buffer;
  16670. +     MyCaos.d1        =(ULONG) tuplecode;
  16671. +     MyCaos.d0        =(ULONG) size;
  16672. +     MyCaos.caos_Un.Offset    =    (-72);
  16673. +     MyCaos.a6        =(ULONG) CardResource;    
  16674. +     return((BOOL)PPCCallOS(&MyCaos));
  16675. + }
  16676. + #define    DeviceTuple(tuple_data, storage)    _DeviceTuple(CARDRES_BASE_NAME, tuple_data, storage)
  16677. + static __inline ULONG
  16678. + _DeviceTuple(void *CardResource, UBYTE *tuple_data, struct DeviceTData *storage)
  16679. + {
  16680. + struct Caos    MyCaos;
  16681. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16682. + //    MyCaos.M68kStart    =    NULL;
  16683. + //    MyCaos.M68kSize        =    0;
  16684. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16685. + //    MyCaos.PPCStart        =    NULL;
  16686. + //    MyCaos.PPCSize        =    0;
  16687. +     MyCaos.a0        =(ULONG) tuple_data;
  16688. +     MyCaos.a1        =(ULONG) storage;
  16689. +     MyCaos.caos_Un.Offset    =    (-78);
  16690. +     MyCaos.a6        =(ULONG) CardResource;    
  16691. +     return((ULONG)PPCCallOS(&MyCaos));
  16692. + }
  16693. + #define    EndCardAccess(handle)    _EndCardAccess(CARDRES_BASE_NAME, handle)
  16694. + static __inline BOOL
  16695. + _EndCardAccess(void *CardResource, struct CardHandle *handle)
  16696. + {
  16697. + struct Caos    MyCaos;
  16698. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16699. + //    MyCaos.M68kStart    =    NULL;
  16700. + //    MyCaos.M68kSize        =    0;
  16701. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16702. + //    MyCaos.PPCStart        =    NULL;
  16703. + //    MyCaos.PPCSize        =    0;
  16704. +     MyCaos.a1        =(ULONG) handle;
  16705. +     MyCaos.caos_Un.Offset    =    (-30);
  16706. +     MyCaos.a6        =(ULONG) CardResource;    
  16707. +     return((BOOL)PPCCallOS(&MyCaos));
  16708. + }
  16709. + #define    GetCardMap()    _GetCardMap(CARDRES_BASE_NAME)
  16710. + static __inline struct CardMemoryMap *
  16711. + _GetCardMap(void *CardResource)
  16712. + {
  16713. + struct Caos    MyCaos;
  16714. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16715. + //    MyCaos.M68kStart    =    NULL;
  16716. + //    MyCaos.M68kSize        =    0;
  16717. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16718. + //    MyCaos.PPCStart        =    NULL;
  16719. + //    MyCaos.PPCSize        =    0;
  16720. +     MyCaos.caos_Un.Offset    =    (-18);
  16721. +     MyCaos.a6        =(ULONG) CardResource;    
  16722. +     return((struct CardMemoryMap *)PPCCallOS(&MyCaos));
  16723. + }
  16724. + #define    IfAmigaXIP(handle)    _IfAmigaXIP(CARDRES_BASE_NAME, handle)
  16725. + static __inline struct Resident *
  16726. + _IfAmigaXIP(void *CardResource, struct CardHandle *handle)
  16727. + {
  16728. + struct Caos    MyCaos;
  16729. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16730. + //    MyCaos.M68kStart    =    NULL;
  16731. + //    MyCaos.M68kSize        =    0;
  16732. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16733. + //    MyCaos.PPCStart        =    NULL;
  16734. + //    MyCaos.PPCSize        =    0;
  16735. +     MyCaos.a2        =(ULONG) handle;
  16736. +     MyCaos.caos_Un.Offset    =    (-84);
  16737. +     MyCaos.a6        =(ULONG) CardResource;    
  16738. +     return((struct Resident *)PPCCallOS(&MyCaos));
  16739. + }
  16740. + #define    OwnCard(handle)    _OwnCard(CARDRES_BASE_NAME, handle)
  16741. + static __inline struct CardHandle *
  16742. + _OwnCard(void *CardResource, struct CardHandle *handle)
  16743. + {
  16744. + struct Caos    MyCaos;
  16745. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16746. + //    MyCaos.M68kStart    =    NULL;
  16747. + //    MyCaos.M68kSize        =    0;
  16748. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16749. + //    MyCaos.PPCStart        =    NULL;
  16750. + //    MyCaos.PPCSize        =    0;
  16751. +     MyCaos.a1        =(ULONG) handle;
  16752. +     MyCaos.caos_Un.Offset    =    (-6);
  16753. +     MyCaos.a6        =(ULONG) CardResource;    
  16754. +     return((struct CardHandle *)PPCCallOS(&MyCaos));
  16755. + }
  16756. + #define    ReadCardStatus()    _ReadCardStatus(CARDRES_BASE_NAME)
  16757. + static __inline UBYTE
  16758. + _ReadCardStatus(void *CardResource)
  16759. + {
  16760. + struct Caos    MyCaos;
  16761. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16762. + //    MyCaos.M68kStart    =    NULL;
  16763. + //    MyCaos.M68kSize        =    0;
  16764. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16765. + //    MyCaos.PPCStart        =    NULL;
  16766. + //    MyCaos.PPCSize        =    0;
  16767. +     MyCaos.caos_Un.Offset    =    (-36);
  16768. +     MyCaos.a6        =(ULONG) CardResource;    
  16769. +     return((UBYTE)PPCCallOS(&MyCaos));
  16770. + }
  16771. + #define    ReleaseCard(handle, flags)    _ReleaseCard(CARDRES_BASE_NAME, handle, flags)
  16772. + static __inline void
  16773. + _ReleaseCard(void *CardResource, struct CardHandle *handle, unsigned long flags)
  16774. + {
  16775. + struct Caos    MyCaos;
  16776. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16777. + //    MyCaos.M68kStart    =    NULL;
  16778. + //    MyCaos.M68kSize        =    0;
  16779. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16780. + //    MyCaos.PPCStart        =    NULL;
  16781. + //    MyCaos.PPCSize        =    0;
  16782. +     MyCaos.a1        =(ULONG) handle;
  16783. +     MyCaos.d0        =(ULONG) flags;
  16784. +     MyCaos.caos_Un.Offset    =    (-12);
  16785. +     MyCaos.a6        =(ULONG) CardResource;    
  16786. +     PPCCallOS(&MyCaos);
  16787. + }
  16788. + #endif /* SASC Pragmas */
  16789. + #endif /* !_PPCPRAGMA_CARDRES_H */
  16790. diff -c2 -d -P -r include_h/powerup/ppcpragmas/cia_pragmas.h includenew/powerup/ppcpragmas/cia_pragmas.h
  16791. *** include_h/powerup/ppcpragmas/cia_pragmas.h    Thu Jan  1 00:00:00 1970
  16792. --- includenew/powerup/ppcpragmas/cia_pragmas.h    Thu Nov  2 22:27:14 2000
  16793. ***************
  16794. *** 0 ****
  16795. --- 1,98 ----
  16796. + /* Automatically generated header! Do not edit! */
  16797. + #ifndef _PPCPRAGMA_CIA_H
  16798. + #define _PPCPRAGMA_CIA_H
  16799. + #ifdef __GNUC__
  16800. + #ifndef _PPCINLINE__CIA_H
  16801. + #include <powerup/ppcinline/cia.h>
  16802. + #endif
  16803. + #else
  16804. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  16805. + #include <powerup/ppclib/interface.h>
  16806. + #endif
  16807. + #ifndef POWERUP_GCCLIB_PROTOS_H
  16808. + #include <powerup/gcclib/powerup_protos.h>
  16809. + #endif
  16810. + #ifndef NO_PPCINLINE_STDARG
  16811. + #define NO_PPCINLINE_STDARG
  16812. + #endif/* SAS C PPC inlines */
  16813. + #define    AbleICR(resource, mask)    _AbleICR(resource, mask)
  16814. + static __inline WORD
  16815. + _AbleICR(struct Library *resource, long mask)
  16816. + {
  16817. + struct Caos    MyCaos;
  16818. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16819. + //    MyCaos.M68kStart    =    NULL;
  16820. + //    MyCaos.M68kSize        =    0;
  16821. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16822. + //    MyCaos.PPCStart        =    NULL;
  16823. + //    MyCaos.PPCSize        =    0;
  16824. +     MyCaos.a6        =(ULONG) resource;
  16825. +     MyCaos.d0        =(ULONG) mask;
  16826. +     MyCaos.caos_Un.Offset    =    (-18);
  16827. +     return((WORD)PPCCallOS(&MyCaos));
  16828. + }
  16829. + #define    AddICRVector(resource, iCRBit, interrupt)    _AddICRVector(resource, iCRBit, interrupt)
  16830. + static __inline struct Interrupt *
  16831. + _AddICRVector(struct Library *resource, long iCRBit, struct Interrupt *interrupt)
  16832. + {
  16833. + struct Caos    MyCaos;
  16834. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16835. + //    MyCaos.M68kStart    =    NULL;
  16836. + //    MyCaos.M68kSize        =    0;
  16837. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16838. + //    MyCaos.PPCStart        =    NULL;
  16839. + //    MyCaos.PPCSize        =    0;
  16840. +     MyCaos.a6        =(ULONG) resource;
  16841. +     MyCaos.d0        =(ULONG) iCRBit;
  16842. +     MyCaos.a1        =(ULONG) interrupt;
  16843. +     MyCaos.caos_Un.Offset    =    (-6);
  16844. +     return((struct Interrupt *)PPCCallOS(&MyCaos));
  16845. + }
  16846. + #define    RemICRVector(resource, iCRBit, interrupt)    _RemICRVector(resource, iCRBit, interrupt)
  16847. + static __inline void
  16848. + _RemICRVector(struct Library *resource, long iCRBit, struct Interrupt *interrupt)
  16849. + {
  16850. + struct Caos    MyCaos;
  16851. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16852. + //    MyCaos.M68kStart    =    NULL;
  16853. + //    MyCaos.M68kSize        =    0;
  16854. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16855. + //    MyCaos.PPCStart        =    NULL;
  16856. + //    MyCaos.PPCSize        =    0;
  16857. +     MyCaos.a6        =(ULONG) resource;
  16858. +     MyCaos.d0        =(ULONG) iCRBit;
  16859. +     MyCaos.a1        =(ULONG) interrupt;
  16860. +     MyCaos.caos_Un.Offset    =    (-12);
  16861. +     PPCCallOS(&MyCaos);
  16862. + }
  16863. + #define    SetICR(resource, mask)    _SetICR(resource, mask)
  16864. + static __inline WORD
  16865. + _SetICR(struct Library *resource, long mask)
  16866. + {
  16867. + struct Caos    MyCaos;
  16868. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16869. + //    MyCaos.M68kStart    =    NULL;
  16870. + //    MyCaos.M68kSize        =    0;
  16871. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16872. + //    MyCaos.PPCStart        =    NULL;
  16873. + //    MyCaos.PPCSize        =    0;
  16874. +     MyCaos.a6        =(ULONG) resource;
  16875. +     MyCaos.d0        =(ULONG) mask;
  16876. +     MyCaos.caos_Un.Offset    =    (-24);
  16877. +     return((WORD)PPCCallOS(&MyCaos));
  16878. + }
  16879. + #endif /* SASC Pragmas */
  16880. + #endif /* !_PPCPRAGMA_CIA_H */
  16881. diff -c2 -d -P -r include_h/powerup/ppcpragmas/colorwheel_pragmas.h includenew/powerup/ppcpragmas/colorwheel_pragmas.h
  16882. *** include_h/powerup/ppcpragmas/colorwheel_pragmas.h    Thu Jan  1 00:00:00 1970
  16883. --- includenew/powerup/ppcpragmas/colorwheel_pragmas.h    Thu Nov  2 22:27:14 2000
  16884. ***************
  16885. *** 0 ****
  16886. --- 1,66 ----
  16887. + /* Automatically generated header! Do not edit! */
  16888. + #ifndef _PPCPRAGMA_COLORWHEEL_H
  16889. + #define _PPCPRAGMA_COLORWHEEL_H
  16890. + #ifdef __GNUC__
  16891. + #ifndef _PPCINLINE__COLORWHEEL_H
  16892. + #include <powerup/ppcinline/colorwheel.h>
  16893. + #endif
  16894. + #else
  16895. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  16896. + #include <powerup/ppclib/interface.h>
  16897. + #endif
  16898. + #ifndef POWERUP_GCCLIB_PROTOS_H
  16899. + #include <powerup/gcclib/powerup_protos.h>
  16900. + #endif
  16901. + #ifndef NO_PPCINLINE_STDARG
  16902. + #define NO_PPCINLINE_STDARG
  16903. + #endif/* SAS C PPC inlines */
  16904. + #ifndef COLORWHEEL_BASE_NAME
  16905. + #define COLORWHEEL_BASE_NAME ColorWheelBase
  16906. + #endif /* !COLORWHEEL_BASE_NAME */
  16907. + #define    ConvertHSBToRGB(hsb, rgb)    _ConvertHSBToRGB(COLORWHEEL_BASE_NAME, hsb, rgb)
  16908. + static __inline void
  16909. + _ConvertHSBToRGB(void *ColorWheelBase, struct ColorWheelHSB *hsb, struct ColorWheelRGB *rgb)
  16910. + {
  16911. + struct Caos    MyCaos;
  16912. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16913. + //    MyCaos.M68kStart    =    NULL;
  16914. + //    MyCaos.M68kSize        =    0;
  16915. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16916. + //    MyCaos.PPCStart        =    NULL;
  16917. + //    MyCaos.PPCSize        =    0;
  16918. +     MyCaos.a0        =(ULONG) hsb;
  16919. +     MyCaos.a1        =(ULONG) rgb;
  16920. +     MyCaos.caos_Un.Offset    =    (-30);
  16921. +     MyCaos.a6        =(ULONG) ColorWheelBase;    
  16922. +     PPCCallOS(&MyCaos);
  16923. + }
  16924. + #define    ConvertRGBToHSB(rgb, hsb)    _ConvertRGBToHSB(COLORWHEEL_BASE_NAME, rgb, hsb)
  16925. + static __inline void
  16926. + _ConvertRGBToHSB(void *ColorWheelBase, struct ColorWheelRGB *rgb, struct ColorWheelHSB *hsb)
  16927. + {
  16928. + struct Caos    MyCaos;
  16929. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16930. + //    MyCaos.M68kStart    =    NULL;
  16931. + //    MyCaos.M68kSize        =    0;
  16932. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16933. + //    MyCaos.PPCStart        =    NULL;
  16934. + //    MyCaos.PPCSize        =    0;
  16935. +     MyCaos.a0        =(ULONG) rgb;
  16936. +     MyCaos.a1        =(ULONG) hsb;
  16937. +     MyCaos.caos_Un.Offset    =    (-36);
  16938. +     MyCaos.a6        =(ULONG) ColorWheelBase;    
  16939. +     PPCCallOS(&MyCaos);
  16940. + }
  16941. + #endif /* SASC Pragmas */
  16942. + #endif /* !_PPCPRAGMA_COLORWHEEL_H */
  16943. diff -c2 -d -P -r include_h/powerup/ppcpragmas/commodities_pragmas.h includenew/powerup/ppcpragmas/commodities_pragmas.h
  16944. *** include_h/powerup/ppcpragmas/commodities_pragmas.h    Thu Jan  1 00:00:00 1970
  16945. --- includenew/powerup/ppcpragmas/commodities_pragmas.h    Thu Nov  2 22:27:15 2000
  16946. ***************
  16947. *** 0 ****
  16948. --- 1,515 ----
  16949. + /* Automatically generated header! Do not edit! */
  16950. + #ifndef _PPCPRAGMA_COMMODITIES_H
  16951. + #define _PPCPRAGMA_COMMODITIES_H
  16952. + #ifdef __GNUC__
  16953. + #ifndef _PPCINLINE__COMMODITIES_H
  16954. + #include <powerup/ppcinline/commodities.h>
  16955. + #endif
  16956. + #else
  16957. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  16958. + #include <powerup/ppclib/interface.h>
  16959. + #endif
  16960. + #ifndef POWERUP_GCCLIB_PROTOS_H
  16961. + #include <powerup/gcclib/powerup_protos.h>
  16962. + #endif
  16963. + #ifndef NO_PPCINLINE_STDARG
  16964. + #define NO_PPCINLINE_STDARG
  16965. + #endif/* SAS C PPC inlines */
  16966. + #ifndef COMMODITIES_BASE_NAME
  16967. + #define COMMODITIES_BASE_NAME CxBase
  16968. + #endif /* !COMMODITIES_BASE_NAME */
  16969. + #define    ActivateCxObj(co, tf)    _ActivateCxObj(COMMODITIES_BASE_NAME, co, tf)
  16970. + static __inline LONG
  16971. + _ActivateCxObj(void *CxBase, CxObj *co, long tf)
  16972. + {
  16973. + struct Caos    MyCaos;
  16974. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16975. + //    MyCaos.M68kStart    =    NULL;
  16976. + //    MyCaos.M68kSize        =    0;
  16977. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16978. + //    MyCaos.PPCStart        =    NULL;
  16979. + //    MyCaos.PPCSize        =    0;
  16980. +     MyCaos.a0        =(ULONG) co;
  16981. +     MyCaos.d0        =(ULONG) tf;
  16982. +     MyCaos.caos_Un.Offset    =    (-42);
  16983. +     MyCaos.a6        =(ULONG) CxBase;    
  16984. +     return((LONG)PPCCallOS(&MyCaos));
  16985. + }
  16986. + #define    AddIEvents(events)    _AddIEvents(COMMODITIES_BASE_NAME, events)
  16987. + static __inline void
  16988. + _AddIEvents(void *CxBase, struct InputEvent *events)
  16989. + {
  16990. + struct Caos    MyCaos;
  16991. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  16992. + //    MyCaos.M68kStart    =    NULL;
  16993. + //    MyCaos.M68kSize        =    0;
  16994. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  16995. + //    MyCaos.PPCStart        =    NULL;
  16996. + //    MyCaos.PPCSize        =    0;
  16997. +     MyCaos.a0        =(ULONG) events;
  16998. +     MyCaos.caos_Un.Offset    =    (-180);
  16999. +     MyCaos.a6        =(ULONG) CxBase;    
  17000. +     PPCCallOS(&MyCaos);
  17001. + }
  17002. + #define    AttachCxObj(headObj, co)    _AttachCxObj(COMMODITIES_BASE_NAME, headObj, co)
  17003. + static __inline void
  17004. + _AttachCxObj(void *CxBase, CxObj *headObj, CxObj *co)
  17005. + {
  17006. + struct Caos    MyCaos;
  17007. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17008. + //    MyCaos.M68kStart    =    NULL;
  17009. + //    MyCaos.M68kSize        =    0;
  17010. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17011. + //    MyCaos.PPCStart        =    NULL;
  17012. + //    MyCaos.PPCSize        =    0;
  17013. +     MyCaos.a0        =(ULONG) headObj;
  17014. +     MyCaos.a1        =(ULONG) co;
  17015. +     MyCaos.caos_Un.Offset    =    (-84);
  17016. +     MyCaos.a6        =(ULONG) CxBase;    
  17017. +     PPCCallOS(&MyCaos);
  17018. + }
  17019. + #define    ClearCxObjError(co)    _ClearCxObjError(COMMODITIES_BASE_NAME, co)
  17020. + static __inline void
  17021. + _ClearCxObjError(void *CxBase, CxObj *co)
  17022. + {
  17023. + struct Caos    MyCaos;
  17024. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17025. + //    MyCaos.M68kStart    =    NULL;
  17026. + //    MyCaos.M68kSize        =    0;
  17027. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17028. + //    MyCaos.PPCStart        =    NULL;
  17029. + //    MyCaos.PPCSize        =    0;
  17030. +     MyCaos.a0        =(ULONG) co;
  17031. +     MyCaos.caos_Un.Offset    =    (-72);
  17032. +     MyCaos.a6        =(ULONG) CxBase;    
  17033. +     PPCCallOS(&MyCaos);
  17034. + }
  17035. + #define    CreateCxObj(type, arg1, arg2)    _CreateCxObj(COMMODITIES_BASE_NAME, type, arg1, arg2)
  17036. + static __inline CxObj *
  17037. + _CreateCxObj(void *CxBase, unsigned long type, long arg1, long arg2)
  17038. + {
  17039. + struct Caos    MyCaos;
  17040. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17041. + //    MyCaos.M68kStart    =    NULL;
  17042. + //    MyCaos.M68kSize        =    0;
  17043. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17044. + //    MyCaos.PPCStart        =    NULL;
  17045. + //    MyCaos.PPCSize        =    0;
  17046. +     MyCaos.d0        =(ULONG) type;
  17047. +     MyCaos.a0        =(ULONG) arg1;
  17048. +     MyCaos.a1        =(ULONG) arg2;
  17049. +     MyCaos.caos_Un.Offset    =    (-30);
  17050. +     MyCaos.a6        =(ULONG) CxBase;    
  17051. +     return((CxObj *)PPCCallOS(&MyCaos));
  17052. + }
  17053. + #define    CxBroker(nb, error)    _CxBroker(COMMODITIES_BASE_NAME, nb, error)
  17054. + static __inline CxObj *
  17055. + _CxBroker(void *CxBase, struct NewBroker *nb, LONG *error)
  17056. + {
  17057. + struct Caos    MyCaos;
  17058. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17059. + //    MyCaos.M68kStart    =    NULL;
  17060. + //    MyCaos.M68kSize        =    0;
  17061. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17062. + //    MyCaos.PPCStart        =    NULL;
  17063. + //    MyCaos.PPCSize        =    0;
  17064. +     MyCaos.a0        =(ULONG) nb;
  17065. +     MyCaos.d0        =(ULONG) error;
  17066. +     MyCaos.caos_Un.Offset    =    (-36);
  17067. +     MyCaos.a6        =(ULONG) CxBase;    
  17068. +     return((CxObj *)PPCCallOS(&MyCaos));
  17069. + }
  17070. + #define    CxMsgData(cxm)    _CxMsgData(COMMODITIES_BASE_NAME, cxm)
  17071. + static __inline APTR
  17072. + _CxMsgData(void *CxBase, CxMsg *cxm)
  17073. + {
  17074. + struct Caos    MyCaos;
  17075. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17076. + //    MyCaos.M68kStart    =    NULL;
  17077. + //    MyCaos.M68kSize        =    0;
  17078. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17079. + //    MyCaos.PPCStart        =    NULL;
  17080. + //    MyCaos.PPCSize        =    0;
  17081. +     MyCaos.a0        =(ULONG) cxm;
  17082. +     MyCaos.caos_Un.Offset    =    (-144);
  17083. +     MyCaos.a6        =(ULONG) CxBase;    
  17084. +     return((APTR)PPCCallOS(&MyCaos));
  17085. + }
  17086. + #define    CxMsgID(cxm)    _CxMsgID(COMMODITIES_BASE_NAME, cxm)
  17087. + static __inline LONG
  17088. + _CxMsgID(void *CxBase, CxMsg *cxm)
  17089. + {
  17090. + struct Caos    MyCaos;
  17091. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17092. + //    MyCaos.M68kStart    =    NULL;
  17093. + //    MyCaos.M68kSize        =    0;
  17094. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17095. + //    MyCaos.PPCStart        =    NULL;
  17096. + //    MyCaos.PPCSize        =    0;
  17097. +     MyCaos.a0        =(ULONG) cxm;
  17098. +     MyCaos.caos_Un.Offset    =    (-150);
  17099. +     MyCaos.a6        =(ULONG) CxBase;    
  17100. +     return((LONG)PPCCallOS(&MyCaos));
  17101. + }
  17102. + #define    CxMsgType(cxm)    _CxMsgType(COMMODITIES_BASE_NAME, cxm)
  17103. + static __inline ULONG
  17104. + _CxMsgType(void *CxBase, CxMsg *cxm)
  17105. + {
  17106. + struct Caos    MyCaos;
  17107. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17108. + //    MyCaos.M68kStart    =    NULL;
  17109. + //    MyCaos.M68kSize        =    0;
  17110. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17111. + //    MyCaos.PPCStart        =    NULL;
  17112. + //    MyCaos.PPCSize        =    0;
  17113. +     MyCaos.a0        =(ULONG) cxm;
  17114. +     MyCaos.caos_Un.Offset    =    (-138);
  17115. +     MyCaos.a6        =(ULONG) CxBase;    
  17116. +     return((ULONG)PPCCallOS(&MyCaos));
  17117. + }
  17118. + #define    CxObjError(co)    _CxObjError(COMMODITIES_BASE_NAME, co)
  17119. + static __inline LONG
  17120. + _CxObjError(void *CxBase, CxObj *co)
  17121. + {
  17122. + struct Caos    MyCaos;
  17123. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17124. + //    MyCaos.M68kStart    =    NULL;
  17125. + //    MyCaos.M68kSize        =    0;
  17126. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17127. + //    MyCaos.PPCStart        =    NULL;
  17128. + //    MyCaos.PPCSize        =    0;
  17129. +     MyCaos.a0        =(ULONG) co;
  17130. +     MyCaos.caos_Un.Offset    =    (-66);
  17131. +     MyCaos.a6        =(ULONG) CxBase;    
  17132. +     return((LONG)PPCCallOS(&MyCaos));
  17133. + }
  17134. + #define    CxObjType(co)    _CxObjType(COMMODITIES_BASE_NAME, co)
  17135. + static __inline ULONG
  17136. + _CxObjType(void *CxBase, CxObj *co)
  17137. + {
  17138. + struct Caos    MyCaos;
  17139. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17140. + //    MyCaos.M68kStart    =    NULL;
  17141. + //    MyCaos.M68kSize        =    0;
  17142. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17143. + //    MyCaos.PPCStart        =    NULL;
  17144. + //    MyCaos.PPCSize        =    0;
  17145. +     MyCaos.a0        =(ULONG) co;
  17146. +     MyCaos.caos_Un.Offset    =    (-60);
  17147. +     MyCaos.a6        =(ULONG) CxBase;    
  17148. +     return((ULONG)PPCCallOS(&MyCaos));
  17149. + }
  17150. + #define    DeleteCxObj(co)    _DeleteCxObj(COMMODITIES_BASE_NAME, co)
  17151. + static __inline void
  17152. + _DeleteCxObj(void *CxBase, CxObj *co)
  17153. + {
  17154. + struct Caos    MyCaos;
  17155. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17156. + //    MyCaos.M68kStart    =    NULL;
  17157. + //    MyCaos.M68kSize        =    0;
  17158. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17159. + //    MyCaos.PPCStart        =    NULL;
  17160. + //    MyCaos.PPCSize        =    0;
  17161. +     MyCaos.a0        =(ULONG) co;
  17162. +     MyCaos.caos_Un.Offset    =    (-48);
  17163. +     MyCaos.a6        =(ULONG) CxBase;    
  17164. +     PPCCallOS(&MyCaos);
  17165. + }
  17166. + #define    DeleteCxObjAll(co)    _DeleteCxObjAll(COMMODITIES_BASE_NAME, co)
  17167. + static __inline void
  17168. + _DeleteCxObjAll(void *CxBase, CxObj *co)
  17169. + {
  17170. + struct Caos    MyCaos;
  17171. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17172. + //    MyCaos.M68kStart    =    NULL;
  17173. + //    MyCaos.M68kSize        =    0;
  17174. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17175. + //    MyCaos.PPCStart        =    NULL;
  17176. + //    MyCaos.PPCSize        =    0;
  17177. +     MyCaos.a0        =(ULONG) co;
  17178. +     MyCaos.caos_Un.Offset    =    (-54);
  17179. +     MyCaos.a6        =(ULONG) CxBase;    
  17180. +     PPCCallOS(&MyCaos);
  17181. + }
  17182. + #define    DisposeCxMsg(cxm)    _DisposeCxMsg(COMMODITIES_BASE_NAME, cxm)
  17183. + static __inline void
  17184. + _DisposeCxMsg(void *CxBase, CxMsg *cxm)
  17185. + {
  17186. + struct Caos    MyCaos;
  17187. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17188. + //    MyCaos.M68kStart    =    NULL;
  17189. + //    MyCaos.M68kSize        =    0;
  17190. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17191. + //    MyCaos.PPCStart        =    NULL;
  17192. + //    MyCaos.PPCSize        =    0;
  17193. +     MyCaos.a0        =(ULONG) cxm;
  17194. +     MyCaos.caos_Un.Offset    =    (-168);
  17195. +     MyCaos.a6        =(ULONG) CxBase;    
  17196. +     PPCCallOS(&MyCaos);
  17197. + }
  17198. + #define    DivertCxMsg(cxm, headObj, returnObj)    _DivertCxMsg(COMMODITIES_BASE_NAME, cxm, headObj, returnObj)
  17199. + static __inline void
  17200. + _DivertCxMsg(void *CxBase, CxMsg *cxm, CxObj *headObj, CxObj *returnObj)
  17201. + {
  17202. + struct Caos    MyCaos;
  17203. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17204. + //    MyCaos.M68kStart    =    NULL;
  17205. + //    MyCaos.M68kSize        =    0;
  17206. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17207. + //    MyCaos.PPCStart        =    NULL;
  17208. + //    MyCaos.PPCSize        =    0;
  17209. +     MyCaos.a0        =(ULONG) cxm;
  17210. +     MyCaos.a1        =(ULONG) headObj;
  17211. +     MyCaos.a2        =(ULONG) returnObj;
  17212. +     MyCaos.caos_Un.Offset    =    (-156);
  17213. +     MyCaos.a6        =(ULONG) CxBase;    
  17214. +     PPCCallOS(&MyCaos);
  17215. + }
  17216. + #define    EnqueueCxObj(headObj, co)    _EnqueueCxObj(COMMODITIES_BASE_NAME, headObj, co)
  17217. + static __inline void
  17218. + _EnqueueCxObj(void *CxBase, CxObj *headObj, CxObj *co)
  17219. + {
  17220. + struct Caos    MyCaos;
  17221. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17222. + //    MyCaos.M68kStart    =    NULL;
  17223. + //    MyCaos.M68kSize        =    0;
  17224. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17225. + //    MyCaos.PPCStart        =    NULL;
  17226. + //    MyCaos.PPCSize        =    0;
  17227. +     MyCaos.a0        =(ULONG) headObj;
  17228. +     MyCaos.a1        =(ULONG) co;
  17229. +     MyCaos.caos_Un.Offset    =    (-90);
  17230. +     MyCaos.a6        =(ULONG) CxBase;    
  17231. +     PPCCallOS(&MyCaos);
  17232. + }
  17233. + #define    InsertCxObj(headObj, co, pred)    _InsertCxObj(COMMODITIES_BASE_NAME, headObj, co, pred)
  17234. + static __inline void
  17235. + _InsertCxObj(void *CxBase, CxObj *headObj, CxObj *co, CxObj *pred)
  17236. + {
  17237. + struct Caos    MyCaos;
  17238. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17239. + //    MyCaos.M68kStart    =    NULL;
  17240. + //    MyCaos.M68kSize        =    0;
  17241. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17242. + //    MyCaos.PPCStart        =    NULL;
  17243. + //    MyCaos.PPCSize        =    0;
  17244. +     MyCaos.a0        =(ULONG) headObj;
  17245. +     MyCaos.a1        =(ULONG) co;
  17246. +     MyCaos.a2        =(ULONG) pred;
  17247. +     MyCaos.caos_Un.Offset    =    (-96);
  17248. +     MyCaos.a6        =(ULONG) CxBase;    
  17249. +     PPCCallOS(&MyCaos);
  17250. + }
  17251. + #define    InvertKeyMap(ansiCode, event, km)    _InvertKeyMap(COMMODITIES_BASE_NAME, ansiCode, event, km)
  17252. + static __inline BOOL
  17253. + _InvertKeyMap(void *CxBase, unsigned long ansiCode, struct InputEvent *event, struct KeyMap *km)
  17254. + {
  17255. + struct Caos    MyCaos;
  17256. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17257. + //    MyCaos.M68kStart    =    NULL;
  17258. + //    MyCaos.M68kSize        =    0;
  17259. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17260. + //    MyCaos.PPCStart        =    NULL;
  17261. + //    MyCaos.PPCSize        =    0;
  17262. +     MyCaos.d0        =(ULONG) ansiCode;
  17263. +     MyCaos.a0        =(ULONG) event;
  17264. +     MyCaos.a1        =(ULONG) km;
  17265. +     MyCaos.caos_Un.Offset    =    (-174);
  17266. +     MyCaos.a6        =(ULONG) CxBase;    
  17267. +     return((BOOL)PPCCallOS(&MyCaos));
  17268. + }
  17269. + #define    MatchIX(event, ix)    _MatchIX(COMMODITIES_BASE_NAME, event, ix)
  17270. + static __inline BOOL
  17271. + _MatchIX(void *CxBase, struct InputEvent *event, IX *ix)
  17272. + {
  17273. + struct Caos    MyCaos;
  17274. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17275. + //    MyCaos.M68kStart    =    NULL;
  17276. + //    MyCaos.M68kSize        =    0;
  17277. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17278. + //    MyCaos.PPCStart        =    NULL;
  17279. + //    MyCaos.PPCSize        =    0;
  17280. +     MyCaos.a0        =(ULONG) event;
  17281. +     MyCaos.a1        =(ULONG) ix;
  17282. +     MyCaos.caos_Un.Offset    =    (-204);
  17283. +     MyCaos.a6        =(ULONG) CxBase;    
  17284. +     return((BOOL)PPCCallOS(&MyCaos));
  17285. + }
  17286. + #define    ParseIX(description, ix)    _ParseIX(COMMODITIES_BASE_NAME, description, ix)
  17287. + static __inline LONG
  17288. + _ParseIX(void *CxBase, STRPTR description, IX *ix)
  17289. + {
  17290. + struct Caos    MyCaos;
  17291. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17292. + //    MyCaos.M68kStart    =    NULL;
  17293. + //    MyCaos.M68kSize        =    0;
  17294. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17295. + //    MyCaos.PPCStart        =    NULL;
  17296. + //    MyCaos.PPCSize        =    0;
  17297. +     MyCaos.a0        =(ULONG) description;
  17298. +     MyCaos.a1        =(ULONG) ix;
  17299. +     MyCaos.caos_Un.Offset    =    (-132);
  17300. +     MyCaos.a6        =(ULONG) CxBase;    
  17301. +     return((LONG)PPCCallOS(&MyCaos));
  17302. + }
  17303. + #define    RemoveCxObj(co)    _RemoveCxObj(COMMODITIES_BASE_NAME, co)
  17304. + static __inline void
  17305. + _RemoveCxObj(void *CxBase, CxObj *co)
  17306. + {
  17307. + struct Caos    MyCaos;
  17308. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17309. + //    MyCaos.M68kStart    =    NULL;
  17310. + //    MyCaos.M68kSize        =    0;
  17311. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17312. + //    MyCaos.PPCStart        =    NULL;
  17313. + //    MyCaos.PPCSize        =    0;
  17314. +     MyCaos.a0        =(ULONG) co;
  17315. +     MyCaos.caos_Un.Offset    =    (-102);
  17316. +     MyCaos.a6        =(ULONG) CxBase;    
  17317. +     PPCCallOS(&MyCaos);
  17318. + }
  17319. + #define    RouteCxMsg(cxm, co)    _RouteCxMsg(COMMODITIES_BASE_NAME, cxm, co)
  17320. + static __inline void
  17321. + _RouteCxMsg(void *CxBase, CxMsg *cxm, CxObj *co)
  17322. + {
  17323. + struct Caos    MyCaos;
  17324. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17325. + //    MyCaos.M68kStart    =    NULL;
  17326. + //    MyCaos.M68kSize        =    0;
  17327. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17328. + //    MyCaos.PPCStart        =    NULL;
  17329. + //    MyCaos.PPCSize        =    0;
  17330. +     MyCaos.a0        =(ULONG) cxm;
  17331. +     MyCaos.a1        =(ULONG) co;
  17332. +     MyCaos.caos_Un.Offset    =    (-162);
  17333. +     MyCaos.a6        =(ULONG) CxBase;    
  17334. +     PPCCallOS(&MyCaos);
  17335. + }
  17336. + #define    SetCxObjPri(co, pri)    _SetCxObjPri(COMMODITIES_BASE_NAME, co, pri)
  17337. + static __inline LONG
  17338. + _SetCxObjPri(void *CxBase, CxObj *co, long pri)
  17339. + {
  17340. + struct Caos    MyCaos;
  17341. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17342. + //    MyCaos.M68kStart    =    NULL;
  17343. + //    MyCaos.M68kSize        =    0;
  17344. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17345. + //    MyCaos.PPCStart        =    NULL;
  17346. + //    MyCaos.PPCSize        =    0;
  17347. +     MyCaos.a0        =(ULONG) co;
  17348. +     MyCaos.d0        =(ULONG) pri;
  17349. +     MyCaos.caos_Un.Offset    =    (-78);
  17350. +     MyCaos.a6        =(ULONG) CxBase;    
  17351. +     return((LONG)PPCCallOS(&MyCaos));
  17352. + }
  17353. + #define    SetFilter(filter, text)    _SetFilter(COMMODITIES_BASE_NAME, filter, text)
  17354. + static __inline void
  17355. + _SetFilter(void *CxBase, CxObj *filter, STRPTR text)
  17356. + {
  17357. + struct Caos    MyCaos;
  17358. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17359. + //    MyCaos.M68kStart    =    NULL;
  17360. + //    MyCaos.M68kSize        =    0;
  17361. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17362. + //    MyCaos.PPCStart        =    NULL;
  17363. + //    MyCaos.PPCSize        =    0;
  17364. +     MyCaos.a0        =(ULONG) filter;
  17365. +     MyCaos.a1        =(ULONG) text;
  17366. +     MyCaos.caos_Un.Offset    =    (-120);
  17367. +     MyCaos.a6        =(ULONG) CxBase;    
  17368. +     PPCCallOS(&MyCaos);
  17369. + }
  17370. + #define    SetFilterIX(filter, ix)    _SetFilterIX(COMMODITIES_BASE_NAME, filter, ix)
  17371. + static __inline void
  17372. + _SetFilterIX(void *CxBase, CxObj *filter, IX *ix)
  17373. + {
  17374. + struct Caos    MyCaos;
  17375. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17376. + //    MyCaos.M68kStart    =    NULL;
  17377. + //    MyCaos.M68kSize        =    0;
  17378. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17379. + //    MyCaos.PPCStart        =    NULL;
  17380. + //    MyCaos.PPCSize        =    0;
  17381. +     MyCaos.a0        =(ULONG) filter;
  17382. +     MyCaos.a1        =(ULONG) ix;
  17383. +     MyCaos.caos_Un.Offset    =    (-126);
  17384. +     MyCaos.a6        =(ULONG) CxBase;    
  17385. +     PPCCallOS(&MyCaos);
  17386. + }
  17387. + #define    SetTranslate(translator, events)    _SetTranslate(COMMODITIES_BASE_NAME, translator, events)
  17388. + static __inline void
  17389. + _SetTranslate(void *CxBase, CxObj *translator, struct InputEvent *events)
  17390. + {
  17391. + struct Caos    MyCaos;
  17392. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17393. + //    MyCaos.M68kStart    =    NULL;
  17394. + //    MyCaos.M68kSize        =    0;
  17395. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17396. + //    MyCaos.PPCStart        =    NULL;
  17397. + //    MyCaos.PPCSize        =    0;
  17398. +     MyCaos.a0        =(ULONG) translator;
  17399. +     MyCaos.a1        =(ULONG) events;
  17400. +     MyCaos.caos_Un.Offset    =    (-114);
  17401. +     MyCaos.a6        =(ULONG) CxBase;    
  17402. +     PPCCallOS(&MyCaos);
  17403. + }
  17404. + #endif /* SASC Pragmas */
  17405. + #endif /* !_PPCPRAGMA_COMMODITIES_H */
  17406. diff -c2 -d -P -r include_h/powerup/ppcpragmas/console_pragmas.h includenew/powerup/ppcpragmas/console_pragmas.h
  17407. *** include_h/powerup/ppcpragmas/console_pragmas.h    Thu Jan  1 00:00:00 1970
  17408. --- includenew/powerup/ppcpragmas/console_pragmas.h    Thu Nov  2 22:27:15 2000
  17409. ***************
  17410. *** 0 ****
  17411. --- 1,68 ----
  17412. + /* Automatically generated header! Do not edit! */
  17413. + #ifndef _PPCPRAGMA_CONSOLE_H
  17414. + #define _PPCPRAGMA_CONSOLE_H
  17415. + #ifdef __GNUC__
  17416. + #ifndef _PPCINLINE__CONSOLE_H
  17417. + #include <powerup/ppcinline/console.h>
  17418. + #endif
  17419. + #else
  17420. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  17421. + #include <powerup/ppclib/interface.h>
  17422. + #endif
  17423. + #ifndef POWERUP_GCCLIB_PROTOS_H
  17424. + #include <powerup/gcclib/powerup_protos.h>
  17425. + #endif
  17426. + #ifndef NO_PPCINLINE_STDARG
  17427. + #define NO_PPCINLINE_STDARG
  17428. + #endif/* SAS C PPC inlines */
  17429. + #ifndef CONSOLE_BASE_NAME
  17430. + #define CONSOLE_BASE_NAME ConsoleDevice
  17431. + #endif /* !CONSOLE_BASE_NAME */
  17432. + #define    CDInputHandler(events, consoleDevice)    _CDInputHandler(CONSOLE_BASE_NAME, events, consoleDevice)
  17433. + static __inline struct InputEvent *
  17434. + _CDInputHandler(void *ConsoleDevice, struct InputEvent *events, struct Library *consoleDevice)
  17435. + {
  17436. + struct Caos    MyCaos;
  17437. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17438. + //    MyCaos.M68kStart    =    NULL;
  17439. + //    MyCaos.M68kSize        =    0;
  17440. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17441. + //    MyCaos.PPCStart        =    NULL;
  17442. + //    MyCaos.PPCSize        =    0;
  17443. +     MyCaos.a0        =(ULONG) events;
  17444. +     MyCaos.a1        =(ULONG) consoleDevice;
  17445. +     MyCaos.caos_Un.Offset    =    (-42);
  17446. +     MyCaos.a6        =(ULONG) ConsoleDevice;    
  17447. +     return((struct InputEvent *)PPCCallOS(&MyCaos));
  17448. + }
  17449. + #define    RawKeyConvert(events, buffer, length, keyMap)    _RawKeyConvert(CONSOLE_BASE_NAME, events, buffer, length, keyMap)
  17450. + static __inline LONG
  17451. + _RawKeyConvert(void *ConsoleDevice, struct InputEvent *events, STRPTR buffer, long length, struct KeyMap *keyMap)
  17452. + {
  17453. + struct Caos    MyCaos;
  17454. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17455. + //    MyCaos.M68kStart    =    NULL;
  17456. + //    MyCaos.M68kSize        =    0;
  17457. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17458. + //    MyCaos.PPCStart        =    NULL;
  17459. + //    MyCaos.PPCSize        =    0;
  17460. +     MyCaos.a0        =(ULONG) events;
  17461. +     MyCaos.a1        =(ULONG) buffer;
  17462. +     MyCaos.d1        =(ULONG) length;
  17463. +     MyCaos.a2        =(ULONG) keyMap;
  17464. +     MyCaos.caos_Un.Offset    =    (-48);
  17465. +     MyCaos.a6        =(ULONG) ConsoleDevice;    
  17466. +     return((LONG)PPCCallOS(&MyCaos));
  17467. + }
  17468. + #endif /* SASC Pragmas */
  17469. + #endif /* !_PPCPRAGMA_CONSOLE_H */
  17470. diff -c2 -d -P -r include_h/powerup/ppcpragmas/datatypes_pragmas.h includenew/powerup/ppcpragmas/datatypes_pragmas.h
  17471. *** include_h/powerup/ppcpragmas/datatypes_pragmas.h    Thu Jan  1 00:00:00 1970
  17472. --- includenew/powerup/ppcpragmas/datatypes_pragmas.h    Thu Nov  2 22:27:13 2000
  17473. ***************
  17474. *** 0 ****
  17475. --- 1,354 ----
  17476. + /* Automatically generated header! Do not edit! */
  17477. + #ifndef _PPCPRAGMA_DATATYPES_H
  17478. + #define _PPCPRAGMA_DATATYPES_H
  17479. + #ifdef __GNUC__
  17480. + #ifndef _PPCINLINE__DATATYPES_H
  17481. + #include <powerup/ppcinline/datatypes.h>
  17482. + #endif
  17483. + #else
  17484. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  17485. + #include <powerup/ppclib/interface.h>
  17486. + #endif
  17487. + #ifndef POWERUP_GCCLIB_PROTOS_H
  17488. + #include <powerup/gcclib/powerup_protos.h>
  17489. + #endif
  17490. + #ifndef NO_PPCINLINE_STDARG
  17491. + #define NO_PPCINLINE_STDARG
  17492. + #endif/* SAS C PPC inlines */
  17493. + #ifndef DATATYPES_BASE_NAME
  17494. + #define DATATYPES_BASE_NAME DataTypesBase
  17495. + #endif /* !DATATYPES_BASE_NAME */
  17496. + #define    AddDTObject(win, req, o, pos)    _AddDTObject(DATATYPES_BASE_NAME, win, req, o, pos)
  17497. + static __inline LONG
  17498. + _AddDTObject(void *DataTypesBase, struct Window *win, struct Requester *req, Object *o, long pos)
  17499. + {
  17500. + struct Caos    MyCaos;
  17501. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17502. + //    MyCaos.M68kStart    =    NULL;
  17503. + //    MyCaos.M68kSize        =    0;
  17504. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17505. + //    MyCaos.PPCStart        =    NULL;
  17506. + //    MyCaos.PPCSize        =    0;
  17507. +     MyCaos.a0        =(ULONG) win;
  17508. +     MyCaos.a1        =(ULONG) req;
  17509. +     MyCaos.a2        =(ULONG) o;
  17510. +     MyCaos.d0        =(ULONG) pos;
  17511. +     MyCaos.caos_Un.Offset    =    (-72);
  17512. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17513. +     return((LONG)PPCCallOS(&MyCaos));
  17514. + }
  17515. + #define    DisposeDTObject(o)    _DisposeDTObject(DATATYPES_BASE_NAME, o)
  17516. + static __inline void
  17517. + _DisposeDTObject(void *DataTypesBase, Object *o)
  17518. + {
  17519. + struct Caos    MyCaos;
  17520. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17521. + //    MyCaos.M68kStart    =    NULL;
  17522. + //    MyCaos.M68kSize        =    0;
  17523. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17524. + //    MyCaos.PPCStart        =    NULL;
  17525. + //    MyCaos.PPCSize        =    0;
  17526. +     MyCaos.a0        =(ULONG) o;
  17527. +     MyCaos.caos_Un.Offset    =    (-54);
  17528. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17529. +     PPCCallOS(&MyCaos);
  17530. + }
  17531. + #define    DoAsyncLayout(o, gpl)    _DoAsyncLayout(DATATYPES_BASE_NAME, o, gpl)
  17532. + static __inline ULONG
  17533. + _DoAsyncLayout(void *DataTypesBase, Object *o, struct gpLayout *gpl)
  17534. + {
  17535. + struct Caos    MyCaos;
  17536. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17537. + //    MyCaos.M68kStart    =    NULL;
  17538. + //    MyCaos.M68kSize        =    0;
  17539. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17540. + //    MyCaos.PPCStart        =    NULL;
  17541. + //    MyCaos.PPCSize        =    0;
  17542. +     MyCaos.a0        =(ULONG) o;
  17543. +     MyCaos.a1        =(ULONG) gpl;
  17544. +     MyCaos.caos_Un.Offset    =    (-84);
  17545. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17546. +     return((ULONG)PPCCallOS(&MyCaos));
  17547. + }
  17548. + #define    DoDTMethodA(o, win, req, msg)    _DoDTMethodA(DATATYPES_BASE_NAME, o, win, req, msg)
  17549. + static __inline ULONG
  17550. + _DoDTMethodA(void *DataTypesBase, Object *o, struct Window *win, struct Requester *req, Msg msg)
  17551. + {
  17552. + struct Caos    MyCaos;
  17553. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17554. + //    MyCaos.M68kStart    =    NULL;
  17555. + //    MyCaos.M68kSize        =    0;
  17556. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17557. + //    MyCaos.PPCStart        =    NULL;
  17558. + //    MyCaos.PPCSize        =    0;
  17559. +     MyCaos.a0        =(ULONG) o;
  17560. +     MyCaos.a1        =(ULONG) win;
  17561. +     MyCaos.a2        =(ULONG) req;
  17562. +     MyCaos.a3        =(ULONG) msg;
  17563. +     MyCaos.caos_Un.Offset    =    (-90);
  17564. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17565. +     return((ULONG)PPCCallOS(&MyCaos));
  17566. + }
  17567. + #ifndef NO_PPCINLINE_STDARG
  17568. + #define DoDTMethod(a0, a1, a2, tags...) \
  17569. +     ({ULONG _tags[] = { tags }; DoDTMethodA((a0), (a1), (a2), (Msg)_tags);})
  17570. + #endif /* !NO_PPCINLINE_STDARG */
  17571. + #define    GetDTAttrsA(o, attrs)    _GetDTAttrsA(DATATYPES_BASE_NAME, o, attrs)
  17572. + static __inline ULONG
  17573. + _GetDTAttrsA(void *DataTypesBase, Object *o, struct TagItem *attrs)
  17574. + {
  17575. + struct Caos    MyCaos;
  17576. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17577. + //    MyCaos.M68kStart    =    NULL;
  17578. + //    MyCaos.M68kSize        =    0;
  17579. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17580. + //    MyCaos.PPCStart        =    NULL;
  17581. + //    MyCaos.PPCSize        =    0;
  17582. +     MyCaos.a0        =(ULONG) o;
  17583. +     MyCaos.a2        =(ULONG) attrs;
  17584. +     MyCaos.caos_Un.Offset    =    (-66);
  17585. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17586. +     return((ULONG)PPCCallOS(&MyCaos));
  17587. + }
  17588. + #ifndef NO_PPCINLINE_STDARG
  17589. + #define GetDTAttrs(a0, tags...) \
  17590. +     ({ULONG _tags[] = { tags }; GetDTAttrsA((a0), (struct TagItem *)_tags);})
  17591. + #endif /* !NO_PPCINLINE_STDARG */
  17592. + #define    GetDTMethods(object)    _GetDTMethods(DATATYPES_BASE_NAME, object)
  17593. + static __inline ULONG *
  17594. + _GetDTMethods(void *DataTypesBase, Object *object)
  17595. + {
  17596. + struct Caos    MyCaos;
  17597. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17598. + //    MyCaos.M68kStart    =    NULL;
  17599. + //    MyCaos.M68kSize        =    0;
  17600. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17601. + //    MyCaos.PPCStart        =    NULL;
  17602. + //    MyCaos.PPCSize        =    0;
  17603. +     MyCaos.a0        =(ULONG) object;
  17604. +     MyCaos.caos_Un.Offset    =    (-102);
  17605. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17606. +     return((ULONG *)PPCCallOS(&MyCaos));
  17607. + }
  17608. + #define    GetDTString(id)    _GetDTString(DATATYPES_BASE_NAME, id)
  17609. + static __inline STRPTR
  17610. + _GetDTString(void *DataTypesBase, unsigned long id)
  17611. + {
  17612. + struct Caos    MyCaos;
  17613. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17614. + //    MyCaos.M68kStart    =    NULL;
  17615. + //    MyCaos.M68kSize        =    0;
  17616. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17617. + //    MyCaos.PPCStart        =    NULL;
  17618. + //    MyCaos.PPCSize        =    0;
  17619. +     MyCaos.d0        =(ULONG) id;
  17620. +     MyCaos.caos_Un.Offset    =    (-138);
  17621. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17622. +     return((STRPTR)PPCCallOS(&MyCaos));
  17623. + }
  17624. + #define    GetDTTriggerMethods(object)    _GetDTTriggerMethods(DATATYPES_BASE_NAME, object)
  17625. + static __inline struct DTMethods *
  17626. + _GetDTTriggerMethods(void *DataTypesBase, Object *object)
  17627. + {
  17628. + struct Caos    MyCaos;
  17629. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17630. + //    MyCaos.M68kStart    =    NULL;
  17631. + //    MyCaos.M68kSize        =    0;
  17632. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17633. + //    MyCaos.PPCStart        =    NULL;
  17634. + //    MyCaos.PPCSize        =    0;
  17635. +     MyCaos.a0        =(ULONG) object;
  17636. +     MyCaos.caos_Un.Offset    =    (-108);
  17637. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17638. +     return((struct DTMethods *)PPCCallOS(&MyCaos));
  17639. + }
  17640. + #define    NewDTObjectA(name, attrs)    _NewDTObjectA(DATATYPES_BASE_NAME, name, attrs)
  17641. + static __inline Object *
  17642. + _NewDTObjectA(void *DataTypesBase, APTR name, struct TagItem *attrs)
  17643. + {
  17644. + struct Caos    MyCaos;
  17645. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17646. + //    MyCaos.M68kStart    =    NULL;
  17647. + //    MyCaos.M68kSize        =    0;
  17648. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17649. + //    MyCaos.PPCStart        =    NULL;
  17650. + //    MyCaos.PPCSize        =    0;
  17651. +     MyCaos.d0        =(ULONG) name;
  17652. +     MyCaos.a0        =(ULONG) attrs;
  17653. +     MyCaos.caos_Un.Offset    =    (-48);
  17654. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17655. +     return((Object *)PPCCallOS(&MyCaos));
  17656. + }
  17657. + #ifndef NO_PPCINLINE_STDARG
  17658. + #define NewDTObject(a0, tags...) \
  17659. +     ({ULONG _tags[] = { tags }; NewDTObjectA((a0), (struct TagItem *)_tags);})
  17660. + #endif /* !NO_PPCINLINE_STDARG */
  17661. + #define    ObtainDataTypeA(type, handle, attrs)    _ObtainDataTypeA(DATATYPES_BASE_NAME, type, handle, attrs)
  17662. + static __inline struct DataType *
  17663. + _ObtainDataTypeA(void *DataTypesBase, unsigned long type, APTR handle, struct TagItem *attrs)
  17664. + {
  17665. + struct Caos    MyCaos;
  17666. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17667. + //    MyCaos.M68kStart    =    NULL;
  17668. + //    MyCaos.M68kSize        =    0;
  17669. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17670. + //    MyCaos.PPCStart        =    NULL;
  17671. + //    MyCaos.PPCSize        =    0;
  17672. +     MyCaos.d0        =(ULONG) type;
  17673. +     MyCaos.a0        =(ULONG) handle;
  17674. +     MyCaos.a1        =(ULONG) attrs;
  17675. +     MyCaos.caos_Un.Offset    =    (-36);
  17676. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17677. +     return((struct DataType *)PPCCallOS(&MyCaos));
  17678. + }
  17679. + #ifndef NO_PPCINLINE_STDARG
  17680. + #define ObtainDataType(a0, a1, tags...) \
  17681. +     ({ULONG _tags[] = { tags }; ObtainDataTypeA((a0), (a1), (struct TagItem *)_tags);})
  17682. + #endif /* !NO_PPCINLINE_STDARG */
  17683. + #define    PrintDTObjectA(o, w, r, msg)    _PrintDTObjectA(DATATYPES_BASE_NAME, o, w, r, msg)
  17684. + static __inline ULONG
  17685. + _PrintDTObjectA(void *DataTypesBase, Object *o, struct Window *w, struct Requester *r, struct dtPrint *msg)
  17686. + {
  17687. + struct Caos    MyCaos;
  17688. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17689. + //    MyCaos.M68kStart    =    NULL;
  17690. + //    MyCaos.M68kSize        =    0;
  17691. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17692. + //    MyCaos.PPCStart        =    NULL;
  17693. + //    MyCaos.PPCSize        =    0;
  17694. +     MyCaos.a0        =(ULONG) o;
  17695. +     MyCaos.a1        =(ULONG) w;
  17696. +     MyCaos.a2        =(ULONG) r;
  17697. +     MyCaos.a3        =(ULONG) msg;
  17698. +     MyCaos.caos_Un.Offset    =    (-114);
  17699. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17700. +     return((ULONG)PPCCallOS(&MyCaos));
  17701. + }
  17702. + #ifndef NO_PPCINLINE_STDARG
  17703. + #define PrintDTObject(a0, a1, a2, tags...) \
  17704. +     ({ULONG _tags[] = { tags }; PrintDTObjectA((a0), (a1), (a2), (struct dtPrint *)_tags);})
  17705. + #endif /* !NO_PPCINLINE_STDARG */
  17706. + #define    RefreshDTObjectA(o, win, req, attrs)    _RefreshDTObjectA(DATATYPES_BASE_NAME, o, win, req, attrs)
  17707. + static __inline void
  17708. + _RefreshDTObjectA(void *DataTypesBase, Object *o, struct Window *win, struct Requester *req, struct TagItem *attrs)
  17709. + {
  17710. + struct Caos    MyCaos;
  17711. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17712. + //    MyCaos.M68kStart    =    NULL;
  17713. + //    MyCaos.M68kSize        =    0;
  17714. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17715. + //    MyCaos.PPCStart        =    NULL;
  17716. + //    MyCaos.PPCSize        =    0;
  17717. +     MyCaos.a0        =(ULONG) o;
  17718. +     MyCaos.a1        =(ULONG) win;
  17719. +     MyCaos.a2        =(ULONG) req;
  17720. +     MyCaos.a3        =(ULONG) attrs;
  17721. +     MyCaos.caos_Un.Offset    =    (-78);
  17722. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17723. +     PPCCallOS(&MyCaos);
  17724. + }
  17725. + #ifndef NO_PPCINLINE_STDARG
  17726. + #define RefreshDTObject(a0, a1, a2, tags...) \
  17727. +     ({ULONG _tags[] = { tags }; RefreshDTObjectA((a0), (a1), (a2), (struct TagItem *)_tags);})
  17728. + #endif /* !NO_PPCINLINE_STDARG */
  17729. + #define    ReleaseDataType(dt)    _ReleaseDataType(DATATYPES_BASE_NAME, dt)
  17730. + static __inline void
  17731. + _ReleaseDataType(void *DataTypesBase, struct DataType *dt)
  17732. + {
  17733. + struct Caos    MyCaos;
  17734. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17735. + //    MyCaos.M68kStart    =    NULL;
  17736. + //    MyCaos.M68kSize        =    0;
  17737. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17738. + //    MyCaos.PPCStart        =    NULL;
  17739. + //    MyCaos.PPCSize        =    0;
  17740. +     MyCaos.a0        =(ULONG) dt;
  17741. +     MyCaos.caos_Un.Offset    =    (-42);
  17742. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17743. +     PPCCallOS(&MyCaos);
  17744. + }
  17745. + #define    RemoveDTObject(win, o)    _RemoveDTObject(DATATYPES_BASE_NAME, win, o)
  17746. + static __inline LONG
  17747. + _RemoveDTObject(void *DataTypesBase, struct Window *win, Object *o)
  17748. + {
  17749. + struct Caos    MyCaos;
  17750. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17751. + //    MyCaos.M68kStart    =    NULL;
  17752. + //    MyCaos.M68kSize        =    0;
  17753. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17754. + //    MyCaos.PPCStart        =    NULL;
  17755. + //    MyCaos.PPCSize        =    0;
  17756. +     MyCaos.a0        =(ULONG) win;
  17757. +     MyCaos.a1        =(ULONG) o;
  17758. +     MyCaos.caos_Un.Offset    =    (-96);
  17759. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17760. +     return((LONG)PPCCallOS(&MyCaos));
  17761. + }
  17762. + #define    SetDTAttrsA(o, win, req, attrs)    _SetDTAttrsA(DATATYPES_BASE_NAME, o, win, req, attrs)
  17763. + static __inline ULONG
  17764. + _SetDTAttrsA(void *DataTypesBase, Object *o, struct Window *win, struct Requester *req, struct TagItem *attrs)
  17765. + {
  17766. + struct Caos    MyCaos;
  17767. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17768. + //    MyCaos.M68kStart    =    NULL;
  17769. + //    MyCaos.M68kSize        =    0;
  17770. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17771. + //    MyCaos.PPCStart        =    NULL;
  17772. + //    MyCaos.PPCSize        =    0;
  17773. +     MyCaos.a0        =(ULONG) o;
  17774. +     MyCaos.a1        =(ULONG) win;
  17775. +     MyCaos.a2        =(ULONG) req;
  17776. +     MyCaos.a3        =(ULONG) attrs;
  17777. +     MyCaos.caos_Un.Offset    =    (-60);
  17778. +     MyCaos.a6        =(ULONG) DataTypesBase;    
  17779. +     return((ULONG)PPCCallOS(&MyCaos));
  17780. + }
  17781. + #ifndef NO_PPCINLINE_STDARG
  17782. + #define SetDTAttrs(a0, a1, a2, tags...) \
  17783. +     ({ULONG _tags[] = { tags }; SetDTAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  17784. + #endif /* !NO_PPCINLINE_STDARG */
  17785. + #endif /* SASC Pragmas */
  17786. + #endif /* !_PPCPRAGMA_DATATYPES_H */
  17787. diff -c2 -d -P -r include_h/powerup/ppcpragmas/disk_pragmas.h includenew/powerup/ppcpragmas/disk_pragmas.h
  17788. *** include_h/powerup/ppcpragmas/disk_pragmas.h    Thu Jan  1 00:00:00 1970
  17789. --- includenew/powerup/ppcpragmas/disk_pragmas.h    Thu Nov  2 22:27:13 2000
  17790. ***************
  17791. *** 0 ****
  17792. --- 1,135 ----
  17793. + /* Automatically generated header! Do not edit! */
  17794. + #ifndef _PPCPRAGMA_DISK_H
  17795. + #define _PPCPRAGMA_DISK_H
  17796. + #ifdef __GNUC__
  17797. + #ifndef _PPCINLINE__DISK_H
  17798. + #include <powerup/ppcinline/disk.h>
  17799. + #endif
  17800. + #else
  17801. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  17802. + #include <powerup/ppclib/interface.h>
  17803. + #endif
  17804. + #ifndef POWERUP_GCCLIB_PROTOS_H
  17805. + #include <powerup/gcclib/powerup_protos.h>
  17806. + #endif
  17807. + #ifndef NO_PPCINLINE_STDARG
  17808. + #define NO_PPCINLINE_STDARG
  17809. + #endif/* SAS C PPC inlines */
  17810. + #ifndef DISK_BASE_NAME
  17811. + #define DISK_BASE_NAME DiskBase
  17812. + #endif /* !DISK_BASE_NAME */
  17813. + #define    AllocUnit(unitNum)    _AllocUnit(DISK_BASE_NAME, unitNum)
  17814. + static __inline BOOL
  17815. + _AllocUnit(void *DiskBase, long unitNum)
  17816. + {
  17817. + struct Caos    MyCaos;
  17818. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17819. + //    MyCaos.M68kStart    =    NULL;
  17820. + //    MyCaos.M68kSize        =    0;
  17821. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17822. + //    MyCaos.PPCStart        =    NULL;
  17823. + //    MyCaos.PPCSize        =    0;
  17824. +     MyCaos.d0        =(ULONG) unitNum;
  17825. +     MyCaos.caos_Un.Offset    =    (-6);
  17826. +     MyCaos.a6        =(ULONG) DiskBase;    
  17827. +     return((BOOL)PPCCallOS(&MyCaos));
  17828. + }
  17829. + #define    FreeUnit(unitNum)    _FreeUnit(DISK_BASE_NAME, unitNum)
  17830. + static __inline void
  17831. + _FreeUnit(void *DiskBase, long unitNum)
  17832. + {
  17833. + struct Caos    MyCaos;
  17834. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17835. + //    MyCaos.M68kStart    =    NULL;
  17836. + //    MyCaos.M68kSize        =    0;
  17837. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17838. + //    MyCaos.PPCStart        =    NULL;
  17839. + //    MyCaos.PPCSize        =    0;
  17840. +     MyCaos.d0        =(ULONG) unitNum;
  17841. +     MyCaos.caos_Un.Offset    =    (-12);
  17842. +     MyCaos.a6        =(ULONG) DiskBase;    
  17843. +     PPCCallOS(&MyCaos);
  17844. + }
  17845. + #define    GetUnit(unitPointer)    _GetUnit(DISK_BASE_NAME, unitPointer)
  17846. + static __inline struct DiskResourceUnit *
  17847. + _GetUnit(void *DiskBase, struct DiskResourceUnit *unitPointer)
  17848. + {
  17849. + struct Caos    MyCaos;
  17850. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17851. + //    MyCaos.M68kStart    =    NULL;
  17852. + //    MyCaos.M68kSize        =    0;
  17853. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17854. + //    MyCaos.PPCStart        =    NULL;
  17855. + //    MyCaos.PPCSize        =    0;
  17856. +     MyCaos.a1        =(ULONG) unitPointer;
  17857. +     MyCaos.caos_Un.Offset    =    (-18);
  17858. +     MyCaos.a6        =(ULONG) DiskBase;    
  17859. +     return((struct DiskResourceUnit *)PPCCallOS(&MyCaos));
  17860. + }
  17861. + #define    GetUnitID(unitNum)    _GetUnitID(DISK_BASE_NAME, unitNum)
  17862. + static __inline LONG
  17863. + _GetUnitID(void *DiskBase, long unitNum)
  17864. + {
  17865. + struct Caos    MyCaos;
  17866. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17867. + //    MyCaos.M68kStart    =    NULL;
  17868. + //    MyCaos.M68kSize        =    0;
  17869. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17870. + //    MyCaos.PPCStart        =    NULL;
  17871. + //    MyCaos.PPCSize        =    0;
  17872. +     MyCaos.d0        =(ULONG) unitNum;
  17873. +     MyCaos.caos_Un.Offset    =    (-30);
  17874. +     MyCaos.a6        =(ULONG) DiskBase;    
  17875. +     return((LONG)PPCCallOS(&MyCaos));
  17876. + }
  17877. + #define    GiveUnit()    _GiveUnit(DISK_BASE_NAME)
  17878. + static __inline void
  17879. + _GiveUnit(void *DiskBase)
  17880. + {
  17881. + struct Caos    MyCaos;
  17882. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17883. + //    MyCaos.M68kStart    =    NULL;
  17884. + //    MyCaos.M68kSize        =    0;
  17885. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17886. + //    MyCaos.PPCStart        =    NULL;
  17887. + //    MyCaos.PPCSize        =    0;
  17888. +     MyCaos.caos_Un.Offset    =    (-24);
  17889. +     MyCaos.a6        =(ULONG) DiskBase;    
  17890. +     PPCCallOS(&MyCaos);
  17891. + }
  17892. + #define    ReadUnitID(unitNum)    _ReadUnitID(DISK_BASE_NAME, unitNum)
  17893. + static __inline LONG
  17894. + _ReadUnitID(void *DiskBase, long unitNum)
  17895. + {
  17896. + struct Caos    MyCaos;
  17897. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17898. + //    MyCaos.M68kStart    =    NULL;
  17899. + //    MyCaos.M68kSize        =    0;
  17900. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17901. + //    MyCaos.PPCStart        =    NULL;
  17902. + //    MyCaos.PPCSize        =    0;
  17903. +     MyCaos.d0        =(ULONG) unitNum;
  17904. +     MyCaos.caos_Un.Offset    =    (-36);
  17905. +     MyCaos.a6        =(ULONG) DiskBase;    
  17906. +     return((LONG)PPCCallOS(&MyCaos));
  17907. + }
  17908. + #endif /* SASC Pragmas */
  17909. + #endif /* !_PPCPRAGMA_DISK_H */
  17910. diff -c2 -d -P -r include_h/powerup/ppcpragmas/diskfont_pragmas.h includenew/powerup/ppcpragmas/diskfont_pragmas.h
  17911. *** include_h/powerup/ppcpragmas/diskfont_pragmas.h    Thu Jan  1 00:00:00 1970
  17912. --- includenew/powerup/ppcpragmas/diskfont_pragmas.h    Thu Nov  2 22:27:13 2000
  17913. ***************
  17914. *** 0 ****
  17915. --- 1,122 ----
  17916. + /* Automatically generated header! Do not edit! */
  17917. + #ifndef _PPCPRAGMA_DISKFONT_H
  17918. + #define _PPCPRAGMA_DISKFONT_H
  17919. + #ifdef __GNUC__
  17920. + #ifndef _PPCINLINE__DISKFONT_H
  17921. + #include <powerup/ppcinline/diskfont.h>
  17922. + #endif
  17923. + #else
  17924. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  17925. + #include <powerup/ppclib/interface.h>
  17926. + #endif
  17927. + #ifndef POWERUP_GCCLIB_PROTOS_H
  17928. + #include <powerup/gcclib/powerup_protos.h>
  17929. + #endif
  17930. + #ifndef NO_PPCINLINE_STDARG
  17931. + #define NO_PPCINLINE_STDARG
  17932. + #endif/* SAS C PPC inlines */
  17933. + #ifndef DISKFONT_BASE_NAME
  17934. + #define DISKFONT_BASE_NAME DiskfontBase
  17935. + #endif /* !DISKFONT_BASE_NAME */
  17936. + #define    AvailFonts(buffer, bufBytes, flags)    _AvailFonts(DISKFONT_BASE_NAME, buffer, bufBytes, flags)
  17937. + static __inline LONG
  17938. + _AvailFonts(void *DiskfontBase, STRPTR buffer, long bufBytes, long flags)
  17939. + {
  17940. + struct Caos    MyCaos;
  17941. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17942. + //    MyCaos.M68kStart    =    NULL;
  17943. + //    MyCaos.M68kSize        =    0;
  17944. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17945. + //    MyCaos.PPCStart        =    NULL;
  17946. + //    MyCaos.PPCSize        =    0;
  17947. +     MyCaos.a0        =(ULONG) buffer;
  17948. +     MyCaos.d0        =(ULONG) bufBytes;
  17949. +     MyCaos.d1        =(ULONG) flags;
  17950. +     MyCaos.caos_Un.Offset    =    (-36);
  17951. +     MyCaos.a6        =(ULONG) DiskfontBase;    
  17952. +     return((LONG)PPCCallOS(&MyCaos));
  17953. + }
  17954. + #define    DisposeFontContents(fontContentsHeader)    _DisposeFontContents(DISKFONT_BASE_NAME, fontContentsHeader)
  17955. + static __inline void
  17956. + _DisposeFontContents(void *DiskfontBase, struct FontContentsHeader *fontContentsHeader)
  17957. + {
  17958. + struct Caos    MyCaos;
  17959. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17960. + //    MyCaos.M68kStart    =    NULL;
  17961. + //    MyCaos.M68kSize        =    0;
  17962. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17963. + //    MyCaos.PPCStart        =    NULL;
  17964. + //    MyCaos.PPCSize        =    0;
  17965. +     MyCaos.a1        =(ULONG) fontContentsHeader;
  17966. +     MyCaos.caos_Un.Offset    =    (-48);
  17967. +     MyCaos.a6        =(ULONG) DiskfontBase;    
  17968. +     PPCCallOS(&MyCaos);
  17969. + }
  17970. + #define    NewFontContents(fontsLock, fontName)    _NewFontContents(DISKFONT_BASE_NAME, fontsLock, fontName)
  17971. + static __inline struct FontContentsHeader *
  17972. + _NewFontContents(void *DiskfontBase, BPTR fontsLock, STRPTR fontName)
  17973. + {
  17974. + struct Caos    MyCaos;
  17975. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17976. + //    MyCaos.M68kStart    =    NULL;
  17977. + //    MyCaos.M68kSize        =    0;
  17978. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17979. + //    MyCaos.PPCStart        =    NULL;
  17980. + //    MyCaos.PPCSize        =    0;
  17981. +     MyCaos.a0        =(ULONG) fontsLock;
  17982. +     MyCaos.a1        =(ULONG) fontName;
  17983. +     MyCaos.caos_Un.Offset    =    (-42);
  17984. +     MyCaos.a6        =(ULONG) DiskfontBase;    
  17985. +     return((struct FontContentsHeader *)PPCCallOS(&MyCaos));
  17986. + }
  17987. + #define    NewScaledDiskFont(sourceFont, destTextAttr)    _NewScaledDiskFont(DISKFONT_BASE_NAME, sourceFont, destTextAttr)
  17988. + static __inline struct DiskFont *
  17989. + _NewScaledDiskFont(void *DiskfontBase, struct TextFont *sourceFont, struct TextAttr *destTextAttr)
  17990. + {
  17991. + struct Caos    MyCaos;
  17992. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  17993. + //    MyCaos.M68kStart    =    NULL;
  17994. + //    MyCaos.M68kSize        =    0;
  17995. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  17996. + //    MyCaos.PPCStart        =    NULL;
  17997. + //    MyCaos.PPCSize        =    0;
  17998. +     MyCaos.a0        =(ULONG) sourceFont;
  17999. +     MyCaos.a1        =(ULONG) destTextAttr;
  18000. +     MyCaos.caos_Un.Offset    =    (-54);
  18001. +     MyCaos.a6        =(ULONG) DiskfontBase;    
  18002. +     return((struct DiskFont *)PPCCallOS(&MyCaos));
  18003. + }
  18004. + #define    OpenDiskFont(textAttr)    _OpenDiskFont(DISKFONT_BASE_NAME, textAttr)
  18005. + static __inline struct TextFont *
  18006. + _OpenDiskFont(void *DiskfontBase, struct TextAttr *textAttr)
  18007. + {
  18008. + struct Caos    MyCaos;
  18009. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18010. + //    MyCaos.M68kStart    =    NULL;
  18011. + //    MyCaos.M68kSize        =    0;
  18012. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18013. + //    MyCaos.PPCStart        =    NULL;
  18014. + //    MyCaos.PPCSize        =    0;
  18015. +     MyCaos.a0        =(ULONG) textAttr;
  18016. +     MyCaos.caos_Un.Offset    =    (-30);
  18017. +     MyCaos.a6        =(ULONG) DiskfontBase;    
  18018. +     return((struct TextFont *)PPCCallOS(&MyCaos));
  18019. + }
  18020. + #endif /* SASC Pragmas */
  18021. + #endif /* !_PPCPRAGMA_DISKFONT_H */
  18022. diff -c2 -d -P -r include_h/powerup/ppcpragmas/dos_pragmas.h includenew/powerup/ppcpragmas/dos_pragmas.h
  18023. *** include_h/powerup/ppcpragmas/dos_pragmas.h    Thu Jan  1 00:00:00 1970
  18024. --- includenew/powerup/ppcpragmas/dos_pragmas.h    Thu Nov  2 22:27:13 2000
  18025. ***************
  18026. *** 0 ****
  18027. --- 1,3092 ----
  18028. + /* Automatically generated header! Do not edit! */
  18029. + #ifndef _PPCPRAGMA_DOS_H
  18030. + #define _PPCPRAGMA_DOS_H
  18031. + #ifdef __GNUC__
  18032. + #ifndef _PPCINLINE__DOS_H
  18033. + #include <powerup/ppcinline/dos.h>
  18034. + #endif
  18035. + #else
  18036. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  18037. + #include <powerup/ppclib/interface.h>
  18038. + #endif
  18039. + #ifndef POWERUP_GCCLIB_PROTOS_H
  18040. + #include <powerup/gcclib/powerup_protos.h>
  18041. + #endif
  18042. + #ifndef NO_PPCINLINE_STDARG
  18043. + #define NO_PPCINLINE_STDARG
  18044. + #endif/* SAS C PPC inlines */
  18045. + #ifndef DOS_BASE_NAME
  18046. + #define DOS_BASE_NAME DOSBase
  18047. + #endif /* !DOS_BASE_NAME */
  18048. + #define    AbortPkt(port, pkt)    _AbortPkt(DOS_BASE_NAME, port, pkt)
  18049. + static __inline void
  18050. + _AbortPkt(void *DOSBase, struct MsgPort *port, struct DosPacket *pkt)
  18051. + {
  18052. + struct Caos    MyCaos;
  18053. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18054. + //    MyCaos.M68kStart    =    NULL;
  18055. + //    MyCaos.M68kSize        =    0;
  18056. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18057. + //    MyCaos.PPCStart        =    NULL;
  18058. + //    MyCaos.PPCSize        =    0;
  18059. +     MyCaos.d1        =(ULONG) port;
  18060. +     MyCaos.d2        =(ULONG) pkt;
  18061. +     MyCaos.caos_Un.Offset    =    (-264);
  18062. +     MyCaos.a6        =(ULONG) DOSBase;    
  18063. +     PPCCallOS(&MyCaos);
  18064. + }
  18065. + #define    AddBuffers(name, number)    _AddBuffers(DOS_BASE_NAME, name, number)
  18066. + static __inline LONG
  18067. + _AddBuffers(void *DOSBase, STRPTR name, long number)
  18068. + {
  18069. + struct Caos    MyCaos;
  18070. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18071. + //    MyCaos.M68kStart    =    NULL;
  18072. + //    MyCaos.M68kSize        =    0;
  18073. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18074. + //    MyCaos.PPCStart        =    NULL;
  18075. + //    MyCaos.PPCSize        =    0;
  18076. +     MyCaos.d1        =(ULONG) name;
  18077. +     MyCaos.d2        =(ULONG) number;
  18078. +     MyCaos.caos_Un.Offset    =    (-732);
  18079. +     MyCaos.a6        =(ULONG) DOSBase;    
  18080. +     return((LONG)PPCCallOS(&MyCaos));
  18081. + }
  18082. + #define    AddDosEntry(dlist)    _AddDosEntry(DOS_BASE_NAME, dlist)
  18083. + static __inline LONG
  18084. + _AddDosEntry(void *DOSBase, struct DosList *dlist)
  18085. + {
  18086. + struct Caos    MyCaos;
  18087. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18088. + //    MyCaos.M68kStart    =    NULL;
  18089. + //    MyCaos.M68kSize        =    0;
  18090. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18091. + //    MyCaos.PPCStart        =    NULL;
  18092. + //    MyCaos.PPCSize        =    0;
  18093. +     MyCaos.d1        =(ULONG) dlist;
  18094. +     MyCaos.caos_Un.Offset    =    (-678);
  18095. +     MyCaos.a6        =(ULONG) DOSBase;    
  18096. +     return((LONG)PPCCallOS(&MyCaos));
  18097. + }
  18098. + #define    AddPart(dirname, filename, size)    _AddPart(DOS_BASE_NAME, dirname, filename, size)
  18099. + static __inline BOOL
  18100. + _AddPart(void *DOSBase, STRPTR dirname, STRPTR filename, unsigned long size)
  18101. + {
  18102. + struct Caos    MyCaos;
  18103. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18104. + //    MyCaos.M68kStart    =    NULL;
  18105. + //    MyCaos.M68kSize        =    0;
  18106. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18107. + //    MyCaos.PPCStart        =    NULL;
  18108. + //    MyCaos.PPCSize        =    0;
  18109. +     MyCaos.d1        =(ULONG) dirname;
  18110. +     MyCaos.d2        =(ULONG) filename;
  18111. +     MyCaos.d3        =(ULONG) size;
  18112. +     MyCaos.caos_Un.Offset    =    (-882);
  18113. +     MyCaos.a6        =(ULONG) DOSBase;    
  18114. +     return((BOOL)PPCCallOS(&MyCaos));
  18115. + }
  18116. + #define    AddSegment(name, seg, system)    _AddSegment(DOS_BASE_NAME, name, seg, system)
  18117. + static __inline LONG
  18118. + _AddSegment(void *DOSBase, STRPTR name, BPTR seg, long system)
  18119. + {
  18120. + struct Caos    MyCaos;
  18121. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18122. + //    MyCaos.M68kStart    =    NULL;
  18123. + //    MyCaos.M68kSize        =    0;
  18124. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18125. + //    MyCaos.PPCStart        =    NULL;
  18126. + //    MyCaos.PPCSize        =    0;
  18127. +     MyCaos.d1        =(ULONG) name;
  18128. +     MyCaos.d2        =(ULONG) seg;
  18129. +     MyCaos.d3        =(ULONG) system;
  18130. +     MyCaos.caos_Un.Offset    =    (-774);
  18131. +     MyCaos.a6        =(ULONG) DOSBase;    
  18132. +     return((LONG)PPCCallOS(&MyCaos));
  18133. + }
  18134. + #define    AllocDosObject(type, tags)    _AllocDosObject(DOS_BASE_NAME, type, tags)
  18135. + static __inline APTR
  18136. + _AllocDosObject(void *DOSBase, unsigned long type, struct TagItem *tags)
  18137. + {
  18138. + struct Caos    MyCaos;
  18139. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18140. + //    MyCaos.M68kStart    =    NULL;
  18141. + //    MyCaos.M68kSize        =    0;
  18142. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18143. + //    MyCaos.PPCStart        =    NULL;
  18144. + //    MyCaos.PPCSize        =    0;
  18145. +     MyCaos.d1        =(ULONG) type;
  18146. +     MyCaos.d2        =(ULONG) tags;
  18147. +     MyCaos.caos_Un.Offset    =    (-228);
  18148. +     MyCaos.a6        =(ULONG) DOSBase;    
  18149. +     return((APTR)PPCCallOS(&MyCaos));
  18150. + }
  18151. + #define AllocDosObjectTagList(a0, a1) AllocDosObject ((a0), (a1))
  18152. + #ifndef NO_PPCINLINE_STDARG
  18153. + #define AllocDosObjectTags(a0, tags...) \
  18154. +     ({ULONG _tags[] = { tags }; AllocDosObject((a0), (struct TagItem *)_tags);})
  18155. + #endif /* !NO_PPCINLINE_STDARG */
  18156. + #define    AssignAdd(name, lock)    _AssignAdd(DOS_BASE_NAME, name, lock)
  18157. + static __inline BOOL
  18158. + _AssignAdd(void *DOSBase, STRPTR name, BPTR lock)
  18159. + {
  18160. + struct Caos    MyCaos;
  18161. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18162. + //    MyCaos.M68kStart    =    NULL;
  18163. + //    MyCaos.M68kSize        =    0;
  18164. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18165. + //    MyCaos.PPCStart        =    NULL;
  18166. + //    MyCaos.PPCSize        =    0;
  18167. +     MyCaos.d1        =(ULONG) name;
  18168. +     MyCaos.d2        =(ULONG) lock;
  18169. +     MyCaos.caos_Un.Offset    =    (-630);
  18170. +     MyCaos.a6        =(ULONG) DOSBase;    
  18171. +     return((BOOL)PPCCallOS(&MyCaos));
  18172. + }
  18173. + #define    AssignLate(name, path)    _AssignLate(DOS_BASE_NAME, name, path)
  18174. + static __inline BOOL
  18175. + _AssignLate(void *DOSBase, STRPTR name, STRPTR path)
  18176. + {
  18177. + struct Caos    MyCaos;
  18178. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18179. + //    MyCaos.M68kStart    =    NULL;
  18180. + //    MyCaos.M68kSize        =    0;
  18181. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18182. + //    MyCaos.PPCStart        =    NULL;
  18183. + //    MyCaos.PPCSize        =    0;
  18184. +     MyCaos.d1        =(ULONG) name;
  18185. +     MyCaos.d2        =(ULONG) path;
  18186. +     MyCaos.caos_Un.Offset    =    (-618);
  18187. +     MyCaos.a6        =(ULONG) DOSBase;    
  18188. +     return((BOOL)PPCCallOS(&MyCaos));
  18189. + }
  18190. + #define    AssignLock(name, lock)    _AssignLock(DOS_BASE_NAME, name, lock)
  18191. + static __inline LONG
  18192. + _AssignLock(void *DOSBase, STRPTR name, BPTR lock)
  18193. + {
  18194. + struct Caos    MyCaos;
  18195. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18196. + //    MyCaos.M68kStart    =    NULL;
  18197. + //    MyCaos.M68kSize        =    0;
  18198. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18199. + //    MyCaos.PPCStart        =    NULL;
  18200. + //    MyCaos.PPCSize        =    0;
  18201. +     MyCaos.d1        =(ULONG) name;
  18202. +     MyCaos.d2        =(ULONG) lock;
  18203. +     MyCaos.caos_Un.Offset    =    (-612);
  18204. +     MyCaos.a6        =(ULONG) DOSBase;    
  18205. +     return((LONG)PPCCallOS(&MyCaos));
  18206. + }
  18207. + #define    AssignPath(name, path)    _AssignPath(DOS_BASE_NAME, name, path)
  18208. + static __inline BOOL
  18209. + _AssignPath(void *DOSBase, STRPTR name, STRPTR path)
  18210. + {
  18211. + struct Caos    MyCaos;
  18212. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18213. + //    MyCaos.M68kStart    =    NULL;
  18214. + //    MyCaos.M68kSize        =    0;
  18215. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18216. + //    MyCaos.PPCStart        =    NULL;
  18217. + //    MyCaos.PPCSize        =    0;
  18218. +     MyCaos.d1        =(ULONG) name;
  18219. +     MyCaos.d2        =(ULONG) path;
  18220. +     MyCaos.caos_Un.Offset    =    (-624);
  18221. +     MyCaos.a6        =(ULONG) DOSBase;    
  18222. +     return((BOOL)PPCCallOS(&MyCaos));
  18223. + }
  18224. + #define    AttemptLockDosList(flags)    _AttemptLockDosList(DOS_BASE_NAME, flags)
  18225. + static __inline struct DosList *
  18226. + _AttemptLockDosList(void *DOSBase, unsigned long flags)
  18227. + {
  18228. + struct Caos    MyCaos;
  18229. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18230. + //    MyCaos.M68kStart    =    NULL;
  18231. + //    MyCaos.M68kSize        =    0;
  18232. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18233. + //    MyCaos.PPCStart        =    NULL;
  18234. + //    MyCaos.PPCSize        =    0;
  18235. +     MyCaos.d1        =(ULONG) flags;
  18236. +     MyCaos.caos_Un.Offset    =    (-666);
  18237. +     MyCaos.a6        =(ULONG) DOSBase;    
  18238. +     return((struct DosList *)PPCCallOS(&MyCaos));
  18239. + }
  18240. + #define    ChangeMode(type, fh, newmode)    _ChangeMode(DOS_BASE_NAME, type, fh, newmode)
  18241. + static __inline LONG
  18242. + _ChangeMode(void *DOSBase, long type, BPTR fh, long newmode)
  18243. + {
  18244. + struct Caos    MyCaos;
  18245. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18246. + //    MyCaos.M68kStart    =    NULL;
  18247. + //    MyCaos.M68kSize        =    0;
  18248. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18249. + //    MyCaos.PPCStart        =    NULL;
  18250. + //    MyCaos.PPCSize        =    0;
  18251. +     MyCaos.d1        =(ULONG) type;
  18252. +     MyCaos.d2        =(ULONG) fh;
  18253. +     MyCaos.d3        =(ULONG) newmode;
  18254. +     MyCaos.caos_Un.Offset    =    (-450);
  18255. +     MyCaos.a6        =(ULONG) DOSBase;    
  18256. +     return((LONG)PPCCallOS(&MyCaos));
  18257. + }
  18258. + #define    CheckSignal(mask)    _CheckSignal(DOS_BASE_NAME, mask)
  18259. + static __inline LONG
  18260. + _CheckSignal(void *DOSBase, long mask)
  18261. + {
  18262. + struct Caos    MyCaos;
  18263. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18264. + //    MyCaos.M68kStart    =    NULL;
  18265. + //    MyCaos.M68kSize        =    0;
  18266. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18267. + //    MyCaos.PPCStart        =    NULL;
  18268. + //    MyCaos.PPCSize        =    0;
  18269. +     MyCaos.d1        =(ULONG) mask;
  18270. +     MyCaos.caos_Un.Offset    =    (-792);
  18271. +     MyCaos.a6        =(ULONG) DOSBase;    
  18272. +     return((LONG)PPCCallOS(&MyCaos));
  18273. + }
  18274. + #define    Cli()    _Cli(DOS_BASE_NAME)
  18275. + static __inline struct CommandLineInterface *
  18276. + _Cli(void *DOSBase)
  18277. + {
  18278. + struct Caos    MyCaos;
  18279. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18280. + //    MyCaos.M68kStart    =    NULL;
  18281. + //    MyCaos.M68kSize        =    0;
  18282. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18283. + //    MyCaos.PPCStart        =    NULL;
  18284. + //    MyCaos.PPCSize        =    0;
  18285. +     MyCaos.caos_Un.Offset    =    (-492);
  18286. +     MyCaos.a6        =(ULONG) DOSBase;    
  18287. +     return((struct CommandLineInterface *)PPCCallOS(&MyCaos));
  18288. + }
  18289. + #define    CliInitNewcli(dp)    _CliInitNewcli(DOS_BASE_NAME, dp)
  18290. + static __inline LONG
  18291. + _CliInitNewcli(void *DOSBase, struct DosPacket *dp)
  18292. + {
  18293. + struct Caos    MyCaos;
  18294. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18295. + //    MyCaos.M68kStart    =    NULL;
  18296. + //    MyCaos.M68kSize        =    0;
  18297. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18298. + //    MyCaos.PPCStart        =    NULL;
  18299. + //    MyCaos.PPCSize        =    0;
  18300. +     MyCaos.a0        =(ULONG) dp;
  18301. +     MyCaos.caos_Un.Offset    =    (-930);
  18302. +     MyCaos.a6        =(ULONG) DOSBase;    
  18303. +     return((LONG)PPCCallOS(&MyCaos));
  18304. + }
  18305. + #define    CliInitRun(dp)    _CliInitRun(DOS_BASE_NAME, dp)
  18306. + static __inline LONG
  18307. + _CliInitRun(void *DOSBase, struct DosPacket *dp)
  18308. + {
  18309. + struct Caos    MyCaos;
  18310. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18311. + //    MyCaos.M68kStart    =    NULL;
  18312. + //    MyCaos.M68kSize        =    0;
  18313. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18314. + //    MyCaos.PPCStart        =    NULL;
  18315. + //    MyCaos.PPCSize        =    0;
  18316. +     MyCaos.a0        =(ULONG) dp;
  18317. +     MyCaos.caos_Un.Offset    =    (-936);
  18318. +     MyCaos.a6        =(ULONG) DOSBase;    
  18319. +     return((LONG)PPCCallOS(&MyCaos));
  18320. + }
  18321. + #define    Close(file)    _Close(DOS_BASE_NAME, file)
  18322. + static __inline LONG
  18323. + _Close(void *DOSBase, BPTR file)
  18324. + {
  18325. + struct Caos    MyCaos;
  18326. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18327. + //    MyCaos.M68kStart    =    NULL;
  18328. + //    MyCaos.M68kSize        =    0;
  18329. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18330. + //    MyCaos.PPCStart        =    NULL;
  18331. + //    MyCaos.PPCSize        =    0;
  18332. +     MyCaos.d1        =(ULONG) file;
  18333. +     MyCaos.caos_Un.Offset    =    (-36);
  18334. +     MyCaos.a6        =(ULONG) DOSBase;    
  18335. +     return((LONG)PPCCallOS(&MyCaos));
  18336. + }
  18337. + #define    CompareDates(date1, date2)    _CompareDates(DOS_BASE_NAME, date1, date2)
  18338. + static __inline LONG
  18339. + _CompareDates(void *DOSBase, struct DateStamp *date1, struct DateStamp *date2)
  18340. + {
  18341. + struct Caos    MyCaos;
  18342. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18343. + //    MyCaos.M68kStart    =    NULL;
  18344. + //    MyCaos.M68kSize        =    0;
  18345. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18346. + //    MyCaos.PPCStart        =    NULL;
  18347. + //    MyCaos.PPCSize        =    0;
  18348. +     MyCaos.d1        =(ULONG) date1;
  18349. +     MyCaos.d2        =(ULONG) date2;
  18350. +     MyCaos.caos_Un.Offset    =    (-738);
  18351. +     MyCaos.a6        =(ULONG) DOSBase;    
  18352. +     return((LONG)PPCCallOS(&MyCaos));
  18353. + }
  18354. + #define    CreateDir(name)    _CreateDir(DOS_BASE_NAME, name)
  18355. + static __inline BPTR
  18356. + _CreateDir(void *DOSBase, STRPTR name)
  18357. + {
  18358. + struct Caos    MyCaos;
  18359. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18360. + //    MyCaos.M68kStart    =    NULL;
  18361. + //    MyCaos.M68kSize        =    0;
  18362. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18363. + //    MyCaos.PPCStart        =    NULL;
  18364. + //    MyCaos.PPCSize        =    0;
  18365. +     MyCaos.d1        =(ULONG) name;
  18366. +     MyCaos.caos_Un.Offset    =    (-120);
  18367. +     MyCaos.a6        =(ULONG) DOSBase;    
  18368. +     return((BPTR)PPCCallOS(&MyCaos));
  18369. + }
  18370. + #define    CreateNewProc(tags)    _CreateNewProc(DOS_BASE_NAME, tags)
  18371. + static __inline struct Process *
  18372. + _CreateNewProc(void *DOSBase, struct TagItem *tags)
  18373. + {
  18374. + struct Caos    MyCaos;
  18375. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18376. + //    MyCaos.M68kStart    =    NULL;
  18377. + //    MyCaos.M68kSize        =    0;
  18378. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18379. + //    MyCaos.PPCStart        =    NULL;
  18380. + //    MyCaos.PPCSize        =    0;
  18381. +     MyCaos.d1        =(ULONG) tags;
  18382. +     MyCaos.caos_Un.Offset    =    (-498);
  18383. +     MyCaos.a6        =(ULONG) DOSBase;    
  18384. +     return((struct Process *)PPCCallOS(&MyCaos));
  18385. + }
  18386. + #define CreateNewProcTagList(a0) CreateNewProc ((a0))
  18387. + #ifndef NO_PPCINLINE_STDARG
  18388. + #define CreateNewProcTags(tags...) \
  18389. +     ({ULONG _tags[] = { tags }; CreateNewProc((struct TagItem *)_tags);})
  18390. + #endif /* !NO_PPCINLINE_STDARG */
  18391. + #define    CreateProc(name, pri, segList, stackSize)    _CreateProc(DOS_BASE_NAME, name, pri, segList, stackSize)
  18392. + static __inline struct MsgPort *
  18393. + _CreateProc(void *DOSBase, STRPTR name, long pri, BPTR segList, long stackSize)
  18394. + {
  18395. + struct Caos    MyCaos;
  18396. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18397. + //    MyCaos.M68kStart    =    NULL;
  18398. + //    MyCaos.M68kSize        =    0;
  18399. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18400. + //    MyCaos.PPCStart        =    NULL;
  18401. + //    MyCaos.PPCSize        =    0;
  18402. +     MyCaos.d1        =(ULONG) name;
  18403. +     MyCaos.d2        =(ULONG) pri;
  18404. +     MyCaos.d3        =(ULONG) segList;
  18405. +     MyCaos.d4        =(ULONG) stackSize;
  18406. +     MyCaos.caos_Un.Offset    =    (-138);
  18407. +     MyCaos.a6        =(ULONG) DOSBase;    
  18408. +     return((struct MsgPort *)PPCCallOS(&MyCaos));
  18409. + }
  18410. + #define    CurrentDir(lock)    _CurrentDir(DOS_BASE_NAME, lock)
  18411. + static __inline BPTR
  18412. + _CurrentDir(void *DOSBase, BPTR lock)
  18413. + {
  18414. + struct Caos    MyCaos;
  18415. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18416. + //    MyCaos.M68kStart    =    NULL;
  18417. + //    MyCaos.M68kSize        =    0;
  18418. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18419. + //    MyCaos.PPCStart        =    NULL;
  18420. + //    MyCaos.PPCSize        =    0;
  18421. +     MyCaos.d1        =(ULONG) lock;
  18422. +     MyCaos.caos_Un.Offset    =    (-126);
  18423. +     MyCaos.a6        =(ULONG) DOSBase;    
  18424. +     return((BPTR)PPCCallOS(&MyCaos));
  18425. + }
  18426. + #define    DateStamp(date)    _DateStamp(DOS_BASE_NAME, date)
  18427. + static __inline struct DateStamp *
  18428. + _DateStamp(void *DOSBase, struct DateStamp *date)
  18429. + {
  18430. + struct Caos    MyCaos;
  18431. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18432. + //    MyCaos.M68kStart    =    NULL;
  18433. + //    MyCaos.M68kSize        =    0;
  18434. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18435. + //    MyCaos.PPCStart        =    NULL;
  18436. + //    MyCaos.PPCSize        =    0;
  18437. +     MyCaos.d1        =(ULONG) date;
  18438. +     MyCaos.caos_Un.Offset    =    (-192);
  18439. +     MyCaos.a6        =(ULONG) DOSBase;    
  18440. +     return((struct DateStamp *)PPCCallOS(&MyCaos));
  18441. + }
  18442. + #define    DateToStr(datetime)    _DateToStr(DOS_BASE_NAME, datetime)
  18443. + static __inline LONG
  18444. + _DateToStr(void *DOSBase, struct DateTime *datetime)
  18445. + {
  18446. + struct Caos    MyCaos;
  18447. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18448. + //    MyCaos.M68kStart    =    NULL;
  18449. + //    MyCaos.M68kSize        =    0;
  18450. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18451. + //    MyCaos.PPCStart        =    NULL;
  18452. + //    MyCaos.PPCSize        =    0;
  18453. +     MyCaos.d1        =(ULONG) datetime;
  18454. +     MyCaos.caos_Un.Offset    =    (-744);
  18455. +     MyCaos.a6        =(ULONG) DOSBase;    
  18456. +     return((LONG)PPCCallOS(&MyCaos));
  18457. + }
  18458. + #define    Delay(timeout)    _Delay(DOS_BASE_NAME, timeout)
  18459. + static __inline void
  18460. + _Delay(void *DOSBase, long timeout)
  18461. + {
  18462. + struct Caos    MyCaos;
  18463. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18464. + //    MyCaos.M68kStart    =    NULL;
  18465. + //    MyCaos.M68kSize        =    0;
  18466. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18467. + //    MyCaos.PPCStart        =    NULL;
  18468. + //    MyCaos.PPCSize        =    0;
  18469. +     MyCaos.d1        =(ULONG) timeout;
  18470. +     MyCaos.caos_Un.Offset    =    (-198);
  18471. +     MyCaos.a6        =(ULONG) DOSBase;    
  18472. +     PPCCallOS(&MyCaos);
  18473. + }
  18474. + #define    DeleteFile(name)    _DeleteFile(DOS_BASE_NAME, name)
  18475. + static __inline LONG
  18476. + _DeleteFile(void *DOSBase, STRPTR name)
  18477. + {
  18478. + struct Caos    MyCaos;
  18479. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18480. + //    MyCaos.M68kStart    =    NULL;
  18481. + //    MyCaos.M68kSize        =    0;
  18482. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18483. + //    MyCaos.PPCStart        =    NULL;
  18484. + //    MyCaos.PPCSize        =    0;
  18485. +     MyCaos.d1        =(ULONG) name;
  18486. +     MyCaos.caos_Un.Offset    =    (-72);
  18487. +     MyCaos.a6        =(ULONG) DOSBase;    
  18488. +     return((LONG)PPCCallOS(&MyCaos));
  18489. + }
  18490. + #define    DeleteVar(name, flags)    _DeleteVar(DOS_BASE_NAME, name, flags)
  18491. + static __inline LONG
  18492. + _DeleteVar(void *DOSBase, STRPTR name, unsigned long flags)
  18493. + {
  18494. + struct Caos    MyCaos;
  18495. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18496. + //    MyCaos.M68kStart    =    NULL;
  18497. + //    MyCaos.M68kSize        =    0;
  18498. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18499. + //    MyCaos.PPCStart        =    NULL;
  18500. + //    MyCaos.PPCSize        =    0;
  18501. +     MyCaos.d1        =(ULONG) name;
  18502. +     MyCaos.d2        =(ULONG) flags;
  18503. +     MyCaos.caos_Un.Offset    =    (-912);
  18504. +     MyCaos.a6        =(ULONG) DOSBase;    
  18505. +     return((LONG)PPCCallOS(&MyCaos));
  18506. + }
  18507. + #define    DeviceProc(name)    _DeviceProc(DOS_BASE_NAME, name)
  18508. + static __inline struct MsgPort *
  18509. + _DeviceProc(void *DOSBase, STRPTR name)
  18510. + {
  18511. + struct Caos    MyCaos;
  18512. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18513. + //    MyCaos.M68kStart    =    NULL;
  18514. + //    MyCaos.M68kSize        =    0;
  18515. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18516. + //    MyCaos.PPCStart        =    NULL;
  18517. + //    MyCaos.PPCSize        =    0;
  18518. +     MyCaos.d1        =(ULONG) name;
  18519. +     MyCaos.caos_Un.Offset    =    (-174);
  18520. +     MyCaos.a6        =(ULONG) DOSBase;    
  18521. +     return((struct MsgPort *)PPCCallOS(&MyCaos));
  18522. + }
  18523. + #define    DoPkt(port, action, arg1, arg2, arg3, arg4, arg5)    _DoPkt(DOS_BASE_NAME, port, action, arg1, arg2, arg3, arg4, arg5)
  18524. + static __inline LONG
  18525. + _DoPkt(void *DOSBase, struct MsgPort *port, long action, long arg1, long arg2, long arg3, long arg4, long arg5)
  18526. + {
  18527. + struct Caos    MyCaos;
  18528. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18529. + //    MyCaos.M68kStart    =    NULL;
  18530. + //    MyCaos.M68kSize        =    0;
  18531. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18532. + //    MyCaos.PPCStart        =    NULL;
  18533. + //    MyCaos.PPCSize        =    0;
  18534. +     MyCaos.d1        =(ULONG) port;
  18535. +     MyCaos.d2        =(ULONG) action;
  18536. +     MyCaos.d3        =(ULONG) arg1;
  18537. +     MyCaos.d4        =(ULONG) arg2;
  18538. +     MyCaos.d5        =(ULONG) arg3;
  18539. +     MyCaos.d6        =(ULONG) arg4;
  18540. +     MyCaos.d7        =(ULONG) arg5;
  18541. +     MyCaos.caos_Un.Offset    =    (-240);
  18542. +     MyCaos.a6        =(ULONG) DOSBase;    
  18543. +     return((LONG)PPCCallOS(&MyCaos));
  18544. + }
  18545. + #define    DoPkt0(port, action)    _DoPkt0(DOS_BASE_NAME, port, action)
  18546. + static __inline LONG
  18547. + _DoPkt0(void *DOSBase, struct MsgPort *port, long action)
  18548. + {
  18549. + struct Caos    MyCaos;
  18550. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18551. + //    MyCaos.M68kStart    =    NULL;
  18552. + //    MyCaos.M68kSize        =    0;
  18553. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18554. + //    MyCaos.PPCStart        =    NULL;
  18555. + //    MyCaos.PPCSize        =    0;
  18556. +     MyCaos.d1        =(ULONG) port;
  18557. +     MyCaos.d2        =(ULONG) action;
  18558. +     MyCaos.caos_Un.Offset    =    (-240);
  18559. +     MyCaos.a6        =(ULONG) DOSBase;    
  18560. +     return((LONG)PPCCallOS(&MyCaos));
  18561. + }
  18562. + #define    DoPkt1(port, action, arg1)    _DoPkt1(DOS_BASE_NAME, port, action, arg1)
  18563. + static __inline LONG
  18564. + _DoPkt1(void *DOSBase, struct MsgPort *port, long action, long arg1)
  18565. + {
  18566. + struct Caos    MyCaos;
  18567. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18568. + //    MyCaos.M68kStart    =    NULL;
  18569. + //    MyCaos.M68kSize        =    0;
  18570. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18571. + //    MyCaos.PPCStart        =    NULL;
  18572. + //    MyCaos.PPCSize        =    0;
  18573. +     MyCaos.d1        =(ULONG) port;
  18574. +     MyCaos.d2        =(ULONG) action;
  18575. +     MyCaos.d3        =(ULONG) arg1;
  18576. +     MyCaos.caos_Un.Offset    =    (-240);
  18577. +     MyCaos.a6        =(ULONG) DOSBase;    
  18578. +     return((LONG)PPCCallOS(&MyCaos));
  18579. + }
  18580. + #define    DoPkt2(port, action, arg1, arg2)    _DoPkt2(DOS_BASE_NAME, port, action, arg1, arg2)
  18581. + static __inline LONG
  18582. + _DoPkt2(void *DOSBase, struct MsgPort *port, long action, long arg1, long arg2)
  18583. + {
  18584. + struct Caos    MyCaos;
  18585. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18586. + //    MyCaos.M68kStart    =    NULL;
  18587. + //    MyCaos.M68kSize        =    0;
  18588. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18589. + //    MyCaos.PPCStart        =    NULL;
  18590. + //    MyCaos.PPCSize        =    0;
  18591. +     MyCaos.d1        =(ULONG) port;
  18592. +     MyCaos.d2        =(ULONG) action;
  18593. +     MyCaos.d3        =(ULONG) arg1;
  18594. +     MyCaos.d4        =(ULONG) arg2;
  18595. +     MyCaos.caos_Un.Offset    =    (-240);
  18596. +     MyCaos.a6        =(ULONG) DOSBase;    
  18597. +     return((LONG)PPCCallOS(&MyCaos));
  18598. + }
  18599. + #define    DoPkt3(port, action, arg1, arg2, arg3)    _DoPkt3(DOS_BASE_NAME, port, action, arg1, arg2, arg3)
  18600. + static __inline LONG
  18601. + _DoPkt3(void *DOSBase, struct MsgPort *port, long action, long arg1, long arg2, long arg3)
  18602. + {
  18603. + struct Caos    MyCaos;
  18604. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18605. + //    MyCaos.M68kStart    =    NULL;
  18606. + //    MyCaos.M68kSize        =    0;
  18607. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18608. + //    MyCaos.PPCStart        =    NULL;
  18609. + //    MyCaos.PPCSize        =    0;
  18610. +     MyCaos.d1        =(ULONG) port;
  18611. +     MyCaos.d2        =(ULONG) action;
  18612. +     MyCaos.d3        =(ULONG) arg1;
  18613. +     MyCaos.d4        =(ULONG) arg2;
  18614. +     MyCaos.d5        =(ULONG) arg3;
  18615. +     MyCaos.caos_Un.Offset    =    (-240);
  18616. +     MyCaos.a6        =(ULONG) DOSBase;    
  18617. +     return((LONG)PPCCallOS(&MyCaos));
  18618. + }
  18619. + #define    DoPkt4(port, action, arg1, arg2, arg3, arg4)    _DoPkt4(DOS_BASE_NAME, port, action, arg1, arg2, arg3, arg4)
  18620. + static __inline LONG
  18621. + _DoPkt4(void *DOSBase, struct MsgPort *port, long action, long arg1, long arg2, long arg3, long arg4)
  18622. + {
  18623. + struct Caos    MyCaos;
  18624. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18625. + //    MyCaos.M68kStart    =    NULL;
  18626. + //    MyCaos.M68kSize        =    0;
  18627. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18628. + //    MyCaos.PPCStart        =    NULL;
  18629. + //    MyCaos.PPCSize        =    0;
  18630. +     MyCaos.d1        =(ULONG) port;
  18631. +     MyCaos.d2        =(ULONG) action;
  18632. +     MyCaos.d3        =(ULONG) arg1;
  18633. +     MyCaos.d4        =(ULONG) arg2;
  18634. +     MyCaos.d5        =(ULONG) arg3;
  18635. +     MyCaos.d6        =(ULONG) arg4;
  18636. +     MyCaos.caos_Un.Offset    =    (-240);
  18637. +     MyCaos.a6        =(ULONG) DOSBase;    
  18638. +     return((LONG)PPCCallOS(&MyCaos));
  18639. + }
  18640. + #define    DupLock(lock)    _DupLock(DOS_BASE_NAME, lock)
  18641. + static __inline BPTR
  18642. + _DupLock(void *DOSBase, BPTR lock)
  18643. + {
  18644. + struct Caos    MyCaos;
  18645. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18646. + //    MyCaos.M68kStart    =    NULL;
  18647. + //    MyCaos.M68kSize        =    0;
  18648. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18649. + //    MyCaos.PPCStart        =    NULL;
  18650. + //    MyCaos.PPCSize        =    0;
  18651. +     MyCaos.d1        =(ULONG) lock;
  18652. +     MyCaos.caos_Un.Offset    =    (-96);
  18653. +     MyCaos.a6        =(ULONG) DOSBase;    
  18654. +     return((BPTR)PPCCallOS(&MyCaos));
  18655. + }
  18656. + #define    DupLockFromFH(fh)    _DupLockFromFH(DOS_BASE_NAME, fh)
  18657. + static __inline BPTR
  18658. + _DupLockFromFH(void *DOSBase, BPTR fh)
  18659. + {
  18660. + struct Caos    MyCaos;
  18661. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18662. + //    MyCaos.M68kStart    =    NULL;
  18663. + //    MyCaos.M68kSize        =    0;
  18664. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18665. + //    MyCaos.PPCStart        =    NULL;
  18666. + //    MyCaos.PPCSize        =    0;
  18667. +     MyCaos.d1        =(ULONG) fh;
  18668. +     MyCaos.caos_Un.Offset    =    (-372);
  18669. +     MyCaos.a6        =(ULONG) DOSBase;    
  18670. +     return((BPTR)PPCCallOS(&MyCaos));
  18671. + }
  18672. + #define    EndNotify(notify)    _EndNotify(DOS_BASE_NAME, notify)
  18673. + static __inline void
  18674. + _EndNotify(void *DOSBase, struct NotifyRequest *notify)
  18675. + {
  18676. + struct Caos    MyCaos;
  18677. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18678. + //    MyCaos.M68kStart    =    NULL;
  18679. + //    MyCaos.M68kSize        =    0;
  18680. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18681. + //    MyCaos.PPCStart        =    NULL;
  18682. + //    MyCaos.PPCSize        =    0;
  18683. +     MyCaos.d1        =(ULONG) notify;
  18684. +     MyCaos.caos_Un.Offset    =    (-894);
  18685. +     MyCaos.a6        =(ULONG) DOSBase;    
  18686. +     PPCCallOS(&MyCaos);
  18687. + }
  18688. + #define    ErrorReport(code, type, arg1, device)    _ErrorReport(DOS_BASE_NAME, code, type, arg1, device)
  18689. + static __inline LONG
  18690. + _ErrorReport(void *DOSBase, long code, long type, unsigned long arg1, struct MsgPort *device)
  18691. + {
  18692. + struct Caos    MyCaos;
  18693. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18694. + //    MyCaos.M68kStart    =    NULL;
  18695. + //    MyCaos.M68kSize        =    0;
  18696. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18697. + //    MyCaos.PPCStart        =    NULL;
  18698. + //    MyCaos.PPCSize        =    0;
  18699. +     MyCaos.d1        =(ULONG) code;
  18700. +     MyCaos.d2        =(ULONG) type;
  18701. +     MyCaos.d3        =(ULONG) arg1;
  18702. +     MyCaos.d4        =(ULONG) device;
  18703. +     MyCaos.caos_Un.Offset    =    (-480);
  18704. +     MyCaos.a6        =(ULONG) DOSBase;    
  18705. +     return((LONG)PPCCallOS(&MyCaos));
  18706. + }
  18707. + #define    ExAll(lock, buffer, size, data, control)    _ExAll(DOS_BASE_NAME, lock, buffer, size, data, control)
  18708. + static __inline LONG
  18709. + _ExAll(void *DOSBase, BPTR lock, struct ExAllData *buffer, long size, long data, struct ExAllControl *control)
  18710. + {
  18711. + struct Caos    MyCaos;
  18712. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18713. + //    MyCaos.M68kStart    =    NULL;
  18714. + //    MyCaos.M68kSize        =    0;
  18715. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18716. + //    MyCaos.PPCStart        =    NULL;
  18717. + //    MyCaos.PPCSize        =    0;
  18718. +     MyCaos.d1        =(ULONG) lock;
  18719. +     MyCaos.d2        =(ULONG) buffer;
  18720. +     MyCaos.d3        =(ULONG) size;
  18721. +     MyCaos.d4        =(ULONG) data;
  18722. +     MyCaos.d5        =(ULONG) control;
  18723. +     MyCaos.caos_Un.Offset    =    (-432);
  18724. +     MyCaos.a6        =(ULONG) DOSBase;    
  18725. +     return((LONG)PPCCallOS(&MyCaos));
  18726. + }
  18727. + #define    ExAllEnd(lock, buffer, size, data, control)    _ExAllEnd(DOS_BASE_NAME, lock, buffer, size, data, control)
  18728. + static __inline void
  18729. + _ExAllEnd(void *DOSBase, BPTR lock, struct ExAllData *buffer, long size, long data, struct ExAllControl *control)
  18730. + {
  18731. + struct Caos    MyCaos;
  18732. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18733. + //    MyCaos.M68kStart    =    NULL;
  18734. + //    MyCaos.M68kSize        =    0;
  18735. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18736. + //    MyCaos.PPCStart        =    NULL;
  18737. + //    MyCaos.PPCSize        =    0;
  18738. +     MyCaos.d1        =(ULONG) lock;
  18739. +     MyCaos.d2        =(ULONG) buffer;
  18740. +     MyCaos.d3        =(ULONG) size;
  18741. +     MyCaos.d4        =(ULONG) data;
  18742. +     MyCaos.d5        =(ULONG) control;
  18743. +     MyCaos.caos_Un.Offset    =    (-990);
  18744. +     MyCaos.a6        =(ULONG) DOSBase;    
  18745. +     PPCCallOS(&MyCaos);
  18746. + }
  18747. + #define    ExNext(lock, fileInfoBlock)    _ExNext(DOS_BASE_NAME, lock, fileInfoBlock)
  18748. + static __inline LONG
  18749. + _ExNext(void *DOSBase, BPTR lock, struct FileInfoBlock *fileInfoBlock)
  18750. + {
  18751. + struct Caos    MyCaos;
  18752. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18753. + //    MyCaos.M68kStart    =    NULL;
  18754. + //    MyCaos.M68kSize        =    0;
  18755. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18756. + //    MyCaos.PPCStart        =    NULL;
  18757. + //    MyCaos.PPCSize        =    0;
  18758. +     MyCaos.d1        =(ULONG) lock;
  18759. +     MyCaos.d2        =(ULONG) fileInfoBlock;
  18760. +     MyCaos.caos_Un.Offset    =    (-108);
  18761. +     MyCaos.a6        =(ULONG) DOSBase;    
  18762. +     return((LONG)PPCCallOS(&MyCaos));
  18763. + }
  18764. + #define    Examine(lock, fileInfoBlock)    _Examine(DOS_BASE_NAME, lock, fileInfoBlock)
  18765. + static __inline LONG
  18766. + _Examine(void *DOSBase, BPTR lock, struct FileInfoBlock *fileInfoBlock)
  18767. + {
  18768. + struct Caos    MyCaos;
  18769. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18770. + //    MyCaos.M68kStart    =    NULL;
  18771. + //    MyCaos.M68kSize        =    0;
  18772. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18773. + //    MyCaos.PPCStart        =    NULL;
  18774. + //    MyCaos.PPCSize        =    0;
  18775. +     MyCaos.d1        =(ULONG) lock;
  18776. +     MyCaos.d2        =(ULONG) fileInfoBlock;
  18777. +     MyCaos.caos_Un.Offset    =    (-102);
  18778. +     MyCaos.a6        =(ULONG) DOSBase;    
  18779. +     return((LONG)PPCCallOS(&MyCaos));
  18780. + }
  18781. + #define    ExamineFH(fh, fib)    _ExamineFH(DOS_BASE_NAME, fh, fib)
  18782. + static __inline BOOL
  18783. + _ExamineFH(void *DOSBase, BPTR fh, struct FileInfoBlock *fib)
  18784. + {
  18785. + struct Caos    MyCaos;
  18786. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18787. + //    MyCaos.M68kStart    =    NULL;
  18788. + //    MyCaos.M68kSize        =    0;
  18789. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18790. + //    MyCaos.PPCStart        =    NULL;
  18791. + //    MyCaos.PPCSize        =    0;
  18792. +     MyCaos.d1        =(ULONG) fh;
  18793. +     MyCaos.d2        =(ULONG) fib;
  18794. +     MyCaos.caos_Un.Offset    =    (-390);
  18795. +     MyCaos.a6        =(ULONG) DOSBase;    
  18796. +     return((BOOL)PPCCallOS(&MyCaos));
  18797. + }
  18798. + #define    Execute(string, file, file2)    _Execute(DOS_BASE_NAME, string, file, file2)
  18799. + static __inline LONG
  18800. + _Execute(void *DOSBase, STRPTR string, BPTR file, BPTR file2)
  18801. + {
  18802. + struct Caos    MyCaos;
  18803. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18804. + //    MyCaos.M68kStart    =    NULL;
  18805. + //    MyCaos.M68kSize        =    0;
  18806. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18807. + //    MyCaos.PPCStart        =    NULL;
  18808. + //    MyCaos.PPCSize        =    0;
  18809. +     MyCaos.d1        =(ULONG) string;
  18810. +     MyCaos.d2        =(ULONG) file;
  18811. +     MyCaos.d3        =(ULONG) file2;
  18812. +     MyCaos.caos_Un.Offset    =    (-222);
  18813. +     MyCaos.a6        =(ULONG) DOSBase;    
  18814. +     return((LONG)PPCCallOS(&MyCaos));
  18815. + }
  18816. + #define    Exit(returnCode)    _Exit(DOS_BASE_NAME, returnCode)
  18817. + static __inline void
  18818. + _Exit(void *DOSBase, long returnCode)
  18819. + {
  18820. + struct Caos    MyCaos;
  18821. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18822. + //    MyCaos.M68kStart    =    NULL;
  18823. + //    MyCaos.M68kSize        =    0;
  18824. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18825. + //    MyCaos.PPCStart        =    NULL;
  18826. + //    MyCaos.PPCSize        =    0;
  18827. +     MyCaos.d1        =(ULONG) returnCode;
  18828. +     MyCaos.caos_Un.Offset    =    (-144);
  18829. +     MyCaos.a6        =(ULONG) DOSBase;    
  18830. +     PPCCallOS(&MyCaos);
  18831. + }
  18832. + #define    FGetC(fh)    _FGetC(DOS_BASE_NAME, fh)
  18833. + static __inline LONG
  18834. + _FGetC(void *DOSBase, BPTR fh)
  18835. + {
  18836. + struct Caos    MyCaos;
  18837. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18838. + //    MyCaos.M68kStart    =    NULL;
  18839. + //    MyCaos.M68kSize        =    0;
  18840. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18841. + //    MyCaos.PPCStart        =    NULL;
  18842. + //    MyCaos.PPCSize        =    0;
  18843. +     MyCaos.d1        =(ULONG) fh;
  18844. +     MyCaos.caos_Un.Offset    =    (-306);
  18845. +     MyCaos.a6        =(ULONG) DOSBase;    
  18846. +     return((LONG)PPCCallOS(&MyCaos));
  18847. + }
  18848. + #define    FGets(fh, buf, buflen)    _FGets(DOS_BASE_NAME, fh, buf, buflen)
  18849. + static __inline STRPTR
  18850. + _FGets(void *DOSBase, BPTR fh, STRPTR buf, unsigned long buflen)
  18851. + {
  18852. + struct Caos    MyCaos;
  18853. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18854. + //    MyCaos.M68kStart    =    NULL;
  18855. + //    MyCaos.M68kSize        =    0;
  18856. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18857. + //    MyCaos.PPCStart        =    NULL;
  18858. + //    MyCaos.PPCSize        =    0;
  18859. +     MyCaos.d1        =(ULONG) fh;
  18860. +     MyCaos.d2        =(ULONG) buf;
  18861. +     MyCaos.d3        =(ULONG) buflen;
  18862. +     MyCaos.caos_Un.Offset    =    (-336);
  18863. +     MyCaos.a6        =(ULONG) DOSBase;    
  18864. +     return((STRPTR)PPCCallOS(&MyCaos));
  18865. + }
  18866. + #define    FPutC(fh, ch)    _FPutC(DOS_BASE_NAME, fh, ch)
  18867. + static __inline LONG
  18868. + _FPutC(void *DOSBase, BPTR fh, long ch)
  18869. + {
  18870. + struct Caos    MyCaos;
  18871. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18872. + //    MyCaos.M68kStart    =    NULL;
  18873. + //    MyCaos.M68kSize        =    0;
  18874. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18875. + //    MyCaos.PPCStart        =    NULL;
  18876. + //    MyCaos.PPCSize        =    0;
  18877. +     MyCaos.d1        =(ULONG) fh;
  18878. +     MyCaos.d2        =(ULONG) ch;
  18879. +     MyCaos.caos_Un.Offset    =    (-312);
  18880. +     MyCaos.a6        =(ULONG) DOSBase;    
  18881. +     return((LONG)PPCCallOS(&MyCaos));
  18882. + }
  18883. + #define    FPuts(fh, str)    _FPuts(DOS_BASE_NAME, fh, str)
  18884. + static __inline LONG
  18885. + _FPuts(void *DOSBase, BPTR fh, STRPTR str)
  18886. + {
  18887. + struct Caos    MyCaos;
  18888. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18889. + //    MyCaos.M68kStart    =    NULL;
  18890. + //    MyCaos.M68kSize        =    0;
  18891. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18892. + //    MyCaos.PPCStart        =    NULL;
  18893. + //    MyCaos.PPCSize        =    0;
  18894. +     MyCaos.d1        =(ULONG) fh;
  18895. +     MyCaos.d2        =(ULONG) str;
  18896. +     MyCaos.caos_Un.Offset    =    (-342);
  18897. +     MyCaos.a6        =(ULONG) DOSBase;    
  18898. +     return((LONG)PPCCallOS(&MyCaos));
  18899. + }
  18900. + #define    FRead(fh, block, blocklen, number)    _FRead(DOS_BASE_NAME, fh, block, blocklen, number)
  18901. + static __inline LONG
  18902. + _FRead(void *DOSBase, BPTR fh, APTR block, unsigned long blocklen, unsigned long number)
  18903. + {
  18904. + struct Caos    MyCaos;
  18905. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18906. + //    MyCaos.M68kStart    =    NULL;
  18907. + //    MyCaos.M68kSize        =    0;
  18908. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18909. + //    MyCaos.PPCStart        =    NULL;
  18910. + //    MyCaos.PPCSize        =    0;
  18911. +     MyCaos.d1        =(ULONG) fh;
  18912. +     MyCaos.d2        =(ULONG) block;
  18913. +     MyCaos.d3        =(ULONG) blocklen;
  18914. +     MyCaos.d4        =(ULONG) number;
  18915. +     MyCaos.caos_Un.Offset    =    (-324);
  18916. +     MyCaos.a6        =(ULONG) DOSBase;    
  18917. +     return((LONG)PPCCallOS(&MyCaos));
  18918. + }
  18919. + #define    FWrite(fh, block, blocklen, number)    _FWrite(DOS_BASE_NAME, fh, block, blocklen, number)
  18920. + static __inline LONG
  18921. + _FWrite(void *DOSBase, BPTR fh, APTR block, unsigned long blocklen, unsigned long number)
  18922. + {
  18923. + struct Caos    MyCaos;
  18924. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18925. + //    MyCaos.M68kStart    =    NULL;
  18926. + //    MyCaos.M68kSize        =    0;
  18927. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18928. + //    MyCaos.PPCStart        =    NULL;
  18929. + //    MyCaos.PPCSize        =    0;
  18930. +     MyCaos.d1        =(ULONG) fh;
  18931. +     MyCaos.d2        =(ULONG) block;
  18932. +     MyCaos.d3        =(ULONG) blocklen;
  18933. +     MyCaos.d4        =(ULONG) number;
  18934. +     MyCaos.caos_Un.Offset    =    (-330);
  18935. +     MyCaos.a6        =(ULONG) DOSBase;    
  18936. +     return((LONG)PPCCallOS(&MyCaos));
  18937. + }
  18938. + #define    Fault(code, header, buffer, len)    _Fault(DOS_BASE_NAME, code, header, buffer, len)
  18939. + static __inline BOOL
  18940. + _Fault(void *DOSBase, long code, STRPTR header, STRPTR buffer, long len)
  18941. + {
  18942. + struct Caos    MyCaos;
  18943. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18944. + //    MyCaos.M68kStart    =    NULL;
  18945. + //    MyCaos.M68kSize        =    0;
  18946. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18947. + //    MyCaos.PPCStart        =    NULL;
  18948. + //    MyCaos.PPCSize        =    0;
  18949. +     MyCaos.d1        =(ULONG) code;
  18950. +     MyCaos.d2        =(ULONG) header;
  18951. +     MyCaos.d3        =(ULONG) buffer;
  18952. +     MyCaos.d4        =(ULONG) len;
  18953. +     MyCaos.caos_Un.Offset    =    (-468);
  18954. +     MyCaos.a6        =(ULONG) DOSBase;    
  18955. +     return((BOOL)PPCCallOS(&MyCaos));
  18956. + }
  18957. + #define    FilePart(path)    _FilePart(DOS_BASE_NAME, path)
  18958. + static __inline STRPTR
  18959. + _FilePart(void *DOSBase, STRPTR path)
  18960. + {
  18961. + struct Caos    MyCaos;
  18962. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18963. + //    MyCaos.M68kStart    =    NULL;
  18964. + //    MyCaos.M68kSize        =    0;
  18965. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18966. + //    MyCaos.PPCStart        =    NULL;
  18967. + //    MyCaos.PPCSize        =    0;
  18968. +     MyCaos.d1        =(ULONG) path;
  18969. +     MyCaos.caos_Un.Offset    =    (-870);
  18970. +     MyCaos.a6        =(ULONG) DOSBase;    
  18971. +     return((STRPTR)PPCCallOS(&MyCaos));
  18972. + }
  18973. + #define    FindArg(keyword, arg_template)    _FindArg(DOS_BASE_NAME, keyword, arg_template)
  18974. + static __inline LONG
  18975. + _FindArg(void *DOSBase, STRPTR keyword, STRPTR arg_template)
  18976. + {
  18977. + struct Caos    MyCaos;
  18978. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18979. + //    MyCaos.M68kStart    =    NULL;
  18980. + //    MyCaos.M68kSize        =    0;
  18981. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18982. + //    MyCaos.PPCStart        =    NULL;
  18983. + //    MyCaos.PPCSize        =    0;
  18984. +     MyCaos.d1        =(ULONG) keyword;
  18985. +     MyCaos.d2        =(ULONG) arg_template;
  18986. +     MyCaos.caos_Un.Offset    =    (-804);
  18987. +     MyCaos.a6        =(ULONG) DOSBase;    
  18988. +     return((LONG)PPCCallOS(&MyCaos));
  18989. + }
  18990. + #define    FindCliProc(num)    _FindCliProc(DOS_BASE_NAME, num)
  18991. + static __inline struct Process *
  18992. + _FindCliProc(void *DOSBase, unsigned long num)
  18993. + {
  18994. + struct Caos    MyCaos;
  18995. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  18996. + //    MyCaos.M68kStart    =    NULL;
  18997. + //    MyCaos.M68kSize        =    0;
  18998. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  18999. + //    MyCaos.PPCStart        =    NULL;
  19000. + //    MyCaos.PPCSize        =    0;
  19001. +     MyCaos.d1        =(ULONG) num;
  19002. +     MyCaos.caos_Un.Offset    =    (-546);
  19003. +     MyCaos.a6        =(ULONG) DOSBase;    
  19004. +     return((struct Process *)PPCCallOS(&MyCaos));
  19005. + }
  19006. + #define    FindDosEntry(dlist, name, flags)    _FindDosEntry(DOS_BASE_NAME, dlist, name, flags)
  19007. + static __inline struct DosList *
  19008. + _FindDosEntry(void *DOSBase, struct DosList *dlist, STRPTR name, unsigned long flags)
  19009. + {
  19010. + struct Caos    MyCaos;
  19011. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19012. + //    MyCaos.M68kStart    =    NULL;
  19013. + //    MyCaos.M68kSize        =    0;
  19014. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19015. + //    MyCaos.PPCStart        =    NULL;
  19016. + //    MyCaos.PPCSize        =    0;
  19017. +     MyCaos.d1        =(ULONG) dlist;
  19018. +     MyCaos.d2        =(ULONG) name;
  19019. +     MyCaos.d3        =(ULONG) flags;
  19020. +     MyCaos.caos_Un.Offset    =    (-684);
  19021. +     MyCaos.a6        =(ULONG) DOSBase;    
  19022. +     return((struct DosList *)PPCCallOS(&MyCaos));
  19023. + }
  19024. + #define    FindSegment(name, seg, system)    _FindSegment(DOS_BASE_NAME, name, seg, system)
  19025. + static __inline struct Segment *
  19026. + _FindSegment(void *DOSBase, STRPTR name, struct Segment *seg, long system)
  19027. + {
  19028. + struct Caos    MyCaos;
  19029. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19030. + //    MyCaos.M68kStart    =    NULL;
  19031. + //    MyCaos.M68kSize        =    0;
  19032. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19033. + //    MyCaos.PPCStart        =    NULL;
  19034. + //    MyCaos.PPCSize        =    0;
  19035. +     MyCaos.d1        =(ULONG) name;
  19036. +     MyCaos.d2        =(ULONG) seg;
  19037. +     MyCaos.d3        =(ULONG) system;
  19038. +     MyCaos.caos_Un.Offset    =    (-780);
  19039. +     MyCaos.a6        =(ULONG) DOSBase;    
  19040. +     return((struct Segment *)PPCCallOS(&MyCaos));
  19041. + }
  19042. + #define    FindVar(name, type)    _FindVar(DOS_BASE_NAME, name, type)
  19043. + static __inline struct LocalVar *
  19044. + _FindVar(void *DOSBase, STRPTR name, unsigned long type)
  19045. + {
  19046. + struct Caos    MyCaos;
  19047. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19048. + //    MyCaos.M68kStart    =    NULL;
  19049. + //    MyCaos.M68kSize        =    0;
  19050. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19051. + //    MyCaos.PPCStart        =    NULL;
  19052. + //    MyCaos.PPCSize        =    0;
  19053. +     MyCaos.d1        =(ULONG) name;
  19054. +     MyCaos.d2        =(ULONG) type;
  19055. +     MyCaos.caos_Un.Offset    =    (-918);
  19056. +     MyCaos.a6        =(ULONG) DOSBase;    
  19057. +     return((struct LocalVar *)PPCCallOS(&MyCaos));
  19058. + }
  19059. + #define    Flush(fh)    _Flush(DOS_BASE_NAME, fh)
  19060. + static __inline LONG
  19061. + _Flush(void *DOSBase, BPTR fh)
  19062. + {
  19063. + struct Caos    MyCaos;
  19064. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19065. + //    MyCaos.M68kStart    =    NULL;
  19066. + //    MyCaos.M68kSize        =    0;
  19067. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19068. + //    MyCaos.PPCStart        =    NULL;
  19069. + //    MyCaos.PPCSize        =    0;
  19070. +     MyCaos.d1        =(ULONG) fh;
  19071. +     MyCaos.caos_Un.Offset    =    (-360);
  19072. +     MyCaos.a6        =(ULONG) DOSBase;    
  19073. +     return((LONG)PPCCallOS(&MyCaos));
  19074. + }
  19075. + #define    Format(filesystem, volumename, dostype)    _Format(DOS_BASE_NAME, filesystem, volumename, dostype)
  19076. + static __inline BOOL
  19077. + _Format(void *DOSBase, STRPTR filesystem, STRPTR volumename, unsigned long dostype)
  19078. + {
  19079. + struct Caos    MyCaos;
  19080. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19081. + //    MyCaos.M68kStart    =    NULL;
  19082. + //    MyCaos.M68kSize        =    0;
  19083. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19084. + //    MyCaos.PPCStart        =    NULL;
  19085. + //    MyCaos.PPCSize        =    0;
  19086. +     MyCaos.d1        =(ULONG) filesystem;
  19087. +     MyCaos.d2        =(ULONG) volumename;
  19088. +     MyCaos.d3        =(ULONG) dostype;
  19089. +     MyCaos.caos_Un.Offset    =    (-714);
  19090. +     MyCaos.a6        =(ULONG) DOSBase;    
  19091. +     return((BOOL)PPCCallOS(&MyCaos));
  19092. + }
  19093. + #define    FreeArgs(args)    _FreeArgs(DOS_BASE_NAME, args)
  19094. + static __inline void
  19095. + _FreeArgs(void *DOSBase, struct RDArgs *args)
  19096. + {
  19097. + struct Caos    MyCaos;
  19098. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19099. + //    MyCaos.M68kStart    =    NULL;
  19100. + //    MyCaos.M68kSize        =    0;
  19101. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19102. + //    MyCaos.PPCStart        =    NULL;
  19103. + //    MyCaos.PPCSize        =    0;
  19104. +     MyCaos.d1        =(ULONG) args;
  19105. +     MyCaos.caos_Un.Offset    =    (-858);
  19106. +     MyCaos.a6        =(ULONG) DOSBase;    
  19107. +     PPCCallOS(&MyCaos);
  19108. + }
  19109. + #define    FreeDeviceProc(dp)    _FreeDeviceProc(DOS_BASE_NAME, dp)
  19110. + static __inline void
  19111. + _FreeDeviceProc(void *DOSBase, struct DevProc *dp)
  19112. + {
  19113. + struct Caos    MyCaos;
  19114. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19115. + //    MyCaos.M68kStart    =    NULL;
  19116. + //    MyCaos.M68kSize        =    0;
  19117. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19118. + //    MyCaos.PPCStart        =    NULL;
  19119. + //    MyCaos.PPCSize        =    0;
  19120. +     MyCaos.d1        =(ULONG) dp;
  19121. +     MyCaos.caos_Un.Offset    =    (-648);
  19122. +     MyCaos.a6        =(ULONG) DOSBase;    
  19123. +     PPCCallOS(&MyCaos);
  19124. + }
  19125. + #define    FreeDosEntry(dlist)    _FreeDosEntry(DOS_BASE_NAME, dlist)
  19126. + static __inline void
  19127. + _FreeDosEntry(void *DOSBase, struct DosList *dlist)
  19128. + {
  19129. + struct Caos    MyCaos;
  19130. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19131. + //    MyCaos.M68kStart    =    NULL;
  19132. + //    MyCaos.M68kSize        =    0;
  19133. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19134. + //    MyCaos.PPCStart        =    NULL;
  19135. + //    MyCaos.PPCSize        =    0;
  19136. +     MyCaos.d1        =(ULONG) dlist;
  19137. +     MyCaos.caos_Un.Offset    =    (-702);
  19138. +     MyCaos.a6        =(ULONG) DOSBase;    
  19139. +     PPCCallOS(&MyCaos);
  19140. + }
  19141. + #define    FreeDosObject(type, ptr)    _FreeDosObject(DOS_BASE_NAME, type, ptr)
  19142. + static __inline void
  19143. + _FreeDosObject(void *DOSBase, unsigned long type, APTR ptr)
  19144. + {
  19145. + struct Caos    MyCaos;
  19146. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19147. + //    MyCaos.M68kStart    =    NULL;
  19148. + //    MyCaos.M68kSize        =    0;
  19149. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19150. + //    MyCaos.PPCStart        =    NULL;
  19151. + //    MyCaos.PPCSize        =    0;
  19152. +     MyCaos.d1        =(ULONG) type;
  19153. +     MyCaos.d2        =(ULONG) ptr;
  19154. +     MyCaos.caos_Un.Offset    =    (-234);
  19155. +     MyCaos.a6        =(ULONG) DOSBase;    
  19156. +     PPCCallOS(&MyCaos);
  19157. + }
  19158. + #define    GetArgStr()    _GetArgStr(DOS_BASE_NAME)
  19159. + static __inline STRPTR
  19160. + _GetArgStr(void *DOSBase)
  19161. + {
  19162. + struct Caos    MyCaos;
  19163. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19164. + //    MyCaos.M68kStart    =    NULL;
  19165. + //    MyCaos.M68kSize        =    0;
  19166. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19167. + //    MyCaos.PPCStart        =    NULL;
  19168. + //    MyCaos.PPCSize        =    0;
  19169. +     MyCaos.caos_Un.Offset    =    (-534);
  19170. +     MyCaos.a6        =(ULONG) DOSBase;    
  19171. +     return((STRPTR)PPCCallOS(&MyCaos));
  19172. + }
  19173. + #define    GetConsoleTask()    _GetConsoleTask(DOS_BASE_NAME)
  19174. + static __inline struct MsgPort *
  19175. + _GetConsoleTask(void *DOSBase)
  19176. + {
  19177. + struct Caos    MyCaos;
  19178. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19179. + //    MyCaos.M68kStart    =    NULL;
  19180. + //    MyCaos.M68kSize        =    0;
  19181. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19182. + //    MyCaos.PPCStart        =    NULL;
  19183. + //    MyCaos.PPCSize        =    0;
  19184. +     MyCaos.caos_Un.Offset    =    (-510);
  19185. +     MyCaos.a6        =(ULONG) DOSBase;    
  19186. +     return((struct MsgPort *)PPCCallOS(&MyCaos));
  19187. + }
  19188. + #define    GetCurrentDirName(buf, len)    _GetCurrentDirName(DOS_BASE_NAME, buf, len)
  19189. + static __inline BOOL
  19190. + _GetCurrentDirName(void *DOSBase, STRPTR buf, long len)
  19191. + {
  19192. + struct Caos    MyCaos;
  19193. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19194. + //    MyCaos.M68kStart    =    NULL;
  19195. + //    MyCaos.M68kSize        =    0;
  19196. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19197. + //    MyCaos.PPCStart        =    NULL;
  19198. + //    MyCaos.PPCSize        =    0;
  19199. +     MyCaos.d1        =(ULONG) buf;
  19200. +     MyCaos.d2        =(ULONG) len;
  19201. +     MyCaos.caos_Un.Offset    =    (-564);
  19202. +     MyCaos.a6        =(ULONG) DOSBase;    
  19203. +     return((BOOL)PPCCallOS(&MyCaos));
  19204. + }
  19205. + #define    GetDeviceProc(name, dp)    _GetDeviceProc(DOS_BASE_NAME, name, dp)
  19206. + static __inline struct DevProc *
  19207. + _GetDeviceProc(void *DOSBase, STRPTR name, struct DevProc *dp)
  19208. + {
  19209. + struct Caos    MyCaos;
  19210. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19211. + //    MyCaos.M68kStart    =    NULL;
  19212. + //    MyCaos.M68kSize        =    0;
  19213. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19214. + //    MyCaos.PPCStart        =    NULL;
  19215. + //    MyCaos.PPCSize        =    0;
  19216. +     MyCaos.d1        =(ULONG) name;
  19217. +     MyCaos.d2        =(ULONG) dp;
  19218. +     MyCaos.caos_Un.Offset    =    (-642);
  19219. +     MyCaos.a6        =(ULONG) DOSBase;    
  19220. +     return((struct DevProc *)PPCCallOS(&MyCaos));
  19221. + }
  19222. + #define    GetFileSysTask()    _GetFileSysTask(DOS_BASE_NAME)
  19223. + static __inline struct MsgPort *
  19224. + _GetFileSysTask(void *DOSBase)
  19225. + {
  19226. + struct Caos    MyCaos;
  19227. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19228. + //    MyCaos.M68kStart    =    NULL;
  19229. + //    MyCaos.M68kSize        =    0;
  19230. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19231. + //    MyCaos.PPCStart        =    NULL;
  19232. + //    MyCaos.PPCSize        =    0;
  19233. +     MyCaos.caos_Un.Offset    =    (-522);
  19234. +     MyCaos.a6        =(ULONG) DOSBase;    
  19235. +     return((struct MsgPort *)PPCCallOS(&MyCaos));
  19236. + }
  19237. + #define    GetProgramDir()    _GetProgramDir(DOS_BASE_NAME)
  19238. + static __inline BPTR
  19239. + _GetProgramDir(void *DOSBase)
  19240. + {
  19241. + struct Caos    MyCaos;
  19242. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19243. + //    MyCaos.M68kStart    =    NULL;
  19244. + //    MyCaos.M68kSize        =    0;
  19245. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19246. + //    MyCaos.PPCStart        =    NULL;
  19247. + //    MyCaos.PPCSize        =    0;
  19248. +     MyCaos.caos_Un.Offset    =    (-600);
  19249. +     MyCaos.a6        =(ULONG) DOSBase;    
  19250. +     return((BPTR)PPCCallOS(&MyCaos));
  19251. + }
  19252. + #define    GetProgramName(buf, len)    _GetProgramName(DOS_BASE_NAME, buf, len)
  19253. + static __inline BOOL
  19254. + _GetProgramName(void *DOSBase, STRPTR buf, long len)
  19255. + {
  19256. + struct Caos    MyCaos;
  19257. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19258. + //    MyCaos.M68kStart    =    NULL;
  19259. + //    MyCaos.M68kSize        =    0;
  19260. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19261. + //    MyCaos.PPCStart        =    NULL;
  19262. + //    MyCaos.PPCSize        =    0;
  19263. +     MyCaos.d1        =(ULONG) buf;
  19264. +     MyCaos.d2        =(ULONG) len;
  19265. +     MyCaos.caos_Un.Offset    =    (-576);
  19266. +     MyCaos.a6        =(ULONG) DOSBase;    
  19267. +     return((BOOL)PPCCallOS(&MyCaos));
  19268. + }
  19269. + #define    GetPrompt(buf, len)    _GetPrompt(DOS_BASE_NAME, buf, len)
  19270. + static __inline BOOL
  19271. + _GetPrompt(void *DOSBase, STRPTR buf, long len)
  19272. + {
  19273. + struct Caos    MyCaos;
  19274. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19275. + //    MyCaos.M68kStart    =    NULL;
  19276. + //    MyCaos.M68kSize        =    0;
  19277. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19278. + //    MyCaos.PPCStart        =    NULL;
  19279. + //    MyCaos.PPCSize        =    0;
  19280. +     MyCaos.d1        =(ULONG) buf;
  19281. +     MyCaos.d2        =(ULONG) len;
  19282. +     MyCaos.caos_Un.Offset    =    (-588);
  19283. +     MyCaos.a6        =(ULONG) DOSBase;    
  19284. +     return((BOOL)PPCCallOS(&MyCaos));
  19285. + }
  19286. + #define    GetVar(name, buffer, size, flags)    _GetVar(DOS_BASE_NAME, name, buffer, size, flags)
  19287. + static __inline LONG
  19288. + _GetVar(void *DOSBase, STRPTR name, STRPTR buffer, long size, long flags)
  19289. + {
  19290. + struct Caos    MyCaos;
  19291. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19292. + //    MyCaos.M68kStart    =    NULL;
  19293. + //    MyCaos.M68kSize        =    0;
  19294. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19295. + //    MyCaos.PPCStart        =    NULL;
  19296. + //    MyCaos.PPCSize        =    0;
  19297. +     MyCaos.d1        =(ULONG) name;
  19298. +     MyCaos.d2        =(ULONG) buffer;
  19299. +     MyCaos.d3        =(ULONG) size;
  19300. +     MyCaos.d4        =(ULONG) flags;
  19301. +     MyCaos.caos_Un.Offset    =    (-906);
  19302. +     MyCaos.a6        =(ULONG) DOSBase;    
  19303. +     return((LONG)PPCCallOS(&MyCaos));
  19304. + }
  19305. + #define    Info(lock, parameterBlock)    _Info(DOS_BASE_NAME, lock, parameterBlock)
  19306. + static __inline LONG
  19307. + _Info(void *DOSBase, BPTR lock, struct InfoData *parameterBlock)
  19308. + {
  19309. + struct Caos    MyCaos;
  19310. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19311. + //    MyCaos.M68kStart    =    NULL;
  19312. + //    MyCaos.M68kSize        =    0;
  19313. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19314. + //    MyCaos.PPCStart        =    NULL;
  19315. + //    MyCaos.PPCSize        =    0;
  19316. +     MyCaos.d1        =(ULONG) lock;
  19317. +     MyCaos.d2        =(ULONG) parameterBlock;
  19318. +     MyCaos.caos_Un.Offset    =    (-114);
  19319. +     MyCaos.a6        =(ULONG) DOSBase;    
  19320. +     return((LONG)PPCCallOS(&MyCaos));
  19321. + }
  19322. + #define    Inhibit(name, onoff)    _Inhibit(DOS_BASE_NAME, name, onoff)
  19323. + static __inline LONG
  19324. + _Inhibit(void *DOSBase, STRPTR name, long onoff)
  19325. + {
  19326. + struct Caos    MyCaos;
  19327. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19328. + //    MyCaos.M68kStart    =    NULL;
  19329. + //    MyCaos.M68kSize        =    0;
  19330. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19331. + //    MyCaos.PPCStart        =    NULL;
  19332. + //    MyCaos.PPCSize        =    0;
  19333. +     MyCaos.d1        =(ULONG) name;
  19334. +     MyCaos.d2        =(ULONG) onoff;
  19335. +     MyCaos.caos_Un.Offset    =    (-726);
  19336. +     MyCaos.a6        =(ULONG) DOSBase;    
  19337. +     return((LONG)PPCCallOS(&MyCaos));
  19338. + }
  19339. + #define    Input()    _Input(DOS_BASE_NAME)
  19340. + static __inline BPTR
  19341. + _Input(void *DOSBase)
  19342. + {
  19343. + struct Caos    MyCaos;
  19344. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19345. + //    MyCaos.M68kStart    =    NULL;
  19346. + //    MyCaos.M68kSize        =    0;
  19347. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19348. + //    MyCaos.PPCStart        =    NULL;
  19349. + //    MyCaos.PPCSize        =    0;
  19350. +     MyCaos.caos_Un.Offset    =    (-54);
  19351. +     MyCaos.a6        =(ULONG) DOSBase;    
  19352. +     return((BPTR)PPCCallOS(&MyCaos));
  19353. + }
  19354. + #define    InternalLoadSeg(fh, table, funcarray, stack)    _InternalLoadSeg(DOS_BASE_NAME, fh, table, funcarray, stack)
  19355. + static __inline BPTR
  19356. + _InternalLoadSeg(void *DOSBase, BPTR fh, BPTR table, LONG *funcarray, LONG *stack)
  19357. + {
  19358. + struct Caos    MyCaos;
  19359. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19360. + //    MyCaos.M68kStart    =    NULL;
  19361. + //    MyCaos.M68kSize        =    0;
  19362. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19363. + //    MyCaos.PPCStart        =    NULL;
  19364. + //    MyCaos.PPCSize        =    0;
  19365. +     MyCaos.d0        =(ULONG) fh;
  19366. +     MyCaos.a0        =(ULONG) table;
  19367. +     MyCaos.a1        =(ULONG) funcarray;
  19368. +     MyCaos.a2        =(ULONG) stack;
  19369. +     MyCaos.caos_Un.Offset    =    (-756);
  19370. +     MyCaos.a6        =(ULONG) DOSBase;    
  19371. +     return((BPTR)PPCCallOS(&MyCaos));
  19372. + }
  19373. + #define    InternalUnLoadSeg(seglist, freefunc)    _InternalUnLoadSeg(DOS_BASE_NAME, seglist, freefunc)
  19374. + static __inline BOOL
  19375. + _InternalUnLoadSeg(void *DOSBase, BPTR seglist, void (*freefunc)())
  19376. + {
  19377. + struct Caos    MyCaos;
  19378. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19379. + //    MyCaos.M68kStart    =    NULL;
  19380. + //    MyCaos.M68kSize        =    0;
  19381. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19382. + //    MyCaos.PPCStart        =    NULL;
  19383. + //    MyCaos.PPCSize        =    0;
  19384. +     MyCaos.d1        =(ULONG) seglist;
  19385. +     MyCaos.a1        =(ULONG) freefunc;
  19386. +     MyCaos.caos_Un.Offset    =    (-762);
  19387. +     MyCaos.a6        =(ULONG) DOSBase;    
  19388. +     return((BOOL)PPCCallOS(&MyCaos));
  19389. + }
  19390. + #define    IoErr()    _IoErr(DOS_BASE_NAME)
  19391. + static __inline LONG
  19392. + _IoErr(void *DOSBase)
  19393. + {
  19394. + struct Caos    MyCaos;
  19395. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19396. + //    MyCaos.M68kStart    =    NULL;
  19397. + //    MyCaos.M68kSize        =    0;
  19398. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19399. + //    MyCaos.PPCStart        =    NULL;
  19400. + //    MyCaos.PPCSize        =    0;
  19401. +     MyCaos.caos_Un.Offset    =    (-132);
  19402. +     MyCaos.a6        =(ULONG) DOSBase;    
  19403. +     return((LONG)PPCCallOS(&MyCaos));
  19404. + }
  19405. + #define    IsFileSystem(name)    _IsFileSystem(DOS_BASE_NAME, name)
  19406. + static __inline BOOL
  19407. + _IsFileSystem(void *DOSBase, STRPTR name)
  19408. + {
  19409. + struct Caos    MyCaos;
  19410. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19411. + //    MyCaos.M68kStart    =    NULL;
  19412. + //    MyCaos.M68kSize        =    0;
  19413. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19414. + //    MyCaos.PPCStart        =    NULL;
  19415. + //    MyCaos.PPCSize        =    0;
  19416. +     MyCaos.d1        =(ULONG) name;
  19417. +     MyCaos.caos_Un.Offset    =    (-708);
  19418. +     MyCaos.a6        =(ULONG) DOSBase;    
  19419. +     return((BOOL)PPCCallOS(&MyCaos));
  19420. + }
  19421. + #define    IsInteractive(file)    _IsInteractive(DOS_BASE_NAME, file)
  19422. + static __inline LONG
  19423. + _IsInteractive(void *DOSBase, BPTR file)
  19424. + {
  19425. + struct Caos    MyCaos;
  19426. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19427. + //    MyCaos.M68kStart    =    NULL;
  19428. + //    MyCaos.M68kSize        =    0;
  19429. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19430. + //    MyCaos.PPCStart        =    NULL;
  19431. + //    MyCaos.PPCSize        =    0;
  19432. +     MyCaos.d1        =(ULONG) file;
  19433. +     MyCaos.caos_Un.Offset    =    (-216);
  19434. +     MyCaos.a6        =(ULONG) DOSBase;    
  19435. +     return((LONG)PPCCallOS(&MyCaos));
  19436. + }
  19437. + #define    LoadSeg(name)    _LoadSeg(DOS_BASE_NAME, name)
  19438. + static __inline BPTR
  19439. + _LoadSeg(void *DOSBase, STRPTR name)
  19440. + {
  19441. + struct Caos    MyCaos;
  19442. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19443. + //    MyCaos.M68kStart    =    NULL;
  19444. + //    MyCaos.M68kSize        =    0;
  19445. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19446. + //    MyCaos.PPCStart        =    NULL;
  19447. + //    MyCaos.PPCSize        =    0;
  19448. +     MyCaos.d1        =(ULONG) name;
  19449. +     MyCaos.caos_Un.Offset    =    (-150);
  19450. +     MyCaos.a6        =(ULONG) DOSBase;    
  19451. +     return((BPTR)PPCCallOS(&MyCaos));
  19452. + }
  19453. + #define    Lock(name, type)    _Lock(DOS_BASE_NAME, name, type)
  19454. + static __inline BPTR
  19455. + _Lock(void *DOSBase, STRPTR name, long type)
  19456. + {
  19457. + struct Caos    MyCaos;
  19458. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19459. + //    MyCaos.M68kStart    =    NULL;
  19460. + //    MyCaos.M68kSize        =    0;
  19461. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19462. + //    MyCaos.PPCStart        =    NULL;
  19463. + //    MyCaos.PPCSize        =    0;
  19464. +     MyCaos.d1        =(ULONG) name;
  19465. +     MyCaos.d2        =(ULONG) type;
  19466. +     MyCaos.caos_Un.Offset    =    (-84);
  19467. +     MyCaos.a6        =(ULONG) DOSBase;    
  19468. +     return((BPTR)PPCCallOS(&MyCaos));
  19469. + }
  19470. + #define    LockDosList(flags)    _LockDosList(DOS_BASE_NAME, flags)
  19471. + static __inline struct DosList *
  19472. + _LockDosList(void *DOSBase, unsigned long flags)
  19473. + {
  19474. + struct Caos    MyCaos;
  19475. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19476. + //    MyCaos.M68kStart    =    NULL;
  19477. + //    MyCaos.M68kSize        =    0;
  19478. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19479. + //    MyCaos.PPCStart        =    NULL;
  19480. + //    MyCaos.PPCSize        =    0;
  19481. +     MyCaos.d1        =(ULONG) flags;
  19482. +     MyCaos.caos_Un.Offset    =    (-654);
  19483. +     MyCaos.a6        =(ULONG) DOSBase;    
  19484. +     return((struct DosList *)PPCCallOS(&MyCaos));
  19485. + }
  19486. + #define    LockRecord(fh, offset, length, mode, timeout)    _LockRecord(DOS_BASE_NAME, fh, offset, length, mode, timeout)
  19487. + static __inline BOOL
  19488. + _LockRecord(void *DOSBase, BPTR fh, unsigned long offset, unsigned long length, unsigned long mode, unsigned long timeout)
  19489. + {
  19490. + struct Caos    MyCaos;
  19491. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19492. + //    MyCaos.M68kStart    =    NULL;
  19493. + //    MyCaos.M68kSize        =    0;
  19494. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19495. + //    MyCaos.PPCStart        =    NULL;
  19496. + //    MyCaos.PPCSize        =    0;
  19497. +     MyCaos.d1        =(ULONG) fh;
  19498. +     MyCaos.d2        =(ULONG) offset;
  19499. +     MyCaos.d3        =(ULONG) length;
  19500. +     MyCaos.d4        =(ULONG) mode;
  19501. +     MyCaos.d5        =(ULONG) timeout;
  19502. +     MyCaos.caos_Un.Offset    =    (-270);
  19503. +     MyCaos.a6        =(ULONG) DOSBase;    
  19504. +     return((BOOL)PPCCallOS(&MyCaos));
  19505. + }
  19506. + #define    LockRecords(recArray, timeout)    _LockRecords(DOS_BASE_NAME, recArray, timeout)
  19507. + static __inline BOOL
  19508. + _LockRecords(void *DOSBase, struct RecordLock *recArray, unsigned long timeout)
  19509. + {
  19510. + struct Caos    MyCaos;
  19511. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19512. + //    MyCaos.M68kStart    =    NULL;
  19513. + //    MyCaos.M68kSize        =    0;
  19514. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19515. + //    MyCaos.PPCStart        =    NULL;
  19516. + //    MyCaos.PPCSize        =    0;
  19517. +     MyCaos.d1        =(ULONG) recArray;
  19518. +     MyCaos.d2        =(ULONG) timeout;
  19519. +     MyCaos.caos_Un.Offset    =    (-276);
  19520. +     MyCaos.a6        =(ULONG) DOSBase;    
  19521. +     return((BOOL)PPCCallOS(&MyCaos));
  19522. + }
  19523. + #define    MakeDosEntry(name, type)    _MakeDosEntry(DOS_BASE_NAME, name, type)
  19524. + static __inline struct DosList *
  19525. + _MakeDosEntry(void *DOSBase, STRPTR name, long type)
  19526. + {
  19527. + struct Caos    MyCaos;
  19528. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19529. + //    MyCaos.M68kStart    =    NULL;
  19530. + //    MyCaos.M68kSize        =    0;
  19531. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19532. + //    MyCaos.PPCStart        =    NULL;
  19533. + //    MyCaos.PPCSize        =    0;
  19534. +     MyCaos.d1        =(ULONG) name;
  19535. +     MyCaos.d2        =(ULONG) type;
  19536. +     MyCaos.caos_Un.Offset    =    (-696);
  19537. +     MyCaos.a6        =(ULONG) DOSBase;    
  19538. +     return((struct DosList *)PPCCallOS(&MyCaos));
  19539. + }
  19540. + #define    MakeLink(name, dest, soft)    _MakeLink(DOS_BASE_NAME, name, dest, soft)
  19541. + static __inline LONG
  19542. + _MakeLink(void *DOSBase, STRPTR name, long dest, long soft)
  19543. + {
  19544. + struct Caos    MyCaos;
  19545. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19546. + //    MyCaos.M68kStart    =    NULL;
  19547. + //    MyCaos.M68kSize        =    0;
  19548. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19549. + //    MyCaos.PPCStart        =    NULL;
  19550. + //    MyCaos.PPCSize        =    0;
  19551. +     MyCaos.d1        =(ULONG) name;
  19552. +     MyCaos.d2        =(ULONG) dest;
  19553. +     MyCaos.d3        =(ULONG) soft;
  19554. +     MyCaos.caos_Un.Offset    =    (-444);
  19555. +     MyCaos.a6        =(ULONG) DOSBase;    
  19556. +     return((LONG)PPCCallOS(&MyCaos));
  19557. + }
  19558. + #define    MatchEnd(anchor)    _MatchEnd(DOS_BASE_NAME, anchor)
  19559. + static __inline void
  19560. + _MatchEnd(void *DOSBase, struct AnchorPath *anchor)
  19561. + {
  19562. + struct Caos    MyCaos;
  19563. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19564. + //    MyCaos.M68kStart    =    NULL;
  19565. + //    MyCaos.M68kSize        =    0;
  19566. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19567. + //    MyCaos.PPCStart        =    NULL;
  19568. + //    MyCaos.PPCSize        =    0;
  19569. +     MyCaos.d1        =(ULONG) anchor;
  19570. +     MyCaos.caos_Un.Offset    =    (-834);
  19571. +     MyCaos.a6        =(ULONG) DOSBase;    
  19572. +     PPCCallOS(&MyCaos);
  19573. + }
  19574. + #define    MatchFirst(pat, anchor)    _MatchFirst(DOS_BASE_NAME, pat, anchor)
  19575. + static __inline LONG
  19576. + _MatchFirst(void *DOSBase, STRPTR pat, struct AnchorPath *anchor)
  19577. + {
  19578. + struct Caos    MyCaos;
  19579. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19580. + //    MyCaos.M68kStart    =    NULL;
  19581. + //    MyCaos.M68kSize        =    0;
  19582. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19583. + //    MyCaos.PPCStart        =    NULL;
  19584. + //    MyCaos.PPCSize        =    0;
  19585. +     MyCaos.d1        =(ULONG) pat;
  19586. +     MyCaos.d2        =(ULONG) anchor;
  19587. +     MyCaos.caos_Un.Offset    =    (-822);
  19588. +     MyCaos.a6        =(ULONG) DOSBase;    
  19589. +     return((LONG)PPCCallOS(&MyCaos));
  19590. + }
  19591. + #define    MatchNext(anchor)    _MatchNext(DOS_BASE_NAME, anchor)
  19592. + static __inline LONG
  19593. + _MatchNext(void *DOSBase, struct AnchorPath *anchor)
  19594. + {
  19595. + struct Caos    MyCaos;
  19596. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19597. + //    MyCaos.M68kStart    =    NULL;
  19598. + //    MyCaos.M68kSize        =    0;
  19599. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19600. + //    MyCaos.PPCStart        =    NULL;
  19601. + //    MyCaos.PPCSize        =    0;
  19602. +     MyCaos.d1        =(ULONG) anchor;
  19603. +     MyCaos.caos_Un.Offset    =    (-828);
  19604. +     MyCaos.a6        =(ULONG) DOSBase;    
  19605. +     return((LONG)PPCCallOS(&MyCaos));
  19606. + }
  19607. + #define    MatchPattern(pat, str)    _MatchPattern(DOS_BASE_NAME, pat, str)
  19608. + static __inline BOOL
  19609. + _MatchPattern(void *DOSBase, STRPTR pat, STRPTR str)
  19610. + {
  19611. + struct Caos    MyCaos;
  19612. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19613. + //    MyCaos.M68kStart    =    NULL;
  19614. + //    MyCaos.M68kSize        =    0;
  19615. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19616. + //    MyCaos.PPCStart        =    NULL;
  19617. + //    MyCaos.PPCSize        =    0;
  19618. +     MyCaos.d1        =(ULONG) pat;
  19619. +     MyCaos.d2        =(ULONG) str;
  19620. +     MyCaos.caos_Un.Offset    =    (-846);
  19621. +     MyCaos.a6        =(ULONG) DOSBase;    
  19622. +     return((BOOL)PPCCallOS(&MyCaos));
  19623. + }
  19624. + #define    MatchPatternNoCase(pat, str)    _MatchPatternNoCase(DOS_BASE_NAME, pat, str)
  19625. + static __inline BOOL
  19626. + _MatchPatternNoCase(void *DOSBase, STRPTR pat, STRPTR str)
  19627. + {
  19628. + struct Caos    MyCaos;
  19629. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19630. + //    MyCaos.M68kStart    =    NULL;
  19631. + //    MyCaos.M68kSize        =    0;
  19632. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19633. + //    MyCaos.PPCStart        =    NULL;
  19634. + //    MyCaos.PPCSize        =    0;
  19635. +     MyCaos.d1        =(ULONG) pat;
  19636. +     MyCaos.d2        =(ULONG) str;
  19637. +     MyCaos.caos_Un.Offset    =    (-972);
  19638. +     MyCaos.a6        =(ULONG) DOSBase;    
  19639. +     return((BOOL)PPCCallOS(&MyCaos));
  19640. + }
  19641. + #define    MaxCli()    _MaxCli(DOS_BASE_NAME)
  19642. + static __inline ULONG
  19643. + _MaxCli(void *DOSBase)
  19644. + {
  19645. + struct Caos    MyCaos;
  19646. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19647. + //    MyCaos.M68kStart    =    NULL;
  19648. + //    MyCaos.M68kSize        =    0;
  19649. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19650. + //    MyCaos.PPCStart        =    NULL;
  19651. + //    MyCaos.PPCSize        =    0;
  19652. +     MyCaos.caos_Un.Offset    =    (-552);
  19653. +     MyCaos.a6        =(ULONG) DOSBase;    
  19654. +     return((ULONG)PPCCallOS(&MyCaos));
  19655. + }
  19656. + #define    NameFromFH(fh, buffer, len)    _NameFromFH(DOS_BASE_NAME, fh, buffer, len)
  19657. + static __inline LONG
  19658. + _NameFromFH(void *DOSBase, BPTR fh, STRPTR buffer, long len)
  19659. + {
  19660. + struct Caos    MyCaos;
  19661. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19662. + //    MyCaos.M68kStart    =    NULL;
  19663. + //    MyCaos.M68kSize        =    0;
  19664. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19665. + //    MyCaos.PPCStart        =    NULL;
  19666. + //    MyCaos.PPCSize        =    0;
  19667. +     MyCaos.d1        =(ULONG) fh;
  19668. +     MyCaos.d2        =(ULONG) buffer;
  19669. +     MyCaos.d3        =(ULONG) len;
  19670. +     MyCaos.caos_Un.Offset    =    (-408);
  19671. +     MyCaos.a6        =(ULONG) DOSBase;    
  19672. +     return((LONG)PPCCallOS(&MyCaos));
  19673. + }
  19674. + #define    NameFromLock(lock, buffer, len)    _NameFromLock(DOS_BASE_NAME, lock, buffer, len)
  19675. + static __inline LONG
  19676. + _NameFromLock(void *DOSBase, BPTR lock, STRPTR buffer, long len)
  19677. + {
  19678. + struct Caos    MyCaos;
  19679. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19680. + //    MyCaos.M68kStart    =    NULL;
  19681. + //    MyCaos.M68kSize        =    0;
  19682. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19683. + //    MyCaos.PPCStart        =    NULL;
  19684. + //    MyCaos.PPCSize        =    0;
  19685. +     MyCaos.d1        =(ULONG) lock;
  19686. +     MyCaos.d2        =(ULONG) buffer;
  19687. +     MyCaos.d3        =(ULONG) len;
  19688. +     MyCaos.caos_Un.Offset    =    (-402);
  19689. +     MyCaos.a6        =(ULONG) DOSBase;    
  19690. +     return((LONG)PPCCallOS(&MyCaos));
  19691. + }
  19692. + #define    NewLoadSeg(file, tags)    _NewLoadSeg(DOS_BASE_NAME, file, tags)
  19693. + static __inline BPTR
  19694. + _NewLoadSeg(void *DOSBase, STRPTR file, struct TagItem *tags)
  19695. + {
  19696. + struct Caos    MyCaos;
  19697. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19698. + //    MyCaos.M68kStart    =    NULL;
  19699. + //    MyCaos.M68kSize        =    0;
  19700. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19701. + //    MyCaos.PPCStart        =    NULL;
  19702. + //    MyCaos.PPCSize        =    0;
  19703. +     MyCaos.d1        =(ULONG) file;
  19704. +     MyCaos.d2        =(ULONG) tags;
  19705. +     MyCaos.caos_Un.Offset    =    (-768);
  19706. +     MyCaos.a6        =(ULONG) DOSBase;    
  19707. +     return((BPTR)PPCCallOS(&MyCaos));
  19708. + }
  19709. + #define NewLoadSegTagList(a0, a1) NewLoadSeg ((a0), (a1))
  19710. + #ifndef NO_PPCINLINE_STDARG
  19711. + #define NewLoadSegTags(a0, tags...) \
  19712. +     ({ULONG _tags[] = { tags }; NewLoadSeg((a0), (struct TagItem *)_tags);})
  19713. + #endif /* !NO_PPCINLINE_STDARG */
  19714. + #define    NextDosEntry(dlist, flags)    _NextDosEntry(DOS_BASE_NAME, dlist, flags)
  19715. + static __inline struct DosList *
  19716. + _NextDosEntry(void *DOSBase, struct DosList *dlist, unsigned long flags)
  19717. + {
  19718. + struct Caos    MyCaos;
  19719. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19720. + //    MyCaos.M68kStart    =    NULL;
  19721. + //    MyCaos.M68kSize        =    0;
  19722. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19723. + //    MyCaos.PPCStart        =    NULL;
  19724. + //    MyCaos.PPCSize        =    0;
  19725. +     MyCaos.d1        =(ULONG) dlist;
  19726. +     MyCaos.d2        =(ULONG) flags;
  19727. +     MyCaos.caos_Un.Offset    =    (-690);
  19728. +     MyCaos.a6        =(ULONG) DOSBase;    
  19729. +     return((struct DosList *)PPCCallOS(&MyCaos));
  19730. + }
  19731. + #define    Open(name, accessMode)    _Open(DOS_BASE_NAME, name, accessMode)
  19732. + static __inline BPTR
  19733. + _Open(void *DOSBase, STRPTR name, long accessMode)
  19734. + {
  19735. + struct Caos    MyCaos;
  19736. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19737. + //    MyCaos.M68kStart    =    NULL;
  19738. + //    MyCaos.M68kSize        =    0;
  19739. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19740. + //    MyCaos.PPCStart        =    NULL;
  19741. + //    MyCaos.PPCSize        =    0;
  19742. +     MyCaos.d1        =(ULONG) name;
  19743. +     MyCaos.d2        =(ULONG) accessMode;
  19744. +     MyCaos.caos_Un.Offset    =    (-30);
  19745. +     MyCaos.a6        =(ULONG) DOSBase;    
  19746. +     return((BPTR)PPCCallOS(&MyCaos));
  19747. + }
  19748. + #define    OpenFromLock(lock)    _OpenFromLock(DOS_BASE_NAME, lock)
  19749. + static __inline BPTR
  19750. + _OpenFromLock(void *DOSBase, BPTR lock)
  19751. + {
  19752. + struct Caos    MyCaos;
  19753. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19754. + //    MyCaos.M68kStart    =    NULL;
  19755. + //    MyCaos.M68kSize        =    0;
  19756. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19757. + //    MyCaos.PPCStart        =    NULL;
  19758. + //    MyCaos.PPCSize        =    0;
  19759. +     MyCaos.d1        =(ULONG) lock;
  19760. +     MyCaos.caos_Un.Offset    =    (-378);
  19761. +     MyCaos.a6        =(ULONG) DOSBase;    
  19762. +     return((BPTR)PPCCallOS(&MyCaos));
  19763. + }
  19764. + #define    Output()    _Output(DOS_BASE_NAME)
  19765. + static __inline BPTR
  19766. + _Output(void *DOSBase)
  19767. + {
  19768. + struct Caos    MyCaos;
  19769. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19770. + //    MyCaos.M68kStart    =    NULL;
  19771. + //    MyCaos.M68kSize        =    0;
  19772. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19773. + //    MyCaos.PPCStart        =    NULL;
  19774. + //    MyCaos.PPCSize        =    0;
  19775. +     MyCaos.caos_Un.Offset    =    (-60);
  19776. +     MyCaos.a6        =(ULONG) DOSBase;    
  19777. +     return((BPTR)PPCCallOS(&MyCaos));
  19778. + }
  19779. + #define    ParentDir(lock)    _ParentDir(DOS_BASE_NAME, lock)
  19780. + static __inline BPTR
  19781. + _ParentDir(void *DOSBase, BPTR lock)
  19782. + {
  19783. + struct Caos    MyCaos;
  19784. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19785. + //    MyCaos.M68kStart    =    NULL;
  19786. + //    MyCaos.M68kSize        =    0;
  19787. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19788. + //    MyCaos.PPCStart        =    NULL;
  19789. + //    MyCaos.PPCSize        =    0;
  19790. +     MyCaos.d1        =(ULONG) lock;
  19791. +     MyCaos.caos_Un.Offset    =    (-210);
  19792. +     MyCaos.a6        =(ULONG) DOSBase;    
  19793. +     return((BPTR)PPCCallOS(&MyCaos));
  19794. + }
  19795. + #define    ParentOfFH(fh)    _ParentOfFH(DOS_BASE_NAME, fh)
  19796. + static __inline BPTR
  19797. + _ParentOfFH(void *DOSBase, BPTR fh)
  19798. + {
  19799. + struct Caos    MyCaos;
  19800. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19801. + //    MyCaos.M68kStart    =    NULL;
  19802. + //    MyCaos.M68kSize        =    0;
  19803. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19804. + //    MyCaos.PPCStart        =    NULL;
  19805. + //    MyCaos.PPCSize        =    0;
  19806. +     MyCaos.d1        =(ULONG) fh;
  19807. +     MyCaos.caos_Un.Offset    =    (-384);
  19808. +     MyCaos.a6        =(ULONG) DOSBase;    
  19809. +     return((BPTR)PPCCallOS(&MyCaos));
  19810. + }
  19811. + #define    ParsePattern(pat, buf, buflen)    _ParsePattern(DOS_BASE_NAME, pat, buf, buflen)
  19812. + static __inline LONG
  19813. + _ParsePattern(void *DOSBase, STRPTR pat, STRPTR buf, long buflen)
  19814. + {
  19815. + struct Caos    MyCaos;
  19816. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19817. + //    MyCaos.M68kStart    =    NULL;
  19818. + //    MyCaos.M68kSize        =    0;
  19819. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19820. + //    MyCaos.PPCStart        =    NULL;
  19821. + //    MyCaos.PPCSize        =    0;
  19822. +     MyCaos.d1        =(ULONG) pat;
  19823. +     MyCaos.d2        =(ULONG) buf;
  19824. +     MyCaos.d3        =(ULONG) buflen;
  19825. +     MyCaos.caos_Un.Offset    =    (-840);
  19826. +     MyCaos.a6        =(ULONG) DOSBase;    
  19827. +     return((LONG)PPCCallOS(&MyCaos));
  19828. + }
  19829. + #define    ParsePatternNoCase(pat, buf, buflen)    _ParsePatternNoCase(DOS_BASE_NAME, pat, buf, buflen)
  19830. + static __inline LONG
  19831. + _ParsePatternNoCase(void *DOSBase, STRPTR pat, STRPTR buf, long buflen)
  19832. + {
  19833. + struct Caos    MyCaos;
  19834. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19835. + //    MyCaos.M68kStart    =    NULL;
  19836. + //    MyCaos.M68kSize        =    0;
  19837. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19838. + //    MyCaos.PPCStart        =    NULL;
  19839. + //    MyCaos.PPCSize        =    0;
  19840. +     MyCaos.d1        =(ULONG) pat;
  19841. +     MyCaos.d2        =(ULONG) buf;
  19842. +     MyCaos.d3        =(ULONG) buflen;
  19843. +     MyCaos.caos_Un.Offset    =    (-966);
  19844. +     MyCaos.a6        =(ULONG) DOSBase;    
  19845. +     return((LONG)PPCCallOS(&MyCaos));
  19846. + }
  19847. + #define    PathPart(path)    _PathPart(DOS_BASE_NAME, path)
  19848. + static __inline STRPTR
  19849. + _PathPart(void *DOSBase, STRPTR path)
  19850. + {
  19851. + struct Caos    MyCaos;
  19852. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19853. + //    MyCaos.M68kStart    =    NULL;
  19854. + //    MyCaos.M68kSize        =    0;
  19855. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19856. + //    MyCaos.PPCStart        =    NULL;
  19857. + //    MyCaos.PPCSize        =    0;
  19858. +     MyCaos.d1        =(ULONG) path;
  19859. +     MyCaos.caos_Un.Offset    =    (-876);
  19860. +     MyCaos.a6        =(ULONG) DOSBase;    
  19861. +     return((STRPTR)PPCCallOS(&MyCaos));
  19862. + }
  19863. + #define    PrintFault(code, header)    _PrintFault(DOS_BASE_NAME, code, header)
  19864. + static __inline BOOL
  19865. + _PrintFault(void *DOSBase, long code, STRPTR header)
  19866. + {
  19867. + struct Caos    MyCaos;
  19868. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19869. + //    MyCaos.M68kStart    =    NULL;
  19870. + //    MyCaos.M68kSize        =    0;
  19871. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19872. + //    MyCaos.PPCStart        =    NULL;
  19873. + //    MyCaos.PPCSize        =    0;
  19874. +     MyCaos.d1        =(ULONG) code;
  19875. +     MyCaos.d2        =(ULONG) header;
  19876. +     MyCaos.caos_Un.Offset    =    (-474);
  19877. +     MyCaos.a6        =(ULONG) DOSBase;    
  19878. +     return((BOOL)PPCCallOS(&MyCaos));
  19879. + }
  19880. + #define    PutStr(str)    _PutStr(DOS_BASE_NAME, str)
  19881. + static __inline LONG
  19882. + _PutStr(void *DOSBase, STRPTR str)
  19883. + {
  19884. + struct Caos    MyCaos;
  19885. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19886. + //    MyCaos.M68kStart    =    NULL;
  19887. + //    MyCaos.M68kSize        =    0;
  19888. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19889. + //    MyCaos.PPCStart        =    NULL;
  19890. + //    MyCaos.PPCSize        =    0;
  19891. +     MyCaos.d1        =(ULONG) str;
  19892. +     MyCaos.caos_Un.Offset    =    (-948);
  19893. +     MyCaos.a6        =(ULONG) DOSBase;    
  19894. +     return((LONG)PPCCallOS(&MyCaos));
  19895. + }
  19896. + #define    Read(file, buffer, length)    _Read(DOS_BASE_NAME, file, buffer, length)
  19897. + static __inline LONG
  19898. + _Read(void *DOSBase, BPTR file, APTR buffer, long length)
  19899. + {
  19900. + struct Caos    MyCaos;
  19901. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19902. + //    MyCaos.M68kStart    =    NULL;
  19903. + //    MyCaos.M68kSize        =    0;
  19904. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19905. + //    MyCaos.PPCStart        =    NULL;
  19906. + //    MyCaos.PPCSize        =    0;
  19907. +     MyCaos.d1        =(ULONG) file;
  19908. +     MyCaos.d2        =(ULONG) buffer;
  19909. +     MyCaos.d3        =(ULONG) length;
  19910. +     MyCaos.caos_Un.Offset    =    (-42);
  19911. +     MyCaos.a6        =(ULONG) DOSBase;    
  19912. +     return((LONG)PPCCallOS(&MyCaos));
  19913. + }
  19914. + #define    ReadArgs(arg_template, array, args)    _ReadArgs(DOS_BASE_NAME, arg_template, array, args)
  19915. + static __inline struct RDArgs *
  19916. + _ReadArgs(void *DOSBase, STRPTR arg_template, LONG *array, struct RDArgs *args)
  19917. + {
  19918. + struct Caos    MyCaos;
  19919. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19920. + //    MyCaos.M68kStart    =    NULL;
  19921. + //    MyCaos.M68kSize        =    0;
  19922. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19923. + //    MyCaos.PPCStart        =    NULL;
  19924. + //    MyCaos.PPCSize        =    0;
  19925. +     MyCaos.d1        =(ULONG) arg_template;
  19926. +     MyCaos.d2        =(ULONG) array;
  19927. +     MyCaos.d3        =(ULONG) args;
  19928. +     MyCaos.caos_Un.Offset    =    (-798);
  19929. +     MyCaos.a6        =(ULONG) DOSBase;    
  19930. +     return((struct RDArgs *)PPCCallOS(&MyCaos));
  19931. + }
  19932. + #define    ReadItem(name, maxchars, cSource)    _ReadItem(DOS_BASE_NAME, name, maxchars, cSource)
  19933. + static __inline LONG
  19934. + _ReadItem(void *DOSBase, STRPTR name, long maxchars, struct CSource *cSource)
  19935. + {
  19936. + struct Caos    MyCaos;
  19937. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19938. + //    MyCaos.M68kStart    =    NULL;
  19939. + //    MyCaos.M68kSize        =    0;
  19940. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19941. + //    MyCaos.PPCStart        =    NULL;
  19942. + //    MyCaos.PPCSize        =    0;
  19943. +     MyCaos.d1        =(ULONG) name;
  19944. +     MyCaos.d2        =(ULONG) maxchars;
  19945. +     MyCaos.d3        =(ULONG) cSource;
  19946. +     MyCaos.caos_Un.Offset    =    (-810);
  19947. +     MyCaos.a6        =(ULONG) DOSBase;    
  19948. +     return((LONG)PPCCallOS(&MyCaos));
  19949. + }
  19950. + #define    ReadLink(port, lock, path, buffer, size)    _ReadLink(DOS_BASE_NAME, port, lock, path, buffer, size)
  19951. + static __inline LONG
  19952. + _ReadLink(void *DOSBase, struct MsgPort *port, BPTR lock, STRPTR path, STRPTR buffer, unsigned long size)
  19953. + {
  19954. + struct Caos    MyCaos;
  19955. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19956. + //    MyCaos.M68kStart    =    NULL;
  19957. + //    MyCaos.M68kSize        =    0;
  19958. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19959. + //    MyCaos.PPCStart        =    NULL;
  19960. + //    MyCaos.PPCSize        =    0;
  19961. +     MyCaos.d1        =(ULONG) port;
  19962. +     MyCaos.d2        =(ULONG) lock;
  19963. +     MyCaos.d3        =(ULONG) path;
  19964. +     MyCaos.d4        =(ULONG) buffer;
  19965. +     MyCaos.d5        =(ULONG) size;
  19966. +     MyCaos.caos_Un.Offset    =    (-438);
  19967. +     MyCaos.a6        =(ULONG) DOSBase;    
  19968. +     return((LONG)PPCCallOS(&MyCaos));
  19969. + }
  19970. + #define    Relabel(drive, newname)    _Relabel(DOS_BASE_NAME, drive, newname)
  19971. + static __inline LONG
  19972. + _Relabel(void *DOSBase, STRPTR drive, STRPTR newname)
  19973. + {
  19974. + struct Caos    MyCaos;
  19975. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19976. + //    MyCaos.M68kStart    =    NULL;
  19977. + //    MyCaos.M68kSize        =    0;
  19978. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19979. + //    MyCaos.PPCStart        =    NULL;
  19980. + //    MyCaos.PPCSize        =    0;
  19981. +     MyCaos.d1        =(ULONG) drive;
  19982. +     MyCaos.d2        =(ULONG) newname;
  19983. +     MyCaos.caos_Un.Offset    =    (-720);
  19984. +     MyCaos.a6        =(ULONG) DOSBase;    
  19985. +     return((LONG)PPCCallOS(&MyCaos));
  19986. + }
  19987. + #define    RemAssignList(name, lock)    _RemAssignList(DOS_BASE_NAME, name, lock)
  19988. + static __inline LONG
  19989. + _RemAssignList(void *DOSBase, STRPTR name, BPTR lock)
  19990. + {
  19991. + struct Caos    MyCaos;
  19992. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  19993. + //    MyCaos.M68kStart    =    NULL;
  19994. + //    MyCaos.M68kSize        =    0;
  19995. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  19996. + //    MyCaos.PPCStart        =    NULL;
  19997. + //    MyCaos.PPCSize        =    0;
  19998. +     MyCaos.d1        =(ULONG) name;
  19999. +     MyCaos.d2        =(ULONG) lock;
  20000. +     MyCaos.caos_Un.Offset    =    (-636);
  20001. +     MyCaos.a6        =(ULONG) DOSBase;    
  20002. +     return((LONG)PPCCallOS(&MyCaos));
  20003. + }
  20004. + #define    RemDosEntry(dlist)    _RemDosEntry(DOS_BASE_NAME, dlist)
  20005. + static __inline BOOL
  20006. + _RemDosEntry(void *DOSBase, struct DosList *dlist)
  20007. + {
  20008. + struct Caos    MyCaos;
  20009. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20010. + //    MyCaos.M68kStart    =    NULL;
  20011. + //    MyCaos.M68kSize        =    0;
  20012. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20013. + //    MyCaos.PPCStart        =    NULL;
  20014. + //    MyCaos.PPCSize        =    0;
  20015. +     MyCaos.d1        =(ULONG) dlist;
  20016. +     MyCaos.caos_Un.Offset    =    (-672);
  20017. +     MyCaos.a6        =(ULONG) DOSBase;    
  20018. +     return((BOOL)PPCCallOS(&MyCaos));
  20019. + }
  20020. + #define    RemSegment(seg)    _RemSegment(DOS_BASE_NAME, seg)
  20021. + static __inline LONG
  20022. + _RemSegment(void *DOSBase, struct Segment *seg)
  20023. + {
  20024. + struct Caos    MyCaos;
  20025. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20026. + //    MyCaos.M68kStart    =    NULL;
  20027. + //    MyCaos.M68kSize        =    0;
  20028. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20029. + //    MyCaos.PPCStart        =    NULL;
  20030. + //    MyCaos.PPCSize        =    0;
  20031. +     MyCaos.d1        =(ULONG) seg;
  20032. +     MyCaos.caos_Un.Offset    =    (-786);
  20033. +     MyCaos.a6        =(ULONG) DOSBase;    
  20034. +     return((LONG)PPCCallOS(&MyCaos));
  20035. + }
  20036. + #define    Rename(oldName, newName)    _Rename(DOS_BASE_NAME, oldName, newName)
  20037. + static __inline LONG
  20038. + _Rename(void *DOSBase, STRPTR oldName, STRPTR newName)
  20039. + {
  20040. + struct Caos    MyCaos;
  20041. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20042. + //    MyCaos.M68kStart    =    NULL;
  20043. + //    MyCaos.M68kSize        =    0;
  20044. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20045. + //    MyCaos.PPCStart        =    NULL;
  20046. + //    MyCaos.PPCSize        =    0;
  20047. +     MyCaos.d1        =(ULONG) oldName;
  20048. +     MyCaos.d2        =(ULONG) newName;
  20049. +     MyCaos.caos_Un.Offset    =    (-78);
  20050. +     MyCaos.a6        =(ULONG) DOSBase;    
  20051. +     return((LONG)PPCCallOS(&MyCaos));
  20052. + }
  20053. + #define    ReplyPkt(dp, res1, res2)    _ReplyPkt(DOS_BASE_NAME, dp, res1, res2)
  20054. + static __inline void
  20055. + _ReplyPkt(void *DOSBase, struct DosPacket *dp, long res1, long res2)
  20056. + {
  20057. + struct Caos    MyCaos;
  20058. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20059. + //    MyCaos.M68kStart    =    NULL;
  20060. + //    MyCaos.M68kSize        =    0;
  20061. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20062. + //    MyCaos.PPCStart        =    NULL;
  20063. + //    MyCaos.PPCSize        =    0;
  20064. +     MyCaos.d1        =(ULONG) dp;
  20065. +     MyCaos.d2        =(ULONG) res1;
  20066. +     MyCaos.d3        =(ULONG) res2;
  20067. +     MyCaos.caos_Un.Offset    =    (-258);
  20068. +     MyCaos.a6        =(ULONG) DOSBase;    
  20069. +     PPCCallOS(&MyCaos);
  20070. + }
  20071. + #define    RunCommand(seg, stack, paramptr, paramlen)    _RunCommand(DOS_BASE_NAME, seg, stack, paramptr, paramlen)
  20072. + static __inline LONG
  20073. + _RunCommand(void *DOSBase, BPTR seg, long stack, STRPTR paramptr, long paramlen)
  20074. + {
  20075. + struct Caos    MyCaos;
  20076. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20077. + //    MyCaos.M68kStart    =    NULL;
  20078. + //    MyCaos.M68kSize        =    0;
  20079. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20080. + //    MyCaos.PPCStart        =    NULL;
  20081. + //    MyCaos.PPCSize        =    0;
  20082. +     MyCaos.d1        =(ULONG) seg;
  20083. +     MyCaos.d2        =(ULONG) stack;
  20084. +     MyCaos.d3        =(ULONG) paramptr;
  20085. +     MyCaos.d4        =(ULONG) paramlen;
  20086. +     MyCaos.caos_Un.Offset    =    (-504);
  20087. +     MyCaos.a6        =(ULONG) DOSBase;    
  20088. +     return((LONG)PPCCallOS(&MyCaos));
  20089. + }
  20090. + #define    SameDevice(lock1, lock2)    _SameDevice(DOS_BASE_NAME, lock1, lock2)
  20091. + static __inline BOOL
  20092. + _SameDevice(void *DOSBase, BPTR lock1, BPTR lock2)
  20093. + {
  20094. + struct Caos    MyCaos;
  20095. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20096. + //    MyCaos.M68kStart    =    NULL;
  20097. + //    MyCaos.M68kSize        =    0;
  20098. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20099. + //    MyCaos.PPCStart        =    NULL;
  20100. + //    MyCaos.PPCSize        =    0;
  20101. +     MyCaos.d1        =(ULONG) lock1;
  20102. +     MyCaos.d2        =(ULONG) lock2;
  20103. +     MyCaos.caos_Un.Offset    =    (-984);
  20104. +     MyCaos.a6        =(ULONG) DOSBase;    
  20105. +     return((BOOL)PPCCallOS(&MyCaos));
  20106. + }
  20107. + #define    SameLock(lock1, lock2)    _SameLock(DOS_BASE_NAME, lock1, lock2)
  20108. + static __inline LONG
  20109. + _SameLock(void *DOSBase, BPTR lock1, BPTR lock2)
  20110. + {
  20111. + struct Caos    MyCaos;
  20112. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20113. + //    MyCaos.M68kStart    =    NULL;
  20114. + //    MyCaos.M68kSize        =    0;
  20115. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20116. + //    MyCaos.PPCStart        =    NULL;
  20117. + //    MyCaos.PPCSize        =    0;
  20118. +     MyCaos.d1        =(ULONG) lock1;
  20119. +     MyCaos.d2        =(ULONG) lock2;
  20120. +     MyCaos.caos_Un.Offset    =    (-420);
  20121. +     MyCaos.a6        =(ULONG) DOSBase;    
  20122. +     return((LONG)PPCCallOS(&MyCaos));
  20123. + }
  20124. + #define    Seek(file, position, offset)    _Seek(DOS_BASE_NAME, file, position, offset)
  20125. + static __inline LONG
  20126. + _Seek(void *DOSBase, BPTR file, long position, long offset)
  20127. + {
  20128. + struct Caos    MyCaos;
  20129. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20130. + //    MyCaos.M68kStart    =    NULL;
  20131. + //    MyCaos.M68kSize        =    0;
  20132. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20133. + //    MyCaos.PPCStart        =    NULL;
  20134. + //    MyCaos.PPCSize        =    0;
  20135. +     MyCaos.d1        =(ULONG) file;
  20136. +     MyCaos.d2        =(ULONG) position;
  20137. +     MyCaos.d3        =(ULONG) offset;
  20138. +     MyCaos.caos_Un.Offset    =    (-66);
  20139. +     MyCaos.a6        =(ULONG) DOSBase;    
  20140. +     return((LONG)PPCCallOS(&MyCaos));
  20141. + }
  20142. + #define    SelectInput(fh)    _SelectInput(DOS_BASE_NAME, fh)
  20143. + static __inline BPTR
  20144. + _SelectInput(void *DOSBase, BPTR fh)
  20145. + {
  20146. + struct Caos    MyCaos;
  20147. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20148. + //    MyCaos.M68kStart    =    NULL;
  20149. + //    MyCaos.M68kSize        =    0;
  20150. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20151. + //    MyCaos.PPCStart        =    NULL;
  20152. + //    MyCaos.PPCSize        =    0;
  20153. +     MyCaos.d1        =(ULONG) fh;
  20154. +     MyCaos.caos_Un.Offset    =    (-294);
  20155. +     MyCaos.a6        =(ULONG) DOSBase;    
  20156. +     return((BPTR)PPCCallOS(&MyCaos));
  20157. + }
  20158. + #define    SelectOutput(fh)    _SelectOutput(DOS_BASE_NAME, fh)
  20159. + static __inline BPTR
  20160. + _SelectOutput(void *DOSBase, BPTR fh)
  20161. + {
  20162. + struct Caos    MyCaos;
  20163. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20164. + //    MyCaos.M68kStart    =    NULL;
  20165. + //    MyCaos.M68kSize        =    0;
  20166. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20167. + //    MyCaos.PPCStart        =    NULL;
  20168. + //    MyCaos.PPCSize        =    0;
  20169. +     MyCaos.d1        =(ULONG) fh;
  20170. +     MyCaos.caos_Un.Offset    =    (-300);
  20171. +     MyCaos.a6        =(ULONG) DOSBase;    
  20172. +     return((BPTR)PPCCallOS(&MyCaos));
  20173. + }
  20174. + #define    SendPkt(dp, port, replyport)    _SendPkt(DOS_BASE_NAME, dp, port, replyport)
  20175. + static __inline void
  20176. + _SendPkt(void *DOSBase, struct DosPacket *dp, struct MsgPort *port, struct MsgPort *replyport)
  20177. + {
  20178. + struct Caos    MyCaos;
  20179. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20180. + //    MyCaos.M68kStart    =    NULL;
  20181. + //    MyCaos.M68kSize        =    0;
  20182. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20183. + //    MyCaos.PPCStart        =    NULL;
  20184. + //    MyCaos.PPCSize        =    0;
  20185. +     MyCaos.d1        =(ULONG) dp;
  20186. +     MyCaos.d2        =(ULONG) port;
  20187. +     MyCaos.d3        =(ULONG) replyport;
  20188. +     MyCaos.caos_Un.Offset    =    (-246);
  20189. +     MyCaos.a6        =(ULONG) DOSBase;    
  20190. +     PPCCallOS(&MyCaos);
  20191. + }
  20192. + #define    SetArgStr(string)    _SetArgStr(DOS_BASE_NAME, string)
  20193. + static __inline BOOL
  20194. + _SetArgStr(void *DOSBase, STRPTR string)
  20195. + {
  20196. + struct Caos    MyCaos;
  20197. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20198. + //    MyCaos.M68kStart    =    NULL;
  20199. + //    MyCaos.M68kSize        =    0;
  20200. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20201. + //    MyCaos.PPCStart        =    NULL;
  20202. + //    MyCaos.PPCSize        =    0;
  20203. +     MyCaos.d1        =(ULONG) string;
  20204. +     MyCaos.caos_Un.Offset    =    (-540);
  20205. +     MyCaos.a6        =(ULONG) DOSBase;    
  20206. +     return((BOOL)PPCCallOS(&MyCaos));
  20207. + }
  20208. + #define    SetComment(name, comment)    _SetComment(DOS_BASE_NAME, name, comment)
  20209. + static __inline LONG
  20210. + _SetComment(void *DOSBase, STRPTR name, STRPTR comment)
  20211. + {
  20212. + struct Caos    MyCaos;
  20213. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20214. + //    MyCaos.M68kStart    =    NULL;
  20215. + //    MyCaos.M68kSize        =    0;
  20216. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20217. + //    MyCaos.PPCStart        =    NULL;
  20218. + //    MyCaos.PPCSize        =    0;
  20219. +     MyCaos.d1        =(ULONG) name;
  20220. +     MyCaos.d2        =(ULONG) comment;
  20221. +     MyCaos.caos_Un.Offset    =    (-180);
  20222. +     MyCaos.a6        =(ULONG) DOSBase;    
  20223. +     return((LONG)PPCCallOS(&MyCaos));
  20224. + }
  20225. + #define    SetConsoleTask(task)    _SetConsoleTask(DOS_BASE_NAME, task)
  20226. + static __inline struct MsgPort *
  20227. + _SetConsoleTask(void *DOSBase, struct MsgPort *task)
  20228. + {
  20229. + struct Caos    MyCaos;
  20230. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20231. + //    MyCaos.M68kStart    =    NULL;
  20232. + //    MyCaos.M68kSize        =    0;
  20233. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20234. + //    MyCaos.PPCStart        =    NULL;
  20235. + //    MyCaos.PPCSize        =    0;
  20236. +     MyCaos.d1        =(ULONG) task;
  20237. +     MyCaos.caos_Un.Offset    =    (-516);
  20238. +     MyCaos.a6        =(ULONG) DOSBase;    
  20239. +     return((struct MsgPort *)PPCCallOS(&MyCaos));
  20240. + }
  20241. + #define    SetCurrentDirName(name)    _SetCurrentDirName(DOS_BASE_NAME, name)
  20242. + static __inline BOOL
  20243. + _SetCurrentDirName(void *DOSBase, STRPTR name)
  20244. + {
  20245. + struct Caos    MyCaos;
  20246. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20247. + //    MyCaos.M68kStart    =    NULL;
  20248. + //    MyCaos.M68kSize        =    0;
  20249. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20250. + //    MyCaos.PPCStart        =    NULL;
  20251. + //    MyCaos.PPCSize        =    0;
  20252. +     MyCaos.d1        =(ULONG) name;
  20253. +     MyCaos.caos_Un.Offset    =    (-558);
  20254. +     MyCaos.a6        =(ULONG) DOSBase;    
  20255. +     return((BOOL)PPCCallOS(&MyCaos));
  20256. + }
  20257. + #define    SetFileDate(name, date)    _SetFileDate(DOS_BASE_NAME, name, date)
  20258. + static __inline LONG
  20259. + _SetFileDate(void *DOSBase, STRPTR name, struct DateStamp *date)
  20260. + {
  20261. + struct Caos    MyCaos;
  20262. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20263. + //    MyCaos.M68kStart    =    NULL;
  20264. + //    MyCaos.M68kSize        =    0;
  20265. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20266. + //    MyCaos.PPCStart        =    NULL;
  20267. + //    MyCaos.PPCSize        =    0;
  20268. +     MyCaos.d1        =(ULONG) name;
  20269. +     MyCaos.d2        =(ULONG) date;
  20270. +     MyCaos.caos_Un.Offset    =    (-396);
  20271. +     MyCaos.a6        =(ULONG) DOSBase;    
  20272. +     return((LONG)PPCCallOS(&MyCaos));
  20273. + }
  20274. + #define    SetFileSize(fh, pos, mode)    _SetFileSize(DOS_BASE_NAME, fh, pos, mode)
  20275. + static __inline LONG
  20276. + _SetFileSize(void *DOSBase, BPTR fh, long pos, long mode)
  20277. + {
  20278. + struct Caos    MyCaos;
  20279. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20280. + //    MyCaos.M68kStart    =    NULL;
  20281. + //    MyCaos.M68kSize        =    0;
  20282. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20283. + //    MyCaos.PPCStart        =    NULL;
  20284. + //    MyCaos.PPCSize        =    0;
  20285. +     MyCaos.d1        =(ULONG) fh;
  20286. +     MyCaos.d2        =(ULONG) pos;
  20287. +     MyCaos.d3        =(ULONG) mode;
  20288. +     MyCaos.caos_Un.Offset    =    (-456);
  20289. +     MyCaos.a6        =(ULONG) DOSBase;    
  20290. +     return((LONG)PPCCallOS(&MyCaos));
  20291. + }
  20292. + #define    SetFileSysTask(task)    _SetFileSysTask(DOS_BASE_NAME, task)
  20293. + static __inline struct MsgPort *
  20294. + _SetFileSysTask(void *DOSBase, struct MsgPort *task)
  20295. + {
  20296. + struct Caos    MyCaos;
  20297. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20298. + //    MyCaos.M68kStart    =    NULL;
  20299. + //    MyCaos.M68kSize        =    0;
  20300. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20301. + //    MyCaos.PPCStart        =    NULL;
  20302. + //    MyCaos.PPCSize        =    0;
  20303. +     MyCaos.d1        =(ULONG) task;
  20304. +     MyCaos.caos_Un.Offset    =    (-528);
  20305. +     MyCaos.a6        =(ULONG) DOSBase;    
  20306. +     return((struct MsgPort *)PPCCallOS(&MyCaos));
  20307. + }
  20308. + #define    SetIoErr(result)    _SetIoErr(DOS_BASE_NAME, result)
  20309. + static __inline LONG
  20310. + _SetIoErr(void *DOSBase, long result)
  20311. + {
  20312. + struct Caos    MyCaos;
  20313. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20314. + //    MyCaos.M68kStart    =    NULL;
  20315. + //    MyCaos.M68kSize        =    0;
  20316. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20317. + //    MyCaos.PPCStart        =    NULL;
  20318. + //    MyCaos.PPCSize        =    0;
  20319. +     MyCaos.d1        =(ULONG) result;
  20320. +     MyCaos.caos_Un.Offset    =    (-462);
  20321. +     MyCaos.a6        =(ULONG) DOSBase;    
  20322. +     return((LONG)PPCCallOS(&MyCaos));
  20323. + }
  20324. + #define    SetMode(fh, mode)    _SetMode(DOS_BASE_NAME, fh, mode)
  20325. + static __inline LONG
  20326. + _SetMode(void *DOSBase, BPTR fh, long mode)
  20327. + {
  20328. + struct Caos    MyCaos;
  20329. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20330. + //    MyCaos.M68kStart    =    NULL;
  20331. + //    MyCaos.M68kSize        =    0;
  20332. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20333. + //    MyCaos.PPCStart        =    NULL;
  20334. + //    MyCaos.PPCSize        =    0;
  20335. +     MyCaos.d1        =(ULONG) fh;
  20336. +     MyCaos.d2        =(ULONG) mode;
  20337. +     MyCaos.caos_Un.Offset    =    (-426);
  20338. +     MyCaos.a6        =(ULONG) DOSBase;    
  20339. +     return((LONG)PPCCallOS(&MyCaos));
  20340. + }
  20341. + #define    SetOwner(name, owner_info)    _SetOwner(DOS_BASE_NAME, name, owner_info)
  20342. + static __inline BOOL
  20343. + _SetOwner(void *DOSBase, STRPTR name, long owner_info)
  20344. + {
  20345. + struct Caos    MyCaos;
  20346. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20347. + //    MyCaos.M68kStart    =    NULL;
  20348. + //    MyCaos.M68kSize        =    0;
  20349. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20350. + //    MyCaos.PPCStart        =    NULL;
  20351. + //    MyCaos.PPCSize        =    0;
  20352. +     MyCaos.d1        =(ULONG) name;
  20353. +     MyCaos.d2        =(ULONG) owner_info;
  20354. +     MyCaos.caos_Un.Offset    =    (-996);
  20355. +     MyCaos.a6        =(ULONG) DOSBase;    
  20356. +     return((BOOL)PPCCallOS(&MyCaos));
  20357. + }
  20358. + #define    SetProgramDir(lock)    _SetProgramDir(DOS_BASE_NAME, lock)
  20359. + static __inline BPTR
  20360. + _SetProgramDir(void *DOSBase, BPTR lock)
  20361. + {
  20362. + struct Caos    MyCaos;
  20363. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20364. + //    MyCaos.M68kStart    =    NULL;
  20365. + //    MyCaos.M68kSize        =    0;
  20366. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20367. + //    MyCaos.PPCStart        =    NULL;
  20368. + //    MyCaos.PPCSize        =    0;
  20369. +     MyCaos.d1        =(ULONG) lock;
  20370. +     MyCaos.caos_Un.Offset    =    (-594);
  20371. +     MyCaos.a6        =(ULONG) DOSBase;    
  20372. +     return((BPTR)PPCCallOS(&MyCaos));
  20373. + }
  20374. + #define    SetProgramName(name)    _SetProgramName(DOS_BASE_NAME, name)
  20375. + static __inline BOOL
  20376. + _SetProgramName(void *DOSBase, STRPTR name)
  20377. + {
  20378. + struct Caos    MyCaos;
  20379. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20380. + //    MyCaos.M68kStart    =    NULL;
  20381. + //    MyCaos.M68kSize        =    0;
  20382. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20383. + //    MyCaos.PPCStart        =    NULL;
  20384. + //    MyCaos.PPCSize        =    0;
  20385. +     MyCaos.d1        =(ULONG) name;
  20386. +     MyCaos.caos_Un.Offset    =    (-570);
  20387. +     MyCaos.a6        =(ULONG) DOSBase;    
  20388. +     return((BOOL)PPCCallOS(&MyCaos));
  20389. + }
  20390. + #define    SetPrompt(name)    _SetPrompt(DOS_BASE_NAME, name)
  20391. + static __inline BOOL
  20392. + _SetPrompt(void *DOSBase, STRPTR name)
  20393. + {
  20394. + struct Caos    MyCaos;
  20395. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20396. + //    MyCaos.M68kStart    =    NULL;
  20397. + //    MyCaos.M68kSize        =    0;
  20398. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20399. + //    MyCaos.PPCStart        =    NULL;
  20400. + //    MyCaos.PPCSize        =    0;
  20401. +     MyCaos.d1        =(ULONG) name;
  20402. +     MyCaos.caos_Un.Offset    =    (-582);
  20403. +     MyCaos.a6        =(ULONG) DOSBase;    
  20404. +     return((BOOL)PPCCallOS(&MyCaos));
  20405. + }
  20406. + #define    SetProtection(name, protect)    _SetProtection(DOS_BASE_NAME, name, protect)
  20407. + static __inline LONG
  20408. + _SetProtection(void *DOSBase, STRPTR name, long protect)
  20409. + {
  20410. + struct Caos    MyCaos;
  20411. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20412. + //    MyCaos.M68kStart    =    NULL;
  20413. + //    MyCaos.M68kSize        =    0;
  20414. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20415. + //    MyCaos.PPCStart        =    NULL;
  20416. + //    MyCaos.PPCSize        =    0;
  20417. +     MyCaos.d1        =(ULONG) name;
  20418. +     MyCaos.d2        =(ULONG) protect;
  20419. +     MyCaos.caos_Un.Offset    =    (-186);
  20420. +     MyCaos.a6        =(ULONG) DOSBase;    
  20421. +     return((LONG)PPCCallOS(&MyCaos));
  20422. + }
  20423. + #define    SetVBuf(fh, buff, type, size)    _SetVBuf(DOS_BASE_NAME, fh, buff, type, size)
  20424. + static __inline LONG
  20425. + _SetVBuf(void *DOSBase, BPTR fh, STRPTR buff, long type, long size)
  20426. + {
  20427. + struct Caos    MyCaos;
  20428. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20429. + //    MyCaos.M68kStart    =    NULL;
  20430. + //    MyCaos.M68kSize        =    0;
  20431. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20432. + //    MyCaos.PPCStart        =    NULL;
  20433. + //    MyCaos.PPCSize        =    0;
  20434. +     MyCaos.d1        =(ULONG) fh;
  20435. +     MyCaos.d2        =(ULONG) buff;
  20436. +     MyCaos.d3        =(ULONG) type;
  20437. +     MyCaos.d4        =(ULONG) size;
  20438. +     MyCaos.caos_Un.Offset    =    (-366);
  20439. +     MyCaos.a6        =(ULONG) DOSBase;    
  20440. +     return((LONG)PPCCallOS(&MyCaos));
  20441. + }
  20442. + #define    SetVar(name, buffer, size, flags)    _SetVar(DOS_BASE_NAME, name, buffer, size, flags)
  20443. + static __inline BOOL
  20444. + _SetVar(void *DOSBase, STRPTR name, STRPTR buffer, long size, long flags)
  20445. + {
  20446. + struct Caos    MyCaos;
  20447. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20448. + //    MyCaos.M68kStart    =    NULL;
  20449. + //    MyCaos.M68kSize        =    0;
  20450. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20451. + //    MyCaos.PPCStart        =    NULL;
  20452. + //    MyCaos.PPCSize        =    0;
  20453. +     MyCaos.d1        =(ULONG) name;
  20454. +     MyCaos.d2        =(ULONG) buffer;
  20455. +     MyCaos.d3        =(ULONG) size;
  20456. +     MyCaos.d4        =(ULONG) flags;
  20457. +     MyCaos.caos_Un.Offset    =    (-900);
  20458. +     MyCaos.a6        =(ULONG) DOSBase;    
  20459. +     return((BOOL)PPCCallOS(&MyCaos));
  20460. + }
  20461. + #define    SplitName(name, seperator, buf, oldpos, size)    _SplitName(DOS_BASE_NAME, name, seperator, buf, oldpos, size)
  20462. + static __inline WORD
  20463. + _SplitName(void *DOSBase, STRPTR name, unsigned long seperator, STRPTR buf, long oldpos, long size)
  20464. + {
  20465. + struct Caos    MyCaos;
  20466. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20467. + //    MyCaos.M68kStart    =    NULL;
  20468. + //    MyCaos.M68kSize        =    0;
  20469. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20470. + //    MyCaos.PPCStart        =    NULL;
  20471. + //    MyCaos.PPCSize        =    0;
  20472. +     MyCaos.d1        =(ULONG) name;
  20473. +     MyCaos.d2        =(ULONG) seperator;
  20474. +     MyCaos.d3        =(ULONG) buf;
  20475. +     MyCaos.d4        =(ULONG) oldpos;
  20476. +     MyCaos.d5        =(ULONG) size;
  20477. +     MyCaos.caos_Un.Offset    =    (-414);
  20478. +     MyCaos.a6        =(ULONG) DOSBase;    
  20479. +     return((WORD)PPCCallOS(&MyCaos));
  20480. + }
  20481. + #define    StartNotify(notify)    _StartNotify(DOS_BASE_NAME, notify)
  20482. + static __inline BOOL
  20483. + _StartNotify(void *DOSBase, struct NotifyRequest *notify)
  20484. + {
  20485. + struct Caos    MyCaos;
  20486. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20487. + //    MyCaos.M68kStart    =    NULL;
  20488. + //    MyCaos.M68kSize        =    0;
  20489. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20490. + //    MyCaos.PPCStart        =    NULL;
  20491. + //    MyCaos.PPCSize        =    0;
  20492. +     MyCaos.d1        =(ULONG) notify;
  20493. +     MyCaos.caos_Un.Offset    =    (-888);
  20494. +     MyCaos.a6        =(ULONG) DOSBase;    
  20495. +     return((BOOL)PPCCallOS(&MyCaos));
  20496. + }
  20497. + #define    StrToDate(datetime)    _StrToDate(DOS_BASE_NAME, datetime)
  20498. + static __inline LONG
  20499. + _StrToDate(void *DOSBase, struct DateTime *datetime)
  20500. + {
  20501. + struct Caos    MyCaos;
  20502. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20503. + //    MyCaos.M68kStart    =    NULL;
  20504. + //    MyCaos.M68kSize        =    0;
  20505. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20506. + //    MyCaos.PPCStart        =    NULL;
  20507. + //    MyCaos.PPCSize        =    0;
  20508. +     MyCaos.d1        =(ULONG) datetime;
  20509. +     MyCaos.caos_Un.Offset    =    (-750);
  20510. +     MyCaos.a6        =(ULONG) DOSBase;    
  20511. +     return((LONG)PPCCallOS(&MyCaos));
  20512. + }
  20513. + #define    StrToLong(string, value)    _StrToLong(DOS_BASE_NAME, string, value)
  20514. + static __inline LONG
  20515. + _StrToLong(void *DOSBase, STRPTR string, LONG *value)
  20516. + {
  20517. + struct Caos    MyCaos;
  20518. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20519. + //    MyCaos.M68kStart    =    NULL;
  20520. + //    MyCaos.M68kSize        =    0;
  20521. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20522. + //    MyCaos.PPCStart        =    NULL;
  20523. + //    MyCaos.PPCSize        =    0;
  20524. +     MyCaos.d1        =(ULONG) string;
  20525. +     MyCaos.d2        =(ULONG) value;
  20526. +     MyCaos.caos_Un.Offset    =    (-816);
  20527. +     MyCaos.a6        =(ULONG) DOSBase;    
  20528. +     return((LONG)PPCCallOS(&MyCaos));
  20529. + }
  20530. + #define    SystemTagList(command, tags)    _SystemTagList(DOS_BASE_NAME, command, tags)
  20531. + static __inline LONG
  20532. + _SystemTagList(void *DOSBase, STRPTR command, struct TagItem *tags)
  20533. + {
  20534. + struct Caos    MyCaos;
  20535. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20536. + //    MyCaos.M68kStart    =    NULL;
  20537. + //    MyCaos.M68kSize        =    0;
  20538. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20539. + //    MyCaos.PPCStart        =    NULL;
  20540. + //    MyCaos.PPCSize        =    0;
  20541. +     MyCaos.d1        =(ULONG) command;
  20542. +     MyCaos.d2        =(ULONG) tags;
  20543. +     MyCaos.caos_Un.Offset    =    (-606);
  20544. +     MyCaos.a6        =(ULONG) DOSBase;    
  20545. +     return((LONG)PPCCallOS(&MyCaos));
  20546. + }
  20547. + #define System(a0, a1) SystemTagList ((a0), (a1))
  20548. + #ifndef NO_PPCINLINE_STDARG
  20549. + #define SystemTags(a0, tags...) \
  20550. +     ({ULONG _tags[] = { tags }; SystemTagList((a0), (struct TagItem *)_tags);})
  20551. + #endif /* !NO_PPCINLINE_STDARG */
  20552. + #define    UnGetC(fh, character)    _UnGetC(DOS_BASE_NAME, fh, character)
  20553. + static __inline LONG
  20554. + _UnGetC(void *DOSBase, BPTR fh, long character)
  20555. + {
  20556. + struct Caos    MyCaos;
  20557. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20558. + //    MyCaos.M68kStart    =    NULL;
  20559. + //    MyCaos.M68kSize        =    0;
  20560. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20561. + //    MyCaos.PPCStart        =    NULL;
  20562. + //    MyCaos.PPCSize        =    0;
  20563. +     MyCaos.d1        =(ULONG) fh;
  20564. +     MyCaos.d2        =(ULONG) character;
  20565. +     MyCaos.caos_Un.Offset    =    (-318);
  20566. +     MyCaos.a6        =(ULONG) DOSBase;    
  20567. +     return((LONG)PPCCallOS(&MyCaos));
  20568. + }
  20569. + #define    UnLoadSeg(seglist)    _UnLoadSeg(DOS_BASE_NAME, seglist)
  20570. + static __inline void
  20571. + _UnLoadSeg(void *DOSBase, BPTR seglist)
  20572. + {
  20573. + struct Caos    MyCaos;
  20574. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20575. + //    MyCaos.M68kStart    =    NULL;
  20576. + //    MyCaos.M68kSize        =    0;
  20577. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20578. + //    MyCaos.PPCStart        =    NULL;
  20579. + //    MyCaos.PPCSize        =    0;
  20580. +     MyCaos.d1        =(ULONG) seglist;
  20581. +     MyCaos.caos_Un.Offset    =    (-156);
  20582. +     MyCaos.a6        =(ULONG) DOSBase;    
  20583. +     PPCCallOS(&MyCaos);
  20584. + }
  20585. + #define    UnLock(lock)    _UnLock(DOS_BASE_NAME, lock)
  20586. + static __inline void
  20587. + _UnLock(void *DOSBase, BPTR lock)
  20588. + {
  20589. + struct Caos    MyCaos;
  20590. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20591. + //    MyCaos.M68kStart    =    NULL;
  20592. + //    MyCaos.M68kSize        =    0;
  20593. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20594. + //    MyCaos.PPCStart        =    NULL;
  20595. + //    MyCaos.PPCSize        =    0;
  20596. +     MyCaos.d1        =(ULONG) lock;
  20597. +     MyCaos.caos_Un.Offset    =    (-90);
  20598. +     MyCaos.a6        =(ULONG) DOSBase;    
  20599. +     PPCCallOS(&MyCaos);
  20600. + }
  20601. + #define    UnLockDosList(flags)    _UnLockDosList(DOS_BASE_NAME, flags)
  20602. + static __inline void
  20603. + _UnLockDosList(void *DOSBase, unsigned long flags)
  20604. + {
  20605. + struct Caos    MyCaos;
  20606. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20607. + //    MyCaos.M68kStart    =    NULL;
  20608. + //    MyCaos.M68kSize        =    0;
  20609. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20610. + //    MyCaos.PPCStart        =    NULL;
  20611. + //    MyCaos.PPCSize        =    0;
  20612. +     MyCaos.d1        =(ULONG) flags;
  20613. +     MyCaos.caos_Un.Offset    =    (-660);
  20614. +     MyCaos.a6        =(ULONG) DOSBase;    
  20615. +     PPCCallOS(&MyCaos);
  20616. + }
  20617. + #define    UnLockRecord(fh, offset, length)    _UnLockRecord(DOS_BASE_NAME, fh, offset, length)
  20618. + static __inline BOOL
  20619. + _UnLockRecord(void *DOSBase, BPTR fh, unsigned long offset, unsigned long length)
  20620. + {
  20621. + struct Caos    MyCaos;
  20622. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20623. + //    MyCaos.M68kStart    =    NULL;
  20624. + //    MyCaos.M68kSize        =    0;
  20625. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20626. + //    MyCaos.PPCStart        =    NULL;
  20627. + //    MyCaos.PPCSize        =    0;
  20628. +     MyCaos.d1        =(ULONG) fh;
  20629. +     MyCaos.d2        =(ULONG) offset;
  20630. +     MyCaos.d3        =(ULONG) length;
  20631. +     MyCaos.caos_Un.Offset    =    (-282);
  20632. +     MyCaos.a6        =(ULONG) DOSBase;    
  20633. +     return((BOOL)PPCCallOS(&MyCaos));
  20634. + }
  20635. + #define    UnLockRecords(recArray)    _UnLockRecords(DOS_BASE_NAME, recArray)
  20636. + static __inline BOOL
  20637. + _UnLockRecords(void *DOSBase, struct RecordLock *recArray)
  20638. + {
  20639. + struct Caos    MyCaos;
  20640. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20641. + //    MyCaos.M68kStart    =    NULL;
  20642. + //    MyCaos.M68kSize        =    0;
  20643. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20644. + //    MyCaos.PPCStart        =    NULL;
  20645. + //    MyCaos.PPCSize        =    0;
  20646. +     MyCaos.d1        =(ULONG) recArray;
  20647. +     MyCaos.caos_Un.Offset    =    (-288);
  20648. +     MyCaos.a6        =(ULONG) DOSBase;    
  20649. +     return((BOOL)PPCCallOS(&MyCaos));
  20650. + }
  20651. + #define    VFPrintf(fh, format, argarray)    _VFPrintf(DOS_BASE_NAME, fh, format, argarray)
  20652. + static __inline LONG
  20653. + _VFPrintf(void *DOSBase, BPTR fh, STRPTR format, APTR argarray)
  20654. + {
  20655. + struct Caos    MyCaos;
  20656. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20657. + //    MyCaos.M68kStart    =    NULL;
  20658. + //    MyCaos.M68kSize        =    0;
  20659. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20660. + //    MyCaos.PPCStart        =    NULL;
  20661. + //    MyCaos.PPCSize        =    0;
  20662. +     MyCaos.d1        =(ULONG) fh;
  20663. +     MyCaos.d2        =(ULONG) format;
  20664. +     MyCaos.d3        =(ULONG) argarray;
  20665. +     MyCaos.caos_Un.Offset    =    (-354);
  20666. +     MyCaos.a6        =(ULONG) DOSBase;    
  20667. +     return((LONG)PPCCallOS(&MyCaos));
  20668. + }
  20669. + #ifndef NO_PPCINLINE_STDARG
  20670. + #define FPrintf(a0, a1, tags...) \
  20671. +     ({ULONG _tags[] = { tags }; VFPrintf((a0), (a1), (APTR)_tags);})
  20672. + #endif /* !NO_PPCINLINE_STDARG */
  20673. + #define    VFWritef(fh, format, argarray)    _VFWritef(DOS_BASE_NAME, fh, format, argarray)
  20674. + static __inline void
  20675. + _VFWritef(void *DOSBase, BPTR fh, STRPTR format, LONG *argarray)
  20676. + {
  20677. + struct Caos    MyCaos;
  20678. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20679. + //    MyCaos.M68kStart    =    NULL;
  20680. + //    MyCaos.M68kSize        =    0;
  20681. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20682. + //    MyCaos.PPCStart        =    NULL;
  20683. + //    MyCaos.PPCSize        =    0;
  20684. +     MyCaos.d1        =(ULONG) fh;
  20685. +     MyCaos.d2        =(ULONG) format;
  20686. +     MyCaos.d3        =(ULONG) argarray;
  20687. +     MyCaos.caos_Un.Offset    =    (-348);
  20688. +     MyCaos.a6        =(ULONG) DOSBase;    
  20689. +     PPCCallOS(&MyCaos);
  20690. + }
  20691. + #ifndef NO_PPCINLINE_STDARG
  20692. + #define FWritef(a0, a1, tags...) \
  20693. +     ({ULONG _tags[] = { tags }; VFWritef((a0), (a1), (LONG *)_tags);})
  20694. + #endif /* !NO_PPCINLINE_STDARG */
  20695. + #define    VPrintf(format, argarray)    _VPrintf(DOS_BASE_NAME, format, argarray)
  20696. + static __inline LONG
  20697. + _VPrintf(void *DOSBase, STRPTR format, APTR argarray)
  20698. + {
  20699. + struct Caos    MyCaos;
  20700. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20701. + //    MyCaos.M68kStart    =    NULL;
  20702. + //    MyCaos.M68kSize        =    0;
  20703. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20704. + //    MyCaos.PPCStart        =    NULL;
  20705. + //    MyCaos.PPCSize        =    0;
  20706. +     MyCaos.d1        =(ULONG) format;
  20707. +     MyCaos.d2        =(ULONG) argarray;
  20708. +     MyCaos.caos_Un.Offset    =    (-954);
  20709. +     MyCaos.a6        =(ULONG) DOSBase;    
  20710. +     return((LONG)PPCCallOS(&MyCaos));
  20711. + }
  20712. + #ifndef NO_PPCINLINE_STDARG
  20713. + #define Printf(a0, tags...) \
  20714. +     ({ULONG _tags[] = { tags }; VPrintf((a0), (APTR)_tags);})
  20715. + #endif /* !NO_PPCINLINE_STDARG */
  20716. + #define    WaitForChar(file, timeout)    _WaitForChar(DOS_BASE_NAME, file, timeout)
  20717. + static __inline LONG
  20718. + _WaitForChar(void *DOSBase, BPTR file, long timeout)
  20719. + {
  20720. + struct Caos    MyCaos;
  20721. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20722. + //    MyCaos.M68kStart    =    NULL;
  20723. + //    MyCaos.M68kSize        =    0;
  20724. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20725. + //    MyCaos.PPCStart        =    NULL;
  20726. + //    MyCaos.PPCSize        =    0;
  20727. +     MyCaos.d1        =(ULONG) file;
  20728. +     MyCaos.d2        =(ULONG) timeout;
  20729. +     MyCaos.caos_Un.Offset    =    (-204);
  20730. +     MyCaos.a6        =(ULONG) DOSBase;    
  20731. +     return((LONG)PPCCallOS(&MyCaos));
  20732. + }
  20733. + #define    WaitPkt()    _WaitPkt(DOS_BASE_NAME)
  20734. + static __inline struct DosPacket *
  20735. + _WaitPkt(void *DOSBase)
  20736. + {
  20737. + struct Caos    MyCaos;
  20738. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20739. + //    MyCaos.M68kStart    =    NULL;
  20740. + //    MyCaos.M68kSize        =    0;
  20741. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20742. + //    MyCaos.PPCStart        =    NULL;
  20743. + //    MyCaos.PPCSize        =    0;
  20744. +     MyCaos.caos_Un.Offset    =    (-252);
  20745. +     MyCaos.a6        =(ULONG) DOSBase;    
  20746. +     return((struct DosPacket *)PPCCallOS(&MyCaos));
  20747. + }
  20748. + #define    Write(file, buffer, length)    _Write(DOS_BASE_NAME, file, buffer, length)
  20749. + static __inline LONG
  20750. + _Write(void *DOSBase, BPTR file, APTR buffer, long length)
  20751. + {
  20752. + struct Caos    MyCaos;
  20753. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20754. + //    MyCaos.M68kStart    =    NULL;
  20755. + //    MyCaos.M68kSize        =    0;
  20756. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20757. + //    MyCaos.PPCStart        =    NULL;
  20758. + //    MyCaos.PPCSize        =    0;
  20759. +     MyCaos.d1        =(ULONG) file;
  20760. +     MyCaos.d2        =(ULONG) buffer;
  20761. +     MyCaos.d3        =(ULONG) length;
  20762. +     MyCaos.caos_Un.Offset    =    (-48);
  20763. +     MyCaos.a6        =(ULONG) DOSBase;    
  20764. +     return((LONG)PPCCallOS(&MyCaos));
  20765. + }
  20766. + #define    WriteChars(buf, buflen)    _WriteChars(DOS_BASE_NAME, buf, buflen)
  20767. + static __inline LONG
  20768. + _WriteChars(void *DOSBase, STRPTR buf, unsigned long buflen)
  20769. + {
  20770. + struct Caos    MyCaos;
  20771. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20772. + //    MyCaos.M68kStart    =    NULL;
  20773. + //    MyCaos.M68kSize        =    0;
  20774. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20775. + //    MyCaos.PPCStart        =    NULL;
  20776. + //    MyCaos.PPCSize        =    0;
  20777. +     MyCaos.d1        =(ULONG) buf;
  20778. +     MyCaos.d2        =(ULONG) buflen;
  20779. +     MyCaos.caos_Un.Offset    =    (-942);
  20780. +     MyCaos.a6        =(ULONG) DOSBase;    
  20781. +     return((LONG)PPCCallOS(&MyCaos));
  20782. + }
  20783. + #endif /* SASC Pragmas */
  20784. + #endif /* !_PPCPRAGMA_DOS_H */
  20785. diff -c2 -d -P -r include_h/powerup/ppcpragmas/dtclass_pragmas.h includenew/powerup/ppcpragmas/dtclass_pragmas.h
  20786. *** include_h/powerup/ppcpragmas/dtclass_pragmas.h    Thu Jan  1 00:00:00 1970
  20787. --- includenew/powerup/ppcpragmas/dtclass_pragmas.h    Thu Nov  2 22:27:13 2000
  20788. ***************
  20789. *** 0 ****
  20790. --- 1,45 ----
  20791. + /* Automatically generated header! Do not edit! */
  20792. + #ifndef _PPCPRAGMA_DTCLASS_H
  20793. + #define _PPCPRAGMA_DTCLASS_H
  20794. + #ifdef __GNUC__
  20795. + #ifndef _PPCINLINE__DTCLASS_H
  20796. + #include <powerup/ppcinline/dtclass.h>
  20797. + #endif
  20798. + #else
  20799. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  20800. + #include <powerup/ppclib/interface.h>
  20801. + #endif
  20802. + #ifndef POWERUP_GCCLIB_PROTOS_H
  20803. + #include <powerup/gcclib/powerup_protos.h>
  20804. + #endif
  20805. + #ifndef NO_PPCINLINE_STDARG
  20806. + #define NO_PPCINLINE_STDARG
  20807. + #endif/* SAS C PPC inlines */
  20808. + #ifndef DTCLASS_BASE_NAME
  20809. + #define DTCLASS_BASE_NAME DTClassBase
  20810. + #endif /* !DTCLASS_BASE_NAME */
  20811. + #define    ObtainEngine()    _ObtainEngine(DTCLASS_BASE_NAME)
  20812. + static __inline Class *
  20813. + _ObtainEngine(void *DTClassBase)
  20814. + {
  20815. + struct Caos    MyCaos;
  20816. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20817. + //    MyCaos.M68kStart    =    NULL;
  20818. + //    MyCaos.M68kSize        =    0;
  20819. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20820. + //    MyCaos.PPCStart        =    NULL;
  20821. + //    MyCaos.PPCSize        =    0;
  20822. +     MyCaos.caos_Un.Offset    =    (-30);
  20823. +     MyCaos.a6        =(ULONG) DTClassBase;    
  20824. +     return((Class *)PPCCallOS(&MyCaos));
  20825. + }
  20826. + #endif /* SASC Pragmas */
  20827. + #endif /* !_PPCPRAGMA_DTCLASS_H */
  20828. diff -c2 -d -P -r include_h/powerup/ppcpragmas/exec_pragmas.h includenew/powerup/ppcpragmas/exec_pragmas.h
  20829. *** include_h/powerup/ppcpragmas/exec_pragmas.h    Thu Jan  1 00:00:00 1970
  20830. --- includenew/powerup/ppcpragmas/exec_pragmas.h    Thu Nov  2 22:27:13 2000
  20831. ***************
  20832. *** 0 ****
  20833. --- 1,2208 ----
  20834. + /* Automatically generated header! Do not edit! */
  20835. + #ifndef _PPCPRAGMA_EXEC_H
  20836. + #define _PPCPRAGMA_EXEC_H
  20837. + #ifdef __GNUC__
  20838. + #ifndef _PPCINLINE__EXEC_H
  20839. + #include <powerup/ppcinline/exec.h>
  20840. + #endif
  20841. + #else
  20842. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  20843. + #include <powerup/ppclib/interface.h>
  20844. + #endif
  20845. + #ifndef POWERUP_GCCLIB_PROTOS_H
  20846. + #include <powerup/gcclib/powerup_protos.h>
  20847. + #endif
  20848. + #ifndef NO_PPCINLINE_STDARG
  20849. + #define NO_PPCINLINE_STDARG
  20850. + #endif/* SAS C PPC inlines */
  20851. + #ifndef EXEC_BASE_NAME
  20852. + #define EXEC_BASE_NAME SysBase
  20853. + #endif /* !EXEC_BASE_NAME */
  20854. + #define    AbortIO(ioRequest)    _AbortIO(EXEC_BASE_NAME, ioRequest)
  20855. + static __inline void
  20856. + _AbortIO(void *SysBase, struct IORequest *ioRequest)
  20857. + {
  20858. + struct Caos    MyCaos;
  20859. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20860. + //    MyCaos.M68kStart    =    NULL;
  20861. + //    MyCaos.M68kSize        =    0;
  20862. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20863. + //    MyCaos.PPCStart        =    NULL;
  20864. + //    MyCaos.PPCSize        =    0;
  20865. +     MyCaos.a1        =(ULONG) ioRequest;
  20866. +     MyCaos.caos_Un.Offset    =    (-480);
  20867. +     MyCaos.a6        =(ULONG) SysBase;    
  20868. +     PPCCallOS(&MyCaos);
  20869. + }
  20870. + #define    AddDevice(device)    _AddDevice(EXEC_BASE_NAME, device)
  20871. + static __inline void
  20872. + _AddDevice(void *SysBase, struct Device *device)
  20873. + {
  20874. + struct Caos    MyCaos;
  20875. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20876. + //    MyCaos.M68kStart    =    NULL;
  20877. + //    MyCaos.M68kSize        =    0;
  20878. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20879. + //    MyCaos.PPCStart        =    NULL;
  20880. + //    MyCaos.PPCSize        =    0;
  20881. +     MyCaos.a1        =(ULONG) device;
  20882. +     MyCaos.caos_Un.Offset    =    (-432);
  20883. +     MyCaos.a6        =(ULONG) SysBase;    
  20884. +     PPCCallOS(&MyCaos);
  20885. + }
  20886. + #define    AddHead(list, node)    _AddHead(EXEC_BASE_NAME, list, node)
  20887. + static __inline void
  20888. + _AddHead(void *SysBase, struct List *list, struct Node *node)
  20889. + {
  20890. + struct Caos    MyCaos;
  20891. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20892. + //    MyCaos.M68kStart    =    NULL;
  20893. + //    MyCaos.M68kSize        =    0;
  20894. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20895. + //    MyCaos.PPCStart        =    NULL;
  20896. + //    MyCaos.PPCSize        =    0;
  20897. +     MyCaos.a0        =(ULONG) list;
  20898. +     MyCaos.a1        =(ULONG) node;
  20899. +     MyCaos.caos_Un.Offset    =    (-240);
  20900. +     MyCaos.a6        =(ULONG) SysBase;    
  20901. +     PPCCallOS(&MyCaos);
  20902. + }
  20903. + #define    AddIntServer(intNumber, interrupt)    _AddIntServer(EXEC_BASE_NAME, intNumber, interrupt)
  20904. + static __inline void
  20905. + _AddIntServer(void *SysBase, long intNumber, struct Interrupt *interrupt)
  20906. + {
  20907. + struct Caos    MyCaos;
  20908. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20909. + //    MyCaos.M68kStart    =    NULL;
  20910. + //    MyCaos.M68kSize        =    0;
  20911. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20912. + //    MyCaos.PPCStart        =    NULL;
  20913. + //    MyCaos.PPCSize        =    0;
  20914. +     MyCaos.d0        =(ULONG) intNumber;
  20915. +     MyCaos.a1        =(ULONG) interrupt;
  20916. +     MyCaos.caos_Un.Offset    =    (-168);
  20917. +     MyCaos.a6        =(ULONG) SysBase;    
  20918. +     PPCCallOS(&MyCaos);
  20919. + }
  20920. + #define    AddLibrary(library)    _AddLibrary(EXEC_BASE_NAME, library)
  20921. + static __inline void
  20922. + _AddLibrary(void *SysBase, struct Library *library)
  20923. + {
  20924. + struct Caos    MyCaos;
  20925. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20926. + //    MyCaos.M68kStart    =    NULL;
  20927. + //    MyCaos.M68kSize        =    0;
  20928. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20929. + //    MyCaos.PPCStart        =    NULL;
  20930. + //    MyCaos.PPCSize        =    0;
  20931. +     MyCaos.a1        =(ULONG) library;
  20932. +     MyCaos.caos_Un.Offset    =    (-396);
  20933. +     MyCaos.a6        =(ULONG) SysBase;    
  20934. +     PPCCallOS(&MyCaos);
  20935. + }
  20936. + #define    AddMemHandler(memhand)    _AddMemHandler(EXEC_BASE_NAME, memhand)
  20937. + static __inline void
  20938. + _AddMemHandler(void *SysBase, struct Interrupt *memhand)
  20939. + {
  20940. + struct Caos    MyCaos;
  20941. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20942. + //    MyCaos.M68kStart    =    NULL;
  20943. + //    MyCaos.M68kSize        =    0;
  20944. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20945. + //    MyCaos.PPCStart        =    NULL;
  20946. + //    MyCaos.PPCSize        =    0;
  20947. +     MyCaos.a1        =(ULONG) memhand;
  20948. +     MyCaos.caos_Un.Offset    =    (-774);
  20949. +     MyCaos.a6        =(ULONG) SysBase;    
  20950. +     PPCCallOS(&MyCaos);
  20951. + }
  20952. + #define    AddMemList(size, attributes, pri, base, name)    _AddMemList(EXEC_BASE_NAME, size, attributes, pri, base, name)
  20953. + static __inline void
  20954. + _AddMemList(void *SysBase, unsigned long size, unsigned long attributes, long pri, APTR base, UBYTE *name)
  20955. + {
  20956. + struct Caos    MyCaos;
  20957. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20958. + //    MyCaos.M68kStart    =    NULL;
  20959. + //    MyCaos.M68kSize        =    0;
  20960. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20961. + //    MyCaos.PPCStart        =    NULL;
  20962. + //    MyCaos.PPCSize        =    0;
  20963. +     MyCaos.d0        =(ULONG) size;
  20964. +     MyCaos.d1        =(ULONG) attributes;
  20965. +     MyCaos.d2        =(ULONG) pri;
  20966. +     MyCaos.a0        =(ULONG) base;
  20967. +     MyCaos.a1        =(ULONG) name;
  20968. +     MyCaos.caos_Un.Offset    =    (-618);
  20969. +     MyCaos.a6        =(ULONG) SysBase;    
  20970. +     PPCCallOS(&MyCaos);
  20971. + }
  20972. + #define    AddPort(port)    _AddPort(EXEC_BASE_NAME, port)
  20973. + static __inline void
  20974. + _AddPort(void *SysBase, struct MsgPort *port)
  20975. + {
  20976. + struct Caos    MyCaos;
  20977. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20978. + //    MyCaos.M68kStart    =    NULL;
  20979. + //    MyCaos.M68kSize        =    0;
  20980. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20981. + //    MyCaos.PPCStart        =    NULL;
  20982. + //    MyCaos.PPCSize        =    0;
  20983. +     MyCaos.a1        =(ULONG) port;
  20984. +     MyCaos.caos_Un.Offset    =    (-354);
  20985. +     MyCaos.a6        =(ULONG) SysBase;    
  20986. +     PPCCallOS(&MyCaos);
  20987. + }
  20988. + #define    AddResource(resource)    _AddResource(EXEC_BASE_NAME, resource)
  20989. + static __inline void
  20990. + _AddResource(void *SysBase, APTR resource)
  20991. + {
  20992. + struct Caos    MyCaos;
  20993. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  20994. + //    MyCaos.M68kStart    =    NULL;
  20995. + //    MyCaos.M68kSize        =    0;
  20996. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  20997. + //    MyCaos.PPCStart        =    NULL;
  20998. + //    MyCaos.PPCSize        =    0;
  20999. +     MyCaos.a1        =(ULONG) resource;
  21000. +     MyCaos.caos_Un.Offset    =    (-486);
  21001. +     MyCaos.a6        =(ULONG) SysBase;    
  21002. +     PPCCallOS(&MyCaos);
  21003. + }
  21004. + #define    AddSemaphore(sigSem)    _AddSemaphore(EXEC_BASE_NAME, sigSem)
  21005. + static __inline void
  21006. + _AddSemaphore(void *SysBase, struct SignalSemaphore *sigSem)
  21007. + {
  21008. + struct Caos    MyCaos;
  21009. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21010. + //    MyCaos.M68kStart    =    NULL;
  21011. + //    MyCaos.M68kSize        =    0;
  21012. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21013. + //    MyCaos.PPCStart        =    NULL;
  21014. + //    MyCaos.PPCSize        =    0;
  21015. +     MyCaos.a1        =(ULONG) sigSem;
  21016. +     MyCaos.caos_Un.Offset    =    (-600);
  21017. +     MyCaos.a6        =(ULONG) SysBase;    
  21018. +     PPCCallOS(&MyCaos);
  21019. + }
  21020. + #define    AddTail(list, node)    _AddTail(EXEC_BASE_NAME, list, node)
  21021. + static __inline void
  21022. + _AddTail(void *SysBase, struct List *list, struct Node *node)
  21023. + {
  21024. + struct Caos    MyCaos;
  21025. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21026. + //    MyCaos.M68kStart    =    NULL;
  21027. + //    MyCaos.M68kSize        =    0;
  21028. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21029. + //    MyCaos.PPCStart        =    NULL;
  21030. + //    MyCaos.PPCSize        =    0;
  21031. +     MyCaos.a0        =(ULONG) list;
  21032. +     MyCaos.a1        =(ULONG) node;
  21033. +     MyCaos.caos_Un.Offset    =    (-246);
  21034. +     MyCaos.a6        =(ULONG) SysBase;    
  21035. +     PPCCallOS(&MyCaos);
  21036. + }
  21037. + #define    AddTask(task, initPC, finalPC)    _AddTask(EXEC_BASE_NAME, task, initPC, finalPC)
  21038. + static __inline APTR
  21039. + _AddTask(void *SysBase, struct Task *task, APTR initPC, APTR finalPC)
  21040. + {
  21041. + struct Caos    MyCaos;
  21042. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21043. + //    MyCaos.M68kStart    =    NULL;
  21044. + //    MyCaos.M68kSize        =    0;
  21045. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21046. + //    MyCaos.PPCStart        =    NULL;
  21047. + //    MyCaos.PPCSize        =    0;
  21048. +     MyCaos.a1        =(ULONG) task;
  21049. +     MyCaos.a2        =(ULONG) initPC;
  21050. +     MyCaos.a3        =(ULONG) finalPC;
  21051. +     MyCaos.caos_Un.Offset    =    (-282);
  21052. +     MyCaos.a6        =(ULONG) SysBase;    
  21053. +     return((APTR)PPCCallOS(&MyCaos));
  21054. + }
  21055. + #define    Alert(alertNum)    _Alert(EXEC_BASE_NAME, alertNum)
  21056. + static __inline void
  21057. + _Alert(void *SysBase, unsigned long alertNum)
  21058. + {
  21059. + struct Caos    MyCaos;
  21060. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21061. + //    MyCaos.M68kStart    =    NULL;
  21062. + //    MyCaos.M68kSize        =    0;
  21063. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21064. + //    MyCaos.PPCStart        =    NULL;
  21065. + //    MyCaos.PPCSize        =    0;
  21066. +     MyCaos.d7        =(ULONG) alertNum;
  21067. +     MyCaos.caos_Un.Offset    =    (-108);
  21068. +     MyCaos.a6        =(ULONG) SysBase;    
  21069. +     PPCCallOS(&MyCaos);
  21070. + }
  21071. + #define    AllocAbs(byteSize, location)    _AllocAbs(EXEC_BASE_NAME, byteSize, location)
  21072. + static __inline APTR
  21073. + _AllocAbs(void *SysBase, unsigned long byteSize, APTR location)
  21074. + {
  21075. + struct Caos    MyCaos;
  21076. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21077. + //    MyCaos.M68kStart    =    NULL;
  21078. + //    MyCaos.M68kSize        =    0;
  21079. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21080. + //    MyCaos.PPCStart        =    NULL;
  21081. + //    MyCaos.PPCSize        =    0;
  21082. +     MyCaos.d0        =(ULONG) byteSize;
  21083. +     MyCaos.a1        =(ULONG) location;
  21084. +     MyCaos.caos_Un.Offset    =    (-204);
  21085. +     MyCaos.a6        =(ULONG) SysBase;    
  21086. +     return((APTR)PPCCallOS(&MyCaos));
  21087. + }
  21088. + #define    AllocEntry(entry)    _AllocEntry(EXEC_BASE_NAME, entry)
  21089. + static __inline struct MemList *
  21090. + _AllocEntry(void *SysBase, struct MemList *entry)
  21091. + {
  21092. + struct Caos    MyCaos;
  21093. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21094. + //    MyCaos.M68kStart    =    NULL;
  21095. + //    MyCaos.M68kSize        =    0;
  21096. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21097. + //    MyCaos.PPCStart        =    NULL;
  21098. + //    MyCaos.PPCSize        =    0;
  21099. +     MyCaos.a0        =(ULONG) entry;
  21100. +     MyCaos.caos_Un.Offset    =    (-222);
  21101. +     MyCaos.a6        =(ULONG) SysBase;    
  21102. +     return((struct MemList *)PPCCallOS(&MyCaos));
  21103. + }
  21104. + #define    AllocMem(byteSize, requirements)    _AllocMem(EXEC_BASE_NAME, byteSize, requirements)
  21105. + static __inline APTR
  21106. + _AllocMem(void *SysBase, unsigned long byteSize, unsigned long requirements)
  21107. + {
  21108. + struct Caos    MyCaos;
  21109. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21110. + //    MyCaos.M68kStart    =    NULL;
  21111. + //    MyCaos.M68kSize        =    0;
  21112. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21113. + //    MyCaos.PPCStart        =    NULL;
  21114. + //    MyCaos.PPCSize        =    0;
  21115. +     MyCaos.d0        =(ULONG) byteSize;
  21116. +     MyCaos.d1        =(ULONG) requirements;
  21117. +     MyCaos.caos_Un.Offset    =    (-198);
  21118. +     MyCaos.a6        =(ULONG) SysBase;    
  21119. +     return((APTR)PPCCallOS(&MyCaos));
  21120. + }
  21121. + #define    AllocPooled(poolHeader, memSize)    _AllocPooled(EXEC_BASE_NAME, poolHeader, memSize)
  21122. + static __inline APTR
  21123. + _AllocPooled(void *SysBase, APTR poolHeader, unsigned long memSize)
  21124. + {
  21125. + struct Caos    MyCaos;
  21126. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21127. + //    MyCaos.M68kStart    =    NULL;
  21128. + //    MyCaos.M68kSize        =    0;
  21129. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21130. + //    MyCaos.PPCStart        =    NULL;
  21131. + //    MyCaos.PPCSize        =    0;
  21132. +     MyCaos.a0        =(ULONG) poolHeader;
  21133. +     MyCaos.d0        =(ULONG) memSize;
  21134. +     MyCaos.caos_Un.Offset    =    (-708);
  21135. +     MyCaos.a6        =(ULONG) SysBase;    
  21136. +     return((APTR)PPCCallOS(&MyCaos));
  21137. + }
  21138. + #define    AllocSignal(signalNum)    _AllocSignal(EXEC_BASE_NAME, signalNum)
  21139. + static __inline BYTE
  21140. + _AllocSignal(void *SysBase, long signalNum)
  21141. + {
  21142. + struct Caos    MyCaos;
  21143. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21144. + //    MyCaos.M68kStart    =    NULL;
  21145. + //    MyCaos.M68kSize        =    0;
  21146. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21147. + //    MyCaos.PPCStart        =    NULL;
  21148. + //    MyCaos.PPCSize        =    0;
  21149. +     MyCaos.d0        =(ULONG) signalNum;
  21150. +     MyCaos.caos_Un.Offset    =    (-330);
  21151. +     MyCaos.a6        =(ULONG) SysBase;    
  21152. +     return((BYTE)PPCCallOS(&MyCaos));
  21153. + }
  21154. + #define    AllocTrap(trapNum)    _AllocTrap(EXEC_BASE_NAME, trapNum)
  21155. + static __inline LONG
  21156. + _AllocTrap(void *SysBase, long trapNum)
  21157. + {
  21158. + struct Caos    MyCaos;
  21159. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21160. + //    MyCaos.M68kStart    =    NULL;
  21161. + //    MyCaos.M68kSize        =    0;
  21162. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21163. + //    MyCaos.PPCStart        =    NULL;
  21164. + //    MyCaos.PPCSize        =    0;
  21165. +     MyCaos.d0        =(ULONG) trapNum;
  21166. +     MyCaos.caos_Un.Offset    =    (-342);
  21167. +     MyCaos.a6        =(ULONG) SysBase;    
  21168. +     return((LONG)PPCCallOS(&MyCaos));
  21169. + }
  21170. + #define    AllocVec(byteSize, requirements)    _AllocVec(EXEC_BASE_NAME, byteSize, requirements)
  21171. + static __inline APTR
  21172. + _AllocVec(void *SysBase, unsigned long byteSize, unsigned long requirements)
  21173. + {
  21174. + struct Caos    MyCaos;
  21175. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21176. + //    MyCaos.M68kStart    =    NULL;
  21177. + //    MyCaos.M68kSize        =    0;
  21178. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21179. + //    MyCaos.PPCStart        =    NULL;
  21180. + //    MyCaos.PPCSize        =    0;
  21181. +     MyCaos.d0        =(ULONG) byteSize;
  21182. +     MyCaos.d1        =(ULONG) requirements;
  21183. +     MyCaos.caos_Un.Offset    =    (-684);
  21184. +     MyCaos.a6        =(ULONG) SysBase;    
  21185. +     return((APTR)PPCCallOS(&MyCaos));
  21186. + }
  21187. + #define    Allocate(freeList, byteSize)    _Allocate(EXEC_BASE_NAME, freeList, byteSize)
  21188. + static __inline APTR
  21189. + _Allocate(void *SysBase, struct MemHeader *freeList, unsigned long byteSize)
  21190. + {
  21191. + struct Caos    MyCaos;
  21192. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21193. + //    MyCaos.M68kStart    =    NULL;
  21194. + //    MyCaos.M68kSize        =    0;
  21195. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21196. + //    MyCaos.PPCStart        =    NULL;
  21197. + //    MyCaos.PPCSize        =    0;
  21198. +     MyCaos.a0        =(ULONG) freeList;
  21199. +     MyCaos.d0        =(ULONG) byteSize;
  21200. +     MyCaos.caos_Un.Offset    =    (-186);
  21201. +     MyCaos.a6        =(ULONG) SysBase;    
  21202. +     return((APTR)PPCCallOS(&MyCaos));
  21203. + }
  21204. + #define    AttemptSemaphore(sigSem)    _AttemptSemaphore(EXEC_BASE_NAME, sigSem)
  21205. + static __inline ULONG
  21206. + _AttemptSemaphore(void *SysBase, struct SignalSemaphore *sigSem)
  21207. + {
  21208. + struct Caos    MyCaos;
  21209. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21210. + //    MyCaos.M68kStart    =    NULL;
  21211. + //    MyCaos.M68kSize        =    0;
  21212. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21213. + //    MyCaos.PPCStart        =    NULL;
  21214. + //    MyCaos.PPCSize        =    0;
  21215. +     MyCaos.a0        =(ULONG) sigSem;
  21216. +     MyCaos.caos_Un.Offset    =    (-576);
  21217. +     MyCaos.a6        =(ULONG) SysBase;    
  21218. +     return((ULONG)PPCCallOS(&MyCaos));
  21219. + }
  21220. + #define    AttemptSemaphoreShared(sigSem)    _AttemptSemaphoreShared(EXEC_BASE_NAME, sigSem)
  21221. + static __inline ULONG
  21222. + _AttemptSemaphoreShared(void *SysBase, struct SignalSemaphore *sigSem)
  21223. + {
  21224. + struct Caos    MyCaos;
  21225. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21226. + //    MyCaos.M68kStart    =    NULL;
  21227. + //    MyCaos.M68kSize        =    0;
  21228. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21229. + //    MyCaos.PPCStart        =    NULL;
  21230. + //    MyCaos.PPCSize        =    0;
  21231. +     MyCaos.a0        =(ULONG) sigSem;
  21232. +     MyCaos.caos_Un.Offset    =    (-720);
  21233. +     MyCaos.a6        =(ULONG) SysBase;    
  21234. +     return((ULONG)PPCCallOS(&MyCaos));
  21235. + }
  21236. + #define    AvailMem(requirements)    _AvailMem(EXEC_BASE_NAME, requirements)
  21237. + static __inline ULONG
  21238. + _AvailMem(void *SysBase, unsigned long requirements)
  21239. + {
  21240. + struct Caos    MyCaos;
  21241. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21242. + //    MyCaos.M68kStart    =    NULL;
  21243. + //    MyCaos.M68kSize        =    0;
  21244. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21245. + //    MyCaos.PPCStart        =    NULL;
  21246. + //    MyCaos.PPCSize        =    0;
  21247. +     MyCaos.d1        =(ULONG) requirements;
  21248. +     MyCaos.caos_Un.Offset    =    (-216);
  21249. +     MyCaos.a6        =(ULONG) SysBase;    
  21250. +     return((ULONG)PPCCallOS(&MyCaos));
  21251. + }
  21252. + #define    CacheClearE(address, length, caches)    _CacheClearE(EXEC_BASE_NAME, address, length, caches)
  21253. + static __inline void
  21254. + _CacheClearE(void *SysBase, APTR address, unsigned long length, unsigned long caches)
  21255. + {
  21256. + struct Caos    MyCaos;
  21257. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21258. + //    MyCaos.M68kStart    =    NULL;
  21259. + //    MyCaos.M68kSize        =    0;
  21260. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21261. + //    MyCaos.PPCStart        =    NULL;
  21262. + //    MyCaos.PPCSize        =    0;
  21263. +     MyCaos.a0        =(ULONG) address;
  21264. +     MyCaos.d0        =(ULONG) length;
  21265. +     MyCaos.d1        =(ULONG) caches;
  21266. +     MyCaos.caos_Un.Offset    =    (-642);
  21267. +     MyCaos.a6        =(ULONG) SysBase;    
  21268. +     PPCCallOS(&MyCaos);
  21269. + }
  21270. + #define    CacheClearU()    _CacheClearU(EXEC_BASE_NAME)
  21271. + static __inline void
  21272. + _CacheClearU(void *SysBase)
  21273. + {
  21274. + struct Caos    MyCaos;
  21275. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21276. + //    MyCaos.M68kStart    =    NULL;
  21277. + //    MyCaos.M68kSize        =    0;
  21278. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21279. + //    MyCaos.PPCStart        =    NULL;
  21280. + //    MyCaos.PPCSize        =    0;
  21281. +     MyCaos.caos_Un.Offset    =    (-636);
  21282. +     MyCaos.a6        =(ULONG) SysBase;    
  21283. +     PPCCallOS(&MyCaos);
  21284. + }
  21285. + #define    CacheControl(cacheBits, cacheMask)    _CacheControl(EXEC_BASE_NAME, cacheBits, cacheMask)
  21286. + static __inline ULONG
  21287. + _CacheControl(void *SysBase, unsigned long cacheBits, unsigned long cacheMask)
  21288. + {
  21289. + struct Caos    MyCaos;
  21290. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21291. + //    MyCaos.M68kStart    =    NULL;
  21292. + //    MyCaos.M68kSize        =    0;
  21293. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21294. + //    MyCaos.PPCStart        =    NULL;
  21295. + //    MyCaos.PPCSize        =    0;
  21296. +     MyCaos.d0        =(ULONG) cacheBits;
  21297. +     MyCaos.d1        =(ULONG) cacheMask;
  21298. +     MyCaos.caos_Un.Offset    =    (-648);
  21299. +     MyCaos.a6        =(ULONG) SysBase;    
  21300. +     return((ULONG)PPCCallOS(&MyCaos));
  21301. + }
  21302. + #define    CachePostDMA(address, length, flags)    _CachePostDMA(EXEC_BASE_NAME, address, length, flags)
  21303. + static __inline void
  21304. + _CachePostDMA(void *SysBase, APTR address, ULONG *length, unsigned long flags)
  21305. + {
  21306. + struct Caos    MyCaos;
  21307. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21308. + //    MyCaos.M68kStart    =    NULL;
  21309. + //    MyCaos.M68kSize        =    0;
  21310. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21311. + //    MyCaos.PPCStart        =    NULL;
  21312. + //    MyCaos.PPCSize        =    0;
  21313. +     MyCaos.a0        =(ULONG) address;
  21314. +     MyCaos.a1        =(ULONG) length;
  21315. +     MyCaos.d0        =(ULONG) flags;
  21316. +     MyCaos.caos_Un.Offset    =    (-768);
  21317. +     MyCaos.a6        =(ULONG) SysBase;    
  21318. +     PPCCallOS(&MyCaos);
  21319. + }
  21320. + #define    CachePreDMA(address, length, flags)    _CachePreDMA(EXEC_BASE_NAME, address, length, flags)
  21321. + static __inline APTR
  21322. + _CachePreDMA(void *SysBase, APTR address, ULONG *length, unsigned long flags)
  21323. + {
  21324. + struct Caos    MyCaos;
  21325. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21326. + //    MyCaos.M68kStart    =    NULL;
  21327. + //    MyCaos.M68kSize        =    0;
  21328. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21329. + //    MyCaos.PPCStart        =    NULL;
  21330. + //    MyCaos.PPCSize        =    0;
  21331. +     MyCaos.a0        =(ULONG) address;
  21332. +     MyCaos.a1        =(ULONG) length;
  21333. +     MyCaos.d0        =(ULONG) flags;
  21334. +     MyCaos.caos_Un.Offset    =    (-762);
  21335. +     MyCaos.a6        =(ULONG) SysBase;    
  21336. +     return((APTR)PPCCallOS(&MyCaos));
  21337. + }
  21338. + #define    Cause(interrupt)    _Cause(EXEC_BASE_NAME, interrupt)
  21339. + static __inline void
  21340. + _Cause(void *SysBase, struct Interrupt *interrupt)
  21341. + {
  21342. + struct Caos    MyCaos;
  21343. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21344. + //    MyCaos.M68kStart    =    NULL;
  21345. + //    MyCaos.M68kSize        =    0;
  21346. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21347. + //    MyCaos.PPCStart        =    NULL;
  21348. + //    MyCaos.PPCSize        =    0;
  21349. +     MyCaos.a1        =(ULONG) interrupt;
  21350. +     MyCaos.caos_Un.Offset    =    (-180);
  21351. +     MyCaos.a6        =(ULONG) SysBase;    
  21352. +     PPCCallOS(&MyCaos);
  21353. + }
  21354. + #define    CheckIO(ioRequest)    _CheckIO(EXEC_BASE_NAME, ioRequest)
  21355. + static __inline struct IORequest *
  21356. + _CheckIO(void *SysBase, struct IORequest *ioRequest)
  21357. + {
  21358. + struct Caos    MyCaos;
  21359. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21360. + //    MyCaos.M68kStart    =    NULL;
  21361. + //    MyCaos.M68kSize        =    0;
  21362. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21363. + //    MyCaos.PPCStart        =    NULL;
  21364. + //    MyCaos.PPCSize        =    0;
  21365. +     MyCaos.a1        =(ULONG) ioRequest;
  21366. +     MyCaos.caos_Un.Offset    =    (-468);
  21367. +     MyCaos.a6        =(ULONG) SysBase;    
  21368. +     return((struct IORequest *)PPCCallOS(&MyCaos));
  21369. + }
  21370. + #define    ChildFree(tid)    _ChildFree(EXEC_BASE_NAME, tid)
  21371. + static __inline void
  21372. + _ChildFree(void *SysBase, APTR tid)
  21373. + {
  21374. + struct Caos    MyCaos;
  21375. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21376. + //    MyCaos.M68kStart    =    NULL;
  21377. + //    MyCaos.M68kSize        =    0;
  21378. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21379. + //    MyCaos.PPCStart        =    NULL;
  21380. + //    MyCaos.PPCSize        =    0;
  21381. +     MyCaos.d0        =(ULONG) tid;
  21382. +     MyCaos.caos_Un.Offset    =    (-738);
  21383. +     MyCaos.a6        =(ULONG) SysBase;    
  21384. +     PPCCallOS(&MyCaos);
  21385. + }
  21386. + #define    ChildOrphan(tid)    _ChildOrphan(EXEC_BASE_NAME, tid)
  21387. + static __inline void
  21388. + _ChildOrphan(void *SysBase, APTR tid)
  21389. + {
  21390. + struct Caos    MyCaos;
  21391. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21392. + //    MyCaos.M68kStart    =    NULL;
  21393. + //    MyCaos.M68kSize        =    0;
  21394. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21395. + //    MyCaos.PPCStart        =    NULL;
  21396. + //    MyCaos.PPCSize        =    0;
  21397. +     MyCaos.d0        =(ULONG) tid;
  21398. +     MyCaos.caos_Un.Offset    =    (-744);
  21399. +     MyCaos.a6        =(ULONG) SysBase;    
  21400. +     PPCCallOS(&MyCaos);
  21401. + }
  21402. + #define    ChildStatus(tid)    _ChildStatus(EXEC_BASE_NAME, tid)
  21403. + static __inline void
  21404. + _ChildStatus(void *SysBase, APTR tid)
  21405. + {
  21406. + struct Caos    MyCaos;
  21407. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21408. + //    MyCaos.M68kStart    =    NULL;
  21409. + //    MyCaos.M68kSize        =    0;
  21410. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21411. + //    MyCaos.PPCStart        =    NULL;
  21412. + //    MyCaos.PPCSize        =    0;
  21413. +     MyCaos.d0        =(ULONG) tid;
  21414. +     MyCaos.caos_Un.Offset    =    (-750);
  21415. +     MyCaos.a6        =(ULONG) SysBase;    
  21416. +     PPCCallOS(&MyCaos);
  21417. + }
  21418. + #define    ChildWait(tid)    _ChildWait(EXEC_BASE_NAME, tid)
  21419. + static __inline void
  21420. + _ChildWait(void *SysBase, APTR tid)
  21421. + {
  21422. + struct Caos    MyCaos;
  21423. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21424. + //    MyCaos.M68kStart    =    NULL;
  21425. + //    MyCaos.M68kSize        =    0;
  21426. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21427. + //    MyCaos.PPCStart        =    NULL;
  21428. + //    MyCaos.PPCSize        =    0;
  21429. +     MyCaos.d0        =(ULONG) tid;
  21430. +     MyCaos.caos_Un.Offset    =    (-756);
  21431. +     MyCaos.a6        =(ULONG) SysBase;    
  21432. +     PPCCallOS(&MyCaos);
  21433. + }
  21434. + #define    CloseDevice(ioRequest)    _CloseDevice(EXEC_BASE_NAME, ioRequest)
  21435. + static __inline void
  21436. + _CloseDevice(void *SysBase, struct IORequest *ioRequest)
  21437. + {
  21438. + struct Caos    MyCaos;
  21439. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21440. + //    MyCaos.M68kStart    =    NULL;
  21441. + //    MyCaos.M68kSize        =    0;
  21442. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21443. + //    MyCaos.PPCStart        =    NULL;
  21444. + //    MyCaos.PPCSize        =    0;
  21445. +     MyCaos.a1        =(ULONG) ioRequest;
  21446. +     MyCaos.caos_Un.Offset    =    (-450);
  21447. +     MyCaos.a6        =(ULONG) SysBase;    
  21448. +     PPCCallOS(&MyCaos);
  21449. + }
  21450. + #define    CloseLibrary(library)    _CloseLibrary(EXEC_BASE_NAME, library)
  21451. + static __inline void
  21452. + _CloseLibrary(void *SysBase, struct Library *library)
  21453. + {
  21454. + struct Caos    MyCaos;
  21455. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21456. + //    MyCaos.M68kStart    =    NULL;
  21457. + //    MyCaos.M68kSize        =    0;
  21458. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21459. + //    MyCaos.PPCStart        =    NULL;
  21460. + //    MyCaos.PPCSize        =    0;
  21461. +     MyCaos.a1        =(ULONG) library;
  21462. +     MyCaos.caos_Un.Offset    =    (-414);
  21463. +     MyCaos.a6        =(ULONG) SysBase;    
  21464. +     PPCCallOS(&MyCaos);
  21465. + }
  21466. + #define    ColdReboot()    _ColdReboot(EXEC_BASE_NAME)
  21467. + static __inline void
  21468. + _ColdReboot(void *SysBase)
  21469. + {
  21470. + struct Caos    MyCaos;
  21471. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21472. + //    MyCaos.M68kStart    =    NULL;
  21473. + //    MyCaos.M68kSize        =    0;
  21474. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21475. + //    MyCaos.PPCStart        =    NULL;
  21476. + //    MyCaos.PPCSize        =    0;
  21477. +     MyCaos.caos_Un.Offset    =    (-726);
  21478. +     MyCaos.a6        =(ULONG) SysBase;    
  21479. +     PPCCallOS(&MyCaos);
  21480. + }
  21481. + #define    CopyMem(source, dest, size)    _CopyMem(EXEC_BASE_NAME, source, dest, size)
  21482. + static __inline void
  21483. + _CopyMem(void *SysBase, APTR source, APTR dest, unsigned long size)
  21484. + {
  21485. + struct Caos    MyCaos;
  21486. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21487. + //    MyCaos.M68kStart    =    NULL;
  21488. + //    MyCaos.M68kSize        =    0;
  21489. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21490. + //    MyCaos.PPCStart        =    NULL;
  21491. + //    MyCaos.PPCSize        =    0;
  21492. +     MyCaos.a0        =(ULONG) source;
  21493. +     MyCaos.a1        =(ULONG) dest;
  21494. +     MyCaos.d0        =(ULONG) size;
  21495. +     MyCaos.caos_Un.Offset    =    (-624);
  21496. +     MyCaos.a6        =(ULONG) SysBase;    
  21497. +     PPCCallOS(&MyCaos);
  21498. + }
  21499. + #define    CopyMemQuick(source, dest, size)    _CopyMemQuick(EXEC_BASE_NAME, source, dest, size)
  21500. + static __inline void
  21501. + _CopyMemQuick(void *SysBase, APTR source, APTR dest, unsigned long size)
  21502. + {
  21503. + struct Caos    MyCaos;
  21504. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21505. + //    MyCaos.M68kStart    =    NULL;
  21506. + //    MyCaos.M68kSize        =    0;
  21507. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21508. + //    MyCaos.PPCStart        =    NULL;
  21509. + //    MyCaos.PPCSize        =    0;
  21510. +     MyCaos.a0        =(ULONG) source;
  21511. +     MyCaos.a1        =(ULONG) dest;
  21512. +     MyCaos.d0        =(ULONG) size;
  21513. +     MyCaos.caos_Un.Offset    =    (-630);
  21514. +     MyCaos.a6        =(ULONG) SysBase;    
  21515. +     PPCCallOS(&MyCaos);
  21516. + }
  21517. + #define    CreateIORequest(port, size)    _CreateIORequest(EXEC_BASE_NAME, port, size)
  21518. + static __inline APTR
  21519. + _CreateIORequest(void *SysBase, struct MsgPort *port, unsigned long size)
  21520. + {
  21521. + struct Caos    MyCaos;
  21522. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21523. + //    MyCaos.M68kStart    =    NULL;
  21524. + //    MyCaos.M68kSize        =    0;
  21525. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21526. + //    MyCaos.PPCStart        =    NULL;
  21527. + //    MyCaos.PPCSize        =    0;
  21528. +     MyCaos.a0        =(ULONG) port;
  21529. +     MyCaos.d0        =(ULONG) size;
  21530. +     MyCaos.caos_Un.Offset    =    (-654);
  21531. +     MyCaos.a6        =(ULONG) SysBase;    
  21532. +     return((APTR)PPCCallOS(&MyCaos));
  21533. + }
  21534. + #define    CreateMsgPort()    _CreateMsgPort(EXEC_BASE_NAME)
  21535. + static __inline struct MsgPort *
  21536. + _CreateMsgPort(void *SysBase)
  21537. + {
  21538. + struct Caos    MyCaos;
  21539. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21540. + //    MyCaos.M68kStart    =    NULL;
  21541. + //    MyCaos.M68kSize        =    0;
  21542. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21543. + //    MyCaos.PPCStart        =    NULL;
  21544. + //    MyCaos.PPCSize        =    0;
  21545. +     MyCaos.caos_Un.Offset    =    (-666);
  21546. +     MyCaos.a6        =(ULONG) SysBase;    
  21547. +     return((struct MsgPort *)PPCCallOS(&MyCaos));
  21548. + }
  21549. + #define    CreatePool(requirements, puddleSize, threshSize)    _CreatePool(EXEC_BASE_NAME, requirements, puddleSize, threshSize)
  21550. + static __inline APTR
  21551. + _CreatePool(void *SysBase, unsigned long requirements, unsigned long puddleSize, unsigned long threshSize)
  21552. + {
  21553. + struct Caos    MyCaos;
  21554. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21555. + //    MyCaos.M68kStart    =    NULL;
  21556. + //    MyCaos.M68kSize        =    0;
  21557. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21558. + //    MyCaos.PPCStart        =    NULL;
  21559. + //    MyCaos.PPCSize        =    0;
  21560. +     MyCaos.d0        =(ULONG) requirements;
  21561. +     MyCaos.d1        =(ULONG) puddleSize;
  21562. +     MyCaos.d2        =(ULONG) threshSize;
  21563. +     MyCaos.caos_Un.Offset    =    (-696);
  21564. +     MyCaos.a6        =(ULONG) SysBase;    
  21565. +     return((APTR)PPCCallOS(&MyCaos));
  21566. + }
  21567. + #define    Deallocate(freeList, memoryBlock, byteSize)    _Deallocate(EXEC_BASE_NAME, freeList, memoryBlock, byteSize)
  21568. + static __inline void
  21569. + _Deallocate(void *SysBase, struct MemHeader *freeList, APTR memoryBlock, unsigned long byteSize)
  21570. + {
  21571. + struct Caos    MyCaos;
  21572. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21573. + //    MyCaos.M68kStart    =    NULL;
  21574. + //    MyCaos.M68kSize        =    0;
  21575. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21576. + //    MyCaos.PPCStart        =    NULL;
  21577. + //    MyCaos.PPCSize        =    0;
  21578. +     MyCaos.a0        =(ULONG) freeList;
  21579. +     MyCaos.a1        =(ULONG) memoryBlock;
  21580. +     MyCaos.d0        =(ULONG) byteSize;
  21581. +     MyCaos.caos_Un.Offset    =    (-192);
  21582. +     MyCaos.a6        =(ULONG) SysBase;    
  21583. +     PPCCallOS(&MyCaos);
  21584. + }
  21585. + #define    Debug(flags)    _Debug(EXEC_BASE_NAME, flags)
  21586. + static __inline void
  21587. + _Debug(void *SysBase, unsigned long flags)
  21588. + {
  21589. + struct Caos    MyCaos;
  21590. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21591. + //    MyCaos.M68kStart    =    NULL;
  21592. + //    MyCaos.M68kSize        =    0;
  21593. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21594. + //    MyCaos.PPCStart        =    NULL;
  21595. + //    MyCaos.PPCSize        =    0;
  21596. +     MyCaos.d0        =(ULONG) flags;
  21597. +     MyCaos.caos_Un.Offset    =    (-114);
  21598. +     MyCaos.a6        =(ULONG) SysBase;    
  21599. +     PPCCallOS(&MyCaos);
  21600. + }
  21601. + #define    DeleteIORequest(iorequest)    _DeleteIORequest(EXEC_BASE_NAME, iorequest)
  21602. + static __inline void
  21603. + _DeleteIORequest(void *SysBase, APTR iorequest)
  21604. + {
  21605. + struct Caos    MyCaos;
  21606. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21607. + //    MyCaos.M68kStart    =    NULL;
  21608. + //    MyCaos.M68kSize        =    0;
  21609. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21610. + //    MyCaos.PPCStart        =    NULL;
  21611. + //    MyCaos.PPCSize        =    0;
  21612. +     MyCaos.a0        =(ULONG) iorequest;
  21613. +     MyCaos.caos_Un.Offset    =    (-660);
  21614. +     MyCaos.a6        =(ULONG) SysBase;    
  21615. +     PPCCallOS(&MyCaos);
  21616. + }
  21617. + #define    DeleteMsgPort(port)    _DeleteMsgPort(EXEC_BASE_NAME, port)
  21618. + static __inline void
  21619. + _DeleteMsgPort(void *SysBase, struct MsgPort *port)
  21620. + {
  21621. + struct Caos    MyCaos;
  21622. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21623. + //    MyCaos.M68kStart    =    NULL;
  21624. + //    MyCaos.M68kSize        =    0;
  21625. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21626. + //    MyCaos.PPCStart        =    NULL;
  21627. + //    MyCaos.PPCSize        =    0;
  21628. +     MyCaos.a0        =(ULONG) port;
  21629. +     MyCaos.caos_Un.Offset    =    (-672);
  21630. +     MyCaos.a6        =(ULONG) SysBase;    
  21631. +     PPCCallOS(&MyCaos);
  21632. + }
  21633. + #define    DeletePool(poolHeader)    _DeletePool(EXEC_BASE_NAME, poolHeader)
  21634. + static __inline void
  21635. + _DeletePool(void *SysBase, APTR poolHeader)
  21636. + {
  21637. + struct Caos    MyCaos;
  21638. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21639. + //    MyCaos.M68kStart    =    NULL;
  21640. + //    MyCaos.M68kSize        =    0;
  21641. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21642. + //    MyCaos.PPCStart        =    NULL;
  21643. + //    MyCaos.PPCSize        =    0;
  21644. +     MyCaos.a0        =(ULONG) poolHeader;
  21645. +     MyCaos.caos_Un.Offset    =    (-702);
  21646. +     MyCaos.a6        =(ULONG) SysBase;    
  21647. +     PPCCallOS(&MyCaos);
  21648. + }
  21649. + #define    Disable()    _Disable(EXEC_BASE_NAME)
  21650. + static __inline void
  21651. + _Disable(void *SysBase)
  21652. + {
  21653. + struct Caos    MyCaos;
  21654. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21655. + //    MyCaos.M68kStart    =    NULL;
  21656. + //    MyCaos.M68kSize        =    0;
  21657. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21658. + //    MyCaos.PPCStart        =    NULL;
  21659. + //    MyCaos.PPCSize        =    0;
  21660. +     MyCaos.caos_Un.Offset    =    (-120);
  21661. +     MyCaos.a6        =(ULONG) SysBase;    
  21662. +     PPCCallOS(&MyCaos);
  21663. + }
  21664. + #define    DoIO(ioRequest)    _DoIO(EXEC_BASE_NAME, ioRequest)
  21665. + static __inline BYTE
  21666. + _DoIO(void *SysBase, struct IORequest *ioRequest)
  21667. + {
  21668. + struct Caos    MyCaos;
  21669. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21670. + //    MyCaos.M68kStart    =    NULL;
  21671. + //    MyCaos.M68kSize        =    0;
  21672. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21673. + //    MyCaos.PPCStart        =    NULL;
  21674. + //    MyCaos.PPCSize        =    0;
  21675. +     MyCaos.a1        =(ULONG) ioRequest;
  21676. +     MyCaos.caos_Un.Offset    =    (-456);
  21677. +     MyCaos.a6        =(ULONG) SysBase;    
  21678. +     return((BYTE)PPCCallOS(&MyCaos));
  21679. + }
  21680. + #define    Enable()    _Enable(EXEC_BASE_NAME)
  21681. + static __inline void
  21682. + _Enable(void *SysBase)
  21683. + {
  21684. + struct Caos    MyCaos;
  21685. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21686. + //    MyCaos.M68kStart    =    NULL;
  21687. + //    MyCaos.M68kSize        =    0;
  21688. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21689. + //    MyCaos.PPCStart        =    NULL;
  21690. + //    MyCaos.PPCSize        =    0;
  21691. +     MyCaos.caos_Un.Offset    =    (-126);
  21692. +     MyCaos.a6        =(ULONG) SysBase;    
  21693. +     PPCCallOS(&MyCaos);
  21694. + }
  21695. + #define    Enqueue(list, node)    _Enqueue(EXEC_BASE_NAME, list, node)
  21696. + static __inline void
  21697. + _Enqueue(void *SysBase, struct List *list, struct Node *node)
  21698. + {
  21699. + struct Caos    MyCaos;
  21700. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21701. + //    MyCaos.M68kStart    =    NULL;
  21702. + //    MyCaos.M68kSize        =    0;
  21703. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21704. + //    MyCaos.PPCStart        =    NULL;
  21705. + //    MyCaos.PPCSize        =    0;
  21706. +     MyCaos.a0        =(ULONG) list;
  21707. +     MyCaos.a1        =(ULONG) node;
  21708. +     MyCaos.caos_Un.Offset    =    (-270);
  21709. +     MyCaos.a6        =(ULONG) SysBase;    
  21710. +     PPCCallOS(&MyCaos);
  21711. + }
  21712. + #define    FindName(list, name)    _FindName(EXEC_BASE_NAME, list, name)
  21713. + static __inline struct Node *
  21714. + _FindName(void *SysBase, struct List *list, UBYTE *name)
  21715. + {
  21716. + struct Caos    MyCaos;
  21717. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21718. + //    MyCaos.M68kStart    =    NULL;
  21719. + //    MyCaos.M68kSize        =    0;
  21720. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21721. + //    MyCaos.PPCStart        =    NULL;
  21722. + //    MyCaos.PPCSize        =    0;
  21723. +     MyCaos.a0        =(ULONG) list;
  21724. +     MyCaos.a1        =(ULONG) name;
  21725. +     MyCaos.caos_Un.Offset    =    (-276);
  21726. +     MyCaos.a6        =(ULONG) SysBase;    
  21727. +     return((struct Node *)PPCCallOS(&MyCaos));
  21728. + }
  21729. + #define    FindPort(name)    _FindPort(EXEC_BASE_NAME, name)
  21730. + static __inline struct MsgPort *
  21731. + _FindPort(void *SysBase, UBYTE *name)
  21732. + {
  21733. + struct Caos    MyCaos;
  21734. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21735. + //    MyCaos.M68kStart    =    NULL;
  21736. + //    MyCaos.M68kSize        =    0;
  21737. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21738. + //    MyCaos.PPCStart        =    NULL;
  21739. + //    MyCaos.PPCSize        =    0;
  21740. +     MyCaos.a1        =(ULONG) name;
  21741. +     MyCaos.caos_Un.Offset    =    (-390);
  21742. +     MyCaos.a6        =(ULONG) SysBase;    
  21743. +     return((struct MsgPort *)PPCCallOS(&MyCaos));
  21744. + }
  21745. + #define    FindResident(name)    _FindResident(EXEC_BASE_NAME, name)
  21746. + static __inline struct Resident *
  21747. + _FindResident(void *SysBase, UBYTE *name)
  21748. + {
  21749. + struct Caos    MyCaos;
  21750. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21751. + //    MyCaos.M68kStart    =    NULL;
  21752. + //    MyCaos.M68kSize        =    0;
  21753. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21754. + //    MyCaos.PPCStart        =    NULL;
  21755. + //    MyCaos.PPCSize        =    0;
  21756. +     MyCaos.a1        =(ULONG) name;
  21757. +     MyCaos.caos_Un.Offset    =    (-96);
  21758. +     MyCaos.a6        =(ULONG) SysBase;    
  21759. +     return((struct Resident *)PPCCallOS(&MyCaos));
  21760. + }
  21761. + #define    FindSemaphore(sigSem)    _FindSemaphore(EXEC_BASE_NAME, sigSem)
  21762. + static __inline struct SignalSemaphore *
  21763. + _FindSemaphore(void *SysBase, UBYTE *sigSem)
  21764. + {
  21765. + struct Caos    MyCaos;
  21766. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21767. + //    MyCaos.M68kStart    =    NULL;
  21768. + //    MyCaos.M68kSize        =    0;
  21769. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21770. + //    MyCaos.PPCStart        =    NULL;
  21771. + //    MyCaos.PPCSize        =    0;
  21772. +     MyCaos.a1        =(ULONG) sigSem;
  21773. +     MyCaos.caos_Un.Offset    =    (-594);
  21774. +     MyCaos.a6        =(ULONG) SysBase;    
  21775. +     return((struct SignalSemaphore *)PPCCallOS(&MyCaos));
  21776. + }
  21777. + #define    FindTask(name)    _FindTask(EXEC_BASE_NAME, name)
  21778. + static __inline struct Task *
  21779. + _FindTask(void *SysBase, UBYTE *name)
  21780. + {
  21781. + struct Caos    MyCaos;
  21782. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21783. + //    MyCaos.M68kStart    =    NULL;
  21784. + //    MyCaos.M68kSize        =    0;
  21785. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21786. + //    MyCaos.PPCStart        =    NULL;
  21787. + //    MyCaos.PPCSize        =    0;
  21788. +     MyCaos.a1        =(ULONG) name;
  21789. +     MyCaos.caos_Un.Offset    =    (-294);
  21790. +     MyCaos.a6        =(ULONG) SysBase;    
  21791. +     return((struct Task *)PPCCallOS(&MyCaos));
  21792. + }
  21793. + #define    Forbid()    _Forbid(EXEC_BASE_NAME)
  21794. + static __inline void
  21795. + _Forbid(void *SysBase)
  21796. + {
  21797. + struct Caos    MyCaos;
  21798. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21799. + //    MyCaos.M68kStart    =    NULL;
  21800. + //    MyCaos.M68kSize        =    0;
  21801. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21802. + //    MyCaos.PPCStart        =    NULL;
  21803. + //    MyCaos.PPCSize        =    0;
  21804. +     MyCaos.caos_Un.Offset    =    (-132);
  21805. +     MyCaos.a6        =(ULONG) SysBase;    
  21806. +     PPCCallOS(&MyCaos);
  21807. + }
  21808. + #define    FreeEntry(entry)    _FreeEntry(EXEC_BASE_NAME, entry)
  21809. + static __inline void
  21810. + _FreeEntry(void *SysBase, struct MemList *entry)
  21811. + {
  21812. + struct Caos    MyCaos;
  21813. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21814. + //    MyCaos.M68kStart    =    NULL;
  21815. + //    MyCaos.M68kSize        =    0;
  21816. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21817. + //    MyCaos.PPCStart        =    NULL;
  21818. + //    MyCaos.PPCSize        =    0;
  21819. +     MyCaos.a0        =(ULONG) entry;
  21820. +     MyCaos.caos_Un.Offset    =    (-228);
  21821. +     MyCaos.a6        =(ULONG) SysBase;    
  21822. +     PPCCallOS(&MyCaos);
  21823. + }
  21824. + #define    FreeMem(memoryBlock, byteSize)    _FreeMem(EXEC_BASE_NAME, memoryBlock, byteSize)
  21825. + static __inline void
  21826. + _FreeMem(void *SysBase, APTR memoryBlock, unsigned long byteSize)
  21827. + {
  21828. + struct Caos    MyCaos;
  21829. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21830. + //    MyCaos.M68kStart    =    NULL;
  21831. + //    MyCaos.M68kSize        =    0;
  21832. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21833. + //    MyCaos.PPCStart        =    NULL;
  21834. + //    MyCaos.PPCSize        =    0;
  21835. +     MyCaos.a1        =(ULONG) memoryBlock;
  21836. +     MyCaos.d0        =(ULONG) byteSize;
  21837. +     MyCaos.caos_Un.Offset    =    (-210);
  21838. +     MyCaos.a6        =(ULONG) SysBase;    
  21839. +     PPCCallOS(&MyCaos);
  21840. + }
  21841. + #define    FreePooled(poolHeader, memory, memSize)    _FreePooled(EXEC_BASE_NAME, poolHeader, memory, memSize)
  21842. + static __inline void
  21843. + _FreePooled(void *SysBase, APTR poolHeader, APTR memory, unsigned long memSize)
  21844. + {
  21845. + struct Caos    MyCaos;
  21846. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21847. + //    MyCaos.M68kStart    =    NULL;
  21848. + //    MyCaos.M68kSize        =    0;
  21849. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21850. + //    MyCaos.PPCStart        =    NULL;
  21851. + //    MyCaos.PPCSize        =    0;
  21852. +     MyCaos.a0        =(ULONG) poolHeader;
  21853. +     MyCaos.a1        =(ULONG) memory;
  21854. +     MyCaos.d0        =(ULONG) memSize;
  21855. +     MyCaos.caos_Un.Offset    =    (-714);
  21856. +     MyCaos.a6        =(ULONG) SysBase;    
  21857. +     PPCCallOS(&MyCaos);
  21858. + }
  21859. + #define    FreeSignal(signalNum)    _FreeSignal(EXEC_BASE_NAME, signalNum)
  21860. + static __inline void
  21861. + _FreeSignal(void *SysBase, long signalNum)
  21862. + {
  21863. + struct Caos    MyCaos;
  21864. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21865. + //    MyCaos.M68kStart    =    NULL;
  21866. + //    MyCaos.M68kSize        =    0;
  21867. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21868. + //    MyCaos.PPCStart        =    NULL;
  21869. + //    MyCaos.PPCSize        =    0;
  21870. +     MyCaos.d0        =(ULONG) signalNum;
  21871. +     MyCaos.caos_Un.Offset    =    (-336);
  21872. +     MyCaos.a6        =(ULONG) SysBase;    
  21873. +     PPCCallOS(&MyCaos);
  21874. + }
  21875. + #define    FreeTrap(trapNum)    _FreeTrap(EXEC_BASE_NAME, trapNum)
  21876. + static __inline void
  21877. + _FreeTrap(void *SysBase, long trapNum)
  21878. + {
  21879. + struct Caos    MyCaos;
  21880. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21881. + //    MyCaos.M68kStart    =    NULL;
  21882. + //    MyCaos.M68kSize        =    0;
  21883. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21884. + //    MyCaos.PPCStart        =    NULL;
  21885. + //    MyCaos.PPCSize        =    0;
  21886. +     MyCaos.d0        =(ULONG) trapNum;
  21887. +     MyCaos.caos_Un.Offset    =    (-348);
  21888. +     MyCaos.a6        =(ULONG) SysBase;    
  21889. +     PPCCallOS(&MyCaos);
  21890. + }
  21891. + #define    FreeVec(memoryBlock)    _FreeVec(EXEC_BASE_NAME, memoryBlock)
  21892. + static __inline void
  21893. + _FreeVec(void *SysBase, APTR memoryBlock)
  21894. + {
  21895. + struct Caos    MyCaos;
  21896. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21897. + //    MyCaos.M68kStart    =    NULL;
  21898. + //    MyCaos.M68kSize        =    0;
  21899. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21900. + //    MyCaos.PPCStart        =    NULL;
  21901. + //    MyCaos.PPCSize        =    0;
  21902. +     MyCaos.a1        =(ULONG) memoryBlock;
  21903. +     MyCaos.caos_Un.Offset    =    (-690);
  21904. +     MyCaos.a6        =(ULONG) SysBase;    
  21905. +     PPCCallOS(&MyCaos);
  21906. + }
  21907. + #define    GetCC()    _GetCC(EXEC_BASE_NAME)
  21908. + static __inline ULONG
  21909. + _GetCC(void *SysBase)
  21910. + {
  21911. + struct Caos    MyCaos;
  21912. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21913. + //    MyCaos.M68kStart    =    NULL;
  21914. + //    MyCaos.M68kSize        =    0;
  21915. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21916. + //    MyCaos.PPCStart        =    NULL;
  21917. + //    MyCaos.PPCSize        =    0;
  21918. +     MyCaos.caos_Un.Offset    =    (-528);
  21919. +     MyCaos.a6        =(ULONG) SysBase;    
  21920. +     return((ULONG)PPCCallOS(&MyCaos));
  21921. + }
  21922. + #define    GetMsg(port)    _GetMsg(EXEC_BASE_NAME, port)
  21923. + static __inline struct Message *
  21924. + _GetMsg(void *SysBase, struct MsgPort *port)
  21925. + {
  21926. + struct Caos    MyCaos;
  21927. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21928. + //    MyCaos.M68kStart    =    NULL;
  21929. + //    MyCaos.M68kSize        =    0;
  21930. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21931. + //    MyCaos.PPCStart        =    NULL;
  21932. + //    MyCaos.PPCSize        =    0;
  21933. +     MyCaos.a0        =(ULONG) port;
  21934. +     MyCaos.caos_Un.Offset    =    (-372);
  21935. +     MyCaos.a6        =(ULONG) SysBase;    
  21936. +     return((struct Message *)PPCCallOS(&MyCaos));
  21937. + }
  21938. + #define    InitCode(startClass, version)    _InitCode(EXEC_BASE_NAME, startClass, version)
  21939. + static __inline void
  21940. + _InitCode(void *SysBase, unsigned long startClass, unsigned long version)
  21941. + {
  21942. + struct Caos    MyCaos;
  21943. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21944. + //    MyCaos.M68kStart    =    NULL;
  21945. + //    MyCaos.M68kSize        =    0;
  21946. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21947. + //    MyCaos.PPCStart        =    NULL;
  21948. + //    MyCaos.PPCSize        =    0;
  21949. +     MyCaos.d0        =(ULONG) startClass;
  21950. +     MyCaos.d1        =(ULONG) version;
  21951. +     MyCaos.caos_Un.Offset    =    (-72);
  21952. +     MyCaos.a6        =(ULONG) SysBase;    
  21953. +     PPCCallOS(&MyCaos);
  21954. + }
  21955. + #define    InitResident(resident, segList)    _InitResident(EXEC_BASE_NAME, resident, segList)
  21956. + static __inline APTR
  21957. + _InitResident(void *SysBase, struct Resident *resident, unsigned long segList)
  21958. + {
  21959. + struct Caos    MyCaos;
  21960. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21961. + //    MyCaos.M68kStart    =    NULL;
  21962. + //    MyCaos.M68kSize        =    0;
  21963. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21964. + //    MyCaos.PPCStart        =    NULL;
  21965. + //    MyCaos.PPCSize        =    0;
  21966. +     MyCaos.a1        =(ULONG) resident;
  21967. +     MyCaos.d1        =(ULONG) segList;
  21968. +     MyCaos.caos_Un.Offset    =    (-102);
  21969. +     MyCaos.a6        =(ULONG) SysBase;    
  21970. +     return((APTR)PPCCallOS(&MyCaos));
  21971. + }
  21972. + #define    InitSemaphore(sigSem)    _InitSemaphore(EXEC_BASE_NAME, sigSem)
  21973. + static __inline void
  21974. + _InitSemaphore(void *SysBase, struct SignalSemaphore *sigSem)
  21975. + {
  21976. + struct Caos    MyCaos;
  21977. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21978. + //    MyCaos.M68kStart    =    NULL;
  21979. + //    MyCaos.M68kSize        =    0;
  21980. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21981. + //    MyCaos.PPCStart        =    NULL;
  21982. + //    MyCaos.PPCSize        =    0;
  21983. +     MyCaos.a0        =(ULONG) sigSem;
  21984. +     MyCaos.caos_Un.Offset    =    (-558);
  21985. +     MyCaos.a6        =(ULONG) SysBase;    
  21986. +     PPCCallOS(&MyCaos);
  21987. + }
  21988. + #define    InitStruct(initTable, memory, size)    _InitStruct(EXEC_BASE_NAME, initTable, memory, size)
  21989. + static __inline void
  21990. + _InitStruct(void *SysBase, APTR initTable, APTR memory, unsigned long size)
  21991. + {
  21992. + struct Caos    MyCaos;
  21993. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  21994. + //    MyCaos.M68kStart    =    NULL;
  21995. + //    MyCaos.M68kSize        =    0;
  21996. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  21997. + //    MyCaos.PPCStart        =    NULL;
  21998. + //    MyCaos.PPCSize        =    0;
  21999. +     MyCaos.a1        =(ULONG) initTable;
  22000. +     MyCaos.a2        =(ULONG) memory;
  22001. +     MyCaos.d0        =(ULONG) size;
  22002. +     MyCaos.caos_Un.Offset    =    (-78);
  22003. +     MyCaos.a6        =(ULONG) SysBase;    
  22004. +     PPCCallOS(&MyCaos);
  22005. + }
  22006. + #define    Insert(list, node, pred)    _Insert(EXEC_BASE_NAME, list, node, pred)
  22007. + static __inline void
  22008. + _Insert(void *SysBase, struct List *list, struct Node *node, struct Node *pred)
  22009. + {
  22010. + struct Caos    MyCaos;
  22011. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22012. + //    MyCaos.M68kStart    =    NULL;
  22013. + //    MyCaos.M68kSize        =    0;
  22014. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22015. + //    MyCaos.PPCStart        =    NULL;
  22016. + //    MyCaos.PPCSize        =    0;
  22017. +     MyCaos.a0        =(ULONG) list;
  22018. +     MyCaos.a1        =(ULONG) node;
  22019. +     MyCaos.a2        =(ULONG) pred;
  22020. +     MyCaos.caos_Un.Offset    =    (-234);
  22021. +     MyCaos.a6        =(ULONG) SysBase;    
  22022. +     PPCCallOS(&MyCaos);
  22023. + }
  22024. + #define    MakeFunctions(target, functionArray, funcDispBase)    _MakeFunctions(EXEC_BASE_NAME, target, functionArray, funcDispBase)
  22025. + static __inline void
  22026. + _MakeFunctions(void *SysBase, APTR target, APTR functionArray, unsigned long funcDispBase)
  22027. + {
  22028. + struct Caos    MyCaos;
  22029. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22030. + //    MyCaos.M68kStart    =    NULL;
  22031. + //    MyCaos.M68kSize        =    0;
  22032. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22033. + //    MyCaos.PPCStart        =    NULL;
  22034. + //    MyCaos.PPCSize        =    0;
  22035. +     MyCaos.a0        =(ULONG) target;
  22036. +     MyCaos.a1        =(ULONG) functionArray;
  22037. +     MyCaos.a2        =(ULONG) funcDispBase;
  22038. +     MyCaos.caos_Un.Offset    =    (-90);
  22039. +     MyCaos.a6        =(ULONG) SysBase;    
  22040. +     PPCCallOS(&MyCaos);
  22041. + }
  22042. + #define    MakeLibrary(funcInit, structInit, libInit, dataSize, segList)    _MakeLibrary(EXEC_BASE_NAME, funcInit, structInit, libInit, dataSize, segList)
  22043. + static __inline struct Library *
  22044. + _MakeLibrary(void *SysBase, APTR funcInit, APTR structInit, unsigned long (*libInit)(), unsigned long dataSize, unsigned long segList)
  22045. + {
  22046. + struct Caos    MyCaos;
  22047. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22048. + //    MyCaos.M68kStart    =    NULL;
  22049. + //    MyCaos.M68kSize        =    0;
  22050. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22051. + //    MyCaos.PPCStart        =    NULL;
  22052. + //    MyCaos.PPCSize        =    0;
  22053. +     MyCaos.a0        =(ULONG) funcInit;
  22054. +     MyCaos.a1        =(ULONG) structInit;
  22055. +     MyCaos.a2        =(ULONG) libInit;
  22056. +     MyCaos.d0        =(ULONG) dataSize;
  22057. +     MyCaos.d1        =(ULONG) segList;
  22058. +     MyCaos.caos_Un.Offset    =    (-84);
  22059. +     MyCaos.a6        =(ULONG) SysBase;    
  22060. +     return((struct Library *)PPCCallOS(&MyCaos));
  22061. + }
  22062. + #define    ObtainQuickVector(interruptCode)    _ObtainQuickVector(EXEC_BASE_NAME, interruptCode)
  22063. + static __inline ULONG
  22064. + _ObtainQuickVector(void *SysBase, APTR interruptCode)
  22065. + {
  22066. + struct Caos    MyCaos;
  22067. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22068. + //    MyCaos.M68kStart    =    NULL;
  22069. + //    MyCaos.M68kSize        =    0;
  22070. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22071. + //    MyCaos.PPCStart        =    NULL;
  22072. + //    MyCaos.PPCSize        =    0;
  22073. +     MyCaos.a0        =(ULONG) interruptCode;
  22074. +     MyCaos.caos_Un.Offset    =    (-786);
  22075. +     MyCaos.a6        =(ULONG) SysBase;    
  22076. +     return((ULONG)PPCCallOS(&MyCaos));
  22077. + }
  22078. + #define    ObtainSemaphore(sigSem)    _ObtainSemaphore(EXEC_BASE_NAME, sigSem)
  22079. + static __inline void
  22080. + _ObtainSemaphore(void *SysBase, struct SignalSemaphore *sigSem)
  22081. + {
  22082. + struct Caos    MyCaos;
  22083. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22084. + //    MyCaos.M68kStart    =    NULL;
  22085. + //    MyCaos.M68kSize        =    0;
  22086. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22087. + //    MyCaos.PPCStart        =    NULL;
  22088. + //    MyCaos.PPCSize        =    0;
  22089. +     MyCaos.a0        =(ULONG) sigSem;
  22090. +     MyCaos.caos_Un.Offset    =    (-564);
  22091. +     MyCaos.a6        =(ULONG) SysBase;    
  22092. +     PPCCallOS(&MyCaos);
  22093. + }
  22094. + #define    ObtainSemaphoreList(sigSem)    _ObtainSemaphoreList(EXEC_BASE_NAME, sigSem)
  22095. + static __inline void
  22096. + _ObtainSemaphoreList(void *SysBase, struct List *sigSem)
  22097. + {
  22098. + struct Caos    MyCaos;
  22099. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22100. + //    MyCaos.M68kStart    =    NULL;
  22101. + //    MyCaos.M68kSize        =    0;
  22102. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22103. + //    MyCaos.PPCStart        =    NULL;
  22104. + //    MyCaos.PPCSize        =    0;
  22105. +     MyCaos.a0        =(ULONG) sigSem;
  22106. +     MyCaos.caos_Un.Offset    =    (-582);
  22107. +     MyCaos.a6        =(ULONG) SysBase;    
  22108. +     PPCCallOS(&MyCaos);
  22109. + }
  22110. + #define    ObtainSemaphoreShared(sigSem)    _ObtainSemaphoreShared(EXEC_BASE_NAME, sigSem)
  22111. + static __inline void
  22112. + _ObtainSemaphoreShared(void *SysBase, struct SignalSemaphore *sigSem)
  22113. + {
  22114. + struct Caos    MyCaos;
  22115. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22116. + //    MyCaos.M68kStart    =    NULL;
  22117. + //    MyCaos.M68kSize        =    0;
  22118. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22119. + //    MyCaos.PPCStart        =    NULL;
  22120. + //    MyCaos.PPCSize        =    0;
  22121. +     MyCaos.a0        =(ULONG) sigSem;
  22122. +     MyCaos.caos_Un.Offset    =    (-678);
  22123. +     MyCaos.a6        =(ULONG) SysBase;    
  22124. +     PPCCallOS(&MyCaos);
  22125. + }
  22126. + #define    OldOpenLibrary(libName)    _OldOpenLibrary(EXEC_BASE_NAME, libName)
  22127. + static __inline struct Library *
  22128. + _OldOpenLibrary(void *SysBase, UBYTE *libName)
  22129. + {
  22130. + struct Caos    MyCaos;
  22131. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22132. + //    MyCaos.M68kStart    =    NULL;
  22133. + //    MyCaos.M68kSize        =    0;
  22134. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22135. + //    MyCaos.PPCStart        =    NULL;
  22136. + //    MyCaos.PPCSize        =    0;
  22137. +     MyCaos.a1        =(ULONG) libName;
  22138. +     MyCaos.caos_Un.Offset    =    (-408);
  22139. +     MyCaos.a6        =(ULONG) SysBase;    
  22140. +     return((struct Library *)PPCCallOS(&MyCaos));
  22141. + }
  22142. + #define    OpenDevice(devName, unit, ioRequest, flags)    _OpenDevice(EXEC_BASE_NAME, devName, unit, ioRequest, flags)
  22143. + static __inline BYTE
  22144. + _OpenDevice(void *SysBase, UBYTE *devName, unsigned long unit, struct IORequest *ioRequest, unsigned long flags)
  22145. + {
  22146. + struct Caos    MyCaos;
  22147. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22148. + //    MyCaos.M68kStart    =    NULL;
  22149. + //    MyCaos.M68kSize        =    0;
  22150. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22151. + //    MyCaos.PPCStart        =    NULL;
  22152. + //    MyCaos.PPCSize        =    0;
  22153. +     MyCaos.a0        =(ULONG) devName;
  22154. +     MyCaos.d0        =(ULONG) unit;
  22155. +     MyCaos.a1        =(ULONG) ioRequest;
  22156. +     MyCaos.d1        =(ULONG) flags;
  22157. +     MyCaos.caos_Un.Offset    =    (-444);
  22158. +     MyCaos.a6        =(ULONG) SysBase;    
  22159. +     return((BYTE)PPCCallOS(&MyCaos));
  22160. + }
  22161. + #define    OpenLibrary(libName, version)    _OpenLibrary(EXEC_BASE_NAME, libName, version)
  22162. + static __inline struct Library *
  22163. + _OpenLibrary(void *SysBase, UBYTE *libName, unsigned long version)
  22164. + {
  22165. + struct Caos    MyCaos;
  22166. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22167. + //    MyCaos.M68kStart    =    NULL;
  22168. + //    MyCaos.M68kSize        =    0;
  22169. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22170. + //    MyCaos.PPCStart        =    NULL;
  22171. + //    MyCaos.PPCSize        =    0;
  22172. +     MyCaos.a1        =(ULONG) libName;
  22173. +     MyCaos.d0        =(ULONG) version;
  22174. +     MyCaos.caos_Un.Offset    =    (-552);
  22175. +     MyCaos.a6        =(ULONG) SysBase;    
  22176. +     return((struct Library *)PPCCallOS(&MyCaos));
  22177. + }
  22178. + #define    OpenResource(resName)    _OpenResource(EXEC_BASE_NAME, resName)
  22179. + static __inline APTR
  22180. + _OpenResource(void *SysBase, UBYTE *resName)
  22181. + {
  22182. + struct Caos    MyCaos;
  22183. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22184. + //    MyCaos.M68kStart    =    NULL;
  22185. + //    MyCaos.M68kSize        =    0;
  22186. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22187. + //    MyCaos.PPCStart        =    NULL;
  22188. + //    MyCaos.PPCSize        =    0;
  22189. +     MyCaos.a1        =(ULONG) resName;
  22190. +     MyCaos.caos_Un.Offset    =    (-498);
  22191. +     MyCaos.a6        =(ULONG) SysBase;    
  22192. +     return((APTR)PPCCallOS(&MyCaos));
  22193. + }
  22194. + #define    Permit()    _Permit(EXEC_BASE_NAME)
  22195. + static __inline void
  22196. + _Permit(void *SysBase)
  22197. + {
  22198. + struct Caos    MyCaos;
  22199. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22200. + //    MyCaos.M68kStart    =    NULL;
  22201. + //    MyCaos.M68kSize        =    0;
  22202. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22203. + //    MyCaos.PPCStart        =    NULL;
  22204. + //    MyCaos.PPCSize        =    0;
  22205. +     MyCaos.caos_Un.Offset    =    (-138);
  22206. +     MyCaos.a6        =(ULONG) SysBase;    
  22207. +     PPCCallOS(&MyCaos);
  22208. + }
  22209. + #define    Procure(sigSem, bidMsg)    _Procure(EXEC_BASE_NAME, sigSem, bidMsg)
  22210. + static __inline ULONG
  22211. + _Procure(void *SysBase, struct SignalSemaphore *sigSem, struct SemaphoreMessage *bidMsg)
  22212. + {
  22213. + struct Caos    MyCaos;
  22214. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22215. + //    MyCaos.M68kStart    =    NULL;
  22216. + //    MyCaos.M68kSize        =    0;
  22217. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22218. + //    MyCaos.PPCStart        =    NULL;
  22219. + //    MyCaos.PPCSize        =    0;
  22220. +     MyCaos.a0        =(ULONG) sigSem;
  22221. +     MyCaos.a1        =(ULONG) bidMsg;
  22222. +     MyCaos.caos_Un.Offset    =    (-540);
  22223. +     MyCaos.a6        =(ULONG) SysBase;    
  22224. +     return((ULONG)PPCCallOS(&MyCaos));
  22225. + }
  22226. + #define    PutMsg(port, message)    _PutMsg(EXEC_BASE_NAME, port, message)
  22227. + static __inline void
  22228. + _PutMsg(void *SysBase, struct MsgPort *port, struct Message *message)
  22229. + {
  22230. + struct Caos    MyCaos;
  22231. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22232. + //    MyCaos.M68kStart    =    NULL;
  22233. + //    MyCaos.M68kSize        =    0;
  22234. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22235. + //    MyCaos.PPCStart        =    NULL;
  22236. + //    MyCaos.PPCSize        =    0;
  22237. +     MyCaos.a0        =(ULONG) port;
  22238. +     MyCaos.a1        =(ULONG) message;
  22239. +     MyCaos.caos_Un.Offset    =    (-366);
  22240. +     MyCaos.a6        =(ULONG) SysBase;    
  22241. +     PPCCallOS(&MyCaos);
  22242. + }
  22243. + #define    RawDoFmt(formatString, dataStream, putChProc, putChData)    _RawDoFmt(EXEC_BASE_NAME, formatString, dataStream, putChProc, putChData)
  22244. + static __inline APTR
  22245. + _RawDoFmt(void *SysBase, UBYTE *formatString, APTR dataStream, void (*putChProc)(), APTR putChData)
  22246. + {
  22247. + struct Caos    MyCaos;
  22248. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22249. + //    MyCaos.M68kStart    =    NULL;
  22250. + //    MyCaos.M68kSize        =    0;
  22251. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22252. + //    MyCaos.PPCStart        =    NULL;
  22253. + //    MyCaos.PPCSize        =    0;
  22254. +     MyCaos.a0        =(ULONG) formatString;
  22255. +     MyCaos.a1        =(ULONG) dataStream;
  22256. +     MyCaos.a2        =(ULONG) putChProc;
  22257. +     MyCaos.a3        =(ULONG) putChData;
  22258. +     MyCaos.caos_Un.Offset    =    (-522);
  22259. +     MyCaos.a6        =(ULONG) SysBase;    
  22260. +     return((APTR)PPCCallOS(&MyCaos));
  22261. + }
  22262. + #define    ReleaseSemaphore(sigSem)    _ReleaseSemaphore(EXEC_BASE_NAME, sigSem)
  22263. + static __inline void
  22264. + _ReleaseSemaphore(void *SysBase, struct SignalSemaphore *sigSem)
  22265. + {
  22266. + struct Caos    MyCaos;
  22267. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22268. + //    MyCaos.M68kStart    =    NULL;
  22269. + //    MyCaos.M68kSize        =    0;
  22270. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22271. + //    MyCaos.PPCStart        =    NULL;
  22272. + //    MyCaos.PPCSize        =    0;
  22273. +     MyCaos.a0        =(ULONG) sigSem;
  22274. +     MyCaos.caos_Un.Offset    =    (-570);
  22275. +     MyCaos.a6        =(ULONG) SysBase;    
  22276. +     PPCCallOS(&MyCaos);
  22277. + }
  22278. + #define    ReleaseSemaphoreList(sigSem)    _ReleaseSemaphoreList(EXEC_BASE_NAME, sigSem)
  22279. + static __inline void
  22280. + _ReleaseSemaphoreList(void *SysBase, struct List *sigSem)
  22281. + {
  22282. + struct Caos    MyCaos;
  22283. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22284. + //    MyCaos.M68kStart    =    NULL;
  22285. + //    MyCaos.M68kSize        =    0;
  22286. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22287. + //    MyCaos.PPCStart        =    NULL;
  22288. + //    MyCaos.PPCSize        =    0;
  22289. +     MyCaos.a0        =(ULONG) sigSem;
  22290. +     MyCaos.caos_Un.Offset    =    (-588);
  22291. +     MyCaos.a6        =(ULONG) SysBase;    
  22292. +     PPCCallOS(&MyCaos);
  22293. + }
  22294. + #define    RemDevice(device)    _RemDevice(EXEC_BASE_NAME, device)
  22295. + static __inline void
  22296. + _RemDevice(void *SysBase, struct Device *device)
  22297. + {
  22298. + struct Caos    MyCaos;
  22299. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22300. + //    MyCaos.M68kStart    =    NULL;
  22301. + //    MyCaos.M68kSize        =    0;
  22302. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22303. + //    MyCaos.PPCStart        =    NULL;
  22304. + //    MyCaos.PPCSize        =    0;
  22305. +     MyCaos.a1        =(ULONG) device;
  22306. +     MyCaos.caos_Un.Offset    =    (-438);
  22307. +     MyCaos.a6        =(ULONG) SysBase;    
  22308. +     PPCCallOS(&MyCaos);
  22309. + }
  22310. + #define    RemHead(list)    _RemHead(EXEC_BASE_NAME, list)
  22311. + static __inline struct Node *
  22312. + _RemHead(void *SysBase, struct List *list)
  22313. + {
  22314. + struct Caos    MyCaos;
  22315. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22316. + //    MyCaos.M68kStart    =    NULL;
  22317. + //    MyCaos.M68kSize        =    0;
  22318. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22319. + //    MyCaos.PPCStart        =    NULL;
  22320. + //    MyCaos.PPCSize        =    0;
  22321. +     MyCaos.a0        =(ULONG) list;
  22322. +     MyCaos.caos_Un.Offset    =    (-258);
  22323. +     MyCaos.a6        =(ULONG) SysBase;    
  22324. +     return((struct Node *)PPCCallOS(&MyCaos));
  22325. + }
  22326. + #define    RemIntServer(intNumber, interrupt)    _RemIntServer(EXEC_BASE_NAME, intNumber, interrupt)
  22327. + static __inline void
  22328. + _RemIntServer(void *SysBase, long intNumber, struct Interrupt *interrupt)
  22329. + {
  22330. + struct Caos    MyCaos;
  22331. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22332. + //    MyCaos.M68kStart    =    NULL;
  22333. + //    MyCaos.M68kSize        =    0;
  22334. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22335. + //    MyCaos.PPCStart        =    NULL;
  22336. + //    MyCaos.PPCSize        =    0;
  22337. +     MyCaos.d0        =(ULONG) intNumber;
  22338. +     MyCaos.a1        =(ULONG) interrupt;
  22339. +     MyCaos.caos_Un.Offset    =    (-174);
  22340. +     MyCaos.a6        =(ULONG) SysBase;    
  22341. +     PPCCallOS(&MyCaos);
  22342. + }
  22343. + #define    RemLibrary(library)    _RemLibrary(EXEC_BASE_NAME, library)
  22344. + static __inline void
  22345. + _RemLibrary(void *SysBase, struct Library *library)
  22346. + {
  22347. + struct Caos    MyCaos;
  22348. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22349. + //    MyCaos.M68kStart    =    NULL;
  22350. + //    MyCaos.M68kSize        =    0;
  22351. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22352. + //    MyCaos.PPCStart        =    NULL;
  22353. + //    MyCaos.PPCSize        =    0;
  22354. +     MyCaos.a1        =(ULONG) library;
  22355. +     MyCaos.caos_Un.Offset    =    (-402);
  22356. +     MyCaos.a6        =(ULONG) SysBase;    
  22357. +     PPCCallOS(&MyCaos);
  22358. + }
  22359. + #define    RemMemHandler(memhand)    _RemMemHandler(EXEC_BASE_NAME, memhand)
  22360. + static __inline void
  22361. + _RemMemHandler(void *SysBase, struct Interrupt *memhand)
  22362. + {
  22363. + struct Caos    MyCaos;
  22364. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22365. + //    MyCaos.M68kStart    =    NULL;
  22366. + //    MyCaos.M68kSize        =    0;
  22367. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22368. + //    MyCaos.PPCStart        =    NULL;
  22369. + //    MyCaos.PPCSize        =    0;
  22370. +     MyCaos.a1        =(ULONG) memhand;
  22371. +     MyCaos.caos_Un.Offset    =    (-780);
  22372. +     MyCaos.a6        =(ULONG) SysBase;    
  22373. +     PPCCallOS(&MyCaos);
  22374. + }
  22375. + #define    RemPort(port)    _RemPort(EXEC_BASE_NAME, port)
  22376. + static __inline void
  22377. + _RemPort(void *SysBase, struct MsgPort *port)
  22378. + {
  22379. + struct Caos    MyCaos;
  22380. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22381. + //    MyCaos.M68kStart    =    NULL;
  22382. + //    MyCaos.M68kSize        =    0;
  22383. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22384. + //    MyCaos.PPCStart        =    NULL;
  22385. + //    MyCaos.PPCSize        =    0;
  22386. +     MyCaos.a1        =(ULONG) port;
  22387. +     MyCaos.caos_Un.Offset    =    (-360);
  22388. +     MyCaos.a6        =(ULONG) SysBase;    
  22389. +     PPCCallOS(&MyCaos);
  22390. + }
  22391. + #define    RemResource(resource)    _RemResource(EXEC_BASE_NAME, resource)
  22392. + static __inline void
  22393. + _RemResource(void *SysBase, APTR resource)
  22394. + {
  22395. + struct Caos    MyCaos;
  22396. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22397. + //    MyCaos.M68kStart    =    NULL;
  22398. + //    MyCaos.M68kSize        =    0;
  22399. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22400. + //    MyCaos.PPCStart        =    NULL;
  22401. + //    MyCaos.PPCSize        =    0;
  22402. +     MyCaos.a1        =(ULONG) resource;
  22403. +     MyCaos.caos_Un.Offset    =    (-492);
  22404. +     MyCaos.a6        =(ULONG) SysBase;    
  22405. +     PPCCallOS(&MyCaos);
  22406. + }
  22407. + #define    RemSemaphore(sigSem)    _RemSemaphore(EXEC_BASE_NAME, sigSem)
  22408. + static __inline void
  22409. + _RemSemaphore(void *SysBase, struct SignalSemaphore *sigSem)
  22410. + {
  22411. + struct Caos    MyCaos;
  22412. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22413. + //    MyCaos.M68kStart    =    NULL;
  22414. + //    MyCaos.M68kSize        =    0;
  22415. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22416. + //    MyCaos.PPCStart        =    NULL;
  22417. + //    MyCaos.PPCSize        =    0;
  22418. +     MyCaos.a1        =(ULONG) sigSem;
  22419. +     MyCaos.caos_Un.Offset    =    (-606);
  22420. +     MyCaos.a6        =(ULONG) SysBase;    
  22421. +     PPCCallOS(&MyCaos);
  22422. + }
  22423. + #define    RemTail(list)    _RemTail(EXEC_BASE_NAME, list)
  22424. + static __inline struct Node *
  22425. + _RemTail(void *SysBase, struct List *list)
  22426. + {
  22427. + struct Caos    MyCaos;
  22428. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22429. + //    MyCaos.M68kStart    =    NULL;
  22430. + //    MyCaos.M68kSize        =    0;
  22431. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22432. + //    MyCaos.PPCStart        =    NULL;
  22433. + //    MyCaos.PPCSize        =    0;
  22434. +     MyCaos.a0        =(ULONG) list;
  22435. +     MyCaos.caos_Un.Offset    =    (-264);
  22436. +     MyCaos.a6        =(ULONG) SysBase;    
  22437. +     return((struct Node *)PPCCallOS(&MyCaos));
  22438. + }
  22439. + #define    RemTask(task)    _RemTask(EXEC_BASE_NAME, task)
  22440. + static __inline void
  22441. + _RemTask(void *SysBase, struct Task *task)
  22442. + {
  22443. + struct Caos    MyCaos;
  22444. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22445. + //    MyCaos.M68kStart    =    NULL;
  22446. + //    MyCaos.M68kSize        =    0;
  22447. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22448. + //    MyCaos.PPCStart        =    NULL;
  22449. + //    MyCaos.PPCSize        =    0;
  22450. +     MyCaos.a1        =(ULONG) task;
  22451. +     MyCaos.caos_Un.Offset    =    (-288);
  22452. +     MyCaos.a6        =(ULONG) SysBase;    
  22453. +     PPCCallOS(&MyCaos);
  22454. + }
  22455. + #define    Remove(node)    _Remove(EXEC_BASE_NAME, node)
  22456. + static __inline void
  22457. + _Remove(void *SysBase, struct Node *node)
  22458. + {
  22459. + struct Caos    MyCaos;
  22460. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22461. + //    MyCaos.M68kStart    =    NULL;
  22462. + //    MyCaos.M68kSize        =    0;
  22463. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22464. + //    MyCaos.PPCStart        =    NULL;
  22465. + //    MyCaos.PPCSize        =    0;
  22466. +     MyCaos.a1        =(ULONG) node;
  22467. +     MyCaos.caos_Un.Offset    =    (-252);
  22468. +     MyCaos.a6        =(ULONG) SysBase;    
  22469. +     PPCCallOS(&MyCaos);
  22470. + }
  22471. + #define    ReplyMsg(message)    _ReplyMsg(EXEC_BASE_NAME, message)
  22472. + static __inline void
  22473. + _ReplyMsg(void *SysBase, struct Message *message)
  22474. + {
  22475. + struct Caos    MyCaos;
  22476. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22477. + //    MyCaos.M68kStart    =    NULL;
  22478. + //    MyCaos.M68kSize        =    0;
  22479. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22480. + //    MyCaos.PPCStart        =    NULL;
  22481. + //    MyCaos.PPCSize        =    0;
  22482. +     MyCaos.a1        =(ULONG) message;
  22483. +     MyCaos.caos_Un.Offset    =    (-378);
  22484. +     MyCaos.a6        =(ULONG) SysBase;    
  22485. +     PPCCallOS(&MyCaos);
  22486. + }
  22487. + #define    SendIO(ioRequest)    _SendIO(EXEC_BASE_NAME, ioRequest)
  22488. + static __inline void
  22489. + _SendIO(void *SysBase, struct IORequest *ioRequest)
  22490. + {
  22491. + struct Caos    MyCaos;
  22492. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22493. + //    MyCaos.M68kStart    =    NULL;
  22494. + //    MyCaos.M68kSize        =    0;
  22495. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22496. + //    MyCaos.PPCStart        =    NULL;
  22497. + //    MyCaos.PPCSize        =    0;
  22498. +     MyCaos.a1        =(ULONG) ioRequest;
  22499. +     MyCaos.caos_Un.Offset    =    (-462);
  22500. +     MyCaos.a6        =(ULONG) SysBase;    
  22501. +     PPCCallOS(&MyCaos);
  22502. + }
  22503. + #define    SetExcept(newSignals, signalSet)    _SetExcept(EXEC_BASE_NAME, newSignals, signalSet)
  22504. + static __inline ULONG
  22505. + _SetExcept(void *SysBase, unsigned long newSignals, unsigned long signalSet)
  22506. + {
  22507. + struct Caos    MyCaos;
  22508. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22509. + //    MyCaos.M68kStart    =    NULL;
  22510. + //    MyCaos.M68kSize        =    0;
  22511. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22512. + //    MyCaos.PPCStart        =    NULL;
  22513. + //    MyCaos.PPCSize        =    0;
  22514. +     MyCaos.d0        =(ULONG) newSignals;
  22515. +     MyCaos.d1        =(ULONG) signalSet;
  22516. +     MyCaos.caos_Un.Offset    =    (-312);
  22517. +     MyCaos.a6        =(ULONG) SysBase;    
  22518. +     return((ULONG)PPCCallOS(&MyCaos));
  22519. + }
  22520. + #define    SetFunction(library, funcOffset, newFunction)    _SetFunction(EXEC_BASE_NAME, library, funcOffset, newFunction)
  22521. + static __inline APTR
  22522. + _SetFunction(void *SysBase, struct Library *library, long funcOffset, unsigned long (*newFunction)())
  22523. + {
  22524. + struct Caos    MyCaos;
  22525. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22526. + //    MyCaos.M68kStart    =    NULL;
  22527. + //    MyCaos.M68kSize        =    0;
  22528. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22529. + //    MyCaos.PPCStart        =    NULL;
  22530. + //    MyCaos.PPCSize        =    0;
  22531. +     MyCaos.a1        =(ULONG) library;
  22532. +     MyCaos.a0        =(ULONG) funcOffset;
  22533. +     MyCaos.d0        =(ULONG) newFunction;
  22534. +     MyCaos.caos_Un.Offset    =    (-420);
  22535. +     MyCaos.a6        =(ULONG) SysBase;    
  22536. +     return((APTR)PPCCallOS(&MyCaos));
  22537. + }
  22538. + #define    SetIntVector(intNumber, interrupt)    _SetIntVector(EXEC_BASE_NAME, intNumber, interrupt)
  22539. + static __inline struct Interrupt *
  22540. + _SetIntVector(void *SysBase, long intNumber, struct Interrupt *interrupt)
  22541. + {
  22542. + struct Caos    MyCaos;
  22543. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22544. + //    MyCaos.M68kStart    =    NULL;
  22545. + //    MyCaos.M68kSize        =    0;
  22546. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22547. + //    MyCaos.PPCStart        =    NULL;
  22548. + //    MyCaos.PPCSize        =    0;
  22549. +     MyCaos.d0        =(ULONG) intNumber;
  22550. +     MyCaos.a1        =(ULONG) interrupt;
  22551. +     MyCaos.caos_Un.Offset    =    (-162);
  22552. +     MyCaos.a6        =(ULONG) SysBase;    
  22553. +     return((struct Interrupt *)PPCCallOS(&MyCaos));
  22554. + }
  22555. + #define    SetSR(newSR, mask)    _SetSR(EXEC_BASE_NAME, newSR, mask)
  22556. + static __inline ULONG
  22557. + _SetSR(void *SysBase, unsigned long newSR, unsigned long mask)
  22558. + {
  22559. + struct Caos    MyCaos;
  22560. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22561. + //    MyCaos.M68kStart    =    NULL;
  22562. + //    MyCaos.M68kSize        =    0;
  22563. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22564. + //    MyCaos.PPCStart        =    NULL;
  22565. + //    MyCaos.PPCSize        =    0;
  22566. +     MyCaos.d0        =(ULONG) newSR;
  22567. +     MyCaos.d1        =(ULONG) mask;
  22568. +     MyCaos.caos_Un.Offset    =    (-144);
  22569. +     MyCaos.a6        =(ULONG) SysBase;    
  22570. +     return((ULONG)PPCCallOS(&MyCaos));
  22571. + }
  22572. + #define    SetSignal(newSignals, signalSet)    _SetSignal(EXEC_BASE_NAME, newSignals, signalSet)
  22573. + static __inline ULONG
  22574. + _SetSignal(void *SysBase, unsigned long newSignals, unsigned long signalSet)
  22575. + {
  22576. + struct Caos    MyCaos;
  22577. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22578. + //    MyCaos.M68kStart    =    NULL;
  22579. + //    MyCaos.M68kSize        =    0;
  22580. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22581. + //    MyCaos.PPCStart        =    NULL;
  22582. + //    MyCaos.PPCSize        =    0;
  22583. +     MyCaos.d0        =(ULONG) newSignals;
  22584. +     MyCaos.d1        =(ULONG) signalSet;
  22585. +     MyCaos.caos_Un.Offset    =    (-306);
  22586. +     MyCaos.a6        =(ULONG) SysBase;    
  22587. +     return((ULONG)PPCCallOS(&MyCaos));
  22588. + }
  22589. + #define    SetTaskPri(task, priority)    _SetTaskPri(EXEC_BASE_NAME, task, priority)
  22590. + static __inline BYTE
  22591. + _SetTaskPri(void *SysBase, struct Task *task, long priority)
  22592. + {
  22593. + struct Caos    MyCaos;
  22594. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22595. + //    MyCaos.M68kStart    =    NULL;
  22596. + //    MyCaos.M68kSize        =    0;
  22597. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22598. + //    MyCaos.PPCStart        =    NULL;
  22599. + //    MyCaos.PPCSize        =    0;
  22600. +     MyCaos.a1        =(ULONG) task;
  22601. +     MyCaos.d0        =(ULONG) priority;
  22602. +     MyCaos.caos_Un.Offset    =    (-300);
  22603. +     MyCaos.a6        =(ULONG) SysBase;    
  22604. +     return((BYTE)PPCCallOS(&MyCaos));
  22605. + }
  22606. + #define    Signal(task, signalSet)    _Signal(EXEC_BASE_NAME, task, signalSet)
  22607. + static __inline void
  22608. + _Signal(void *SysBase, struct Task *task, unsigned long signalSet)
  22609. + {
  22610. + struct Caos    MyCaos;
  22611. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22612. + //    MyCaos.M68kStart    =    NULL;
  22613. + //    MyCaos.M68kSize        =    0;
  22614. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22615. + //    MyCaos.PPCStart        =    NULL;
  22616. + //    MyCaos.PPCSize        =    0;
  22617. +     MyCaos.a1        =(ULONG) task;
  22618. +     MyCaos.d0        =(ULONG) signalSet;
  22619. +     MyCaos.caos_Un.Offset    =    (-324);
  22620. +     MyCaos.a6        =(ULONG) SysBase;    
  22621. +     PPCCallOS(&MyCaos);
  22622. + }
  22623. + #define    StackSwap(newStack)    _StackSwap(EXEC_BASE_NAME, newStack)
  22624. + static __inline void
  22625. + _StackSwap(void *SysBase, struct StackSwapStruct *newStack)
  22626. + {
  22627. + struct Caos    MyCaos;
  22628. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22629. + //    MyCaos.M68kStart    =    NULL;
  22630. + //    MyCaos.M68kSize        =    0;
  22631. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22632. + //    MyCaos.PPCStart        =    NULL;
  22633. + //    MyCaos.PPCSize        =    0;
  22634. +     MyCaos.a0        =(ULONG) newStack;
  22635. +     MyCaos.caos_Un.Offset    =    (-732);
  22636. +     MyCaos.a6        =(ULONG) SysBase;    
  22637. +     PPCCallOS(&MyCaos);
  22638. + }
  22639. + #define    SumKickData()    _SumKickData(EXEC_BASE_NAME)
  22640. + static __inline ULONG
  22641. + _SumKickData(void *SysBase)
  22642. + {
  22643. + struct Caos    MyCaos;
  22644. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22645. + //    MyCaos.M68kStart    =    NULL;
  22646. + //    MyCaos.M68kSize        =    0;
  22647. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22648. + //    MyCaos.PPCStart        =    NULL;
  22649. + //    MyCaos.PPCSize        =    0;
  22650. +     MyCaos.caos_Un.Offset    =    (-612);
  22651. +     MyCaos.a6        =(ULONG) SysBase;    
  22652. +     return((ULONG)PPCCallOS(&MyCaos));
  22653. + }
  22654. + #define    SumLibrary(library)    _SumLibrary(EXEC_BASE_NAME, library)
  22655. + static __inline void
  22656. + _SumLibrary(void *SysBase, struct Library *library)
  22657. + {
  22658. + struct Caos    MyCaos;
  22659. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22660. + //    MyCaos.M68kStart    =    NULL;
  22661. + //    MyCaos.M68kSize        =    0;
  22662. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22663. + //    MyCaos.PPCStart        =    NULL;
  22664. + //    MyCaos.PPCSize        =    0;
  22665. +     MyCaos.a1        =(ULONG) library;
  22666. +     MyCaos.caos_Un.Offset    =    (-426);
  22667. +     MyCaos.a6        =(ULONG) SysBase;    
  22668. +     PPCCallOS(&MyCaos);
  22669. + }
  22670. + #define    SuperState()    _SuperState(EXEC_BASE_NAME)
  22671. + static __inline APTR
  22672. + _SuperState(void *SysBase)
  22673. + {
  22674. + struct Caos    MyCaos;
  22675. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22676. + //    MyCaos.M68kStart    =    NULL;
  22677. + //    MyCaos.M68kSize        =    0;
  22678. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22679. + //    MyCaos.PPCStart        =    NULL;
  22680. + //    MyCaos.PPCSize        =    0;
  22681. +     MyCaos.caos_Un.Offset    =    (-150);
  22682. +     MyCaos.a6        =(ULONG) SysBase;    
  22683. +     return((APTR)PPCCallOS(&MyCaos));
  22684. + }
  22685. + #define    Supervisor(userFunction)    _Supervisor(EXEC_BASE_NAME, userFunction)
  22686. + static __inline ULONG
  22687. + _Supervisor(void *SysBase, unsigned long (*userFunction)())
  22688. + {
  22689. + struct Caos    MyCaos;
  22690. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22691. + //    MyCaos.M68kStart    =    NULL;
  22692. + //    MyCaos.M68kSize        =    0;
  22693. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22694. + //    MyCaos.PPCStart        =    NULL;
  22695. + //    MyCaos.PPCSize        =    0;
  22696. +     MyCaos.a5        =(ULONG) userFunction;
  22697. +     MyCaos.caos_Un.Offset    =    (-30);
  22698. +     MyCaos.a6        =(ULONG) SysBase;    
  22699. +     return((ULONG)PPCCallOS(&MyCaos));
  22700. + }
  22701. + #define    TypeOfMem(address)    _TypeOfMem(EXEC_BASE_NAME, address)
  22702. + static __inline ULONG
  22703. + _TypeOfMem(void *SysBase, APTR address)
  22704. + {
  22705. + struct Caos    MyCaos;
  22706. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22707. + //    MyCaos.M68kStart    =    NULL;
  22708. + //    MyCaos.M68kSize        =    0;
  22709. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22710. + //    MyCaos.PPCStart        =    NULL;
  22711. + //    MyCaos.PPCSize        =    0;
  22712. +     MyCaos.a1        =(ULONG) address;
  22713. +     MyCaos.caos_Un.Offset    =    (-534);
  22714. +     MyCaos.a6        =(ULONG) SysBase;    
  22715. +     return((ULONG)PPCCallOS(&MyCaos));
  22716. + }
  22717. + #define    UserState(sysStack)    _UserState(EXEC_BASE_NAME, sysStack)
  22718. + static __inline void
  22719. + _UserState(void *SysBase, APTR sysStack)
  22720. + {
  22721. + struct Caos    MyCaos;
  22722. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22723. + //    MyCaos.M68kStart    =    NULL;
  22724. + //    MyCaos.M68kSize        =    0;
  22725. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22726. + //    MyCaos.PPCStart        =    NULL;
  22727. + //    MyCaos.PPCSize        =    0;
  22728. +     MyCaos.d0        =(ULONG) sysStack;
  22729. +     MyCaos.caos_Un.Offset    =    (-156);
  22730. +     MyCaos.a6        =(ULONG) SysBase;    
  22731. +     PPCCallOS(&MyCaos);
  22732. + }
  22733. + #define    Vacate(sigSem, bidMsg)    _Vacate(EXEC_BASE_NAME, sigSem, bidMsg)
  22734. + static __inline void
  22735. + _Vacate(void *SysBase, struct SignalSemaphore *sigSem, struct SemaphoreMessage *bidMsg)
  22736. + {
  22737. + struct Caos    MyCaos;
  22738. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22739. + //    MyCaos.M68kStart    =    NULL;
  22740. + //    MyCaos.M68kSize        =    0;
  22741. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22742. + //    MyCaos.PPCStart        =    NULL;
  22743. + //    MyCaos.PPCSize        =    0;
  22744. +     MyCaos.a0        =(ULONG) sigSem;
  22745. +     MyCaos.a1        =(ULONG) bidMsg;
  22746. +     MyCaos.caos_Un.Offset    =    (-546);
  22747. +     MyCaos.a6        =(ULONG) SysBase;    
  22748. +     PPCCallOS(&MyCaos);
  22749. + }
  22750. + #define    Wait(signalSet)    _Wait(EXEC_BASE_NAME, signalSet)
  22751. + static __inline ULONG
  22752. + _Wait(void *SysBase, unsigned long signalSet)
  22753. + {
  22754. + struct Caos    MyCaos;
  22755. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22756. + //    MyCaos.M68kStart    =    NULL;
  22757. + //    MyCaos.M68kSize        =    0;
  22758. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22759. + //    MyCaos.PPCStart        =    NULL;
  22760. + //    MyCaos.PPCSize        =    0;
  22761. +     MyCaos.d0        =(ULONG) signalSet;
  22762. +     MyCaos.caos_Un.Offset    =    (-318);
  22763. +     MyCaos.a6        =(ULONG) SysBase;    
  22764. +     return((ULONG)PPCCallOS(&MyCaos));
  22765. + }
  22766. + #define    WaitIO(ioRequest)    _WaitIO(EXEC_BASE_NAME, ioRequest)
  22767. + static __inline BYTE
  22768. + _WaitIO(void *SysBase, struct IORequest *ioRequest)
  22769. + {
  22770. + struct Caos    MyCaos;
  22771. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22772. + //    MyCaos.M68kStart    =    NULL;
  22773. + //    MyCaos.M68kSize        =    0;
  22774. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22775. + //    MyCaos.PPCStart        =    NULL;
  22776. + //    MyCaos.PPCSize        =    0;
  22777. +     MyCaos.a1        =(ULONG) ioRequest;
  22778. +     MyCaos.caos_Un.Offset    =    (-474);
  22779. +     MyCaos.a6        =(ULONG) SysBase;    
  22780. +     return((BYTE)PPCCallOS(&MyCaos));
  22781. + }
  22782. + #define    WaitPort(port)    _WaitPort(EXEC_BASE_NAME, port)
  22783. + static __inline struct Message *
  22784. + _WaitPort(void *SysBase, struct MsgPort *port)
  22785. + {
  22786. + struct Caos    MyCaos;
  22787. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22788. + //    MyCaos.M68kStart    =    NULL;
  22789. + //    MyCaos.M68kSize        =    0;
  22790. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22791. + //    MyCaos.PPCStart        =    NULL;
  22792. + //    MyCaos.PPCSize        =    0;
  22793. +     MyCaos.a0        =(ULONG) port;
  22794. +     MyCaos.caos_Un.Offset    =    (-384);
  22795. +     MyCaos.a6        =(ULONG) SysBase;    
  22796. +     return((struct Message *)PPCCallOS(&MyCaos));
  22797. + }
  22798. + #endif /* SASC Pragmas */
  22799. + #endif /* !_PPCPRAGMA_EXEC_H */
  22800. diff -c2 -d -P -r include_h/powerup/ppcpragmas/expansion_pragmas.h includenew/powerup/ppcpragmas/expansion_pragmas.h
  22801. *** include_h/powerup/ppcpragmas/expansion_pragmas.h    Thu Jan  1 00:00:00 1970
  22802. --- includenew/powerup/ppcpragmas/expansion_pragmas.h    Thu Nov  2 22:27:13 2000
  22803. ***************
  22804. *** 0 ****
  22805. --- 1,420 ----
  22806. + /* Automatically generated header! Do not edit! */
  22807. + #ifndef _PPCPRAGMA_EXPANSION_H
  22808. + #define _PPCPRAGMA_EXPANSION_H
  22809. + #ifdef __GNUC__
  22810. + #ifndef _PPCINLINE__EXPANSION_H
  22811. + #include <powerup/ppcinline/expansion.h>
  22812. + #endif
  22813. + #else
  22814. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  22815. + #include <powerup/ppclib/interface.h>
  22816. + #endif
  22817. + #ifndef POWERUP_GCCLIB_PROTOS_H
  22818. + #include <powerup/gcclib/powerup_protos.h>
  22819. + #endif
  22820. + #ifndef NO_PPCINLINE_STDARG
  22821. + #define NO_PPCINLINE_STDARG
  22822. + #endif/* SAS C PPC inlines */
  22823. + #ifndef EXPANSION_BASE_NAME
  22824. + #define EXPANSION_BASE_NAME ExpansionBase
  22825. + #endif /* !EXPANSION_BASE_NAME */
  22826. + #define    AddBootNode(bootPri, flags, deviceNode, configDev)    _AddBootNode(EXPANSION_BASE_NAME, bootPri, flags, deviceNode, configDev)
  22827. + static __inline BOOL
  22828. + _AddBootNode(void *ExpansionBase, long bootPri, unsigned long flags, struct DeviceNode *deviceNode, struct ConfigDev *configDev)
  22829. + {
  22830. + struct Caos    MyCaos;
  22831. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22832. + //    MyCaos.M68kStart    =    NULL;
  22833. + //    MyCaos.M68kSize        =    0;
  22834. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22835. + //    MyCaos.PPCStart        =    NULL;
  22836. + //    MyCaos.PPCSize        =    0;
  22837. +     MyCaos.d0        =(ULONG) bootPri;
  22838. +     MyCaos.d1        =(ULONG) flags;
  22839. +     MyCaos.a0        =(ULONG) deviceNode;
  22840. +     MyCaos.a1        =(ULONG) configDev;
  22841. +     MyCaos.caos_Un.Offset    =    (-36);
  22842. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22843. +     return((BOOL)PPCCallOS(&MyCaos));
  22844. + }
  22845. + #define    AddConfigDev(configDev)    _AddConfigDev(EXPANSION_BASE_NAME, configDev)
  22846. + static __inline void
  22847. + _AddConfigDev(void *ExpansionBase, struct ConfigDev *configDev)
  22848. + {
  22849. + struct Caos    MyCaos;
  22850. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22851. + //    MyCaos.M68kStart    =    NULL;
  22852. + //    MyCaos.M68kSize        =    0;
  22853. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22854. + //    MyCaos.PPCStart        =    NULL;
  22855. + //    MyCaos.PPCSize        =    0;
  22856. +     MyCaos.a0        =(ULONG) configDev;
  22857. +     MyCaos.caos_Un.Offset    =    (-30);
  22858. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22859. +     PPCCallOS(&MyCaos);
  22860. + }
  22861. + #define    AddDosNode(bootPri, flags, deviceNode)    _AddDosNode(EXPANSION_BASE_NAME, bootPri, flags, deviceNode)
  22862. + static __inline BOOL
  22863. + _AddDosNode(void *ExpansionBase, long bootPri, unsigned long flags, struct DeviceNode *deviceNode)
  22864. + {
  22865. + struct Caos    MyCaos;
  22866. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22867. + //    MyCaos.M68kStart    =    NULL;
  22868. + //    MyCaos.M68kSize        =    0;
  22869. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22870. + //    MyCaos.PPCStart        =    NULL;
  22871. + //    MyCaos.PPCSize        =    0;
  22872. +     MyCaos.d0        =(ULONG) bootPri;
  22873. +     MyCaos.d1        =(ULONG) flags;
  22874. +     MyCaos.a0        =(ULONG) deviceNode;
  22875. +     MyCaos.caos_Un.Offset    =    (-150);
  22876. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22877. +     return((BOOL)PPCCallOS(&MyCaos));
  22878. + }
  22879. + #define    AllocBoardMem(slotSpec)    _AllocBoardMem(EXPANSION_BASE_NAME, slotSpec)
  22880. + static __inline void
  22881. + _AllocBoardMem(void *ExpansionBase, unsigned long slotSpec)
  22882. + {
  22883. + struct Caos    MyCaos;
  22884. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22885. + //    MyCaos.M68kStart    =    NULL;
  22886. + //    MyCaos.M68kSize        =    0;
  22887. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22888. + //    MyCaos.PPCStart        =    NULL;
  22889. + //    MyCaos.PPCSize        =    0;
  22890. +     MyCaos.d0        =(ULONG) slotSpec;
  22891. +     MyCaos.caos_Un.Offset    =    (-42);
  22892. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22893. +     PPCCallOS(&MyCaos);
  22894. + }
  22895. + #define    AllocConfigDev()    _AllocConfigDev(EXPANSION_BASE_NAME)
  22896. + static __inline struct ConfigDev *
  22897. + _AllocConfigDev(void *ExpansionBase)
  22898. + {
  22899. + struct Caos    MyCaos;
  22900. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22901. + //    MyCaos.M68kStart    =    NULL;
  22902. + //    MyCaos.M68kSize        =    0;
  22903. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22904. + //    MyCaos.PPCStart        =    NULL;
  22905. + //    MyCaos.PPCSize        =    0;
  22906. +     MyCaos.caos_Un.Offset    =    (-48);
  22907. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22908. +     return((struct ConfigDev *)PPCCallOS(&MyCaos));
  22909. + }
  22910. + #define    AllocExpansionMem(numSlots, slotAlign)    _AllocExpansionMem(EXPANSION_BASE_NAME, numSlots, slotAlign)
  22911. + static __inline APTR
  22912. + _AllocExpansionMem(void *ExpansionBase, unsigned long numSlots, unsigned long slotAlign)
  22913. + {
  22914. + struct Caos    MyCaos;
  22915. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22916. + //    MyCaos.M68kStart    =    NULL;
  22917. + //    MyCaos.M68kSize        =    0;
  22918. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22919. + //    MyCaos.PPCStart        =    NULL;
  22920. + //    MyCaos.PPCSize        =    0;
  22921. +     MyCaos.d0        =(ULONG) numSlots;
  22922. +     MyCaos.d1        =(ULONG) slotAlign;
  22923. +     MyCaos.caos_Un.Offset    =    (-54);
  22924. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22925. +     return((APTR)PPCCallOS(&MyCaos));
  22926. + }
  22927. + #define    ConfigBoard(board, configDev)    _ConfigBoard(EXPANSION_BASE_NAME, board, configDev)
  22928. + static __inline void
  22929. + _ConfigBoard(void *ExpansionBase, APTR board, struct ConfigDev *configDev)
  22930. + {
  22931. + struct Caos    MyCaos;
  22932. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22933. + //    MyCaos.M68kStart    =    NULL;
  22934. + //    MyCaos.M68kSize        =    0;
  22935. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22936. + //    MyCaos.PPCStart        =    NULL;
  22937. + //    MyCaos.PPCSize        =    0;
  22938. +     MyCaos.a0        =(ULONG) board;
  22939. +     MyCaos.a1        =(ULONG) configDev;
  22940. +     MyCaos.caos_Un.Offset    =    (-60);
  22941. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22942. +     PPCCallOS(&MyCaos);
  22943. + }
  22944. + #define    ConfigChain(baseAddr)    _ConfigChain(EXPANSION_BASE_NAME, baseAddr)
  22945. + static __inline void
  22946. + _ConfigChain(void *ExpansionBase, APTR baseAddr)
  22947. + {
  22948. + struct Caos    MyCaos;
  22949. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22950. + //    MyCaos.M68kStart    =    NULL;
  22951. + //    MyCaos.M68kSize        =    0;
  22952. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22953. + //    MyCaos.PPCStart        =    NULL;
  22954. + //    MyCaos.PPCSize        =    0;
  22955. +     MyCaos.a0        =(ULONG) baseAddr;
  22956. +     MyCaos.caos_Un.Offset    =    (-66);
  22957. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22958. +     PPCCallOS(&MyCaos);
  22959. + }
  22960. + #define    FindConfigDev(oldConfigDev, manufacturer, product)    _FindConfigDev(EXPANSION_BASE_NAME, oldConfigDev, manufacturer, product)
  22961. + static __inline struct ConfigDev *
  22962. + _FindConfigDev(void *ExpansionBase, struct ConfigDev *oldConfigDev, long manufacturer, long product)
  22963. + {
  22964. + struct Caos    MyCaos;
  22965. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22966. + //    MyCaos.M68kStart    =    NULL;
  22967. + //    MyCaos.M68kSize        =    0;
  22968. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22969. + //    MyCaos.PPCStart        =    NULL;
  22970. + //    MyCaos.PPCSize        =    0;
  22971. +     MyCaos.a0        =(ULONG) oldConfigDev;
  22972. +     MyCaos.d0        =(ULONG) manufacturer;
  22973. +     MyCaos.d1        =(ULONG) product;
  22974. +     MyCaos.caos_Un.Offset    =    (-72);
  22975. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22976. +     return((struct ConfigDev *)PPCCallOS(&MyCaos));
  22977. + }
  22978. + #define    FreeBoardMem(startSlot, slotSpec)    _FreeBoardMem(EXPANSION_BASE_NAME, startSlot, slotSpec)
  22979. + static __inline void
  22980. + _FreeBoardMem(void *ExpansionBase, unsigned long startSlot, unsigned long slotSpec)
  22981. + {
  22982. + struct Caos    MyCaos;
  22983. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  22984. + //    MyCaos.M68kStart    =    NULL;
  22985. + //    MyCaos.M68kSize        =    0;
  22986. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  22987. + //    MyCaos.PPCStart        =    NULL;
  22988. + //    MyCaos.PPCSize        =    0;
  22989. +     MyCaos.d0        =(ULONG) startSlot;
  22990. +     MyCaos.d1        =(ULONG) slotSpec;
  22991. +     MyCaos.caos_Un.Offset    =    (-78);
  22992. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  22993. +     PPCCallOS(&MyCaos);
  22994. + }
  22995. + #define    FreeConfigDev(configDev)    _FreeConfigDev(EXPANSION_BASE_NAME, configDev)
  22996. + static __inline void
  22997. + _FreeConfigDev(void *ExpansionBase, struct ConfigDev *configDev)
  22998. + {
  22999. + struct Caos    MyCaos;
  23000. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23001. + //    MyCaos.M68kStart    =    NULL;
  23002. + //    MyCaos.M68kSize        =    0;
  23003. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23004. + //    MyCaos.PPCStart        =    NULL;
  23005. + //    MyCaos.PPCSize        =    0;
  23006. +     MyCaos.a0        =(ULONG) configDev;
  23007. +     MyCaos.caos_Un.Offset    =    (-84);
  23008. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23009. +     PPCCallOS(&MyCaos);
  23010. + }
  23011. + #define    FreeExpansionMem(startSlot, numSlots)    _FreeExpansionMem(EXPANSION_BASE_NAME, startSlot, numSlots)
  23012. + static __inline void
  23013. + _FreeExpansionMem(void *ExpansionBase, unsigned long startSlot, unsigned long numSlots)
  23014. + {
  23015. + struct Caos    MyCaos;
  23016. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23017. + //    MyCaos.M68kStart    =    NULL;
  23018. + //    MyCaos.M68kSize        =    0;
  23019. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23020. + //    MyCaos.PPCStart        =    NULL;
  23021. + //    MyCaos.PPCSize        =    0;
  23022. +     MyCaos.d0        =(ULONG) startSlot;
  23023. +     MyCaos.d1        =(ULONG) numSlots;
  23024. +     MyCaos.caos_Un.Offset    =    (-90);
  23025. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23026. +     PPCCallOS(&MyCaos);
  23027. + }
  23028. + #define    GetCurrentBinding(currentBinding, bindingSize)    _GetCurrentBinding(EXPANSION_BASE_NAME, currentBinding, bindingSize)
  23029. + static __inline ULONG
  23030. + _GetCurrentBinding(void *ExpansionBase, struct CurrentBinding *currentBinding, unsigned long bindingSize)
  23031. + {
  23032. + struct Caos    MyCaos;
  23033. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23034. + //    MyCaos.M68kStart    =    NULL;
  23035. + //    MyCaos.M68kSize        =    0;
  23036. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23037. + //    MyCaos.PPCStart        =    NULL;
  23038. + //    MyCaos.PPCSize        =    0;
  23039. +     MyCaos.a0        =(ULONG) currentBinding;
  23040. +     MyCaos.d0        =(ULONG) bindingSize;
  23041. +     MyCaos.caos_Un.Offset    =    (-138);
  23042. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23043. +     return((ULONG)PPCCallOS(&MyCaos));
  23044. + }
  23045. + #define    MakeDosNode(parmPacket)    _MakeDosNode(EXPANSION_BASE_NAME, parmPacket)
  23046. + static __inline struct DeviceNode *
  23047. + _MakeDosNode(void *ExpansionBase, APTR parmPacket)
  23048. + {
  23049. + struct Caos    MyCaos;
  23050. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23051. + //    MyCaos.M68kStart    =    NULL;
  23052. + //    MyCaos.M68kSize        =    0;
  23053. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23054. + //    MyCaos.PPCStart        =    NULL;
  23055. + //    MyCaos.PPCSize        =    0;
  23056. +     MyCaos.a0        =(ULONG) parmPacket;
  23057. +     MyCaos.caos_Un.Offset    =    (-144);
  23058. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23059. +     return((struct DeviceNode *)PPCCallOS(&MyCaos));
  23060. + }
  23061. + #define    ObtainConfigBinding()    _ObtainConfigBinding(EXPANSION_BASE_NAME)
  23062. + static __inline void
  23063. + _ObtainConfigBinding(void *ExpansionBase)
  23064. + {
  23065. + struct Caos    MyCaos;
  23066. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23067. + //    MyCaos.M68kStart    =    NULL;
  23068. + //    MyCaos.M68kSize        =    0;
  23069. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23070. + //    MyCaos.PPCStart        =    NULL;
  23071. + //    MyCaos.PPCSize        =    0;
  23072. +     MyCaos.caos_Un.Offset    =    (-120);
  23073. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23074. +     PPCCallOS(&MyCaos);
  23075. + }
  23076. + #define    ReadExpansionByte(board, offset)    _ReadExpansionByte(EXPANSION_BASE_NAME, board, offset)
  23077. + static __inline UBYTE
  23078. + _ReadExpansionByte(void *ExpansionBase, APTR board, unsigned long offset)
  23079. + {
  23080. + struct Caos    MyCaos;
  23081. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23082. + //    MyCaos.M68kStart    =    NULL;
  23083. + //    MyCaos.M68kSize        =    0;
  23084. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23085. + //    MyCaos.PPCStart        =    NULL;
  23086. + //    MyCaos.PPCSize        =    0;
  23087. +     MyCaos.a0        =(ULONG) board;
  23088. +     MyCaos.d0        =(ULONG) offset;
  23089. +     MyCaos.caos_Un.Offset    =    (-96);
  23090. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23091. +     return((UBYTE)PPCCallOS(&MyCaos));
  23092. + }
  23093. + #define    ReadExpansionRom(board, configDev)    _ReadExpansionRom(EXPANSION_BASE_NAME, board, configDev)
  23094. + static __inline void
  23095. + _ReadExpansionRom(void *ExpansionBase, APTR board, struct ConfigDev *configDev)
  23096. + {
  23097. + struct Caos    MyCaos;
  23098. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23099. + //    MyCaos.M68kStart    =    NULL;
  23100. + //    MyCaos.M68kSize        =    0;
  23101. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23102. + //    MyCaos.PPCStart        =    NULL;
  23103. + //    MyCaos.PPCSize        =    0;
  23104. +     MyCaos.a0        =(ULONG) board;
  23105. +     MyCaos.a1        =(ULONG) configDev;
  23106. +     MyCaos.caos_Un.Offset    =    (-102);
  23107. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23108. +     PPCCallOS(&MyCaos);
  23109. + }
  23110. + #define    ReleaseConfigBinding()    _ReleaseConfigBinding(EXPANSION_BASE_NAME)
  23111. + static __inline void
  23112. + _ReleaseConfigBinding(void *ExpansionBase)
  23113. + {
  23114. + struct Caos    MyCaos;
  23115. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23116. + //    MyCaos.M68kStart    =    NULL;
  23117. + //    MyCaos.M68kSize        =    0;
  23118. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23119. + //    MyCaos.PPCStart        =    NULL;
  23120. + //    MyCaos.PPCSize        =    0;
  23121. +     MyCaos.caos_Un.Offset    =    (-126);
  23122. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23123. +     PPCCallOS(&MyCaos);
  23124. + }
  23125. + #define    RemConfigDev(configDev)    _RemConfigDev(EXPANSION_BASE_NAME, configDev)
  23126. + static __inline void
  23127. + _RemConfigDev(void *ExpansionBase, struct ConfigDev *configDev)
  23128. + {
  23129. + struct Caos    MyCaos;
  23130. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23131. + //    MyCaos.M68kStart    =    NULL;
  23132. + //    MyCaos.M68kSize        =    0;
  23133. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23134. + //    MyCaos.PPCStart        =    NULL;
  23135. + //    MyCaos.PPCSize        =    0;
  23136. +     MyCaos.a0        =(ULONG) configDev;
  23137. +     MyCaos.caos_Un.Offset    =    (-108);
  23138. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23139. +     PPCCallOS(&MyCaos);
  23140. + }
  23141. + #define    SetCurrentBinding(currentBinding, bindingSize)    _SetCurrentBinding(EXPANSION_BASE_NAME, currentBinding, bindingSize)
  23142. + static __inline void
  23143. + _SetCurrentBinding(void *ExpansionBase, struct CurrentBinding *currentBinding, unsigned long bindingSize)
  23144. + {
  23145. + struct Caos    MyCaos;
  23146. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23147. + //    MyCaos.M68kStart    =    NULL;
  23148. + //    MyCaos.M68kSize        =    0;
  23149. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23150. + //    MyCaos.PPCStart        =    NULL;
  23151. + //    MyCaos.PPCSize        =    0;
  23152. +     MyCaos.a0        =(ULONG) currentBinding;
  23153. +     MyCaos.d0        =(ULONG) bindingSize;
  23154. +     MyCaos.caos_Un.Offset    =    (-132);
  23155. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23156. +     PPCCallOS(&MyCaos);
  23157. + }
  23158. + #define    WriteExpansionByte(board, offset, byte)    _WriteExpansionByte(EXPANSION_BASE_NAME, board, offset, byte)
  23159. + static __inline void
  23160. + _WriteExpansionByte(void *ExpansionBase, APTR board, unsigned long offset, unsigned long byte)
  23161. + {
  23162. + struct Caos    MyCaos;
  23163. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23164. + //    MyCaos.M68kStart    =    NULL;
  23165. + //    MyCaos.M68kSize        =    0;
  23166. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23167. + //    MyCaos.PPCStart        =    NULL;
  23168. + //    MyCaos.PPCSize        =    0;
  23169. +     MyCaos.a0        =(ULONG) board;
  23170. +     MyCaos.d0        =(ULONG) offset;
  23171. +     MyCaos.d1        =(ULONG) byte;
  23172. +     MyCaos.caos_Un.Offset    =    (-114);
  23173. +     MyCaos.a6        =(ULONG) ExpansionBase;    
  23174. +     PPCCallOS(&MyCaos);
  23175. + }
  23176. + #endif /* SASC Pragmas */
  23177. + #endif /* !_PPCPRAGMA_EXPANSION_H */
  23178. diff -c2 -d -P -r include_h/powerup/ppcpragmas/gadtools_pragmas.h includenew/powerup/ppcpragmas/gadtools_pragmas.h
  23179. *** include_h/powerup/ppcpragmas/gadtools_pragmas.h    Thu Jan  1 00:00:00 1970
  23180. --- includenew/powerup/ppcpragmas/gadtools_pragmas.h    Thu Nov  2 22:27:14 2000
  23181. ***************
  23182. *** 0 ****
  23183. --- 1,432 ----
  23184. + /* Automatically generated header! Do not edit! */
  23185. + #ifndef _PPCPRAGMA_GADTOOLS_H
  23186. + #define _PPCPRAGMA_GADTOOLS_H
  23187. + #ifdef __GNUC__
  23188. + #ifndef _PPCINLINE__GADTOOLS_H
  23189. + #include <powerup/ppcinline/gadtools.h>
  23190. + #endif
  23191. + #else
  23192. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  23193. + #include <powerup/ppclib/interface.h>
  23194. + #endif
  23195. + #ifndef POWERUP_GCCLIB_PROTOS_H
  23196. + #include <powerup/gcclib/powerup_protos.h>
  23197. + #endif
  23198. + #ifndef NO_PPCINLINE_STDARG
  23199. + #define NO_PPCINLINE_STDARG
  23200. + #endif/* SAS C PPC inlines */
  23201. + #ifndef GADTOOLS_BASE_NAME
  23202. + #define GADTOOLS_BASE_NAME GadToolsBase
  23203. + #endif /* !GADTOOLS_BASE_NAME */
  23204. + #define    CreateContext(glistptr)    _CreateContext(GADTOOLS_BASE_NAME, glistptr)
  23205. + static __inline struct Gadget *
  23206. + _CreateContext(void *GadToolsBase, struct Gadget **glistptr)
  23207. + {
  23208. + struct Caos    MyCaos;
  23209. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23210. + //    MyCaos.M68kStart    =    NULL;
  23211. + //    MyCaos.M68kSize        =    0;
  23212. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23213. + //    MyCaos.PPCStart        =    NULL;
  23214. + //    MyCaos.PPCSize        =    0;
  23215. +     MyCaos.a0        =(ULONG) glistptr;
  23216. +     MyCaos.caos_Un.Offset    =    (-114);
  23217. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23218. +     return((struct Gadget *)PPCCallOS(&MyCaos));
  23219. + }
  23220. + #define    CreateGadgetA(kind, gad, ng, taglist)    _CreateGadgetA(GADTOOLS_BASE_NAME, kind, gad, ng, taglist)
  23221. + static __inline struct Gadget *
  23222. + _CreateGadgetA(void *GadToolsBase, unsigned long kind, struct Gadget *gad, struct NewGadget *ng, struct TagItem *taglist)
  23223. + {
  23224. + struct Caos    MyCaos;
  23225. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23226. + //    MyCaos.M68kStart    =    NULL;
  23227. + //    MyCaos.M68kSize        =    0;
  23228. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23229. + //    MyCaos.PPCStart        =    NULL;
  23230. + //    MyCaos.PPCSize        =    0;
  23231. +     MyCaos.d0        =(ULONG) kind;
  23232. +     MyCaos.a0        =(ULONG) gad;
  23233. +     MyCaos.a1        =(ULONG) ng;
  23234. +     MyCaos.a2        =(ULONG) taglist;
  23235. +     MyCaos.caos_Un.Offset    =    (-30);
  23236. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23237. +     return((struct Gadget *)PPCCallOS(&MyCaos));
  23238. + }
  23239. + #ifndef NO_PPCINLINE_STDARG
  23240. + #define CreateGadget(a0, a1, a2, tags...) \
  23241. +     ({ULONG _tags[] = { tags }; CreateGadgetA((a0), (a1), (a2), (struct TagItem *)_tags);})
  23242. + #endif /* !NO_PPCINLINE_STDARG */
  23243. + #define    CreateMenusA(newmenu, taglist)    _CreateMenusA(GADTOOLS_BASE_NAME, newmenu, taglist)
  23244. + static __inline struct Menu *
  23245. + _CreateMenusA(void *GadToolsBase, struct NewMenu *newmenu, struct TagItem *taglist)
  23246. + {
  23247. + struct Caos    MyCaos;
  23248. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23249. + //    MyCaos.M68kStart    =    NULL;
  23250. + //    MyCaos.M68kSize        =    0;
  23251. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23252. + //    MyCaos.PPCStart        =    NULL;
  23253. + //    MyCaos.PPCSize        =    0;
  23254. +     MyCaos.a0        =(ULONG) newmenu;
  23255. +     MyCaos.a1        =(ULONG) taglist;
  23256. +     MyCaos.caos_Un.Offset    =    (-48);
  23257. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23258. +     return((struct Menu *)PPCCallOS(&MyCaos));
  23259. + }
  23260. + #ifndef NO_PPCINLINE_STDARG
  23261. + #define CreateMenus(a0, tags...) \
  23262. +     ({ULONG _tags[] = { tags }; CreateMenusA((a0), (struct TagItem *)_tags);})
  23263. + #endif /* !NO_PPCINLINE_STDARG */
  23264. + #define    DrawBevelBoxA(rport, left, top, width, height, taglist)    _DrawBevelBoxA(GADTOOLS_BASE_NAME, rport, left, top, width, height, taglist)
  23265. + static __inline void
  23266. + _DrawBevelBoxA(void *GadToolsBase, struct RastPort *rport, long left, long top, long width, long height, struct TagItem *taglist)
  23267. + {
  23268. + struct Caos    MyCaos;
  23269. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23270. + //    MyCaos.M68kStart    =    NULL;
  23271. + //    MyCaos.M68kSize        =    0;
  23272. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23273. + //    MyCaos.PPCStart        =    NULL;
  23274. + //    MyCaos.PPCSize        =    0;
  23275. +     MyCaos.a0        =(ULONG) rport;
  23276. +     MyCaos.d0        =(ULONG) left;
  23277. +     MyCaos.d1        =(ULONG) top;
  23278. +     MyCaos.d2        =(ULONG) width;
  23279. +     MyCaos.d3        =(ULONG) height;
  23280. +     MyCaos.a1        =(ULONG) taglist;
  23281. +     MyCaos.caos_Un.Offset    =    (-120);
  23282. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23283. +     PPCCallOS(&MyCaos);
  23284. + }
  23285. + #ifndef NO_PPCINLINE_STDARG
  23286. + #define DrawBevelBox(a0, a1, a2, a3, a4, tags...) \
  23287. +     ({ULONG _tags[] = { tags }; DrawBevelBoxA((a0), (a1), (a2), (a3), (a4), (struct TagItem *)_tags);})
  23288. + #endif /* !NO_PPCINLINE_STDARG */
  23289. + #define    FreeGadgets(gad)    _FreeGadgets(GADTOOLS_BASE_NAME, gad)
  23290. + static __inline void
  23291. + _FreeGadgets(void *GadToolsBase, struct Gadget *gad)
  23292. + {
  23293. + struct Caos    MyCaos;
  23294. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23295. + //    MyCaos.M68kStart    =    NULL;
  23296. + //    MyCaos.M68kSize        =    0;
  23297. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23298. + //    MyCaos.PPCStart        =    NULL;
  23299. + //    MyCaos.PPCSize        =    0;
  23300. +     MyCaos.a0        =(ULONG) gad;
  23301. +     MyCaos.caos_Un.Offset    =    (-36);
  23302. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23303. +     PPCCallOS(&MyCaos);
  23304. + }
  23305. + #define    FreeMenus(menu)    _FreeMenus(GADTOOLS_BASE_NAME, menu)
  23306. + static __inline void
  23307. + _FreeMenus(void *GadToolsBase, struct Menu *menu)
  23308. + {
  23309. + struct Caos    MyCaos;
  23310. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23311. + //    MyCaos.M68kStart    =    NULL;
  23312. + //    MyCaos.M68kSize        =    0;
  23313. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23314. + //    MyCaos.PPCStart        =    NULL;
  23315. + //    MyCaos.PPCSize        =    0;
  23316. +     MyCaos.a0        =(ULONG) menu;
  23317. +     MyCaos.caos_Un.Offset    =    (-54);
  23318. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23319. +     PPCCallOS(&MyCaos);
  23320. + }
  23321. + #define    FreeVisualInfo(vi)    _FreeVisualInfo(GADTOOLS_BASE_NAME, vi)
  23322. + static __inline void
  23323. + _FreeVisualInfo(void *GadToolsBase, APTR vi)
  23324. + {
  23325. + struct Caos    MyCaos;
  23326. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23327. + //    MyCaos.M68kStart    =    NULL;
  23328. + //    MyCaos.M68kSize        =    0;
  23329. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23330. + //    MyCaos.PPCStart        =    NULL;
  23331. + //    MyCaos.PPCSize        =    0;
  23332. +     MyCaos.a0        =(ULONG) vi;
  23333. +     MyCaos.caos_Un.Offset    =    (-132);
  23334. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23335. +     PPCCallOS(&MyCaos);
  23336. + }
  23337. + #define    GT_BeginRefresh(win)    _GT_BeginRefresh(GADTOOLS_BASE_NAME, win)
  23338. + static __inline void
  23339. + _GT_BeginRefresh(void *GadToolsBase, struct Window *win)
  23340. + {
  23341. + struct Caos    MyCaos;
  23342. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23343. + //    MyCaos.M68kStart    =    NULL;
  23344. + //    MyCaos.M68kSize        =    0;
  23345. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23346. + //    MyCaos.PPCStart        =    NULL;
  23347. + //    MyCaos.PPCSize        =    0;
  23348. +     MyCaos.a0        =(ULONG) win;
  23349. +     MyCaos.caos_Un.Offset    =    (-90);
  23350. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23351. +     PPCCallOS(&MyCaos);
  23352. + }
  23353. + #define    GT_EndRefresh(win, complete)    _GT_EndRefresh(GADTOOLS_BASE_NAME, win, complete)
  23354. + static __inline void
  23355. + _GT_EndRefresh(void *GadToolsBase, struct Window *win, long complete)
  23356. + {
  23357. + struct Caos    MyCaos;
  23358. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23359. + //    MyCaos.M68kStart    =    NULL;
  23360. + //    MyCaos.M68kSize        =    0;
  23361. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23362. + //    MyCaos.PPCStart        =    NULL;
  23363. + //    MyCaos.PPCSize        =    0;
  23364. +     MyCaos.a0        =(ULONG) win;
  23365. +     MyCaos.d0        =(ULONG) complete;
  23366. +     MyCaos.caos_Un.Offset    =    (-96);
  23367. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23368. +     PPCCallOS(&MyCaos);
  23369. + }
  23370. + #define    GT_FilterIMsg(imsg)    _GT_FilterIMsg(GADTOOLS_BASE_NAME, imsg)
  23371. + static __inline struct IntuiMessage *
  23372. + _GT_FilterIMsg(void *GadToolsBase, struct IntuiMessage *imsg)
  23373. + {
  23374. + struct Caos    MyCaos;
  23375. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23376. + //    MyCaos.M68kStart    =    NULL;
  23377. + //    MyCaos.M68kSize        =    0;
  23378. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23379. + //    MyCaos.PPCStart        =    NULL;
  23380. + //    MyCaos.PPCSize        =    0;
  23381. +     MyCaos.a1        =(ULONG) imsg;
  23382. +     MyCaos.caos_Un.Offset    =    (-102);
  23383. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23384. +     return((struct IntuiMessage *)PPCCallOS(&MyCaos));
  23385. + }
  23386. + #define    GT_GetGadgetAttrsA(gad, win, req, taglist)    _GT_GetGadgetAttrsA(GADTOOLS_BASE_NAME, gad, win, req, taglist)
  23387. + static __inline LONG
  23388. + _GT_GetGadgetAttrsA(void *GadToolsBase, struct Gadget *gad, struct Window *win, struct Requester *req, struct TagItem *taglist)
  23389. + {
  23390. + struct Caos    MyCaos;
  23391. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23392. + //    MyCaos.M68kStart    =    NULL;
  23393. + //    MyCaos.M68kSize        =    0;
  23394. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23395. + //    MyCaos.PPCStart        =    NULL;
  23396. + //    MyCaos.PPCSize        =    0;
  23397. +     MyCaos.a0        =(ULONG) gad;
  23398. +     MyCaos.a1        =(ULONG) win;
  23399. +     MyCaos.a2        =(ULONG) req;
  23400. +     MyCaos.a3        =(ULONG) taglist;
  23401. +     MyCaos.caos_Un.Offset    =    (-174);
  23402. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23403. +     return((LONG)PPCCallOS(&MyCaos));
  23404. + }
  23405. + #ifndef NO_PPCINLINE_STDARG
  23406. + #define GT_GetGadgetAttrs(a0, a1, a2, tags...) \
  23407. +     ({ULONG _tags[] = { tags }; GT_GetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  23408. + #endif /* !NO_PPCINLINE_STDARG */
  23409. + #define    GT_GetIMsg(iport)    _GT_GetIMsg(GADTOOLS_BASE_NAME, iport)
  23410. + static __inline struct IntuiMessage *
  23411. + _GT_GetIMsg(void *GadToolsBase, struct MsgPort *iport)
  23412. + {
  23413. + struct Caos    MyCaos;
  23414. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23415. + //    MyCaos.M68kStart    =    NULL;
  23416. + //    MyCaos.M68kSize        =    0;
  23417. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23418. + //    MyCaos.PPCStart        =    NULL;
  23419. + //    MyCaos.PPCSize        =    0;
  23420. +     MyCaos.a0        =(ULONG) iport;
  23421. +     MyCaos.caos_Un.Offset    =    (-72);
  23422. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23423. +     return((struct IntuiMessage *)PPCCallOS(&MyCaos));
  23424. + }
  23425. + #define    GT_PostFilterIMsg(imsg)    _GT_PostFilterIMsg(GADTOOLS_BASE_NAME, imsg)
  23426. + static __inline struct IntuiMessage *
  23427. + _GT_PostFilterIMsg(void *GadToolsBase, struct IntuiMessage *imsg)
  23428. + {
  23429. + struct Caos    MyCaos;
  23430. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23431. + //    MyCaos.M68kStart    =    NULL;
  23432. + //    MyCaos.M68kSize        =    0;
  23433. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23434. + //    MyCaos.PPCStart        =    NULL;
  23435. + //    MyCaos.PPCSize        =    0;
  23436. +     MyCaos.a1        =(ULONG) imsg;
  23437. +     MyCaos.caos_Un.Offset    =    (-108);
  23438. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23439. +     return((struct IntuiMessage *)PPCCallOS(&MyCaos));
  23440. + }
  23441. + #define    GT_RefreshWindow(win, req)    _GT_RefreshWindow(GADTOOLS_BASE_NAME, win, req)
  23442. + static __inline void
  23443. + _GT_RefreshWindow(void *GadToolsBase, struct Window *win, struct Requester *req)
  23444. + {
  23445. + struct Caos    MyCaos;
  23446. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23447. + //    MyCaos.M68kStart    =    NULL;
  23448. + //    MyCaos.M68kSize        =    0;
  23449. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23450. + //    MyCaos.PPCStart        =    NULL;
  23451. + //    MyCaos.PPCSize        =    0;
  23452. +     MyCaos.a0        =(ULONG) win;
  23453. +     MyCaos.a1        =(ULONG) req;
  23454. +     MyCaos.caos_Un.Offset    =    (-84);
  23455. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23456. +     PPCCallOS(&MyCaos);
  23457. + }
  23458. + #define    GT_ReplyIMsg(imsg)    _GT_ReplyIMsg(GADTOOLS_BASE_NAME, imsg)
  23459. + static __inline void
  23460. + _GT_ReplyIMsg(void *GadToolsBase, struct IntuiMessage *imsg)
  23461. + {
  23462. + struct Caos    MyCaos;
  23463. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23464. + //    MyCaos.M68kStart    =    NULL;
  23465. + //    MyCaos.M68kSize        =    0;
  23466. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23467. + //    MyCaos.PPCStart        =    NULL;
  23468. + //    MyCaos.PPCSize        =    0;
  23469. +     MyCaos.a1        =(ULONG) imsg;
  23470. +     MyCaos.caos_Un.Offset    =    (-78);
  23471. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23472. +     PPCCallOS(&MyCaos);
  23473. + }
  23474. + #define    GT_SetGadgetAttrsA(gad, win, req, taglist)    _GT_SetGadgetAttrsA(GADTOOLS_BASE_NAME, gad, win, req, taglist)
  23475. + static __inline void
  23476. + _GT_SetGadgetAttrsA(void *GadToolsBase, struct Gadget *gad, struct Window *win, struct Requester *req, struct TagItem *taglist)
  23477. + {
  23478. + struct Caos    MyCaos;
  23479. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23480. + //    MyCaos.M68kStart    =    NULL;
  23481. + //    MyCaos.M68kSize        =    0;
  23482. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23483. + //    MyCaos.PPCStart        =    NULL;
  23484. + //    MyCaos.PPCSize        =    0;
  23485. +     MyCaos.a0        =(ULONG) gad;
  23486. +     MyCaos.a1        =(ULONG) win;
  23487. +     MyCaos.a2        =(ULONG) req;
  23488. +     MyCaos.a3        =(ULONG) taglist;
  23489. +     MyCaos.caos_Un.Offset    =    (-42);
  23490. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23491. +     PPCCallOS(&MyCaos);
  23492. + }
  23493. + #ifndef NO_PPCINLINE_STDARG
  23494. + #define GT_SetGadgetAttrs(a0, a1, a2, tags...) \
  23495. +     ({ULONG _tags[] = { tags }; GT_SetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  23496. + #endif /* !NO_PPCINLINE_STDARG */
  23497. + #define    GetVisualInfoA(screen, taglist)    _GetVisualInfoA(GADTOOLS_BASE_NAME, screen, taglist)
  23498. + static __inline APTR
  23499. + _GetVisualInfoA(void *GadToolsBase, struct Screen *screen, struct TagItem *taglist)
  23500. + {
  23501. + struct Caos    MyCaos;
  23502. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23503. + //    MyCaos.M68kStart    =    NULL;
  23504. + //    MyCaos.M68kSize        =    0;
  23505. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23506. + //    MyCaos.PPCStart        =    NULL;
  23507. + //    MyCaos.PPCSize        =    0;
  23508. +     MyCaos.a0        =(ULONG) screen;
  23509. +     MyCaos.a1        =(ULONG) taglist;
  23510. +     MyCaos.caos_Un.Offset    =    (-126);
  23511. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23512. +     return((APTR)PPCCallOS(&MyCaos));
  23513. + }
  23514. + #ifndef NO_PPCINLINE_STDARG
  23515. + #define GetVisualInfo(a0, tags...) \
  23516. +     ({ULONG _tags[] = { tags }; GetVisualInfoA((a0), (struct TagItem *)_tags);})
  23517. + #endif /* !NO_PPCINLINE_STDARG */
  23518. + #define    LayoutMenuItemsA(firstitem, vi, taglist)    _LayoutMenuItemsA(GADTOOLS_BASE_NAME, firstitem, vi, taglist)
  23519. + static __inline BOOL
  23520. + _LayoutMenuItemsA(void *GadToolsBase, struct MenuItem *firstitem, APTR vi, struct TagItem *taglist)
  23521. + {
  23522. + struct Caos    MyCaos;
  23523. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23524. + //    MyCaos.M68kStart    =    NULL;
  23525. + //    MyCaos.M68kSize        =    0;
  23526. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23527. + //    MyCaos.PPCStart        =    NULL;
  23528. + //    MyCaos.PPCSize        =    0;
  23529. +     MyCaos.a0        =(ULONG) firstitem;
  23530. +     MyCaos.a1        =(ULONG) vi;
  23531. +     MyCaos.a2        =(ULONG) taglist;
  23532. +     MyCaos.caos_Un.Offset    =    (-60);
  23533. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23534. +     return((BOOL)PPCCallOS(&MyCaos));
  23535. + }
  23536. + #ifndef NO_PPCINLINE_STDARG
  23537. + #define LayoutMenuItems(a0, a1, tags...) \
  23538. +     ({ULONG _tags[] = { tags }; LayoutMenuItemsA((a0), (a1), (struct TagItem *)_tags);})
  23539. + #endif /* !NO_PPCINLINE_STDARG */
  23540. + #define    LayoutMenusA(firstmenu, vi, taglist)    _LayoutMenusA(GADTOOLS_BASE_NAME, firstmenu, vi, taglist)
  23541. + static __inline BOOL
  23542. + _LayoutMenusA(void *GadToolsBase, struct Menu *firstmenu, APTR vi, struct TagItem *taglist)
  23543. + {
  23544. + struct Caos    MyCaos;
  23545. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23546. + //    MyCaos.M68kStart    =    NULL;
  23547. + //    MyCaos.M68kSize        =    0;
  23548. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23549. + //    MyCaos.PPCStart        =    NULL;
  23550. + //    MyCaos.PPCSize        =    0;
  23551. +     MyCaos.a0        =(ULONG) firstmenu;
  23552. +     MyCaos.a1        =(ULONG) vi;
  23553. +     MyCaos.a2        =(ULONG) taglist;
  23554. +     MyCaos.caos_Un.Offset    =    (-66);
  23555. +     MyCaos.a6        =(ULONG) GadToolsBase;    
  23556. +     return((BOOL)PPCCallOS(&MyCaos));
  23557. + }
  23558. + #ifndef NO_PPCINLINE_STDARG
  23559. + #define LayoutMenus(a0, a1, tags...) \
  23560. +     ({ULONG _tags[] = { tags }; LayoutMenusA((a0), (a1), (struct TagItem *)_tags);})
  23561. + #endif /* !NO_PPCINLINE_STDARG */
  23562. + #endif /* SASC Pragmas */
  23563. + #endif /* !_PPCPRAGMA_GADTOOLS_H */
  23564. diff -c2 -d -P -r include_h/powerup/ppcpragmas/graphics_pragmas.h includenew/powerup/ppcpragmas/graphics_pragmas.h
  23565. *** include_h/powerup/ppcpragmas/graphics_pragmas.h    Thu Jan  1 00:00:00 1970
  23566. --- includenew/powerup/ppcpragmas/graphics_pragmas.h    Thu Nov  2 22:27:14 2000
  23567. ***************
  23568. *** 0 ****
  23569. --- 1,3270 ----
  23570. + /* Automatically generated header! Do not edit! */
  23571. + #ifndef _PPCPRAGMA_GRAPHICS_H
  23572. + #define _PPCPRAGMA_GRAPHICS_H
  23573. + #ifdef __GNUC__
  23574. + #ifndef _PPCINLINE__GRAPHICS_H
  23575. + #include <powerup/ppcinline/graphics.h>
  23576. + #endif
  23577. + #else
  23578. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  23579. + #include <powerup/ppclib/interface.h>
  23580. + #endif
  23581. + #ifndef POWERUP_GCCLIB_PROTOS_H
  23582. + #include <powerup/gcclib/powerup_protos.h>
  23583. + #endif
  23584. + #ifndef NO_PPCINLINE_STDARG
  23585. + #define NO_PPCINLINE_STDARG
  23586. + #endif/* SAS C PPC inlines */
  23587. + #ifndef GRAPHICS_BASE_NAME
  23588. + #define GRAPHICS_BASE_NAME GfxBase
  23589. + #endif /* !GRAPHICS_BASE_NAME */
  23590. + #define    AddAnimOb(anOb, anKey, rp)    _AddAnimOb(GRAPHICS_BASE_NAME, anOb, anKey, rp)
  23591. + static __inline void
  23592. + _AddAnimOb(void *GfxBase, struct AnimOb *anOb, struct AnimOb **anKey, struct RastPort *rp)
  23593. + {
  23594. + struct Caos    MyCaos;
  23595. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23596. + //    MyCaos.M68kStart    =    NULL;
  23597. + //    MyCaos.M68kSize        =    0;
  23598. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23599. + //    MyCaos.PPCStart        =    NULL;
  23600. + //    MyCaos.PPCSize        =    0;
  23601. +     MyCaos.a0        =(ULONG) anOb;
  23602. +     MyCaos.a1        =(ULONG) anKey;
  23603. +     MyCaos.a2        =(ULONG) rp;
  23604. +     MyCaos.caos_Un.Offset    =    (-156);
  23605. +     MyCaos.a6        =(ULONG) GfxBase;    
  23606. +     PPCCallOS(&MyCaos);
  23607. + }
  23608. + #define    AddBob(bob, rp)    _AddBob(GRAPHICS_BASE_NAME, bob, rp)
  23609. + static __inline void
  23610. + _AddBob(void *GfxBase, struct Bob *bob, struct RastPort *rp)
  23611. + {
  23612. + struct Caos    MyCaos;
  23613. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23614. + //    MyCaos.M68kStart    =    NULL;
  23615. + //    MyCaos.M68kSize        =    0;
  23616. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23617. + //    MyCaos.PPCStart        =    NULL;
  23618. + //    MyCaos.PPCSize        =    0;
  23619. +     MyCaos.a0        =(ULONG) bob;
  23620. +     MyCaos.a1        =(ULONG) rp;
  23621. +     MyCaos.caos_Un.Offset    =    (-96);
  23622. +     MyCaos.a6        =(ULONG) GfxBase;    
  23623. +     PPCCallOS(&MyCaos);
  23624. + }
  23625. + #define    AddFont(textFont)    _AddFont(GRAPHICS_BASE_NAME, textFont)
  23626. + static __inline void
  23627. + _AddFont(void *GfxBase, struct TextFont *textFont)
  23628. + {
  23629. + struct Caos    MyCaos;
  23630. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23631. + //    MyCaos.M68kStart    =    NULL;
  23632. + //    MyCaos.M68kSize        =    0;
  23633. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23634. + //    MyCaos.PPCStart        =    NULL;
  23635. + //    MyCaos.PPCSize        =    0;
  23636. +     MyCaos.a1        =(ULONG) textFont;
  23637. +     MyCaos.caos_Un.Offset    =    (-480);
  23638. +     MyCaos.a6        =(ULONG) GfxBase;    
  23639. +     PPCCallOS(&MyCaos);
  23640. + }
  23641. + #define    AddVSprite(vSprite, rp)    _AddVSprite(GRAPHICS_BASE_NAME, vSprite, rp)
  23642. + static __inline void
  23643. + _AddVSprite(void *GfxBase, struct VSprite *vSprite, struct RastPort *rp)
  23644. + {
  23645. + struct Caos    MyCaos;
  23646. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23647. + //    MyCaos.M68kStart    =    NULL;
  23648. + //    MyCaos.M68kSize        =    0;
  23649. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23650. + //    MyCaos.PPCStart        =    NULL;
  23651. + //    MyCaos.PPCSize        =    0;
  23652. +     MyCaos.a0        =(ULONG) vSprite;
  23653. +     MyCaos.a1        =(ULONG) rp;
  23654. +     MyCaos.caos_Un.Offset    =    (-102);
  23655. +     MyCaos.a6        =(ULONG) GfxBase;    
  23656. +     PPCCallOS(&MyCaos);
  23657. + }
  23658. + #define    AllocBitMap(sizex, sizey, depth, flags, friend_bitmap)    _AllocBitMap(GRAPHICS_BASE_NAME, sizex, sizey, depth, flags, friend_bitmap)
  23659. + static __inline struct BitMap *
  23660. + _AllocBitMap(void *GfxBase, unsigned long sizex, unsigned long sizey, unsigned long depth, unsigned long flags, struct BitMap *friend_bitmap)
  23661. + {
  23662. + struct Caos    MyCaos;
  23663. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23664. + //    MyCaos.M68kStart    =    NULL;
  23665. + //    MyCaos.M68kSize        =    0;
  23666. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23667. + //    MyCaos.PPCStart        =    NULL;
  23668. + //    MyCaos.PPCSize        =    0;
  23669. +     MyCaos.d0        =(ULONG) sizex;
  23670. +     MyCaos.d1        =(ULONG) sizey;
  23671. +     MyCaos.d2        =(ULONG) depth;
  23672. +     MyCaos.d3        =(ULONG) flags;
  23673. +     MyCaos.a0        =(ULONG) friend_bitmap;
  23674. +     MyCaos.caos_Un.Offset    =    (-918);
  23675. +     MyCaos.a6        =(ULONG) GfxBase;    
  23676. +     return((struct BitMap *)PPCCallOS(&MyCaos));
  23677. + }
  23678. + #define    AllocDBufInfo(vp)    _AllocDBufInfo(GRAPHICS_BASE_NAME, vp)
  23679. + static __inline struct DBufInfo *
  23680. + _AllocDBufInfo(void *GfxBase, struct ViewPort *vp)
  23681. + {
  23682. + struct Caos    MyCaos;
  23683. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23684. + //    MyCaos.M68kStart    =    NULL;
  23685. + //    MyCaos.M68kSize        =    0;
  23686. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23687. + //    MyCaos.PPCStart        =    NULL;
  23688. + //    MyCaos.PPCSize        =    0;
  23689. +     MyCaos.a0        =(ULONG) vp;
  23690. +     MyCaos.caos_Un.Offset    =    (-966);
  23691. +     MyCaos.a6        =(ULONG) GfxBase;    
  23692. +     return((struct DBufInfo *)PPCCallOS(&MyCaos));
  23693. + }
  23694. + #define    AllocRaster(width, height)    _AllocRaster(GRAPHICS_BASE_NAME, width, height)
  23695. + static __inline PLANEPTR
  23696. + _AllocRaster(void *GfxBase, unsigned long width, unsigned long height)
  23697. + {
  23698. + struct Caos    MyCaos;
  23699. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23700. + //    MyCaos.M68kStart    =    NULL;
  23701. + //    MyCaos.M68kSize        =    0;
  23702. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23703. + //    MyCaos.PPCStart        =    NULL;
  23704. + //    MyCaos.PPCSize        =    0;
  23705. +     MyCaos.d0        =(ULONG) width;
  23706. +     MyCaos.d1        =(ULONG) height;
  23707. +     MyCaos.caos_Un.Offset    =    (-492);
  23708. +     MyCaos.a6        =(ULONG) GfxBase;    
  23709. +     return((PLANEPTR)PPCCallOS(&MyCaos));
  23710. + }
  23711. + #define    AllocSpriteDataA(bm, tags)    _AllocSpriteDataA(GRAPHICS_BASE_NAME, bm, tags)
  23712. + static __inline struct ExtSprite *
  23713. + _AllocSpriteDataA(void *GfxBase, struct BitMap *bm, struct TagItem *tags)
  23714. + {
  23715. + struct Caos    MyCaos;
  23716. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23717. + //    MyCaos.M68kStart    =    NULL;
  23718. + //    MyCaos.M68kSize        =    0;
  23719. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23720. + //    MyCaos.PPCStart        =    NULL;
  23721. + //    MyCaos.PPCSize        =    0;
  23722. +     MyCaos.a2        =(ULONG) bm;
  23723. +     MyCaos.a1        =(ULONG) tags;
  23724. +     MyCaos.caos_Un.Offset    =    (-1020);
  23725. +     MyCaos.a6        =(ULONG) GfxBase;    
  23726. +     return((struct ExtSprite *)PPCCallOS(&MyCaos));
  23727. + }
  23728. + #ifndef NO_PPCINLINE_STDARG
  23729. + #define AllocSpriteData(a0, tags...) \
  23730. +     ({ULONG _tags[] = { tags }; AllocSpriteDataA((a0), (struct TagItem *)_tags);})
  23731. + #endif /* !NO_PPCINLINE_STDARG */
  23732. + #define    AndRectRegion(region, rectangle)    _AndRectRegion(GRAPHICS_BASE_NAME, region, rectangle)
  23733. + static __inline void
  23734. + _AndRectRegion(void *GfxBase, struct Region *region, struct Rectangle *rectangle)
  23735. + {
  23736. + struct Caos    MyCaos;
  23737. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23738. + //    MyCaos.M68kStart    =    NULL;
  23739. + //    MyCaos.M68kSize        =    0;
  23740. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23741. + //    MyCaos.PPCStart        =    NULL;
  23742. + //    MyCaos.PPCSize        =    0;
  23743. +     MyCaos.a0        =(ULONG) region;
  23744. +     MyCaos.a1        =(ULONG) rectangle;
  23745. +     MyCaos.caos_Un.Offset    =    (-504);
  23746. +     MyCaos.a6        =(ULONG) GfxBase;    
  23747. +     PPCCallOS(&MyCaos);
  23748. + }
  23749. + #define    AndRegionRegion(srcRegion, destRegion)    _AndRegionRegion(GRAPHICS_BASE_NAME, srcRegion, destRegion)
  23750. + static __inline BOOL
  23751. + _AndRegionRegion(void *GfxBase, struct Region *srcRegion, struct Region *destRegion)
  23752. + {
  23753. + struct Caos    MyCaos;
  23754. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23755. + //    MyCaos.M68kStart    =    NULL;
  23756. + //    MyCaos.M68kSize        =    0;
  23757. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23758. + //    MyCaos.PPCStart        =    NULL;
  23759. + //    MyCaos.PPCSize        =    0;
  23760. +     MyCaos.a0        =(ULONG) srcRegion;
  23761. +     MyCaos.a1        =(ULONG) destRegion;
  23762. +     MyCaos.caos_Un.Offset    =    (-624);
  23763. +     MyCaos.a6        =(ULONG) GfxBase;    
  23764. +     return((BOOL)PPCCallOS(&MyCaos));
  23765. + }
  23766. + #define    Animate(anKey, rp)    _Animate(GRAPHICS_BASE_NAME, anKey, rp)
  23767. + static __inline void
  23768. + _Animate(void *GfxBase, struct AnimOb **anKey, struct RastPort *rp)
  23769. + {
  23770. + struct Caos    MyCaos;
  23771. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23772. + //    MyCaos.M68kStart    =    NULL;
  23773. + //    MyCaos.M68kSize        =    0;
  23774. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23775. + //    MyCaos.PPCStart        =    NULL;
  23776. + //    MyCaos.PPCSize        =    0;
  23777. +     MyCaos.a0        =(ULONG) anKey;
  23778. +     MyCaos.a1        =(ULONG) rp;
  23779. +     MyCaos.caos_Un.Offset    =    (-162);
  23780. +     MyCaos.a6        =(ULONG) GfxBase;    
  23781. +     PPCCallOS(&MyCaos);
  23782. + }
  23783. + #define    AreaDraw(rp, x, y)    _AreaDraw(GRAPHICS_BASE_NAME, rp, x, y)
  23784. + static __inline LONG
  23785. + _AreaDraw(void *GfxBase, struct RastPort *rp, long x, long y)
  23786. + {
  23787. + struct Caos    MyCaos;
  23788. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23789. + //    MyCaos.M68kStart    =    NULL;
  23790. + //    MyCaos.M68kSize        =    0;
  23791. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23792. + //    MyCaos.PPCStart        =    NULL;
  23793. + //    MyCaos.PPCSize        =    0;
  23794. +     MyCaos.a1        =(ULONG) rp;
  23795. +     MyCaos.d0        =(ULONG) x;
  23796. +     MyCaos.d1        =(ULONG) y;
  23797. +     MyCaos.caos_Un.Offset    =    (-258);
  23798. +     MyCaos.a6        =(ULONG) GfxBase;    
  23799. +     return((LONG)PPCCallOS(&MyCaos));
  23800. + }
  23801. + #define    AreaEllipse(rp, xCenter, yCenter, a, b)    _AreaEllipse(GRAPHICS_BASE_NAME, rp, xCenter, yCenter, a, b)
  23802. + static __inline LONG
  23803. + _AreaEllipse(void *GfxBase, struct RastPort *rp, long xCenter, long yCenter, long a, long b)
  23804. + {
  23805. + struct Caos    MyCaos;
  23806. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23807. + //    MyCaos.M68kStart    =    NULL;
  23808. + //    MyCaos.M68kSize        =    0;
  23809. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23810. + //    MyCaos.PPCStart        =    NULL;
  23811. + //    MyCaos.PPCSize        =    0;
  23812. +     MyCaos.a1        =(ULONG) rp;
  23813. +     MyCaos.d0        =(ULONG) xCenter;
  23814. +     MyCaos.d1        =(ULONG) yCenter;
  23815. +     MyCaos.d2        =(ULONG) a;
  23816. +     MyCaos.d3        =(ULONG) b;
  23817. +     MyCaos.caos_Un.Offset    =    (-186);
  23818. +     MyCaos.a6        =(ULONG) GfxBase;    
  23819. +     return((LONG)PPCCallOS(&MyCaos));
  23820. + }
  23821. + #define    AreaEnd(rp)    _AreaEnd(GRAPHICS_BASE_NAME, rp)
  23822. + static __inline LONG
  23823. + _AreaEnd(void *GfxBase, struct RastPort *rp)
  23824. + {
  23825. + struct Caos    MyCaos;
  23826. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23827. + //    MyCaos.M68kStart    =    NULL;
  23828. + //    MyCaos.M68kSize        =    0;
  23829. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23830. + //    MyCaos.PPCStart        =    NULL;
  23831. + //    MyCaos.PPCSize        =    0;
  23832. +     MyCaos.a1        =(ULONG) rp;
  23833. +     MyCaos.caos_Un.Offset    =    (-264);
  23834. +     MyCaos.a6        =(ULONG) GfxBase;    
  23835. +     return((LONG)PPCCallOS(&MyCaos));
  23836. + }
  23837. + #define    AreaMove(rp, x, y)    _AreaMove(GRAPHICS_BASE_NAME, rp, x, y)
  23838. + static __inline LONG
  23839. + _AreaMove(void *GfxBase, struct RastPort *rp, long x, long y)
  23840. + {
  23841. + struct Caos    MyCaos;
  23842. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23843. + //    MyCaos.M68kStart    =    NULL;
  23844. + //    MyCaos.M68kSize        =    0;
  23845. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23846. + //    MyCaos.PPCStart        =    NULL;
  23847. + //    MyCaos.PPCSize        =    0;
  23848. +     MyCaos.a1        =(ULONG) rp;
  23849. +     MyCaos.d0        =(ULONG) x;
  23850. +     MyCaos.d1        =(ULONG) y;
  23851. +     MyCaos.caos_Un.Offset    =    (-252);
  23852. +     MyCaos.a6        =(ULONG) GfxBase;    
  23853. +     return((LONG)PPCCallOS(&MyCaos));
  23854. + }
  23855. + #define    AskFont(rp, textAttr)    _AskFont(GRAPHICS_BASE_NAME, rp, textAttr)
  23856. + static __inline void
  23857. + _AskFont(void *GfxBase, struct RastPort *rp, struct TextAttr *textAttr)
  23858. + {
  23859. + struct Caos    MyCaos;
  23860. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23861. + //    MyCaos.M68kStart    =    NULL;
  23862. + //    MyCaos.M68kSize        =    0;
  23863. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23864. + //    MyCaos.PPCStart        =    NULL;
  23865. + //    MyCaos.PPCSize        =    0;
  23866. +     MyCaos.a1        =(ULONG) rp;
  23867. +     MyCaos.a0        =(ULONG) textAttr;
  23868. +     MyCaos.caos_Un.Offset    =    (-474);
  23869. +     MyCaos.a6        =(ULONG) GfxBase;    
  23870. +     PPCCallOS(&MyCaos);
  23871. + }
  23872. + #define    AskSoftStyle(rp)    _AskSoftStyle(GRAPHICS_BASE_NAME, rp)
  23873. + static __inline ULONG
  23874. + _AskSoftStyle(void *GfxBase, struct RastPort *rp)
  23875. + {
  23876. + struct Caos    MyCaos;
  23877. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23878. + //    MyCaos.M68kStart    =    NULL;
  23879. + //    MyCaos.M68kSize        =    0;
  23880. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23881. + //    MyCaos.PPCStart        =    NULL;
  23882. + //    MyCaos.PPCSize        =    0;
  23883. +     MyCaos.a1        =(ULONG) rp;
  23884. +     MyCaos.caos_Un.Offset    =    (-84);
  23885. +     MyCaos.a6        =(ULONG) GfxBase;    
  23886. +     return((ULONG)PPCCallOS(&MyCaos));
  23887. + }
  23888. + #define    AttachPalExtra(cm, vp)    _AttachPalExtra(GRAPHICS_BASE_NAME, cm, vp)
  23889. + static __inline LONG
  23890. + _AttachPalExtra(void *GfxBase, struct ColorMap *cm, struct ViewPort *vp)
  23891. + {
  23892. + struct Caos    MyCaos;
  23893. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23894. + //    MyCaos.M68kStart    =    NULL;
  23895. + //    MyCaos.M68kSize        =    0;
  23896. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23897. + //    MyCaos.PPCStart        =    NULL;
  23898. + //    MyCaos.PPCSize        =    0;
  23899. +     MyCaos.a0        =(ULONG) cm;
  23900. +     MyCaos.a1        =(ULONG) vp;
  23901. +     MyCaos.caos_Un.Offset    =    (-834);
  23902. +     MyCaos.a6        =(ULONG) GfxBase;    
  23903. +     return((LONG)PPCCallOS(&MyCaos));
  23904. + }
  23905. + #define    AttemptLockLayerRom(layer)    _AttemptLockLayerRom(GRAPHICS_BASE_NAME, layer)
  23906. + static __inline BOOL
  23907. + _AttemptLockLayerRom(void *GfxBase, struct Layer *layer)
  23908. + {
  23909. + struct Caos    MyCaos;
  23910. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23911. + //    MyCaos.M68kStart    =    NULL;
  23912. + //    MyCaos.M68kSize        =    0;
  23913. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23914. + //    MyCaos.PPCStart        =    NULL;
  23915. + //    MyCaos.PPCSize        =    0;
  23916. +     MyCaos.a5        =(ULONG) layer;
  23917. +     MyCaos.caos_Un.Offset    =    (-654);
  23918. +     MyCaos.a6        =(ULONG) GfxBase;    
  23919. +     return((BOOL)PPCCallOS(&MyCaos));
  23920. + }
  23921. + #define    BestModeIDA(tags)    _BestModeIDA(GRAPHICS_BASE_NAME, tags)
  23922. + static __inline ULONG
  23923. + _BestModeIDA(void *GfxBase, struct TagItem *tags)
  23924. + {
  23925. + struct Caos    MyCaos;
  23926. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23927. + //    MyCaos.M68kStart    =    NULL;
  23928. + //    MyCaos.M68kSize        =    0;
  23929. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23930. + //    MyCaos.PPCStart        =    NULL;
  23931. + //    MyCaos.PPCSize        =    0;
  23932. +     MyCaos.a0        =(ULONG) tags;
  23933. +     MyCaos.caos_Un.Offset    =    (-1050);
  23934. +     MyCaos.a6        =(ULONG) GfxBase;    
  23935. +     return((ULONG)PPCCallOS(&MyCaos));
  23936. + }
  23937. + #ifndef NO_PPCINLINE_STDARG
  23938. + #define BestModeID(tags...) \
  23939. +     ({ULONG _tags[] = { tags }; BestModeIDA((struct TagItem *)_tags);})
  23940. + #endif /* !NO_PPCINLINE_STDARG */
  23941. + #define    BitMapScale(bitScaleArgs)    _BitMapScale(GRAPHICS_BASE_NAME, bitScaleArgs)
  23942. + static __inline void
  23943. + _BitMapScale(void *GfxBase, struct BitScaleArgs *bitScaleArgs)
  23944. + {
  23945. + struct Caos    MyCaos;
  23946. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23947. + //    MyCaos.M68kStart    =    NULL;
  23948. + //    MyCaos.M68kSize        =    0;
  23949. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23950. + //    MyCaos.PPCStart        =    NULL;
  23951. + //    MyCaos.PPCSize        =    0;
  23952. +     MyCaos.a0        =(ULONG) bitScaleArgs;
  23953. +     MyCaos.caos_Un.Offset    =    (-678);
  23954. +     MyCaos.a6        =(ULONG) GfxBase;    
  23955. +     PPCCallOS(&MyCaos);
  23956. + }
  23957. + #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)
  23958. + static __inline LONG
  23959. + _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)
  23960. + {
  23961. + struct Caos    MyCaos;
  23962. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23963. + //    MyCaos.M68kStart    =    NULL;
  23964. + //    MyCaos.M68kSize        =    0;
  23965. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23966. + //    MyCaos.PPCStart        =    NULL;
  23967. + //    MyCaos.PPCSize        =    0;
  23968. +     MyCaos.a0        =(ULONG) srcBitMap;
  23969. +     MyCaos.d0        =(ULONG) xSrc;
  23970. +     MyCaos.d1        =(ULONG) ySrc;
  23971. +     MyCaos.a1        =(ULONG) destBitMap;
  23972. +     MyCaos.d2        =(ULONG) xDest;
  23973. +     MyCaos.d3        =(ULONG) yDest;
  23974. +     MyCaos.d4        =(ULONG) xSize;
  23975. +     MyCaos.d5        =(ULONG) ySize;
  23976. +     MyCaos.d6        =(ULONG) minterm;
  23977. +     MyCaos.d7        =(ULONG) mask;
  23978. +     MyCaos.a2        =(ULONG) tempA;
  23979. +     MyCaos.caos_Un.Offset    =    (-30);
  23980. +     MyCaos.a6        =(ULONG) GfxBase;    
  23981. +     return((LONG)PPCCallOS(&MyCaos));
  23982. + }
  23983. + #define    BltBitMapRastPort(srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm)    _BltBitMapRastPort(GRAPHICS_BASE_NAME, srcBitMap, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm)
  23984. + static __inline void
  23985. + _BltBitMapRastPort(void *GfxBase, struct BitMap *srcBitMap, long xSrc, long ySrc, struct RastPort *destRP, long xDest, long yDest, long xSize, long ySize, unsigned long minterm)
  23986. + {
  23987. + struct Caos    MyCaos;
  23988. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  23989. + //    MyCaos.M68kStart    =    NULL;
  23990. + //    MyCaos.M68kSize        =    0;
  23991. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  23992. + //    MyCaos.PPCStart        =    NULL;
  23993. + //    MyCaos.PPCSize        =    0;
  23994. +     MyCaos.a0        =(ULONG) srcBitMap;
  23995. +     MyCaos.d0        =(ULONG) xSrc;
  23996. +     MyCaos.d1        =(ULONG) ySrc;
  23997. +     MyCaos.a1        =(ULONG) destRP;
  23998. +     MyCaos.d2        =(ULONG) xDest;
  23999. +     MyCaos.d3        =(ULONG) yDest;
  24000. +     MyCaos.d4        =(ULONG) xSize;
  24001. +     MyCaos.d5        =(ULONG) ySize;
  24002. +     MyCaos.d6        =(ULONG) minterm;
  24003. +     MyCaos.caos_Un.Offset    =    (-606);
  24004. +     MyCaos.a6        =(ULONG) GfxBase;    
  24005. +     PPCCallOS(&MyCaos);
  24006. + }
  24007. + #define    BltClear(memBlock, byteCount, flags)    _BltClear(GRAPHICS_BASE_NAME, memBlock, byteCount, flags)
  24008. + static __inline void
  24009. + _BltClear(void *GfxBase, PLANEPTR memBlock, unsigned long byteCount, unsigned long flags)
  24010. + {
  24011. + struct Caos    MyCaos;
  24012. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24013. + //    MyCaos.M68kStart    =    NULL;
  24014. + //    MyCaos.M68kSize        =    0;
  24015. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24016. + //    MyCaos.PPCStart        =    NULL;
  24017. + //    MyCaos.PPCSize        =    0;
  24018. +     MyCaos.a1        =(ULONG) memBlock;
  24019. +     MyCaos.d0        =(ULONG) byteCount;
  24020. +     MyCaos.d1        =(ULONG) flags;
  24021. +     MyCaos.caos_Un.Offset    =    (-300);
  24022. +     MyCaos.a6        =(ULONG) GfxBase;    
  24023. +     PPCCallOS(&MyCaos);
  24024. + }
  24025. + #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)
  24026. + static __inline void
  24027. + _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)
  24028. + {
  24029. + struct Caos    MyCaos;
  24030. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24031. + //    MyCaos.M68kStart    =    NULL;
  24032. + //    MyCaos.M68kSize        =    0;
  24033. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24034. + //    MyCaos.PPCStart        =    NULL;
  24035. + //    MyCaos.PPCSize        =    0;
  24036. +     MyCaos.a0        =(ULONG) srcBitMap;
  24037. +     MyCaos.d0        =(ULONG) xSrc;
  24038. +     MyCaos.d1        =(ULONG) ySrc;
  24039. +     MyCaos.a1        =(ULONG) destRP;
  24040. +     MyCaos.d2        =(ULONG) xDest;
  24041. +     MyCaos.d3        =(ULONG) yDest;
  24042. +     MyCaos.d4        =(ULONG) xSize;
  24043. +     MyCaos.d5        =(ULONG) ySize;
  24044. +     MyCaos.d6        =(ULONG) minterm;
  24045. +     MyCaos.a2        =(ULONG) bltMask;
  24046. +     MyCaos.caos_Un.Offset    =    (-636);
  24047. +     MyCaos.a6        =(ULONG) GfxBase;    
  24048. +     PPCCallOS(&MyCaos);
  24049. + }
  24050. + #define    BltPattern(rp, mask, xMin, yMin, xMax, yMax, maskBPR)    _BltPattern(GRAPHICS_BASE_NAME, rp, mask, xMin, yMin, xMax, yMax, maskBPR)
  24051. + static __inline void
  24052. + _BltPattern(void *GfxBase, struct RastPort *rp, PLANEPTR mask, long xMin, long yMin, long xMax, long yMax, unsigned long maskBPR)
  24053. + {
  24054. + struct Caos    MyCaos;
  24055. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24056. + //    MyCaos.M68kStart    =    NULL;
  24057. + //    MyCaos.M68kSize        =    0;
  24058. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24059. + //    MyCaos.PPCStart        =    NULL;
  24060. + //    MyCaos.PPCSize        =    0;
  24061. +     MyCaos.a1        =(ULONG) rp;
  24062. +     MyCaos.a0        =(ULONG) mask;
  24063. +     MyCaos.d0        =(ULONG) xMin;
  24064. +     MyCaos.d1        =(ULONG) yMin;
  24065. +     MyCaos.d2        =(ULONG) xMax;
  24066. +     MyCaos.d3        =(ULONG) yMax;
  24067. +     MyCaos.d4        =(ULONG) maskBPR;
  24068. +     MyCaos.caos_Un.Offset    =    (-312);
  24069. +     MyCaos.a6        =(ULONG) GfxBase;    
  24070. +     PPCCallOS(&MyCaos);
  24071. + }
  24072. + #define    BltTemplate(source, xSrc, srcMod, destRP, xDest, yDest, xSize, ySize)    _BltTemplate(GRAPHICS_BASE_NAME, source, xSrc, srcMod, destRP, xDest, yDest, xSize, ySize)
  24073. + static __inline void
  24074. + _BltTemplate(void *GfxBase, PLANEPTR source, long xSrc, long srcMod, struct RastPort *destRP, long xDest, long yDest, long xSize, long ySize)
  24075. + {
  24076. + struct Caos    MyCaos;
  24077. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24078. + //    MyCaos.M68kStart    =    NULL;
  24079. + //    MyCaos.M68kSize        =    0;
  24080. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24081. + //    MyCaos.PPCStart        =    NULL;
  24082. + //    MyCaos.PPCSize        =    0;
  24083. +     MyCaos.a0        =(ULONG) source;
  24084. +     MyCaos.d0        =(ULONG) xSrc;
  24085. +     MyCaos.d1        =(ULONG) srcMod;
  24086. +     MyCaos.a1        =(ULONG) destRP;
  24087. +     MyCaos.d2        =(ULONG) xDest;
  24088. +     MyCaos.d3        =(ULONG) yDest;
  24089. +     MyCaos.d4        =(ULONG) xSize;
  24090. +     MyCaos.d5        =(ULONG) ySize;
  24091. +     MyCaos.caos_Un.Offset    =    (-36);
  24092. +     MyCaos.a6        =(ULONG) GfxBase;    
  24093. +     PPCCallOS(&MyCaos);
  24094. + }
  24095. + #define    CBump(copList)    _CBump(GRAPHICS_BASE_NAME, copList)
  24096. + static __inline void
  24097. + _CBump(void *GfxBase, struct UCopList *copList)
  24098. + {
  24099. + struct Caos    MyCaos;
  24100. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24101. + //    MyCaos.M68kStart    =    NULL;
  24102. + //    MyCaos.M68kSize        =    0;
  24103. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24104. + //    MyCaos.PPCStart        =    NULL;
  24105. + //    MyCaos.PPCSize        =    0;
  24106. +     MyCaos.a1        =(ULONG) copList;
  24107. +     MyCaos.caos_Un.Offset    =    (-366);
  24108. +     MyCaos.a6        =(ULONG) GfxBase;    
  24109. +     PPCCallOS(&MyCaos);
  24110. + }
  24111. + #define    CMove(copList, destination, data)    _CMove(GRAPHICS_BASE_NAME, copList, destination, data)
  24112. + static __inline void
  24113. + _CMove(void *GfxBase, struct UCopList *copList, APTR destination, long data)
  24114. + {
  24115. + struct Caos    MyCaos;
  24116. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24117. + //    MyCaos.M68kStart    =    NULL;
  24118. + //    MyCaos.M68kSize        =    0;
  24119. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24120. + //    MyCaos.PPCStart        =    NULL;
  24121. + //    MyCaos.PPCSize        =    0;
  24122. +     MyCaos.a1        =(ULONG) copList;
  24123. +     MyCaos.d0        =(ULONG) destination;
  24124. +     MyCaos.d1        =(ULONG) data;
  24125. +     MyCaos.caos_Un.Offset    =    (-372);
  24126. +     MyCaos.a6        =(ULONG) GfxBase;    
  24127. +     PPCCallOS(&MyCaos);
  24128. + }
  24129. + #define    CWait(copList, v, h)    _CWait(GRAPHICS_BASE_NAME, copList, v, h)
  24130. + static __inline void
  24131. + _CWait(void *GfxBase, struct UCopList *copList, long v, long h)
  24132. + {
  24133. + struct Caos    MyCaos;
  24134. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24135. + //    MyCaos.M68kStart    =    NULL;
  24136. + //    MyCaos.M68kSize        =    0;
  24137. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24138. + //    MyCaos.PPCStart        =    NULL;
  24139. + //    MyCaos.PPCSize        =    0;
  24140. +     MyCaos.a1        =(ULONG) copList;
  24141. +     MyCaos.d0        =(ULONG) v;
  24142. +     MyCaos.d1        =(ULONG) h;
  24143. +     MyCaos.caos_Un.Offset    =    (-378);
  24144. +     MyCaos.a6        =(ULONG) GfxBase;    
  24145. +     PPCCallOS(&MyCaos);
  24146. + }
  24147. + #define    CalcIVG(v, vp)    _CalcIVG(GRAPHICS_BASE_NAME, v, vp)
  24148. + static __inline UWORD
  24149. + _CalcIVG(void *GfxBase, struct View *v, struct ViewPort *vp)
  24150. + {
  24151. + struct Caos    MyCaos;
  24152. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24153. + //    MyCaos.M68kStart    =    NULL;
  24154. + //    MyCaos.M68kSize        =    0;
  24155. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24156. + //    MyCaos.PPCStart        =    NULL;
  24157. + //    MyCaos.PPCSize        =    0;
  24158. +     MyCaos.a0        =(ULONG) v;
  24159. +     MyCaos.a1        =(ULONG) vp;
  24160. +     MyCaos.caos_Un.Offset    =    (-828);
  24161. +     MyCaos.a6        =(ULONG) GfxBase;    
  24162. +     return((UWORD)PPCCallOS(&MyCaos));
  24163. + }
  24164. + #define    ChangeExtSpriteA(vp, oldsprite, newsprite, tags)    _ChangeExtSpriteA(GRAPHICS_BASE_NAME, vp, oldsprite, newsprite, tags)
  24165. + static __inline LONG
  24166. + _ChangeExtSpriteA(void *GfxBase, struct ViewPort *vp, struct ExtSprite *oldsprite, struct ExtSprite *newsprite, struct TagItem *tags)
  24167. + {
  24168. + struct Caos    MyCaos;
  24169. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24170. + //    MyCaos.M68kStart    =    NULL;
  24171. + //    MyCaos.M68kSize        =    0;
  24172. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24173. + //    MyCaos.PPCStart        =    NULL;
  24174. + //    MyCaos.PPCSize        =    0;
  24175. +     MyCaos.a0        =(ULONG) vp;
  24176. +     MyCaos.a1        =(ULONG) oldsprite;
  24177. +     MyCaos.a2        =(ULONG) newsprite;
  24178. +     MyCaos.a3        =(ULONG) tags;
  24179. +     MyCaos.caos_Un.Offset    =    (-1026);
  24180. +     MyCaos.a6        =(ULONG) GfxBase;    
  24181. +     return((LONG)PPCCallOS(&MyCaos));
  24182. + }
  24183. + #ifndef NO_PPCINLINE_STDARG
  24184. + #define ChangeExtSprite(a0, a1, a2, tags...) \
  24185. +     ({ULONG _tags[] = { tags }; ChangeExtSpriteA((a0), (a1), (a2), (struct TagItem *)_tags);})
  24186. + #endif /* !NO_PPCINLINE_STDARG */
  24187. + #define    ChangeSprite(vp, sprite, newData)    _ChangeSprite(GRAPHICS_BASE_NAME, vp, sprite, newData)
  24188. + static __inline void
  24189. + _ChangeSprite(void *GfxBase, struct ViewPort *vp, struct SimpleSprite *sprite, PLANEPTR newData)
  24190. + {
  24191. + struct Caos    MyCaos;
  24192. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24193. + //    MyCaos.M68kStart    =    NULL;
  24194. + //    MyCaos.M68kSize        =    0;
  24195. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24196. + //    MyCaos.PPCStart        =    NULL;
  24197. + //    MyCaos.PPCSize        =    0;
  24198. +     MyCaos.a0        =(ULONG) vp;
  24199. +     MyCaos.a1        =(ULONG) sprite;
  24200. +     MyCaos.a2        =(ULONG) newData;
  24201. +     MyCaos.caos_Un.Offset    =    (-420);
  24202. +     MyCaos.a6        =(ULONG) GfxBase;    
  24203. +     PPCCallOS(&MyCaos);
  24204. + }
  24205. + #define    ChangeVPBitMap(vp, bm, db)    _ChangeVPBitMap(GRAPHICS_BASE_NAME, vp, bm, db)
  24206. + static __inline void
  24207. + _ChangeVPBitMap(void *GfxBase, struct ViewPort *vp, struct BitMap *bm, struct DBufInfo *db)
  24208. + {
  24209. + struct Caos    MyCaos;
  24210. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24211. + //    MyCaos.M68kStart    =    NULL;
  24212. + //    MyCaos.M68kSize        =    0;
  24213. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24214. + //    MyCaos.PPCStart        =    NULL;
  24215. + //    MyCaos.PPCSize        =    0;
  24216. +     MyCaos.a0        =(ULONG) vp;
  24217. +     MyCaos.a1        =(ULONG) bm;
  24218. +     MyCaos.a2        =(ULONG) db;
  24219. +     MyCaos.caos_Un.Offset    =    (-942);
  24220. +     MyCaos.a6        =(ULONG) GfxBase;    
  24221. +     PPCCallOS(&MyCaos);
  24222. + }
  24223. + #define    ClearEOL(rp)    _ClearEOL(GRAPHICS_BASE_NAME, rp)
  24224. + static __inline void
  24225. + _ClearEOL(void *GfxBase, struct RastPort *rp)
  24226. + {
  24227. + struct Caos    MyCaos;
  24228. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24229. + //    MyCaos.M68kStart    =    NULL;
  24230. + //    MyCaos.M68kSize        =    0;
  24231. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24232. + //    MyCaos.PPCStart        =    NULL;
  24233. + //    MyCaos.PPCSize        =    0;
  24234. +     MyCaos.a1        =(ULONG) rp;
  24235. +     MyCaos.caos_Un.Offset    =    (-42);
  24236. +     MyCaos.a6        =(ULONG) GfxBase;    
  24237. +     PPCCallOS(&MyCaos);
  24238. + }
  24239. + #define    ClearRectRegion(region, rectangle)    _ClearRectRegion(GRAPHICS_BASE_NAME, region, rectangle)
  24240. + static __inline BOOL
  24241. + _ClearRectRegion(void *GfxBase, struct Region *region, struct Rectangle *rectangle)
  24242. + {
  24243. + struct Caos    MyCaos;
  24244. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24245. + //    MyCaos.M68kStart    =    NULL;
  24246. + //    MyCaos.M68kSize        =    0;
  24247. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24248. + //    MyCaos.PPCStart        =    NULL;
  24249. + //    MyCaos.PPCSize        =    0;
  24250. +     MyCaos.a0        =(ULONG) region;
  24251. +     MyCaos.a1        =(ULONG) rectangle;
  24252. +     MyCaos.caos_Un.Offset    =    (-522);
  24253. +     MyCaos.a6        =(ULONG) GfxBase;    
  24254. +     return((BOOL)PPCCallOS(&MyCaos));
  24255. + }
  24256. + #define    ClearRegion(region)    _ClearRegion(GRAPHICS_BASE_NAME, region)
  24257. + static __inline void
  24258. + _ClearRegion(void *GfxBase, struct Region *region)
  24259. + {
  24260. + struct Caos    MyCaos;
  24261. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24262. + //    MyCaos.M68kStart    =    NULL;
  24263. + //    MyCaos.M68kSize        =    0;
  24264. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24265. + //    MyCaos.PPCStart        =    NULL;
  24266. + //    MyCaos.PPCSize        =    0;
  24267. +     MyCaos.a0        =(ULONG) region;
  24268. +     MyCaos.caos_Un.Offset    =    (-528);
  24269. +     MyCaos.a6        =(ULONG) GfxBase;    
  24270. +     PPCCallOS(&MyCaos);
  24271. + }
  24272. + #define    ClearScreen(rp)    _ClearScreen(GRAPHICS_BASE_NAME, rp)
  24273. + static __inline void
  24274. + _ClearScreen(void *GfxBase, struct RastPort *rp)
  24275. + {
  24276. + struct Caos    MyCaos;
  24277. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24278. + //    MyCaos.M68kStart    =    NULL;
  24279. + //    MyCaos.M68kSize        =    0;
  24280. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24281. + //    MyCaos.PPCStart        =    NULL;
  24282. + //    MyCaos.PPCSize        =    0;
  24283. +     MyCaos.a1        =(ULONG) rp;
  24284. +     MyCaos.caos_Un.Offset    =    (-48);
  24285. +     MyCaos.a6        =(ULONG) GfxBase;    
  24286. +     PPCCallOS(&MyCaos);
  24287. + }
  24288. + #define    ClipBlit(srcRP, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm)    _ClipBlit(GRAPHICS_BASE_NAME, srcRP, xSrc, ySrc, destRP, xDest, yDest, xSize, ySize, minterm)
  24289. + static __inline void
  24290. + _ClipBlit(void *GfxBase, struct RastPort *srcRP, long xSrc, long ySrc, struct RastPort *destRP, long xDest, long yDest, long xSize, long ySize, unsigned long minterm)
  24291. + {
  24292. + struct Caos    MyCaos;
  24293. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24294. + //    MyCaos.M68kStart    =    NULL;
  24295. + //    MyCaos.M68kSize        =    0;
  24296. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24297. + //    MyCaos.PPCStart        =    NULL;
  24298. + //    MyCaos.PPCSize        =    0;
  24299. +     MyCaos.a0        =(ULONG) srcRP;
  24300. +     MyCaos.d0        =(ULONG) xSrc;
  24301. +     MyCaos.d1        =(ULONG) ySrc;
  24302. +     MyCaos.a1        =(ULONG) destRP;
  24303. +     MyCaos.d2        =(ULONG) xDest;
  24304. +     MyCaos.d3        =(ULONG) yDest;
  24305. +     MyCaos.d4        =(ULONG) xSize;
  24306. +     MyCaos.d5        =(ULONG) ySize;
  24307. +     MyCaos.d6        =(ULONG) minterm;
  24308. +     MyCaos.caos_Un.Offset    =    (-552);
  24309. +     MyCaos.a6        =(ULONG) GfxBase;    
  24310. +     PPCCallOS(&MyCaos);
  24311. + }
  24312. + #define    CloseFont(textFont)    _CloseFont(GRAPHICS_BASE_NAME, textFont)
  24313. + static __inline void
  24314. + _CloseFont(void *GfxBase, struct TextFont *textFont)
  24315. + {
  24316. + struct Caos    MyCaos;
  24317. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24318. + //    MyCaos.M68kStart    =    NULL;
  24319. + //    MyCaos.M68kSize        =    0;
  24320. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24321. + //    MyCaos.PPCStart        =    NULL;
  24322. + //    MyCaos.PPCSize        =    0;
  24323. +     MyCaos.a1        =(ULONG) textFont;
  24324. +     MyCaos.caos_Un.Offset    =    (-78);
  24325. +     MyCaos.a6        =(ULONG) GfxBase;    
  24326. +     PPCCallOS(&MyCaos);
  24327. + }
  24328. + #define    CloseMonitor(monitorSpec)    _CloseMonitor(GRAPHICS_BASE_NAME, monitorSpec)
  24329. + static __inline BOOL
  24330. + _CloseMonitor(void *GfxBase, struct MonitorSpec *monitorSpec)
  24331. + {
  24332. + struct Caos    MyCaos;
  24333. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24334. + //    MyCaos.M68kStart    =    NULL;
  24335. + //    MyCaos.M68kSize        =    0;
  24336. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24337. + //    MyCaos.PPCStart        =    NULL;
  24338. + //    MyCaos.PPCSize        =    0;
  24339. +     MyCaos.a0        =(ULONG) monitorSpec;
  24340. +     MyCaos.caos_Un.Offset    =    (-720);
  24341. +     MyCaos.a6        =(ULONG) GfxBase;    
  24342. +     return((BOOL)PPCCallOS(&MyCaos));
  24343. + }
  24344. + #define    CoerceMode(vp, monitorid, flags)    _CoerceMode(GRAPHICS_BASE_NAME, vp, monitorid, flags)
  24345. + static __inline ULONG
  24346. + _CoerceMode(void *GfxBase, struct ViewPort *vp, unsigned long monitorid, unsigned long flags)
  24347. + {
  24348. + struct Caos    MyCaos;
  24349. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24350. + //    MyCaos.M68kStart    =    NULL;
  24351. + //    MyCaos.M68kSize        =    0;
  24352. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24353. + //    MyCaos.PPCStart        =    NULL;
  24354. + //    MyCaos.PPCSize        =    0;
  24355. +     MyCaos.a0        =(ULONG) vp;
  24356. +     MyCaos.d0        =(ULONG) monitorid;
  24357. +     MyCaos.d1        =(ULONG) flags;
  24358. +     MyCaos.caos_Un.Offset    =    (-936);
  24359. +     MyCaos.a6        =(ULONG) GfxBase;    
  24360. +     return((ULONG)PPCCallOS(&MyCaos));
  24361. + }
  24362. + #define    CopySBitMap(layer)    _CopySBitMap(GRAPHICS_BASE_NAME, layer)
  24363. + static __inline void
  24364. + _CopySBitMap(void *GfxBase, struct Layer *layer)
  24365. + {
  24366. + struct Caos    MyCaos;
  24367. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24368. + //    MyCaos.M68kStart    =    NULL;
  24369. + //    MyCaos.M68kSize        =    0;
  24370. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24371. + //    MyCaos.PPCStart        =    NULL;
  24372. + //    MyCaos.PPCSize        =    0;
  24373. +     MyCaos.a0        =(ULONG) layer;
  24374. +     MyCaos.caos_Un.Offset    =    (-450);
  24375. +     MyCaos.a6        =(ULONG) GfxBase;    
  24376. +     PPCCallOS(&MyCaos);
  24377. + }
  24378. + #define    DisownBlitter()    _DisownBlitter(GRAPHICS_BASE_NAME)
  24379. + static __inline void
  24380. + _DisownBlitter(void *GfxBase)
  24381. + {
  24382. + struct Caos    MyCaos;
  24383. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24384. + //    MyCaos.M68kStart    =    NULL;
  24385. + //    MyCaos.M68kSize        =    0;
  24386. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24387. + //    MyCaos.PPCStart        =    NULL;
  24388. + //    MyCaos.PPCSize        =    0;
  24389. +     MyCaos.caos_Un.Offset    =    (-462);
  24390. +     MyCaos.a6        =(ULONG) GfxBase;    
  24391. +     PPCCallOS(&MyCaos);
  24392. + }
  24393. + #define    DisposeRegion(region)    _DisposeRegion(GRAPHICS_BASE_NAME, region)
  24394. + static __inline void
  24395. + _DisposeRegion(void *GfxBase, struct Region *region)
  24396. + {
  24397. + struct Caos    MyCaos;
  24398. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24399. + //    MyCaos.M68kStart    =    NULL;
  24400. + //    MyCaos.M68kSize        =    0;
  24401. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24402. + //    MyCaos.PPCStart        =    NULL;
  24403. + //    MyCaos.PPCSize        =    0;
  24404. +     MyCaos.a0        =(ULONG) region;
  24405. +     MyCaos.caos_Un.Offset    =    (-534);
  24406. +     MyCaos.a6        =(ULONG) GfxBase;    
  24407. +     PPCCallOS(&MyCaos);
  24408. + }
  24409. + #define    DoCollision(rp)    _DoCollision(GRAPHICS_BASE_NAME, rp)
  24410. + static __inline void
  24411. + _DoCollision(void *GfxBase, struct RastPort *rp)
  24412. + {
  24413. + struct Caos    MyCaos;
  24414. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24415. + //    MyCaos.M68kStart    =    NULL;
  24416. + //    MyCaos.M68kSize        =    0;
  24417. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24418. + //    MyCaos.PPCStart        =    NULL;
  24419. + //    MyCaos.PPCSize        =    0;
  24420. +     MyCaos.a1        =(ULONG) rp;
  24421. +     MyCaos.caos_Un.Offset    =    (-108);
  24422. +     MyCaos.a6        =(ULONG) GfxBase;    
  24423. +     PPCCallOS(&MyCaos);
  24424. + }
  24425. + #define    Draw(rp, x, y)    _Draw(GRAPHICS_BASE_NAME, rp, x, y)
  24426. + static __inline void
  24427. + _Draw(void *GfxBase, struct RastPort *rp, long x, long y)
  24428. + {
  24429. + struct Caos    MyCaos;
  24430. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24431. + //    MyCaos.M68kStart    =    NULL;
  24432. + //    MyCaos.M68kSize        =    0;
  24433. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24434. + //    MyCaos.PPCStart        =    NULL;
  24435. + //    MyCaos.PPCSize        =    0;
  24436. +     MyCaos.a1        =(ULONG) rp;
  24437. +     MyCaos.d0        =(ULONG) x;
  24438. +     MyCaos.d1        =(ULONG) y;
  24439. +     MyCaos.caos_Un.Offset    =    (-246);
  24440. +     MyCaos.a6        =(ULONG) GfxBase;    
  24441. +     PPCCallOS(&MyCaos);
  24442. + }
  24443. + #define    DrawEllipse(rp, xCenter, yCenter, a, b)    _DrawEllipse(GRAPHICS_BASE_NAME, rp, xCenter, yCenter, a, b)
  24444. + static __inline void
  24445. + _DrawEllipse(void *GfxBase, struct RastPort *rp, long xCenter, long yCenter, long a, long b)
  24446. + {
  24447. + struct Caos    MyCaos;
  24448. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24449. + //    MyCaos.M68kStart    =    NULL;
  24450. + //    MyCaos.M68kSize        =    0;
  24451. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24452. + //    MyCaos.PPCStart        =    NULL;
  24453. + //    MyCaos.PPCSize        =    0;
  24454. +     MyCaos.a1        =(ULONG) rp;
  24455. +     MyCaos.d0        =(ULONG) xCenter;
  24456. +     MyCaos.d1        =(ULONG) yCenter;
  24457. +     MyCaos.d2        =(ULONG) a;
  24458. +     MyCaos.d3        =(ULONG) b;
  24459. +     MyCaos.caos_Un.Offset    =    (-180);
  24460. +     MyCaos.a6        =(ULONG) GfxBase;    
  24461. +     PPCCallOS(&MyCaos);
  24462. + }
  24463. + #define    DrawGList(rp, vp)    _DrawGList(GRAPHICS_BASE_NAME, rp, vp)
  24464. + static __inline void
  24465. + _DrawGList(void *GfxBase, struct RastPort *rp, struct ViewPort *vp)
  24466. + {
  24467. + struct Caos    MyCaos;
  24468. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24469. + //    MyCaos.M68kStart    =    NULL;
  24470. + //    MyCaos.M68kSize        =    0;
  24471. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24472. + //    MyCaos.PPCStart        =    NULL;
  24473. + //    MyCaos.PPCSize        =    0;
  24474. +     MyCaos.a1        =(ULONG) rp;
  24475. +     MyCaos.a0        =(ULONG) vp;
  24476. +     MyCaos.caos_Un.Offset    =    (-114);
  24477. +     MyCaos.a6        =(ULONG) GfxBase;    
  24478. +     PPCCallOS(&MyCaos);
  24479. + }
  24480. + #define    EraseRect(rp, xMin, yMin, xMax, yMax)    _EraseRect(GRAPHICS_BASE_NAME, rp, xMin, yMin, xMax, yMax)
  24481. + static __inline void
  24482. + _EraseRect(void *GfxBase, struct RastPort *rp, long xMin, long yMin, long xMax, long yMax)
  24483. + {
  24484. + struct Caos    MyCaos;
  24485. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24486. + //    MyCaos.M68kStart    =    NULL;
  24487. + //    MyCaos.M68kSize        =    0;
  24488. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24489. + //    MyCaos.PPCStart        =    NULL;
  24490. + //    MyCaos.PPCSize        =    0;
  24491. +     MyCaos.a1        =(ULONG) rp;
  24492. +     MyCaos.d0        =(ULONG) xMin;
  24493. +     MyCaos.d1        =(ULONG) yMin;
  24494. +     MyCaos.d2        =(ULONG) xMax;
  24495. +     MyCaos.d3        =(ULONG) yMax;
  24496. +     MyCaos.caos_Un.Offset    =    (-810);
  24497. +     MyCaos.a6        =(ULONG) GfxBase;    
  24498. +     PPCCallOS(&MyCaos);
  24499. + }
  24500. + #define    ExtendFont(font, fontTags)    _ExtendFont(GRAPHICS_BASE_NAME, font, fontTags)
  24501. + static __inline ULONG
  24502. + _ExtendFont(void *GfxBase, struct TextFont *font, struct TagItem *fontTags)
  24503. + {
  24504. + struct Caos    MyCaos;
  24505. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24506. + //    MyCaos.M68kStart    =    NULL;
  24507. + //    MyCaos.M68kSize        =    0;
  24508. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24509. + //    MyCaos.PPCStart        =    NULL;
  24510. + //    MyCaos.PPCSize        =    0;
  24511. +     MyCaos.a0        =(ULONG) font;
  24512. +     MyCaos.a1        =(ULONG) fontTags;
  24513. +     MyCaos.caos_Un.Offset    =    (-816);
  24514. +     MyCaos.a6        =(ULONG) GfxBase;    
  24515. +     return((ULONG)PPCCallOS(&MyCaos));
  24516. + }
  24517. + #ifndef NO_PPCINLINE_STDARG
  24518. + #define ExtendFontTags(a0, tags...) \
  24519. +     ({ULONG _tags[] = { tags }; ExtendFont((a0), (struct TagItem *)_tags);})
  24520. + #endif /* !NO_PPCINLINE_STDARG */
  24521. + #define    FindColor(cm, r, g, b, maxcolor)    _FindColor(GRAPHICS_BASE_NAME, cm, r, g, b, maxcolor)
  24522. + static __inline LONG
  24523. + _FindColor(void *GfxBase, struct ColorMap *cm, unsigned long r, unsigned long g, unsigned long b, long maxcolor)
  24524. + {
  24525. + struct Caos    MyCaos;
  24526. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24527. + //    MyCaos.M68kStart    =    NULL;
  24528. + //    MyCaos.M68kSize        =    0;
  24529. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24530. + //    MyCaos.PPCStart        =    NULL;
  24531. + //    MyCaos.PPCSize        =    0;
  24532. +     MyCaos.a3        =(ULONG) cm;
  24533. +     MyCaos.d1        =(ULONG) r;
  24534. +     MyCaos.d2        =(ULONG) g;
  24535. +     MyCaos.d3        =(ULONG) b;
  24536. +     MyCaos.d4        =(ULONG) maxcolor;
  24537. +     MyCaos.caos_Un.Offset    =    (-1008);
  24538. +     MyCaos.a6        =(ULONG) GfxBase;    
  24539. +     return((LONG)PPCCallOS(&MyCaos));
  24540. + }
  24541. + #define    FindDisplayInfo(displayID)    _FindDisplayInfo(GRAPHICS_BASE_NAME, displayID)
  24542. + static __inline DisplayInfoHandle
  24543. + _FindDisplayInfo(void *GfxBase, unsigned long displayID)
  24544. + {
  24545. + struct Caos    MyCaos;
  24546. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24547. + //    MyCaos.M68kStart    =    NULL;
  24548. + //    MyCaos.M68kSize        =    0;
  24549. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24550. + //    MyCaos.PPCStart        =    NULL;
  24551. + //    MyCaos.PPCSize        =    0;
  24552. +     MyCaos.d0        =(ULONG) displayID;
  24553. +     MyCaos.caos_Un.Offset    =    (-726);
  24554. +     MyCaos.a6        =(ULONG) GfxBase;    
  24555. +     return((DisplayInfoHandle)PPCCallOS(&MyCaos));
  24556. + }
  24557. + #define    Flood(rp, mode, x, y)    _Flood(GRAPHICS_BASE_NAME, rp, mode, x, y)
  24558. + static __inline BOOL
  24559. + _Flood(void *GfxBase, struct RastPort *rp, unsigned long mode, long x, long y)
  24560. + {
  24561. + struct Caos    MyCaos;
  24562. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24563. + //    MyCaos.M68kStart    =    NULL;
  24564. + //    MyCaos.M68kSize        =    0;
  24565. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24566. + //    MyCaos.PPCStart        =    NULL;
  24567. + //    MyCaos.PPCSize        =    0;
  24568. +     MyCaos.a1        =(ULONG) rp;
  24569. +     MyCaos.d2        =(ULONG) mode;
  24570. +     MyCaos.d0        =(ULONG) x;
  24571. +     MyCaos.d1        =(ULONG) y;
  24572. +     MyCaos.caos_Un.Offset    =    (-330);
  24573. +     MyCaos.a6        =(ULONG) GfxBase;    
  24574. +     return((BOOL)PPCCallOS(&MyCaos));
  24575. + }
  24576. + #define    FontExtent(font, fontExtent)    _FontExtent(GRAPHICS_BASE_NAME, font, fontExtent)
  24577. + static __inline void
  24578. + _FontExtent(void *GfxBase, struct TextFont *font, struct TextExtent *fontExtent)
  24579. + {
  24580. + struct Caos    MyCaos;
  24581. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24582. + //    MyCaos.M68kStart    =    NULL;
  24583. + //    MyCaos.M68kSize        =    0;
  24584. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24585. + //    MyCaos.PPCStart        =    NULL;
  24586. + //    MyCaos.PPCSize        =    0;
  24587. +     MyCaos.a0        =(ULONG) font;
  24588. +     MyCaos.a1        =(ULONG) fontExtent;
  24589. +     MyCaos.caos_Un.Offset    =    (-762);
  24590. +     MyCaos.a6        =(ULONG) GfxBase;    
  24591. +     PPCCallOS(&MyCaos);
  24592. + }
  24593. + #define    FreeBitMap(bm)    _FreeBitMap(GRAPHICS_BASE_NAME, bm)
  24594. + static __inline void
  24595. + _FreeBitMap(void *GfxBase, struct BitMap *bm)
  24596. + {
  24597. + struct Caos    MyCaos;
  24598. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24599. + //    MyCaos.M68kStart    =    NULL;
  24600. + //    MyCaos.M68kSize        =    0;
  24601. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24602. + //    MyCaos.PPCStart        =    NULL;
  24603. + //    MyCaos.PPCSize        =    0;
  24604. +     MyCaos.a0        =(ULONG) bm;
  24605. +     MyCaos.caos_Un.Offset    =    (-924);
  24606. +     MyCaos.a6        =(ULONG) GfxBase;    
  24607. +     PPCCallOS(&MyCaos);
  24608. + }
  24609. + #define    FreeColorMap(colorMap)    _FreeColorMap(GRAPHICS_BASE_NAME, colorMap)
  24610. + static __inline void
  24611. + _FreeColorMap(void *GfxBase, struct ColorMap *colorMap)
  24612. + {
  24613. + struct Caos    MyCaos;
  24614. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24615. + //    MyCaos.M68kStart    =    NULL;
  24616. + //    MyCaos.M68kSize        =    0;
  24617. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24618. + //    MyCaos.PPCStart        =    NULL;
  24619. + //    MyCaos.PPCSize        =    0;
  24620. +     MyCaos.a0        =(ULONG) colorMap;
  24621. +     MyCaos.caos_Un.Offset    =    (-576);
  24622. +     MyCaos.a6        =(ULONG) GfxBase;    
  24623. +     PPCCallOS(&MyCaos);
  24624. + }
  24625. + #define    FreeCopList(copList)    _FreeCopList(GRAPHICS_BASE_NAME, copList)
  24626. + static __inline void
  24627. + _FreeCopList(void *GfxBase, struct CopList *copList)
  24628. + {
  24629. + struct Caos    MyCaos;
  24630. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24631. + //    MyCaos.M68kStart    =    NULL;
  24632. + //    MyCaos.M68kSize        =    0;
  24633. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24634. + //    MyCaos.PPCStart        =    NULL;
  24635. + //    MyCaos.PPCSize        =    0;
  24636. +     MyCaos.a0        =(ULONG) copList;
  24637. +     MyCaos.caos_Un.Offset    =    (-546);
  24638. +     MyCaos.a6        =(ULONG) GfxBase;    
  24639. +     PPCCallOS(&MyCaos);
  24640. + }
  24641. + #define    FreeCprList(cprList)    _FreeCprList(GRAPHICS_BASE_NAME, cprList)
  24642. + static __inline void
  24643. + _FreeCprList(void *GfxBase, struct cprlist *cprList)
  24644. + {
  24645. + struct Caos    MyCaos;
  24646. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24647. + //    MyCaos.M68kStart    =    NULL;
  24648. + //    MyCaos.M68kSize        =    0;
  24649. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24650. + //    MyCaos.PPCStart        =    NULL;
  24651. + //    MyCaos.PPCSize        =    0;
  24652. +     MyCaos.a0        =(ULONG) cprList;
  24653. +     MyCaos.caos_Un.Offset    =    (-564);
  24654. +     MyCaos.a6        =(ULONG) GfxBase;    
  24655. +     PPCCallOS(&MyCaos);
  24656. + }
  24657. + #define    FreeDBufInfo(dbi)    _FreeDBufInfo(GRAPHICS_BASE_NAME, dbi)
  24658. + static __inline void
  24659. + _FreeDBufInfo(void *GfxBase, struct DBufInfo *dbi)
  24660. + {
  24661. + struct Caos    MyCaos;
  24662. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24663. + //    MyCaos.M68kStart    =    NULL;
  24664. + //    MyCaos.M68kSize        =    0;
  24665. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24666. + //    MyCaos.PPCStart        =    NULL;
  24667. + //    MyCaos.PPCSize        =    0;
  24668. +     MyCaos.a1        =(ULONG) dbi;
  24669. +     MyCaos.caos_Un.Offset    =    (-972);
  24670. +     MyCaos.a6        =(ULONG) GfxBase;    
  24671. +     PPCCallOS(&MyCaos);
  24672. + }
  24673. + #define    FreeGBuffers(anOb, rp, flag)    _FreeGBuffers(GRAPHICS_BASE_NAME, anOb, rp, flag)
  24674. + static __inline void
  24675. + _FreeGBuffers(void *GfxBase, struct AnimOb *anOb, struct RastPort *rp, long flag)
  24676. + {
  24677. + struct Caos    MyCaos;
  24678. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24679. + //    MyCaos.M68kStart    =    NULL;
  24680. + //    MyCaos.M68kSize        =    0;
  24681. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24682. + //    MyCaos.PPCStart        =    NULL;
  24683. + //    MyCaos.PPCSize        =    0;
  24684. +     MyCaos.a0        =(ULONG) anOb;
  24685. +     MyCaos.a1        =(ULONG) rp;
  24686. +     MyCaos.d0        =(ULONG) flag;
  24687. +     MyCaos.caos_Un.Offset    =    (-600);
  24688. +     MyCaos.a6        =(ULONG) GfxBase;    
  24689. +     PPCCallOS(&MyCaos);
  24690. + }
  24691. + #define    FreeRaster(p, width, height)    _FreeRaster(GRAPHICS_BASE_NAME, p, width, height)
  24692. + static __inline void
  24693. + _FreeRaster(void *GfxBase, PLANEPTR p, unsigned long width, unsigned long height)
  24694. + {
  24695. + struct Caos    MyCaos;
  24696. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24697. + //    MyCaos.M68kStart    =    NULL;
  24698. + //    MyCaos.M68kSize        =    0;
  24699. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24700. + //    MyCaos.PPCStart        =    NULL;
  24701. + //    MyCaos.PPCSize        =    0;
  24702. +     MyCaos.a0        =(ULONG) p;
  24703. +     MyCaos.d0        =(ULONG) width;
  24704. +     MyCaos.d1        =(ULONG) height;
  24705. +     MyCaos.caos_Un.Offset    =    (-498);
  24706. +     MyCaos.a6        =(ULONG) GfxBase;    
  24707. +     PPCCallOS(&MyCaos);
  24708. + }
  24709. + #define    FreeSprite(num)    _FreeSprite(GRAPHICS_BASE_NAME, num)
  24710. + static __inline void
  24711. + _FreeSprite(void *GfxBase, long num)
  24712. + {
  24713. + struct Caos    MyCaos;
  24714. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24715. + //    MyCaos.M68kStart    =    NULL;
  24716. + //    MyCaos.M68kSize        =    0;
  24717. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24718. + //    MyCaos.PPCStart        =    NULL;
  24719. + //    MyCaos.PPCSize        =    0;
  24720. +     MyCaos.d0        =(ULONG) num;
  24721. +     MyCaos.caos_Un.Offset    =    (-414);
  24722. +     MyCaos.a6        =(ULONG) GfxBase;    
  24723. +     PPCCallOS(&MyCaos);
  24724. + }
  24725. + #define    FreeSpriteData(sp)    _FreeSpriteData(GRAPHICS_BASE_NAME, sp)
  24726. + static __inline void
  24727. + _FreeSpriteData(void *GfxBase, struct ExtSprite *sp)
  24728. + {
  24729. + struct Caos    MyCaos;
  24730. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24731. + //    MyCaos.M68kStart    =    NULL;
  24732. + //    MyCaos.M68kSize        =    0;
  24733. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24734. + //    MyCaos.PPCStart        =    NULL;
  24735. + //    MyCaos.PPCSize        =    0;
  24736. +     MyCaos.a2        =(ULONG) sp;
  24737. +     MyCaos.caos_Un.Offset    =    (-1032);
  24738. +     MyCaos.a6        =(ULONG) GfxBase;    
  24739. +     PPCCallOS(&MyCaos);
  24740. + }
  24741. + #define    FreeVPortCopLists(vp)    _FreeVPortCopLists(GRAPHICS_BASE_NAME, vp)
  24742. + static __inline void
  24743. + _FreeVPortCopLists(void *GfxBase, struct ViewPort *vp)
  24744. + {
  24745. + struct Caos    MyCaos;
  24746. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24747. + //    MyCaos.M68kStart    =    NULL;
  24748. + //    MyCaos.M68kSize        =    0;
  24749. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24750. + //    MyCaos.PPCStart        =    NULL;
  24751. + //    MyCaos.PPCSize        =    0;
  24752. +     MyCaos.a0        =(ULONG) vp;
  24753. +     MyCaos.caos_Un.Offset    =    (-540);
  24754. +     MyCaos.a6        =(ULONG) GfxBase;    
  24755. +     PPCCallOS(&MyCaos);
  24756. + }
  24757. + #define    GetAPen(rp)    _GetAPen(GRAPHICS_BASE_NAME, rp)
  24758. + static __inline ULONG
  24759. + _GetAPen(void *GfxBase, struct RastPort *rp)
  24760. + {
  24761. + struct Caos    MyCaos;
  24762. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24763. + //    MyCaos.M68kStart    =    NULL;
  24764. + //    MyCaos.M68kSize        =    0;
  24765. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24766. + //    MyCaos.PPCStart        =    NULL;
  24767. + //    MyCaos.PPCSize        =    0;
  24768. +     MyCaos.a0        =(ULONG) rp;
  24769. +     MyCaos.caos_Un.Offset    =    (-858);
  24770. +     MyCaos.a6        =(ULONG) GfxBase;    
  24771. +     return((ULONG)PPCCallOS(&MyCaos));
  24772. + }
  24773. + #define    GetBPen(rp)    _GetBPen(GRAPHICS_BASE_NAME, rp)
  24774. + static __inline ULONG
  24775. + _GetBPen(void *GfxBase, struct RastPort *rp)
  24776. + {
  24777. + struct Caos    MyCaos;
  24778. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24779. + //    MyCaos.M68kStart    =    NULL;
  24780. + //    MyCaos.M68kSize        =    0;
  24781. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24782. + //    MyCaos.PPCStart        =    NULL;
  24783. + //    MyCaos.PPCSize        =    0;
  24784. +     MyCaos.a0        =(ULONG) rp;
  24785. +     MyCaos.caos_Un.Offset    =    (-864);
  24786. +     MyCaos.a6        =(ULONG) GfxBase;    
  24787. +     return((ULONG)PPCCallOS(&MyCaos));
  24788. + }
  24789. + #define    GetBitMapAttr(bm, attrnum)    _GetBitMapAttr(GRAPHICS_BASE_NAME, bm, attrnum)
  24790. + static __inline ULONG
  24791. + _GetBitMapAttr(void *GfxBase, struct BitMap *bm, unsigned long attrnum)
  24792. + {
  24793. + struct Caos    MyCaos;
  24794. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24795. + //    MyCaos.M68kStart    =    NULL;
  24796. + //    MyCaos.M68kSize        =    0;
  24797. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24798. + //    MyCaos.PPCStart        =    NULL;
  24799. + //    MyCaos.PPCSize        =    0;
  24800. +     MyCaos.a0        =(ULONG) bm;
  24801. +     MyCaos.d1        =(ULONG) attrnum;
  24802. +     MyCaos.caos_Un.Offset    =    (-960);
  24803. +     MyCaos.a6        =(ULONG) GfxBase;    
  24804. +     return((ULONG)PPCCallOS(&MyCaos));
  24805. + }
  24806. + #define    GetColorMap(entries)    _GetColorMap(GRAPHICS_BASE_NAME, entries)
  24807. + static __inline struct ColorMap *
  24808. + _GetColorMap(void *GfxBase, long entries)
  24809. + {
  24810. + struct Caos    MyCaos;
  24811. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24812. + //    MyCaos.M68kStart    =    NULL;
  24813. + //    MyCaos.M68kSize        =    0;
  24814. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24815. + //    MyCaos.PPCStart        =    NULL;
  24816. + //    MyCaos.PPCSize        =    0;
  24817. +     MyCaos.d0        =(ULONG) entries;
  24818. +     MyCaos.caos_Un.Offset    =    (-570);
  24819. +     MyCaos.a6        =(ULONG) GfxBase;    
  24820. +     return((struct ColorMap *)PPCCallOS(&MyCaos));
  24821. + }
  24822. + #define    GetDisplayInfoData(handle, buf, size, tagID, displayID)    _GetDisplayInfoData(GRAPHICS_BASE_NAME, handle, buf, size, tagID, displayID)
  24823. + static __inline ULONG
  24824. + _GetDisplayInfoData(void *GfxBase, DisplayInfoHandle handle, UBYTE *buf, unsigned long size, unsigned long tagID, unsigned long displayID)
  24825. + {
  24826. + struct Caos    MyCaos;
  24827. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24828. + //    MyCaos.M68kStart    =    NULL;
  24829. + //    MyCaos.M68kSize        =    0;
  24830. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24831. + //    MyCaos.PPCStart        =    NULL;
  24832. + //    MyCaos.PPCSize        =    0;
  24833. +     MyCaos.a0        =(ULONG) handle;
  24834. +     MyCaos.a1        =(ULONG) buf;
  24835. +     MyCaos.d0        =(ULONG) size;
  24836. +     MyCaos.d1        =(ULONG) tagID;
  24837. +     MyCaos.d2        =(ULONG) displayID;
  24838. +     MyCaos.caos_Un.Offset    =    (-756);
  24839. +     MyCaos.a6        =(ULONG) GfxBase;    
  24840. +     return((ULONG)PPCCallOS(&MyCaos));
  24841. + }
  24842. + #define    GetDrMd(rp)    _GetDrMd(GRAPHICS_BASE_NAME, rp)
  24843. + static __inline ULONG
  24844. + _GetDrMd(void *GfxBase, struct RastPort *rp)
  24845. + {
  24846. + struct Caos    MyCaos;
  24847. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24848. + //    MyCaos.M68kStart    =    NULL;
  24849. + //    MyCaos.M68kSize        =    0;
  24850. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24851. + //    MyCaos.PPCStart        =    NULL;
  24852. + //    MyCaos.PPCSize        =    0;
  24853. +     MyCaos.a0        =(ULONG) rp;
  24854. +     MyCaos.caos_Un.Offset    =    (-870);
  24855. +     MyCaos.a6        =(ULONG) GfxBase;    
  24856. +     return((ULONG)PPCCallOS(&MyCaos));
  24857. + }
  24858. + #define    GetExtSpriteA(ss, tags)    _GetExtSpriteA(GRAPHICS_BASE_NAME, ss, tags)
  24859. + static __inline LONG
  24860. + _GetExtSpriteA(void *GfxBase, struct ExtSprite *ss, struct TagItem *tags)
  24861. + {
  24862. + struct Caos    MyCaos;
  24863. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24864. + //    MyCaos.M68kStart    =    NULL;
  24865. + //    MyCaos.M68kSize        =    0;
  24866. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24867. + //    MyCaos.PPCStart        =    NULL;
  24868. + //    MyCaos.PPCSize        =    0;
  24869. +     MyCaos.a2        =(ULONG) ss;
  24870. +     MyCaos.a1        =(ULONG) tags;
  24871. +     MyCaos.caos_Un.Offset    =    (-930);
  24872. +     MyCaos.a6        =(ULONG) GfxBase;    
  24873. +     return((LONG)PPCCallOS(&MyCaos));
  24874. + }
  24875. + #ifndef NO_PPCINLINE_STDARG
  24876. + #define GetExtSprite(a0, tags...) \
  24877. +     ({ULONG _tags[] = { tags }; GetExtSpriteA((a0), (struct TagItem *)_tags);})
  24878. + #endif /* !NO_PPCINLINE_STDARG */
  24879. + #define    GetGBuffers(anOb, rp, flag)    _GetGBuffers(GRAPHICS_BASE_NAME, anOb, rp, flag)
  24880. + static __inline BOOL
  24881. + _GetGBuffers(void *GfxBase, struct AnimOb *anOb, struct RastPort *rp, long flag)
  24882. + {
  24883. + struct Caos    MyCaos;
  24884. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24885. + //    MyCaos.M68kStart    =    NULL;
  24886. + //    MyCaos.M68kSize        =    0;
  24887. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24888. + //    MyCaos.PPCStart        =    NULL;
  24889. + //    MyCaos.PPCSize        =    0;
  24890. +     MyCaos.a0        =(ULONG) anOb;
  24891. +     MyCaos.a1        =(ULONG) rp;
  24892. +     MyCaos.d0        =(ULONG) flag;
  24893. +     MyCaos.caos_Un.Offset    =    (-168);
  24894. +     MyCaos.a6        =(ULONG) GfxBase;    
  24895. +     return((BOOL)PPCCallOS(&MyCaos));
  24896. + }
  24897. + #define    GetOutlinePen(rp)    _GetOutlinePen(GRAPHICS_BASE_NAME, rp)
  24898. + static __inline ULONG
  24899. + _GetOutlinePen(void *GfxBase, struct RastPort *rp)
  24900. + {
  24901. + struct Caos    MyCaos;
  24902. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24903. + //    MyCaos.M68kStart    =    NULL;
  24904. + //    MyCaos.M68kSize        =    0;
  24905. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24906. + //    MyCaos.PPCStart        =    NULL;
  24907. + //    MyCaos.PPCSize        =    0;
  24908. +     MyCaos.a0        =(ULONG) rp;
  24909. +     MyCaos.caos_Un.Offset    =    (-876);
  24910. +     MyCaos.a6        =(ULONG) GfxBase;    
  24911. +     return((ULONG)PPCCallOS(&MyCaos));
  24912. + }
  24913. + #define    GetRGB32(cm, firstcolor, ncolors, table)    _GetRGB32(GRAPHICS_BASE_NAME, cm, firstcolor, ncolors, table)
  24914. + static __inline void
  24915. + _GetRGB32(void *GfxBase, struct ColorMap *cm, unsigned long firstcolor, unsigned long ncolors, ULONG *table)
  24916. + {
  24917. + struct Caos    MyCaos;
  24918. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24919. + //    MyCaos.M68kStart    =    NULL;
  24920. + //    MyCaos.M68kSize        =    0;
  24921. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24922. + //    MyCaos.PPCStart        =    NULL;
  24923. + //    MyCaos.PPCSize        =    0;
  24924. +     MyCaos.a0        =(ULONG) cm;
  24925. +     MyCaos.d0        =(ULONG) firstcolor;
  24926. +     MyCaos.d1        =(ULONG) ncolors;
  24927. +     MyCaos.a1        =(ULONG) table;
  24928. +     MyCaos.caos_Un.Offset    =    (-900);
  24929. +     MyCaos.a6        =(ULONG) GfxBase;    
  24930. +     PPCCallOS(&MyCaos);
  24931. + }
  24932. + #define    GetRGB4(colorMap, entry)    _GetRGB4(GRAPHICS_BASE_NAME, colorMap, entry)
  24933. + static __inline ULONG
  24934. + _GetRGB4(void *GfxBase, struct ColorMap *colorMap, long entry)
  24935. + {
  24936. + struct Caos    MyCaos;
  24937. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24938. + //    MyCaos.M68kStart    =    NULL;
  24939. + //    MyCaos.M68kSize        =    0;
  24940. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24941. + //    MyCaos.PPCStart        =    NULL;
  24942. + //    MyCaos.PPCSize        =    0;
  24943. +     MyCaos.a0        =(ULONG) colorMap;
  24944. +     MyCaos.d0        =(ULONG) entry;
  24945. +     MyCaos.caos_Un.Offset    =    (-582);
  24946. +     MyCaos.a6        =(ULONG) GfxBase;    
  24947. +     return((ULONG)PPCCallOS(&MyCaos));
  24948. + }
  24949. + #define    GetRPAttrsA(rp, tags)    _GetRPAttrsA(GRAPHICS_BASE_NAME, rp, tags)
  24950. + static __inline void
  24951. + _GetRPAttrsA(void *GfxBase, struct RastPort *rp, struct TagItem *tags)
  24952. + {
  24953. + struct Caos    MyCaos;
  24954. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24955. + //    MyCaos.M68kStart    =    NULL;
  24956. + //    MyCaos.M68kSize        =    0;
  24957. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24958. + //    MyCaos.PPCStart        =    NULL;
  24959. + //    MyCaos.PPCSize        =    0;
  24960. +     MyCaos.a0        =(ULONG) rp;
  24961. +     MyCaos.a1        =(ULONG) tags;
  24962. +     MyCaos.caos_Un.Offset    =    (-1044);
  24963. +     MyCaos.a6        =(ULONG) GfxBase;    
  24964. +     PPCCallOS(&MyCaos);
  24965. + }
  24966. + #ifndef NO_PPCINLINE_STDARG
  24967. + #define GetRPAttrs(a0, tags...) \
  24968. +     ({ULONG _tags[] = { tags }; GetRPAttrsA((a0), (struct TagItem *)_tags);})
  24969. + #endif /* !NO_PPCINLINE_STDARG */
  24970. + #define    GetSprite(sprite, num)    _GetSprite(GRAPHICS_BASE_NAME, sprite, num)
  24971. + static __inline WORD
  24972. + _GetSprite(void *GfxBase, struct SimpleSprite *sprite, long num)
  24973. + {
  24974. + struct Caos    MyCaos;
  24975. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24976. + //    MyCaos.M68kStart    =    NULL;
  24977. + //    MyCaos.M68kSize        =    0;
  24978. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24979. + //    MyCaos.PPCStart        =    NULL;
  24980. + //    MyCaos.PPCSize        =    0;
  24981. +     MyCaos.a0        =(ULONG) sprite;
  24982. +     MyCaos.d0        =(ULONG) num;
  24983. +     MyCaos.caos_Un.Offset    =    (-408);
  24984. +     MyCaos.a6        =(ULONG) GfxBase;    
  24985. +     return((WORD)PPCCallOS(&MyCaos));
  24986. + }
  24987. + #define    GetVPModeID(vp)    _GetVPModeID(GRAPHICS_BASE_NAME, vp)
  24988. + static __inline LONG
  24989. + _GetVPModeID(void *GfxBase, struct ViewPort *vp)
  24990. + {
  24991. + struct Caos    MyCaos;
  24992. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  24993. + //    MyCaos.M68kStart    =    NULL;
  24994. + //    MyCaos.M68kSize        =    0;
  24995. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  24996. + //    MyCaos.PPCStart        =    NULL;
  24997. + //    MyCaos.PPCSize        =    0;
  24998. +     MyCaos.a0        =(ULONG) vp;
  24999. +     MyCaos.caos_Un.Offset    =    (-792);
  25000. +     MyCaos.a6        =(ULONG) GfxBase;    
  25001. +     return((LONG)PPCCallOS(&MyCaos));
  25002. + }
  25003. + #define    GfxAssociate(associateNode, gfxNodePtr)    _GfxAssociate(GRAPHICS_BASE_NAME, associateNode, gfxNodePtr)
  25004. + static __inline void
  25005. + _GfxAssociate(void *GfxBase, APTR associateNode, APTR gfxNodePtr)
  25006. + {
  25007. + struct Caos    MyCaos;
  25008. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25009. + //    MyCaos.M68kStart    =    NULL;
  25010. + //    MyCaos.M68kSize        =    0;
  25011. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25012. + //    MyCaos.PPCStart        =    NULL;
  25013. + //    MyCaos.PPCSize        =    0;
  25014. +     MyCaos.a0        =(ULONG) associateNode;
  25015. +     MyCaos.a1        =(ULONG) gfxNodePtr;
  25016. +     MyCaos.caos_Un.Offset    =    (-672);
  25017. +     MyCaos.a6        =(ULONG) GfxBase;    
  25018. +     PPCCallOS(&MyCaos);
  25019. + }
  25020. + #define    GfxFree(gfxNodePtr)    _GfxFree(GRAPHICS_BASE_NAME, gfxNodePtr)
  25021. + static __inline void
  25022. + _GfxFree(void *GfxBase, APTR gfxNodePtr)
  25023. + {
  25024. + struct Caos    MyCaos;
  25025. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25026. + //    MyCaos.M68kStart    =    NULL;
  25027. + //    MyCaos.M68kSize        =    0;
  25028. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25029. + //    MyCaos.PPCStart        =    NULL;
  25030. + //    MyCaos.PPCSize        =    0;
  25031. +     MyCaos.a0        =(ULONG) gfxNodePtr;
  25032. +     MyCaos.caos_Un.Offset    =    (-666);
  25033. +     MyCaos.a6        =(ULONG) GfxBase;    
  25034. +     PPCCallOS(&MyCaos);
  25035. + }
  25036. + #define    GfxLookUp(associateNode)    _GfxLookUp(GRAPHICS_BASE_NAME, associateNode)
  25037. + static __inline APTR
  25038. + _GfxLookUp(void *GfxBase, APTR associateNode)
  25039. + {
  25040. + struct Caos    MyCaos;
  25041. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25042. + //    MyCaos.M68kStart    =    NULL;
  25043. + //    MyCaos.M68kSize        =    0;
  25044. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25045. + //    MyCaos.PPCStart        =    NULL;
  25046. + //    MyCaos.PPCSize        =    0;
  25047. +     MyCaos.a0        =(ULONG) associateNode;
  25048. +     MyCaos.caos_Un.Offset    =    (-702);
  25049. +     MyCaos.a6        =(ULONG) GfxBase;    
  25050. +     return((APTR)PPCCallOS(&MyCaos));
  25051. + }
  25052. + #define    GfxNew(gfxNodeType)    _GfxNew(GRAPHICS_BASE_NAME, gfxNodeType)
  25053. + static __inline APTR
  25054. + _GfxNew(void *GfxBase, unsigned long gfxNodeType)
  25055. + {
  25056. + struct Caos    MyCaos;
  25057. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25058. + //    MyCaos.M68kStart    =    NULL;
  25059. + //    MyCaos.M68kSize        =    0;
  25060. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25061. + //    MyCaos.PPCStart        =    NULL;
  25062. + //    MyCaos.PPCSize        =    0;
  25063. +     MyCaos.d0        =(ULONG) gfxNodeType;
  25064. +     MyCaos.caos_Un.Offset    =    (-660);
  25065. +     MyCaos.a6        =(ULONG) GfxBase;    
  25066. +     return((APTR)PPCCallOS(&MyCaos));
  25067. + }
  25068. + #define    InitArea(areaInfo, vectorBuffer, maxVectors)    _InitArea(GRAPHICS_BASE_NAME, areaInfo, vectorBuffer, maxVectors)
  25069. + static __inline void
  25070. + _InitArea(void *GfxBase, struct AreaInfo *areaInfo, APTR vectorBuffer, long maxVectors)
  25071. + {
  25072. + struct Caos    MyCaos;
  25073. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25074. + //    MyCaos.M68kStart    =    NULL;
  25075. + //    MyCaos.M68kSize        =    0;
  25076. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25077. + //    MyCaos.PPCStart        =    NULL;
  25078. + //    MyCaos.PPCSize        =    0;
  25079. +     MyCaos.a0        =(ULONG) areaInfo;
  25080. +     MyCaos.a1        =(ULONG) vectorBuffer;
  25081. +     MyCaos.d0        =(ULONG) maxVectors;
  25082. +     MyCaos.caos_Un.Offset    =    (-282);
  25083. +     MyCaos.a6        =(ULONG) GfxBase;    
  25084. +     PPCCallOS(&MyCaos);
  25085. + }
  25086. + #define    InitBitMap(bitMap, depth, width, height)    _InitBitMap(GRAPHICS_BASE_NAME, bitMap, depth, width, height)
  25087. + static __inline void
  25088. + _InitBitMap(void *GfxBase, struct BitMap *bitMap, long depth, long width, long height)
  25089. + {
  25090. + struct Caos    MyCaos;
  25091. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25092. + //    MyCaos.M68kStart    =    NULL;
  25093. + //    MyCaos.M68kSize        =    0;
  25094. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25095. + //    MyCaos.PPCStart        =    NULL;
  25096. + //    MyCaos.PPCSize        =    0;
  25097. +     MyCaos.a0        =(ULONG) bitMap;
  25098. +     MyCaos.d0        =(ULONG) depth;
  25099. +     MyCaos.d1        =(ULONG) width;
  25100. +     MyCaos.d2        =(ULONG) height;
  25101. +     MyCaos.caos_Un.Offset    =    (-390);
  25102. +     MyCaos.a6        =(ULONG) GfxBase;    
  25103. +     PPCCallOS(&MyCaos);
  25104. + }
  25105. + #define    InitGMasks(anOb)    _InitGMasks(GRAPHICS_BASE_NAME, anOb)
  25106. + static __inline void
  25107. + _InitGMasks(void *GfxBase, struct AnimOb *anOb)
  25108. + {
  25109. + struct Caos    MyCaos;
  25110. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25111. + //    MyCaos.M68kStart    =    NULL;
  25112. + //    MyCaos.M68kSize        =    0;
  25113. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25114. + //    MyCaos.PPCStart        =    NULL;
  25115. + //    MyCaos.PPCSize        =    0;
  25116. +     MyCaos.a0        =(ULONG) anOb;
  25117. +     MyCaos.caos_Un.Offset    =    (-174);
  25118. +     MyCaos.a6        =(ULONG) GfxBase;    
  25119. +     PPCCallOS(&MyCaos);
  25120. + }
  25121. + #define    InitGels(head, tail, gelsInfo)    _InitGels(GRAPHICS_BASE_NAME, head, tail, gelsInfo)
  25122. + static __inline void
  25123. + _InitGels(void *GfxBase, struct VSprite *head, struct VSprite *tail, struct GelsInfo *gelsInfo)
  25124. + {
  25125. + struct Caos    MyCaos;
  25126. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25127. + //    MyCaos.M68kStart    =    NULL;
  25128. + //    MyCaos.M68kSize        =    0;
  25129. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25130. + //    MyCaos.PPCStart        =    NULL;
  25131. + //    MyCaos.PPCSize        =    0;
  25132. +     MyCaos.a0        =(ULONG) head;
  25133. +     MyCaos.a1        =(ULONG) tail;
  25134. +     MyCaos.a2        =(ULONG) gelsInfo;
  25135. +     MyCaos.caos_Un.Offset    =    (-120);
  25136. +     MyCaos.a6        =(ULONG) GfxBase;    
  25137. +     PPCCallOS(&MyCaos);
  25138. + }
  25139. + #define    InitMasks(vSprite)    _InitMasks(GRAPHICS_BASE_NAME, vSprite)
  25140. + static __inline void
  25141. + _InitMasks(void *GfxBase, struct VSprite *vSprite)
  25142. + {
  25143. + struct Caos    MyCaos;
  25144. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25145. + //    MyCaos.M68kStart    =    NULL;
  25146. + //    MyCaos.M68kSize        =    0;
  25147. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25148. + //    MyCaos.PPCStart        =    NULL;
  25149. + //    MyCaos.PPCSize        =    0;
  25150. +     MyCaos.a0        =(ULONG) vSprite;
  25151. +     MyCaos.caos_Un.Offset    =    (-126);
  25152. +     MyCaos.a6        =(ULONG) GfxBase;    
  25153. +     PPCCallOS(&MyCaos);
  25154. + }
  25155. + #define    InitRastPort(rp)    _InitRastPort(GRAPHICS_BASE_NAME, rp)
  25156. + static __inline void
  25157. + _InitRastPort(void *GfxBase, struct RastPort *rp)
  25158. + {
  25159. + struct Caos    MyCaos;
  25160. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25161. + //    MyCaos.M68kStart    =    NULL;
  25162. + //    MyCaos.M68kSize        =    0;
  25163. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25164. + //    MyCaos.PPCStart        =    NULL;
  25165. + //    MyCaos.PPCSize        =    0;
  25166. +     MyCaos.a1        =(ULONG) rp;
  25167. +     MyCaos.caos_Un.Offset    =    (-198);
  25168. +     MyCaos.a6        =(ULONG) GfxBase;    
  25169. +     PPCCallOS(&MyCaos);
  25170. + }
  25171. + #define    InitTmpRas(tmpRas, buffer, size)    _InitTmpRas(GRAPHICS_BASE_NAME, tmpRas, buffer, size)
  25172. + static __inline struct TmpRas *
  25173. + _InitTmpRas(void *GfxBase, struct TmpRas *tmpRas, PLANEPTR buffer, long size)
  25174. + {
  25175. + struct Caos    MyCaos;
  25176. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25177. + //    MyCaos.M68kStart    =    NULL;
  25178. + //    MyCaos.M68kSize        =    0;
  25179. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25180. + //    MyCaos.PPCStart        =    NULL;
  25181. + //    MyCaos.PPCSize        =    0;
  25182. +     MyCaos.a0        =(ULONG) tmpRas;
  25183. +     MyCaos.a1        =(ULONG) buffer;
  25184. +     MyCaos.d0        =(ULONG) size;
  25185. +     MyCaos.caos_Un.Offset    =    (-468);
  25186. +     MyCaos.a6        =(ULONG) GfxBase;    
  25187. +     return((struct TmpRas *)PPCCallOS(&MyCaos));
  25188. + }
  25189. + #define    InitVPort(vp)    _InitVPort(GRAPHICS_BASE_NAME, vp)
  25190. + static __inline void
  25191. + _InitVPort(void *GfxBase, struct ViewPort *vp)
  25192. + {
  25193. + struct Caos    MyCaos;
  25194. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25195. + //    MyCaos.M68kStart    =    NULL;
  25196. + //    MyCaos.M68kSize        =    0;
  25197. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25198. + //    MyCaos.PPCStart        =    NULL;
  25199. + //    MyCaos.PPCSize        =    0;
  25200. +     MyCaos.a0        =(ULONG) vp;
  25201. +     MyCaos.caos_Un.Offset    =    (-204);
  25202. +     MyCaos.a6        =(ULONG) GfxBase;    
  25203. +     PPCCallOS(&MyCaos);
  25204. + }
  25205. + #define    InitView(view)    _InitView(GRAPHICS_BASE_NAME, view)
  25206. + static __inline void
  25207. + _InitView(void *GfxBase, struct View *view)
  25208. + {
  25209. + struct Caos    MyCaos;
  25210. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25211. + //    MyCaos.M68kStart    =    NULL;
  25212. + //    MyCaos.M68kSize        =    0;
  25213. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25214. + //    MyCaos.PPCStart        =    NULL;
  25215. + //    MyCaos.PPCSize        =    0;
  25216. +     MyCaos.a1        =(ULONG) view;
  25217. +     MyCaos.caos_Un.Offset    =    (-360);
  25218. +     MyCaos.a6        =(ULONG) GfxBase;    
  25219. +     PPCCallOS(&MyCaos);
  25220. + }
  25221. + #define    LoadRGB32(vp, table)    _LoadRGB32(GRAPHICS_BASE_NAME, vp, table)
  25222. + static __inline void
  25223. + _LoadRGB32(void *GfxBase, struct ViewPort *vp, ULONG *table)
  25224. + {
  25225. + struct Caos    MyCaos;
  25226. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25227. + //    MyCaos.M68kStart    =    NULL;
  25228. + //    MyCaos.M68kSize        =    0;
  25229. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25230. + //    MyCaos.PPCStart        =    NULL;
  25231. + //    MyCaos.PPCSize        =    0;
  25232. +     MyCaos.a0        =(ULONG) vp;
  25233. +     MyCaos.a1        =(ULONG) table;
  25234. +     MyCaos.caos_Un.Offset    =    (-882);
  25235. +     MyCaos.a6        =(ULONG) GfxBase;    
  25236. +     PPCCallOS(&MyCaos);
  25237. + }
  25238. + #define    LoadRGB4(vp, colors, count)    _LoadRGB4(GRAPHICS_BASE_NAME, vp, colors, count)
  25239. + static __inline void
  25240. + _LoadRGB4(void *GfxBase, struct ViewPort *vp, UWORD *colors, long count)
  25241. + {
  25242. + struct Caos    MyCaos;
  25243. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25244. + //    MyCaos.M68kStart    =    NULL;
  25245. + //    MyCaos.M68kSize        =    0;
  25246. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25247. + //    MyCaos.PPCStart        =    NULL;
  25248. + //    MyCaos.PPCSize        =    0;
  25249. +     MyCaos.a0        =(ULONG) vp;
  25250. +     MyCaos.a1        =(ULONG) colors;
  25251. +     MyCaos.d0        =(ULONG) count;
  25252. +     MyCaos.caos_Un.Offset    =    (-192);
  25253. +     MyCaos.a6        =(ULONG) GfxBase;    
  25254. +     PPCCallOS(&MyCaos);
  25255. + }
  25256. + #define    LoadView(view)    _LoadView(GRAPHICS_BASE_NAME, view)
  25257. + static __inline void
  25258. + _LoadView(void *GfxBase, struct View *view)
  25259. + {
  25260. + struct Caos    MyCaos;
  25261. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25262. + //    MyCaos.M68kStart    =    NULL;
  25263. + //    MyCaos.M68kSize        =    0;
  25264. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25265. + //    MyCaos.PPCStart        =    NULL;
  25266. + //    MyCaos.PPCSize        =    0;
  25267. +     MyCaos.a1        =(ULONG) view;
  25268. +     MyCaos.caos_Un.Offset    =    (-222);
  25269. +     MyCaos.a6        =(ULONG) GfxBase;    
  25270. +     PPCCallOS(&MyCaos);
  25271. + }
  25272. + #define    LockLayerRom(layer)    _LockLayerRom(GRAPHICS_BASE_NAME, layer)
  25273. + static __inline void
  25274. + _LockLayerRom(void *GfxBase, struct Layer *layer)
  25275. + {
  25276. + struct Caos    MyCaos;
  25277. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25278. + //    MyCaos.M68kStart    =    NULL;
  25279. + //    MyCaos.M68kSize        =    0;
  25280. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25281. + //    MyCaos.PPCStart        =    NULL;
  25282. + //    MyCaos.PPCSize        =    0;
  25283. +     MyCaos.a5        =(ULONG) layer;
  25284. +     MyCaos.caos_Un.Offset    =    (-432);
  25285. +     MyCaos.a6        =(ULONG) GfxBase;    
  25286. +     PPCCallOS(&MyCaos);
  25287. + }
  25288. + #define    MakeVPort(view, vp)    _MakeVPort(GRAPHICS_BASE_NAME, view, vp)
  25289. + static __inline ULONG
  25290. + _MakeVPort(void *GfxBase, struct View *view, struct ViewPort *vp)
  25291. + {
  25292. + struct Caos    MyCaos;
  25293. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25294. + //    MyCaos.M68kStart    =    NULL;
  25295. + //    MyCaos.M68kSize        =    0;
  25296. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25297. + //    MyCaos.PPCStart        =    NULL;
  25298. + //    MyCaos.PPCSize        =    0;
  25299. +     MyCaos.a0        =(ULONG) view;
  25300. +     MyCaos.a1        =(ULONG) vp;
  25301. +     MyCaos.caos_Un.Offset    =    (-216);
  25302. +     MyCaos.a6        =(ULONG) GfxBase;    
  25303. +     return((ULONG)PPCCallOS(&MyCaos));
  25304. + }
  25305. + #define    ModeNotAvailable(modeID)    _ModeNotAvailable(GRAPHICS_BASE_NAME, modeID)
  25306. + static __inline LONG
  25307. + _ModeNotAvailable(void *GfxBase, unsigned long modeID)
  25308. + {
  25309. + struct Caos    MyCaos;
  25310. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25311. + //    MyCaos.M68kStart    =    NULL;
  25312. + //    MyCaos.M68kSize        =    0;
  25313. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25314. + //    MyCaos.PPCStart        =    NULL;
  25315. + //    MyCaos.PPCSize        =    0;
  25316. +     MyCaos.d0        =(ULONG) modeID;
  25317. +     MyCaos.caos_Un.Offset    =    (-798);
  25318. +     MyCaos.a6        =(ULONG) GfxBase;    
  25319. +     return((LONG)PPCCallOS(&MyCaos));
  25320. + }
  25321. + #define    Move(rp, x, y)    _Move(GRAPHICS_BASE_NAME, rp, x, y)
  25322. + static __inline void
  25323. + _Move(void *GfxBase, struct RastPort *rp, long x, long y)
  25324. + {
  25325. + struct Caos    MyCaos;
  25326. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25327. + //    MyCaos.M68kStart    =    NULL;
  25328. + //    MyCaos.M68kSize        =    0;
  25329. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25330. + //    MyCaos.PPCStart        =    NULL;
  25331. + //    MyCaos.PPCSize        =    0;
  25332. +     MyCaos.a1        =(ULONG) rp;
  25333. +     MyCaos.d0        =(ULONG) x;
  25334. +     MyCaos.d1        =(ULONG) y;
  25335. +     MyCaos.caos_Un.Offset    =    (-240);
  25336. +     MyCaos.a6        =(ULONG) GfxBase;    
  25337. +     PPCCallOS(&MyCaos);
  25338. + }
  25339. + #define    MoveSprite(vp, sprite, x, y)    _MoveSprite(GRAPHICS_BASE_NAME, vp, sprite, x, y)
  25340. + static __inline void
  25341. + _MoveSprite(void *GfxBase, struct ViewPort *vp, struct SimpleSprite *sprite, long x, long y)
  25342. + {
  25343. + struct Caos    MyCaos;
  25344. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25345. + //    MyCaos.M68kStart    =    NULL;
  25346. + //    MyCaos.M68kSize        =    0;
  25347. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25348. + //    MyCaos.PPCStart        =    NULL;
  25349. + //    MyCaos.PPCSize        =    0;
  25350. +     MyCaos.a0        =(ULONG) vp;
  25351. +     MyCaos.a1        =(ULONG) sprite;
  25352. +     MyCaos.d0        =(ULONG) x;
  25353. +     MyCaos.d1        =(ULONG) y;
  25354. +     MyCaos.caos_Un.Offset    =    (-426);
  25355. +     MyCaos.a6        =(ULONG) GfxBase;    
  25356. +     PPCCallOS(&MyCaos);
  25357. + }
  25358. + #define    MrgCop(view)    _MrgCop(GRAPHICS_BASE_NAME, view)
  25359. + static __inline ULONG
  25360. + _MrgCop(void *GfxBase, struct View *view)
  25361. + {
  25362. + struct Caos    MyCaos;
  25363. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25364. + //    MyCaos.M68kStart    =    NULL;
  25365. + //    MyCaos.M68kSize        =    0;
  25366. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25367. + //    MyCaos.PPCStart        =    NULL;
  25368. + //    MyCaos.PPCSize        =    0;
  25369. +     MyCaos.a1        =(ULONG) view;
  25370. +     MyCaos.caos_Un.Offset    =    (-210);
  25371. +     MyCaos.a6        =(ULONG) GfxBase;    
  25372. +     return((ULONG)PPCCallOS(&MyCaos));
  25373. + }
  25374. + #define    NewRegion()    _NewRegion(GRAPHICS_BASE_NAME)
  25375. + static __inline struct Region *
  25376. + _NewRegion(void *GfxBase)
  25377. + {
  25378. + struct Caos    MyCaos;
  25379. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25380. + //    MyCaos.M68kStart    =    NULL;
  25381. + //    MyCaos.M68kSize        =    0;
  25382. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25383. + //    MyCaos.PPCStart        =    NULL;
  25384. + //    MyCaos.PPCSize        =    0;
  25385. +     MyCaos.caos_Un.Offset    =    (-516);
  25386. +     MyCaos.a6        =(ULONG) GfxBase;    
  25387. +     return((struct Region *)PPCCallOS(&MyCaos));
  25388. + }
  25389. + #define    NextDisplayInfo(displayID)    _NextDisplayInfo(GRAPHICS_BASE_NAME, displayID)
  25390. + static __inline ULONG
  25391. + _NextDisplayInfo(void *GfxBase, unsigned long displayID)
  25392. + {
  25393. + struct Caos    MyCaos;
  25394. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25395. + //    MyCaos.M68kStart    =    NULL;
  25396. + //    MyCaos.M68kSize        =    0;
  25397. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25398. + //    MyCaos.PPCStart        =    NULL;
  25399. + //    MyCaos.PPCSize        =    0;
  25400. +     MyCaos.d0        =(ULONG) displayID;
  25401. +     MyCaos.caos_Un.Offset    =    (-732);
  25402. +     MyCaos.a6        =(ULONG) GfxBase;    
  25403. +     return((ULONG)PPCCallOS(&MyCaos));
  25404. + }
  25405. + #define    ObtainBestPenA(cm, r, g, b, tags)    _ObtainBestPenA(GRAPHICS_BASE_NAME, cm, r, g, b, tags)
  25406. + static __inline LONG
  25407. + _ObtainBestPenA(void *GfxBase, struct ColorMap *cm, unsigned long r, unsigned long g, unsigned long b, struct TagItem *tags)
  25408. + {
  25409. + struct Caos    MyCaos;
  25410. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25411. + //    MyCaos.M68kStart    =    NULL;
  25412. + //    MyCaos.M68kSize        =    0;
  25413. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25414. + //    MyCaos.PPCStart        =    NULL;
  25415. + //    MyCaos.PPCSize        =    0;
  25416. +     MyCaos.a0        =(ULONG) cm;
  25417. +     MyCaos.d1        =(ULONG) r;
  25418. +     MyCaos.d2        =(ULONG) g;
  25419. +     MyCaos.d3        =(ULONG) b;
  25420. +     MyCaos.a1        =(ULONG) tags;
  25421. +     MyCaos.caos_Un.Offset    =    (-840);
  25422. +     MyCaos.a6        =(ULONG) GfxBase;    
  25423. +     return((LONG)PPCCallOS(&MyCaos));
  25424. + }
  25425. + #ifndef NO_PPCINLINE_STDARG
  25426. + #define ObtainBestPen(a0, a1, a2, a3, tags...) \
  25427. +     ({ULONG _tags[] = { tags }; ObtainBestPenA((a0), (a1), (a2), (a3), (struct TagItem *)_tags);})
  25428. + #endif /* !NO_PPCINLINE_STDARG */
  25429. + #define    ObtainPen(cm, n, r, g, b, f)    _ObtainPen(GRAPHICS_BASE_NAME, cm, n, r, g, b, f)
  25430. + static __inline ULONG
  25431. + _ObtainPen(void *GfxBase, struct ColorMap *cm, unsigned long n, unsigned long r, unsigned long g, unsigned long b, long f)
  25432. + {
  25433. + struct Caos    MyCaos;
  25434. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25435. + //    MyCaos.M68kStart    =    NULL;
  25436. + //    MyCaos.M68kSize        =    0;
  25437. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25438. + //    MyCaos.PPCStart        =    NULL;
  25439. + //    MyCaos.PPCSize        =    0;
  25440. +     MyCaos.a0        =(ULONG) cm;
  25441. +     MyCaos.d0        =(ULONG) n;
  25442. +     MyCaos.d1        =(ULONG) r;
  25443. +     MyCaos.d2        =(ULONG) g;
  25444. +     MyCaos.d3        =(ULONG) b;
  25445. +     MyCaos.d4        =(ULONG) f;
  25446. +     MyCaos.caos_Un.Offset    =    (-954);
  25447. +     MyCaos.a6        =(ULONG) GfxBase;    
  25448. +     return((ULONG)PPCCallOS(&MyCaos));
  25449. + }
  25450. + #define    OpenFont(textAttr)    _OpenFont(GRAPHICS_BASE_NAME, textAttr)
  25451. + static __inline struct TextFont *
  25452. + _OpenFont(void *GfxBase, struct TextAttr *textAttr)
  25453. + {
  25454. + struct Caos    MyCaos;
  25455. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25456. + //    MyCaos.M68kStart    =    NULL;
  25457. + //    MyCaos.M68kSize        =    0;
  25458. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25459. + //    MyCaos.PPCStart        =    NULL;
  25460. + //    MyCaos.PPCSize        =    0;
  25461. +     MyCaos.a0        =(ULONG) textAttr;
  25462. +     MyCaos.caos_Un.Offset    =    (-72);
  25463. +     MyCaos.a6        =(ULONG) GfxBase;    
  25464. +     return((struct TextFont *)PPCCallOS(&MyCaos));
  25465. + }
  25466. + #define    OpenMonitor(monitorName, displayID)    _OpenMonitor(GRAPHICS_BASE_NAME, monitorName, displayID)
  25467. + static __inline struct MonitorSpec *
  25468. + _OpenMonitor(void *GfxBase, STRPTR monitorName, unsigned long displayID)
  25469. + {
  25470. + struct Caos    MyCaos;
  25471. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25472. + //    MyCaos.M68kStart    =    NULL;
  25473. + //    MyCaos.M68kSize        =    0;
  25474. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25475. + //    MyCaos.PPCStart        =    NULL;
  25476. + //    MyCaos.PPCSize        =    0;
  25477. +     MyCaos.a1        =(ULONG) monitorName;
  25478. +     MyCaos.d0        =(ULONG) displayID;
  25479. +     MyCaos.caos_Un.Offset    =    (-714);
  25480. +     MyCaos.a6        =(ULONG) GfxBase;    
  25481. +     return((struct MonitorSpec *)PPCCallOS(&MyCaos));
  25482. + }
  25483. + #define    OrRectRegion(region, rectangle)    _OrRectRegion(GRAPHICS_BASE_NAME, region, rectangle)
  25484. + static __inline BOOL
  25485. + _OrRectRegion(void *GfxBase, struct Region *region, struct Rectangle *rectangle)
  25486. + {
  25487. + struct Caos    MyCaos;
  25488. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25489. + //    MyCaos.M68kStart    =    NULL;
  25490. + //    MyCaos.M68kSize        =    0;
  25491. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25492. + //    MyCaos.PPCStart        =    NULL;
  25493. + //    MyCaos.PPCSize        =    0;
  25494. +     MyCaos.a0        =(ULONG) region;
  25495. +     MyCaos.a1        =(ULONG) rectangle;
  25496. +     MyCaos.caos_Un.Offset    =    (-510);
  25497. +     MyCaos.a6        =(ULONG) GfxBase;    
  25498. +     return((BOOL)PPCCallOS(&MyCaos));
  25499. + }
  25500. + #define    OrRegionRegion(srcRegion, destRegion)    _OrRegionRegion(GRAPHICS_BASE_NAME, srcRegion, destRegion)
  25501. + static __inline BOOL
  25502. + _OrRegionRegion(void *GfxBase, struct Region *srcRegion, struct Region *destRegion)
  25503. + {
  25504. + struct Caos    MyCaos;
  25505. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25506. + //    MyCaos.M68kStart    =    NULL;
  25507. + //    MyCaos.M68kSize        =    0;
  25508. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25509. + //    MyCaos.PPCStart        =    NULL;
  25510. + //    MyCaos.PPCSize        =    0;
  25511. +     MyCaos.a0        =(ULONG) srcRegion;
  25512. +     MyCaos.a1        =(ULONG) destRegion;
  25513. +     MyCaos.caos_Un.Offset    =    (-612);
  25514. +     MyCaos.a6        =(ULONG) GfxBase;    
  25515. +     return((BOOL)PPCCallOS(&MyCaos));
  25516. + }
  25517. + #define    OwnBlitter()    _OwnBlitter(GRAPHICS_BASE_NAME)
  25518. + static __inline void
  25519. + _OwnBlitter(void *GfxBase)
  25520. + {
  25521. + struct Caos    MyCaos;
  25522. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25523. + //    MyCaos.M68kStart    =    NULL;
  25524. + //    MyCaos.M68kSize        =    0;
  25525. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25526. + //    MyCaos.PPCStart        =    NULL;
  25527. + //    MyCaos.PPCSize        =    0;
  25528. +     MyCaos.caos_Un.Offset    =    (-456);
  25529. +     MyCaos.a6        =(ULONG) GfxBase;    
  25530. +     PPCCallOS(&MyCaos);
  25531. + }
  25532. + #define    PolyDraw(rp, count, polyTable)    _PolyDraw(GRAPHICS_BASE_NAME, rp, count, polyTable)
  25533. + static __inline void
  25534. + _PolyDraw(void *GfxBase, struct RastPort *rp, long count, WORD *polyTable)
  25535. + {
  25536. + struct Caos    MyCaos;
  25537. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25538. + //    MyCaos.M68kStart    =    NULL;
  25539. + //    MyCaos.M68kSize        =    0;
  25540. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25541. + //    MyCaos.PPCStart        =    NULL;
  25542. + //    MyCaos.PPCSize        =    0;
  25543. +     MyCaos.a1        =(ULONG) rp;
  25544. +     MyCaos.d0        =(ULONG) count;
  25545. +     MyCaos.a0        =(ULONG) polyTable;
  25546. +     MyCaos.caos_Un.Offset    =    (-336);
  25547. +     MyCaos.a6        =(ULONG) GfxBase;    
  25548. +     PPCCallOS(&MyCaos);
  25549. + }
  25550. + #define    QBSBlit(blit)    _QBSBlit(GRAPHICS_BASE_NAME, blit)
  25551. + static __inline void
  25552. + _QBSBlit(void *GfxBase, struct bltnode *blit)
  25553. + {
  25554. + struct Caos    MyCaos;
  25555. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25556. + //    MyCaos.M68kStart    =    NULL;
  25557. + //    MyCaos.M68kSize        =    0;
  25558. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25559. + //    MyCaos.PPCStart        =    NULL;
  25560. + //    MyCaos.PPCSize        =    0;
  25561. +     MyCaos.a1        =(ULONG) blit;
  25562. +     MyCaos.caos_Un.Offset    =    (-294);
  25563. +     MyCaos.a6        =(ULONG) GfxBase;    
  25564. +     PPCCallOS(&MyCaos);
  25565. + }
  25566. + #define    QBlit(blit)    _QBlit(GRAPHICS_BASE_NAME, blit)
  25567. + static __inline void
  25568. + _QBlit(void *GfxBase, struct bltnode *blit)
  25569. + {
  25570. + struct Caos    MyCaos;
  25571. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25572. + //    MyCaos.M68kStart    =    NULL;
  25573. + //    MyCaos.M68kSize        =    0;
  25574. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25575. + //    MyCaos.PPCStart        =    NULL;
  25576. + //    MyCaos.PPCSize        =    0;
  25577. +     MyCaos.a1        =(ULONG) blit;
  25578. +     MyCaos.caos_Un.Offset    =    (-276);
  25579. +     MyCaos.a6        =(ULONG) GfxBase;    
  25580. +     PPCCallOS(&MyCaos);
  25581. + }
  25582. + #define    ReadPixel(rp, x, y)    _ReadPixel(GRAPHICS_BASE_NAME, rp, x, y)
  25583. + static __inline ULONG
  25584. + _ReadPixel(void *GfxBase, struct RastPort *rp, long x, long y)
  25585. + {
  25586. + struct Caos    MyCaos;
  25587. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25588. + //    MyCaos.M68kStart    =    NULL;
  25589. + //    MyCaos.M68kSize        =    0;
  25590. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25591. + //    MyCaos.PPCStart        =    NULL;
  25592. + //    MyCaos.PPCSize        =    0;
  25593. +     MyCaos.a1        =(ULONG) rp;
  25594. +     MyCaos.d0        =(ULONG) x;
  25595. +     MyCaos.d1        =(ULONG) y;
  25596. +     MyCaos.caos_Un.Offset    =    (-318);
  25597. +     MyCaos.a6        =(ULONG) GfxBase;    
  25598. +     return((ULONG)PPCCallOS(&MyCaos));
  25599. + }
  25600. + #define    ReadPixelArray8(rp, xstart, ystart, xstop, ystop, array, temprp)    _ReadPixelArray8(GRAPHICS_BASE_NAME, rp, xstart, ystart, xstop, ystop, array, temprp)
  25601. + static __inline LONG
  25602. + _ReadPixelArray8(void *GfxBase, struct RastPort *rp, unsigned long xstart, unsigned long ystart, unsigned long xstop, unsigned long ystop, UBYTE *array, struct RastPort *temprp)
  25603. + {
  25604. + struct Caos    MyCaos;
  25605. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25606. + //    MyCaos.M68kStart    =    NULL;
  25607. + //    MyCaos.M68kSize        =    0;
  25608. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25609. + //    MyCaos.PPCStart        =    NULL;
  25610. + //    MyCaos.PPCSize        =    0;
  25611. +     MyCaos.a0        =(ULONG) rp;
  25612. +     MyCaos.d0        =(ULONG) xstart;
  25613. +     MyCaos.d1        =(ULONG) ystart;
  25614. +     MyCaos.d2        =(ULONG) xstop;
  25615. +     MyCaos.d3        =(ULONG) ystop;
  25616. +     MyCaos.a2        =(ULONG) array;
  25617. +     MyCaos.a1        =(ULONG) temprp;
  25618. +     MyCaos.caos_Un.Offset    =    (-780);
  25619. +     MyCaos.a6        =(ULONG) GfxBase;    
  25620. +     return((LONG)PPCCallOS(&MyCaos));
  25621. + }
  25622. + #define    ReadPixelLine8(rp, xstart, ystart, width, array, tempRP)    _ReadPixelLine8(GRAPHICS_BASE_NAME, rp, xstart, ystart, width, array, tempRP)
  25623. + static __inline LONG
  25624. + _ReadPixelLine8(void *GfxBase, struct RastPort *rp, unsigned long xstart, unsigned long ystart, unsigned long width, UBYTE *array, struct RastPort *tempRP)
  25625. + {
  25626. + struct Caos    MyCaos;
  25627. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25628. + //    MyCaos.M68kStart    =    NULL;
  25629. + //    MyCaos.M68kSize        =    0;
  25630. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25631. + //    MyCaos.PPCStart        =    NULL;
  25632. + //    MyCaos.PPCSize        =    0;
  25633. +     MyCaos.a0        =(ULONG) rp;
  25634. +     MyCaos.d0        =(ULONG) xstart;
  25635. +     MyCaos.d1        =(ULONG) ystart;
  25636. +     MyCaos.d2        =(ULONG) width;
  25637. +     MyCaos.a2        =(ULONG) array;
  25638. +     MyCaos.a1        =(ULONG) tempRP;
  25639. +     MyCaos.caos_Un.Offset    =    (-768);
  25640. +     MyCaos.a6        =(ULONG) GfxBase;    
  25641. +     return((LONG)PPCCallOS(&MyCaos));
  25642. + }
  25643. + #define    RectFill(rp, xMin, yMin, xMax, yMax)    _RectFill(GRAPHICS_BASE_NAME, rp, xMin, yMin, xMax, yMax)
  25644. + static __inline void
  25645. + _RectFill(void *GfxBase, struct RastPort *rp, long xMin, long yMin, long xMax, long yMax)
  25646. + {
  25647. + struct Caos    MyCaos;
  25648. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25649. + //    MyCaos.M68kStart    =    NULL;
  25650. + //    MyCaos.M68kSize        =    0;
  25651. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25652. + //    MyCaos.PPCStart        =    NULL;
  25653. + //    MyCaos.PPCSize        =    0;
  25654. +     MyCaos.a1        =(ULONG) rp;
  25655. +     MyCaos.d0        =(ULONG) xMin;
  25656. +     MyCaos.d1        =(ULONG) yMin;
  25657. +     MyCaos.d2        =(ULONG) xMax;
  25658. +     MyCaos.d3        =(ULONG) yMax;
  25659. +     MyCaos.caos_Un.Offset    =    (-306);
  25660. +     MyCaos.a6        =(ULONG) GfxBase;    
  25661. +     PPCCallOS(&MyCaos);
  25662. + }
  25663. + #define    ReleasePen(cm, n)    _ReleasePen(GRAPHICS_BASE_NAME, cm, n)
  25664. + static __inline void
  25665. + _ReleasePen(void *GfxBase, struct ColorMap *cm, unsigned long n)
  25666. + {
  25667. + struct Caos    MyCaos;
  25668. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25669. + //    MyCaos.M68kStart    =    NULL;
  25670. + //    MyCaos.M68kSize        =    0;
  25671. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25672. + //    MyCaos.PPCStart        =    NULL;
  25673. + //    MyCaos.PPCSize        =    0;
  25674. +     MyCaos.a0        =(ULONG) cm;
  25675. +     MyCaos.d0        =(ULONG) n;
  25676. +     MyCaos.caos_Un.Offset    =    (-948);
  25677. +     MyCaos.a6        =(ULONG) GfxBase;    
  25678. +     PPCCallOS(&MyCaos);
  25679. + }
  25680. + #define    RemFont(textFont)    _RemFont(GRAPHICS_BASE_NAME, textFont)
  25681. + static __inline void
  25682. + _RemFont(void *GfxBase, struct TextFont *textFont)
  25683. + {
  25684. + struct Caos    MyCaos;
  25685. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25686. + //    MyCaos.M68kStart    =    NULL;
  25687. + //    MyCaos.M68kSize        =    0;
  25688. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25689. + //    MyCaos.PPCStart        =    NULL;
  25690. + //    MyCaos.PPCSize        =    0;
  25691. +     MyCaos.a1        =(ULONG) textFont;
  25692. +     MyCaos.caos_Un.Offset    =    (-486);
  25693. +     MyCaos.a6        =(ULONG) GfxBase;    
  25694. +     PPCCallOS(&MyCaos);
  25695. + }
  25696. + #define    RemIBob(bob, rp, vp)    _RemIBob(GRAPHICS_BASE_NAME, bob, rp, vp)
  25697. + static __inline void
  25698. + _RemIBob(void *GfxBase, struct Bob *bob, struct RastPort *rp, struct ViewPort *vp)
  25699. + {
  25700. + struct Caos    MyCaos;
  25701. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25702. + //    MyCaos.M68kStart    =    NULL;
  25703. + //    MyCaos.M68kSize        =    0;
  25704. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25705. + //    MyCaos.PPCStart        =    NULL;
  25706. + //    MyCaos.PPCSize        =    0;
  25707. +     MyCaos.a0        =(ULONG) bob;
  25708. +     MyCaos.a1        =(ULONG) rp;
  25709. +     MyCaos.a2        =(ULONG) vp;
  25710. +     MyCaos.caos_Un.Offset    =    (-132);
  25711. +     MyCaos.a6        =(ULONG) GfxBase;    
  25712. +     PPCCallOS(&MyCaos);
  25713. + }
  25714. + #define    RemVSprite(vSprite)    _RemVSprite(GRAPHICS_BASE_NAME, vSprite)
  25715. + static __inline void
  25716. + _RemVSprite(void *GfxBase, struct VSprite *vSprite)
  25717. + {
  25718. + struct Caos    MyCaos;
  25719. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25720. + //    MyCaos.M68kStart    =    NULL;
  25721. + //    MyCaos.M68kSize        =    0;
  25722. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25723. + //    MyCaos.PPCStart        =    NULL;
  25724. + //    MyCaos.PPCSize        =    0;
  25725. +     MyCaos.a0        =(ULONG) vSprite;
  25726. +     MyCaos.caos_Un.Offset    =    (-138);
  25727. +     MyCaos.a6        =(ULONG) GfxBase;    
  25728. +     PPCCallOS(&MyCaos);
  25729. + }
  25730. + #define    ScalerDiv(factor, numerator, denominator)    _ScalerDiv(GRAPHICS_BASE_NAME, factor, numerator, denominator)
  25731. + static __inline UWORD
  25732. + _ScalerDiv(void *GfxBase, unsigned long factor, unsigned long numerator, unsigned long denominator)
  25733. + {
  25734. + struct Caos    MyCaos;
  25735. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25736. + //    MyCaos.M68kStart    =    NULL;
  25737. + //    MyCaos.M68kSize        =    0;
  25738. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25739. + //    MyCaos.PPCStart        =    NULL;
  25740. + //    MyCaos.PPCSize        =    0;
  25741. +     MyCaos.d0        =(ULONG) factor;
  25742. +     MyCaos.d1        =(ULONG) numerator;
  25743. +     MyCaos.d2        =(ULONG) denominator;
  25744. +     MyCaos.caos_Un.Offset    =    (-684);
  25745. +     MyCaos.a6        =(ULONG) GfxBase;    
  25746. +     return((UWORD)PPCCallOS(&MyCaos));
  25747. + }
  25748. + #define    ScrollRaster(rp, dx, dy, xMin, yMin, xMax, yMax)    _ScrollRaster(GRAPHICS_BASE_NAME, rp, dx, dy, xMin, yMin, xMax, yMax)
  25749. + static __inline void
  25750. + _ScrollRaster(void *GfxBase, struct RastPort *rp, long dx, long dy, long xMin, long yMin, long xMax, long yMax)
  25751. + {
  25752. + struct Caos    MyCaos;
  25753. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25754. + //    MyCaos.M68kStart    =    NULL;
  25755. + //    MyCaos.M68kSize        =    0;
  25756. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25757. + //    MyCaos.PPCStart        =    NULL;
  25758. + //    MyCaos.PPCSize        =    0;
  25759. +     MyCaos.a1        =(ULONG) rp;
  25760. +     MyCaos.d0        =(ULONG) dx;
  25761. +     MyCaos.d1        =(ULONG) dy;
  25762. +     MyCaos.d2        =(ULONG) xMin;
  25763. +     MyCaos.d3        =(ULONG) yMin;
  25764. +     MyCaos.d4        =(ULONG) xMax;
  25765. +     MyCaos.d5        =(ULONG) yMax;
  25766. +     MyCaos.caos_Un.Offset    =    (-396);
  25767. +     MyCaos.a6        =(ULONG) GfxBase;    
  25768. +     PPCCallOS(&MyCaos);
  25769. + }
  25770. + #define    ScrollRasterBF(rp, dx, dy, xMin, yMin, xMax, yMax)    _ScrollRasterBF(GRAPHICS_BASE_NAME, rp, dx, dy, xMin, yMin, xMax, yMax)
  25771. + static __inline void
  25772. + _ScrollRasterBF(void *GfxBase, struct RastPort *rp, long dx, long dy, long xMin, long yMin, long xMax, long yMax)
  25773. + {
  25774. + struct Caos    MyCaos;
  25775. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25776. + //    MyCaos.M68kStart    =    NULL;
  25777. + //    MyCaos.M68kSize        =    0;
  25778. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25779. + //    MyCaos.PPCStart        =    NULL;
  25780. + //    MyCaos.PPCSize        =    0;
  25781. +     MyCaos.a1        =(ULONG) rp;
  25782. +     MyCaos.d0        =(ULONG) dx;
  25783. +     MyCaos.d1        =(ULONG) dy;
  25784. +     MyCaos.d2        =(ULONG) xMin;
  25785. +     MyCaos.d3        =(ULONG) yMin;
  25786. +     MyCaos.d4        =(ULONG) xMax;
  25787. +     MyCaos.d5        =(ULONG) yMax;
  25788. +     MyCaos.caos_Un.Offset    =    (-1002);
  25789. +     MyCaos.a6        =(ULONG) GfxBase;    
  25790. +     PPCCallOS(&MyCaos);
  25791. + }
  25792. + #define    ScrollVPort(vp)    _ScrollVPort(GRAPHICS_BASE_NAME, vp)
  25793. + static __inline void
  25794. + _ScrollVPort(void *GfxBase, struct ViewPort *vp)
  25795. + {
  25796. + struct Caos    MyCaos;
  25797. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25798. + //    MyCaos.M68kStart    =    NULL;
  25799. + //    MyCaos.M68kSize        =    0;
  25800. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25801. + //    MyCaos.PPCStart        =    NULL;
  25802. + //    MyCaos.PPCSize        =    0;
  25803. +     MyCaos.a0        =(ULONG) vp;
  25804. +     MyCaos.caos_Un.Offset    =    (-588);
  25805. +     MyCaos.a6        =(ULONG) GfxBase;    
  25806. +     PPCCallOS(&MyCaos);
  25807. + }
  25808. + #define    SetABPenDrMd(rp, apen, bpen, drawmode)    _SetABPenDrMd(GRAPHICS_BASE_NAME, rp, apen, bpen, drawmode)
  25809. + static __inline void
  25810. + _SetABPenDrMd(void *GfxBase, struct RastPort *rp, unsigned long apen, unsigned long bpen, unsigned long drawmode)
  25811. + {
  25812. + struct Caos    MyCaos;
  25813. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25814. + //    MyCaos.M68kStart    =    NULL;
  25815. + //    MyCaos.M68kSize        =    0;
  25816. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25817. + //    MyCaos.PPCStart        =    NULL;
  25818. + //    MyCaos.PPCSize        =    0;
  25819. +     MyCaos.a1        =(ULONG) rp;
  25820. +     MyCaos.d0        =(ULONG) apen;
  25821. +     MyCaos.d1        =(ULONG) bpen;
  25822. +     MyCaos.d2        =(ULONG) drawmode;
  25823. +     MyCaos.caos_Un.Offset    =    (-894);
  25824. +     MyCaos.a6        =(ULONG) GfxBase;    
  25825. +     PPCCallOS(&MyCaos);
  25826. + }
  25827. + #define    SetAPen(rp, pen)    _SetAPen(GRAPHICS_BASE_NAME, rp, pen)
  25828. + static __inline void
  25829. + _SetAPen(void *GfxBase, struct RastPort *rp, unsigned long pen)
  25830. + {
  25831. + struct Caos    MyCaos;
  25832. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25833. + //    MyCaos.M68kStart    =    NULL;
  25834. + //    MyCaos.M68kSize        =    0;
  25835. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25836. + //    MyCaos.PPCStart        =    NULL;
  25837. + //    MyCaos.PPCSize        =    0;
  25838. +     MyCaos.a1        =(ULONG) rp;
  25839. +     MyCaos.d0        =(ULONG) pen;
  25840. +     MyCaos.caos_Un.Offset    =    (-342);
  25841. +     MyCaos.a6        =(ULONG) GfxBase;    
  25842. +     PPCCallOS(&MyCaos);
  25843. + }
  25844. + #define    SetBPen(rp, pen)    _SetBPen(GRAPHICS_BASE_NAME, rp, pen)
  25845. + static __inline void
  25846. + _SetBPen(void *GfxBase, struct RastPort *rp, unsigned long pen)
  25847. + {
  25848. + struct Caos    MyCaos;
  25849. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25850. + //    MyCaos.M68kStart    =    NULL;
  25851. + //    MyCaos.M68kSize        =    0;
  25852. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25853. + //    MyCaos.PPCStart        =    NULL;
  25854. + //    MyCaos.PPCSize        =    0;
  25855. +     MyCaos.a1        =(ULONG) rp;
  25856. +     MyCaos.d0        =(ULONG) pen;
  25857. +     MyCaos.caos_Un.Offset    =    (-348);
  25858. +     MyCaos.a6        =(ULONG) GfxBase;    
  25859. +     PPCCallOS(&MyCaos);
  25860. + }
  25861. + #define    SetChipRev(want)    _SetChipRev(GRAPHICS_BASE_NAME, want)
  25862. + static __inline ULONG
  25863. + _SetChipRev(void *GfxBase, unsigned long want)
  25864. + {
  25865. + struct Caos    MyCaos;
  25866. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25867. + //    MyCaos.M68kStart    =    NULL;
  25868. + //    MyCaos.M68kSize        =    0;
  25869. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25870. + //    MyCaos.PPCStart        =    NULL;
  25871. + //    MyCaos.PPCSize        =    0;
  25872. +     MyCaos.d0        =(ULONG) want;
  25873. +     MyCaos.caos_Un.Offset    =    (-888);
  25874. +     MyCaos.a6        =(ULONG) GfxBase;    
  25875. +     return((ULONG)PPCCallOS(&MyCaos));
  25876. + }
  25877. + #define    SetCollision(num, routine, gelsInfo)    _SetCollision(GRAPHICS_BASE_NAME, num, routine, gelsInfo)
  25878. + static __inline void
  25879. + _SetCollision(void *GfxBase, unsigned long num, void (*routine)(struct VSprite *vSprite, APTR), struct GelsInfo *gelsInfo)
  25880. + {
  25881. + struct Caos    MyCaos;
  25882. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25883. + //    MyCaos.M68kStart    =    NULL;
  25884. + //    MyCaos.M68kSize        =    0;
  25885. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25886. + //    MyCaos.PPCStart        =    NULL;
  25887. + //    MyCaos.PPCSize        =    0;
  25888. +     MyCaos.d0        =(ULONG) num;
  25889. +     MyCaos.a0        =(ULONG) routine;
  25890. +     MyCaos.a1        =(ULONG) gelsInfo;
  25891. +     MyCaos.caos_Un.Offset    =    (-144);
  25892. +     MyCaos.a6        =(ULONG) GfxBase;    
  25893. +     PPCCallOS(&MyCaos);
  25894. + }
  25895. + #define    SetDrMd(rp, drawMode)    _SetDrMd(GRAPHICS_BASE_NAME, rp, drawMode)
  25896. + static __inline void
  25897. + _SetDrMd(void *GfxBase, struct RastPort *rp, unsigned long drawMode)
  25898. + {
  25899. + struct Caos    MyCaos;
  25900. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25901. + //    MyCaos.M68kStart    =    NULL;
  25902. + //    MyCaos.M68kSize        =    0;
  25903. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25904. + //    MyCaos.PPCStart        =    NULL;
  25905. + //    MyCaos.PPCSize        =    0;
  25906. +     MyCaos.a1        =(ULONG) rp;
  25907. +     MyCaos.d0        =(ULONG) drawMode;
  25908. +     MyCaos.caos_Un.Offset    =    (-354);
  25909. +     MyCaos.a6        =(ULONG) GfxBase;    
  25910. +     PPCCallOS(&MyCaos);
  25911. + }
  25912. + #define    SetFont(rp, textFont)    _SetFont(GRAPHICS_BASE_NAME, rp, textFont)
  25913. + static __inline LONG
  25914. + _SetFont(void *GfxBase, struct RastPort *rp, struct TextFont *textFont)
  25915. + {
  25916. + struct Caos    MyCaos;
  25917. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25918. + //    MyCaos.M68kStart    =    NULL;
  25919. + //    MyCaos.M68kSize        =    0;
  25920. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25921. + //    MyCaos.PPCStart        =    NULL;
  25922. + //    MyCaos.PPCSize        =    0;
  25923. +     MyCaos.a1        =(ULONG) rp;
  25924. +     MyCaos.a0        =(ULONG) textFont;
  25925. +     MyCaos.caos_Un.Offset    =    (-66);
  25926. +     MyCaos.a6        =(ULONG) GfxBase;    
  25927. +     return((LONG)PPCCallOS(&MyCaos));
  25928. + }
  25929. + #define    SetMaxPen(rp, maxpen)    _SetMaxPen(GRAPHICS_BASE_NAME, rp, maxpen)
  25930. + static __inline void
  25931. + _SetMaxPen(void *GfxBase, struct RastPort *rp, unsigned long maxpen)
  25932. + {
  25933. + struct Caos    MyCaos;
  25934. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25935. + //    MyCaos.M68kStart    =    NULL;
  25936. + //    MyCaos.M68kSize        =    0;
  25937. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25938. + //    MyCaos.PPCStart        =    NULL;
  25939. + //    MyCaos.PPCSize        =    0;
  25940. +     MyCaos.a0        =(ULONG) rp;
  25941. +     MyCaos.d0        =(ULONG) maxpen;
  25942. +     MyCaos.caos_Un.Offset    =    (-990);
  25943. +     MyCaos.a6        =(ULONG) GfxBase;    
  25944. +     PPCCallOS(&MyCaos);
  25945. + }
  25946. + #define    SetOutlinePen(rp, pen)    _SetOutlinePen(GRAPHICS_BASE_NAME, rp, pen)
  25947. + static __inline ULONG
  25948. + _SetOutlinePen(void *GfxBase, struct RastPort *rp, unsigned long pen)
  25949. + {
  25950. + struct Caos    MyCaos;
  25951. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25952. + //    MyCaos.M68kStart    =    NULL;
  25953. + //    MyCaos.M68kSize        =    0;
  25954. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25955. + //    MyCaos.PPCStart        =    NULL;
  25956. + //    MyCaos.PPCSize        =    0;
  25957. +     MyCaos.a0        =(ULONG) rp;
  25958. +     MyCaos.d0        =(ULONG) pen;
  25959. +     MyCaos.caos_Un.Offset    =    (-978);
  25960. +     MyCaos.a6        =(ULONG) GfxBase;    
  25961. +     return((ULONG)PPCCallOS(&MyCaos));
  25962. + }
  25963. + #define    SetRGB32(vp, n, r, g, b)    _SetRGB32(GRAPHICS_BASE_NAME, vp, n, r, g, b)
  25964. + static __inline void
  25965. + _SetRGB32(void *GfxBase, struct ViewPort *vp, unsigned long n, unsigned long r, unsigned long g, unsigned long b)
  25966. + {
  25967. + struct Caos    MyCaos;
  25968. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25969. + //    MyCaos.M68kStart    =    NULL;
  25970. + //    MyCaos.M68kSize        =    0;
  25971. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25972. + //    MyCaos.PPCStart        =    NULL;
  25973. + //    MyCaos.PPCSize        =    0;
  25974. +     MyCaos.a0        =(ULONG) vp;
  25975. +     MyCaos.d0        =(ULONG) n;
  25976. +     MyCaos.d1        =(ULONG) r;
  25977. +     MyCaos.d2        =(ULONG) g;
  25978. +     MyCaos.d3        =(ULONG) b;
  25979. +     MyCaos.caos_Un.Offset    =    (-852);
  25980. +     MyCaos.a6        =(ULONG) GfxBase;    
  25981. +     PPCCallOS(&MyCaos);
  25982. + }
  25983. + #define    SetRGB32CM(cm, n, r, g, b)    _SetRGB32CM(GRAPHICS_BASE_NAME, cm, n, r, g, b)
  25984. + static __inline void
  25985. + _SetRGB32CM(void *GfxBase, struct ColorMap *cm, unsigned long n, unsigned long r, unsigned long g, unsigned long b)
  25986. + {
  25987. + struct Caos    MyCaos;
  25988. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  25989. + //    MyCaos.M68kStart    =    NULL;
  25990. + //    MyCaos.M68kSize        =    0;
  25991. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  25992. + //    MyCaos.PPCStart        =    NULL;
  25993. + //    MyCaos.PPCSize        =    0;
  25994. +     MyCaos.a0        =(ULONG) cm;
  25995. +     MyCaos.d0        =(ULONG) n;
  25996. +     MyCaos.d1        =(ULONG) r;
  25997. +     MyCaos.d2        =(ULONG) g;
  25998. +     MyCaos.d3        =(ULONG) b;
  25999. +     MyCaos.caos_Un.Offset    =    (-996);
  26000. +     MyCaos.a6        =(ULONG) GfxBase;    
  26001. +     PPCCallOS(&MyCaos);
  26002. + }
  26003. + #define    SetRGB4(vp, index, red, green, blue)    _SetRGB4(GRAPHICS_BASE_NAME, vp, index, red, green, blue)
  26004. + static __inline void
  26005. + _SetRGB4(void *GfxBase, struct ViewPort *vp, long index, unsigned long red, unsigned long green, unsigned long blue)
  26006. + {
  26007. + struct Caos    MyCaos;
  26008. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26009. + //    MyCaos.M68kStart    =    NULL;
  26010. + //    MyCaos.M68kSize        =    0;
  26011. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26012. + //    MyCaos.PPCStart        =    NULL;
  26013. + //    MyCaos.PPCSize        =    0;
  26014. +     MyCaos.a0        =(ULONG) vp;
  26015. +     MyCaos.d0        =(ULONG) index;
  26016. +     MyCaos.d1        =(ULONG) red;
  26017. +     MyCaos.d2        =(ULONG) green;
  26018. +     MyCaos.d3        =(ULONG) blue;
  26019. +     MyCaos.caos_Un.Offset    =    (-288);
  26020. +     MyCaos.a6        =(ULONG) GfxBase;    
  26021. +     PPCCallOS(&MyCaos);
  26022. + }
  26023. + #define    SetRGB4CM(colorMap, index, red, green, blue)    _SetRGB4CM(GRAPHICS_BASE_NAME, colorMap, index, red, green, blue)
  26024. + static __inline void
  26025. + _SetRGB4CM(void *GfxBase, struct ColorMap *colorMap, long index, unsigned long red, unsigned long green, unsigned long blue)
  26026. + {
  26027. + struct Caos    MyCaos;
  26028. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26029. + //    MyCaos.M68kStart    =    NULL;
  26030. + //    MyCaos.M68kSize        =    0;
  26031. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26032. + //    MyCaos.PPCStart        =    NULL;
  26033. + //    MyCaos.PPCSize        =    0;
  26034. +     MyCaos.a0        =(ULONG) colorMap;
  26035. +     MyCaos.d0        =(ULONG) index;
  26036. +     MyCaos.d1        =(ULONG) red;
  26037. +     MyCaos.d2        =(ULONG) green;
  26038. +     MyCaos.d3        =(ULONG) blue;
  26039. +     MyCaos.caos_Un.Offset    =    (-630);
  26040. +     MyCaos.a6        =(ULONG) GfxBase;    
  26041. +     PPCCallOS(&MyCaos);
  26042. + }
  26043. + #define    SetRPAttrsA(rp, tags)    _SetRPAttrsA(GRAPHICS_BASE_NAME, rp, tags)
  26044. + static __inline void
  26045. + _SetRPAttrsA(void *GfxBase, struct RastPort *rp, struct TagItem *tags)
  26046. + {
  26047. + struct Caos    MyCaos;
  26048. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26049. + //    MyCaos.M68kStart    =    NULL;
  26050. + //    MyCaos.M68kSize        =    0;
  26051. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26052. + //    MyCaos.PPCStart        =    NULL;
  26053. + //    MyCaos.PPCSize        =    0;
  26054. +     MyCaos.a0        =(ULONG) rp;
  26055. +     MyCaos.a1        =(ULONG) tags;
  26056. +     MyCaos.caos_Un.Offset    =    (-1038);
  26057. +     MyCaos.a6        =(ULONG) GfxBase;    
  26058. +     PPCCallOS(&MyCaos);
  26059. + }
  26060. + #ifndef NO_PPCINLINE_STDARG
  26061. + #define SetRPAttrs(a0, tags...) \
  26062. +     ({ULONG _tags[] = { tags }; SetRPAttrsA((a0), (struct TagItem *)_tags);})
  26063. + #endif /* !NO_PPCINLINE_STDARG */
  26064. + #define    SetRast(rp, pen)    _SetRast(GRAPHICS_BASE_NAME, rp, pen)
  26065. + static __inline void
  26066. + _SetRast(void *GfxBase, struct RastPort *rp, unsigned long pen)
  26067. + {
  26068. + struct Caos    MyCaos;
  26069. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26070. + //    MyCaos.M68kStart    =    NULL;
  26071. + //    MyCaos.M68kSize        =    0;
  26072. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26073. + //    MyCaos.PPCStart        =    NULL;
  26074. + //    MyCaos.PPCSize        =    0;
  26075. +     MyCaos.a1        =(ULONG) rp;
  26076. +     MyCaos.d0        =(ULONG) pen;
  26077. +     MyCaos.caos_Un.Offset    =    (-234);
  26078. +     MyCaos.a6        =(ULONG) GfxBase;    
  26079. +     PPCCallOS(&MyCaos);
  26080. + }
  26081. + #define    SetSoftStyle(rp, style, enable)    _SetSoftStyle(GRAPHICS_BASE_NAME, rp, style, enable)
  26082. + static __inline ULONG
  26083. + _SetSoftStyle(void *GfxBase, struct RastPort *rp, unsigned long style, unsigned long enable)
  26084. + {
  26085. + struct Caos    MyCaos;
  26086. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26087. + //    MyCaos.M68kStart    =    NULL;
  26088. + //    MyCaos.M68kSize        =    0;
  26089. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26090. + //    MyCaos.PPCStart        =    NULL;
  26091. + //    MyCaos.PPCSize        =    0;
  26092. +     MyCaos.a1        =(ULONG) rp;
  26093. +     MyCaos.d0        =(ULONG) style;
  26094. +     MyCaos.d1        =(ULONG) enable;
  26095. +     MyCaos.caos_Un.Offset    =    (-90);
  26096. +     MyCaos.a6        =(ULONG) GfxBase;    
  26097. +     return((ULONG)PPCCallOS(&MyCaos));
  26098. + }
  26099. + #define    SetWriteMask(rp, msk)    _SetWriteMask(GRAPHICS_BASE_NAME, rp, msk)
  26100. + static __inline ULONG
  26101. + _SetWriteMask(void *GfxBase, struct RastPort *rp, unsigned long msk)
  26102. + {
  26103. + struct Caos    MyCaos;
  26104. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26105. + //    MyCaos.M68kStart    =    NULL;
  26106. + //    MyCaos.M68kSize        =    0;
  26107. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26108. + //    MyCaos.PPCStart        =    NULL;
  26109. + //    MyCaos.PPCSize        =    0;
  26110. +     MyCaos.a0        =(ULONG) rp;
  26111. +     MyCaos.d0        =(ULONG) msk;
  26112. +     MyCaos.caos_Un.Offset    =    (-984);
  26113. +     MyCaos.a6        =(ULONG) GfxBase;    
  26114. +     return((ULONG)PPCCallOS(&MyCaos));
  26115. + }
  26116. + #define    SortGList(rp)    _SortGList(GRAPHICS_BASE_NAME, rp)
  26117. + static __inline void
  26118. + _SortGList(void *GfxBase, struct RastPort *rp)
  26119. + {
  26120. + struct Caos    MyCaos;
  26121. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26122. + //    MyCaos.M68kStart    =    NULL;
  26123. + //    MyCaos.M68kSize        =    0;
  26124. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26125. + //    MyCaos.PPCStart        =    NULL;
  26126. + //    MyCaos.PPCSize        =    0;
  26127. +     MyCaos.a1        =(ULONG) rp;
  26128. +     MyCaos.caos_Un.Offset    =    (-150);
  26129. +     MyCaos.a6        =(ULONG) GfxBase;    
  26130. +     PPCCallOS(&MyCaos);
  26131. + }
  26132. + #define    StripFont(font)    _StripFont(GRAPHICS_BASE_NAME, font)
  26133. + static __inline void
  26134. + _StripFont(void *GfxBase, struct TextFont *font)
  26135. + {
  26136. + struct Caos    MyCaos;
  26137. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26138. + //    MyCaos.M68kStart    =    NULL;
  26139. + //    MyCaos.M68kSize        =    0;
  26140. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26141. + //    MyCaos.PPCStart        =    NULL;
  26142. + //    MyCaos.PPCSize        =    0;
  26143. +     MyCaos.a0        =(ULONG) font;
  26144. +     MyCaos.caos_Un.Offset    =    (-822);
  26145. +     MyCaos.a6        =(ULONG) GfxBase;    
  26146. +     PPCCallOS(&MyCaos);
  26147. + }
  26148. + #define    SyncSBitMap(layer)    _SyncSBitMap(GRAPHICS_BASE_NAME, layer)
  26149. + static __inline void
  26150. + _SyncSBitMap(void *GfxBase, struct Layer *layer)
  26151. + {
  26152. + struct Caos    MyCaos;
  26153. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26154. + //    MyCaos.M68kStart    =    NULL;
  26155. + //    MyCaos.M68kSize        =    0;
  26156. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26157. + //    MyCaos.PPCStart        =    NULL;
  26158. + //    MyCaos.PPCSize        =    0;
  26159. +     MyCaos.a0        =(ULONG) layer;
  26160. +     MyCaos.caos_Un.Offset    =    (-444);
  26161. +     MyCaos.a6        =(ULONG) GfxBase;    
  26162. +     PPCCallOS(&MyCaos);
  26163. + }
  26164. + #define    Text(rp, string, count)    _Text(GRAPHICS_BASE_NAME, rp, string, count)
  26165. + static __inline LONG
  26166. + _Text(void *GfxBase, struct RastPort *rp, STRPTR string, unsigned long count)
  26167. + {
  26168. + struct Caos    MyCaos;
  26169. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26170. + //    MyCaos.M68kStart    =    NULL;
  26171. + //    MyCaos.M68kSize        =    0;
  26172. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26173. + //    MyCaos.PPCStart        =    NULL;
  26174. + //    MyCaos.PPCSize        =    0;
  26175. +     MyCaos.a1        =(ULONG) rp;
  26176. +     MyCaos.a0        =(ULONG) string;
  26177. +     MyCaos.d0        =(ULONG) count;
  26178. +     MyCaos.caos_Un.Offset    =    (-60);
  26179. +     MyCaos.a6        =(ULONG) GfxBase;    
  26180. +     return((LONG)PPCCallOS(&MyCaos));
  26181. + }
  26182. + #define    TextExtent(rp, string, count, textExtent)    _TextExtent(GRAPHICS_BASE_NAME, rp, string, count, textExtent)
  26183. + static __inline WORD
  26184. + _TextExtent(void *GfxBase, struct RastPort *rp, STRPTR string, long count, struct TextExtent *textExtent)
  26185. + {
  26186. + struct Caos    MyCaos;
  26187. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26188. + //    MyCaos.M68kStart    =    NULL;
  26189. + //    MyCaos.M68kSize        =    0;
  26190. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26191. + //    MyCaos.PPCStart        =    NULL;
  26192. + //    MyCaos.PPCSize        =    0;
  26193. +     MyCaos.a1        =(ULONG) rp;
  26194. +     MyCaos.a0        =(ULONG) string;
  26195. +     MyCaos.d0        =(ULONG) count;
  26196. +     MyCaos.a2        =(ULONG) textExtent;
  26197. +     MyCaos.caos_Un.Offset    =    (-690);
  26198. +     MyCaos.a6        =(ULONG) GfxBase;    
  26199. +     return((WORD)PPCCallOS(&MyCaos));
  26200. + }
  26201. + #define    TextFit(rp, string, strLen, textExtent, constrainingExtent, strDirection, constrainingBitWidth, constrainingBitHeight)    _TextFit(GRAPHICS_BASE_NAME, rp, string, strLen, textExtent, constrainingExtent, strDirection, constrainingBitWidth, constrainingBitHeight)
  26202. + static __inline ULONG
  26203. + _TextFit(void *GfxBase, struct RastPort *rp, STRPTR string, unsigned long strLen, struct TextExtent *textExtent, struct TextExtent *constrainingExtent, long strDirection, unsigned long constrainingBitWidth, unsigned long constrainingBitHeight)
  26204. + {
  26205. + struct Caos    MyCaos;
  26206. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26207. + //    MyCaos.M68kStart    =    NULL;
  26208. + //    MyCaos.M68kSize        =    0;
  26209. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26210. + //    MyCaos.PPCStart        =    NULL;
  26211. + //    MyCaos.PPCSize        =    0;
  26212. +     MyCaos.a1        =(ULONG) rp;
  26213. +     MyCaos.a0        =(ULONG) string;
  26214. +     MyCaos.d0        =(ULONG) strLen;
  26215. +     MyCaos.a2        =(ULONG) textExtent;
  26216. +     MyCaos.a3        =(ULONG) constrainingExtent;
  26217. +     MyCaos.d1        =(ULONG) strDirection;
  26218. +     MyCaos.d2        =(ULONG) constrainingBitWidth;
  26219. +     MyCaos.d3        =(ULONG) constrainingBitHeight;
  26220. +     MyCaos.caos_Un.Offset    =    (-696);
  26221. +     MyCaos.a6        =(ULONG) GfxBase;    
  26222. +     return((ULONG)PPCCallOS(&MyCaos));
  26223. + }
  26224. + #define    TextLength(rp, string, count)    _TextLength(GRAPHICS_BASE_NAME, rp, string, count)
  26225. + static __inline WORD
  26226. + _TextLength(void *GfxBase, struct RastPort *rp, STRPTR string, unsigned long count)
  26227. + {
  26228. + struct Caos    MyCaos;
  26229. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26230. + //    MyCaos.M68kStart    =    NULL;
  26231. + //    MyCaos.M68kSize        =    0;
  26232. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26233. + //    MyCaos.PPCStart        =    NULL;
  26234. + //    MyCaos.PPCSize        =    0;
  26235. +     MyCaos.a1        =(ULONG) rp;
  26236. +     MyCaos.a0        =(ULONG) string;
  26237. +     MyCaos.d0        =(ULONG) count;
  26238. +     MyCaos.caos_Un.Offset    =    (-54);
  26239. +     MyCaos.a6        =(ULONG) GfxBase;    
  26240. +     return((WORD)PPCCallOS(&MyCaos));
  26241. + }
  26242. + #define    UCopperListInit(uCopList, n)    _UCopperListInit(GRAPHICS_BASE_NAME, uCopList, n)
  26243. + static __inline struct CopList *
  26244. + _UCopperListInit(void *GfxBase, struct UCopList *uCopList, long n)
  26245. + {
  26246. + struct Caos    MyCaos;
  26247. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26248. + //    MyCaos.M68kStart    =    NULL;
  26249. + //    MyCaos.M68kSize        =    0;
  26250. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26251. + //    MyCaos.PPCStart        =    NULL;
  26252. + //    MyCaos.PPCSize        =    0;
  26253. +     MyCaos.a0        =(ULONG) uCopList;
  26254. +     MyCaos.d0        =(ULONG) n;
  26255. +     MyCaos.caos_Un.Offset    =    (-594);
  26256. +     MyCaos.a6        =(ULONG) GfxBase;    
  26257. +     return((struct CopList *)PPCCallOS(&MyCaos));
  26258. + }
  26259. + #define    UnlockLayerRom(layer)    _UnlockLayerRom(GRAPHICS_BASE_NAME, layer)
  26260. + static __inline void
  26261. + _UnlockLayerRom(void *GfxBase, struct Layer *layer)
  26262. + {
  26263. + struct Caos    MyCaos;
  26264. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26265. + //    MyCaos.M68kStart    =    NULL;
  26266. + //    MyCaos.M68kSize        =    0;
  26267. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26268. + //    MyCaos.PPCStart        =    NULL;
  26269. + //    MyCaos.PPCSize        =    0;
  26270. +     MyCaos.a5        =(ULONG) layer;
  26271. +     MyCaos.caos_Un.Offset    =    (-438);
  26272. +     MyCaos.a6        =(ULONG) GfxBase;    
  26273. +     PPCCallOS(&MyCaos);
  26274. + }
  26275. + #define    VBeamPos()    _VBeamPos(GRAPHICS_BASE_NAME)
  26276. + static __inline LONG
  26277. + _VBeamPos(void *GfxBase)
  26278. + {
  26279. + struct Caos    MyCaos;
  26280. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26281. + //    MyCaos.M68kStart    =    NULL;
  26282. + //    MyCaos.M68kSize        =    0;
  26283. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26284. + //    MyCaos.PPCStart        =    NULL;
  26285. + //    MyCaos.PPCSize        =    0;
  26286. +     MyCaos.caos_Un.Offset    =    (-384);
  26287. +     MyCaos.a6        =(ULONG) GfxBase;    
  26288. +     return((LONG)PPCCallOS(&MyCaos));
  26289. + }
  26290. + #define    VideoControl(colorMap, tagarray)    _VideoControl(GRAPHICS_BASE_NAME, colorMap, tagarray)
  26291. + static __inline BOOL
  26292. + _VideoControl(void *GfxBase, struct ColorMap *colorMap, struct TagItem *tagarray)
  26293. + {
  26294. + struct Caos    MyCaos;
  26295. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26296. + //    MyCaos.M68kStart    =    NULL;
  26297. + //    MyCaos.M68kSize        =    0;
  26298. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26299. + //    MyCaos.PPCStart        =    NULL;
  26300. + //    MyCaos.PPCSize        =    0;
  26301. +     MyCaos.a0        =(ULONG) colorMap;
  26302. +     MyCaos.a1        =(ULONG) tagarray;
  26303. +     MyCaos.caos_Un.Offset    =    (-708);
  26304. +     MyCaos.a6        =(ULONG) GfxBase;    
  26305. +     return((BOOL)PPCCallOS(&MyCaos));
  26306. + }
  26307. + #ifndef NO_PPCINLINE_STDARG
  26308. + #define VideoControlTags(a0, tags...) \
  26309. +     ({ULONG _tags[] = { tags }; VideoControl((a0), (struct TagItem *)_tags);})
  26310. + #endif /* !NO_PPCINLINE_STDARG */
  26311. + #define    WaitBOVP(vp)    _WaitBOVP(GRAPHICS_BASE_NAME, vp)
  26312. + static __inline void
  26313. + _WaitBOVP(void *GfxBase, struct ViewPort *vp)
  26314. + {
  26315. + struct Caos    MyCaos;
  26316. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26317. + //    MyCaos.M68kStart    =    NULL;
  26318. + //    MyCaos.M68kSize        =    0;
  26319. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26320. + //    MyCaos.PPCStart        =    NULL;
  26321. + //    MyCaos.PPCSize        =    0;
  26322. +     MyCaos.a0        =(ULONG) vp;
  26323. +     MyCaos.caos_Un.Offset    =    (-402);
  26324. +     MyCaos.a6        =(ULONG) GfxBase;    
  26325. +     PPCCallOS(&MyCaos);
  26326. + }
  26327. + #define    WaitBlit()    _WaitBlit(GRAPHICS_BASE_NAME)
  26328. + static __inline void
  26329. + _WaitBlit(void *GfxBase)
  26330. + {
  26331. + struct Caos    MyCaos;
  26332. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26333. + //    MyCaos.M68kStart    =    NULL;
  26334. + //    MyCaos.M68kSize        =    0;
  26335. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26336. + //    MyCaos.PPCStart        =    NULL;
  26337. + //    MyCaos.PPCSize        =    0;
  26338. +     MyCaos.caos_Un.Offset    =    (-228);
  26339. +     MyCaos.a6        =(ULONG) GfxBase;    
  26340. +     PPCCallOS(&MyCaos);
  26341. + }
  26342. + #define    WaitTOF()    _WaitTOF(GRAPHICS_BASE_NAME)
  26343. + static __inline void
  26344. + _WaitTOF(void *GfxBase)
  26345. + {
  26346. + struct Caos    MyCaos;
  26347. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26348. + //    MyCaos.M68kStart    =    NULL;
  26349. + //    MyCaos.M68kSize        =    0;
  26350. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26351. + //    MyCaos.PPCStart        =    NULL;
  26352. + //    MyCaos.PPCSize        =    0;
  26353. +     MyCaos.caos_Un.Offset    =    (-270);
  26354. +     MyCaos.a6        =(ULONG) GfxBase;    
  26355. +     PPCCallOS(&MyCaos);
  26356. + }
  26357. + #define    WeighTAMatch(reqTextAttr, targetTextAttr, targetTags)    _WeighTAMatch(GRAPHICS_BASE_NAME, reqTextAttr, targetTextAttr, targetTags)
  26358. + static __inline WORD
  26359. + _WeighTAMatch(void *GfxBase, struct TextAttr *reqTextAttr, struct TextAttr *targetTextAttr, struct TagItem *targetTags)
  26360. + {
  26361. + struct Caos    MyCaos;
  26362. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26363. + //    MyCaos.M68kStart    =    NULL;
  26364. + //    MyCaos.M68kSize        =    0;
  26365. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26366. + //    MyCaos.PPCStart        =    NULL;
  26367. + //    MyCaos.PPCSize        =    0;
  26368. +     MyCaos.a0        =(ULONG) reqTextAttr;
  26369. +     MyCaos.a1        =(ULONG) targetTextAttr;
  26370. +     MyCaos.a2        =(ULONG) targetTags;
  26371. +     MyCaos.caos_Un.Offset    =    (-804);
  26372. +     MyCaos.a6        =(ULONG) GfxBase;    
  26373. +     return((WORD)PPCCallOS(&MyCaos));
  26374. + }
  26375. + #ifndef NO_PPCINLINE_STDARG
  26376. + #define WeighTAMatchTags(a0, a1, tags...) \
  26377. +     ({ULONG _tags[] = { tags }; WeighTAMatch((a0), (a1), (struct TagItem *)_tags);})
  26378. + #endif /* !NO_PPCINLINE_STDARG */
  26379. + #define    WriteChunkyPixels(rp, xstart, ystart, xstop, ystop, array, bytesperrow)    _WriteChunkyPixels(GRAPHICS_BASE_NAME, rp, xstart, ystart, xstop, ystop, array, bytesperrow)
  26380. + static __inline void
  26381. + _WriteChunkyPixels(void *GfxBase, struct RastPort *rp, unsigned long xstart, unsigned long ystart, unsigned long xstop, unsigned long ystop, UBYTE *array, long bytesperrow)
  26382. + {
  26383. + struct Caos    MyCaos;
  26384. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26385. + //    MyCaos.M68kStart    =    NULL;
  26386. + //    MyCaos.M68kSize        =    0;
  26387. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26388. + //    MyCaos.PPCStart        =    NULL;
  26389. + //    MyCaos.PPCSize        =    0;
  26390. +     MyCaos.a0        =(ULONG) rp;
  26391. +     MyCaos.d0        =(ULONG) xstart;
  26392. +     MyCaos.d1        =(ULONG) ystart;
  26393. +     MyCaos.d2        =(ULONG) xstop;
  26394. +     MyCaos.d3        =(ULONG) ystop;
  26395. +     MyCaos.a2        =(ULONG) array;
  26396. +     MyCaos.d4        =(ULONG) bytesperrow;
  26397. +     MyCaos.caos_Un.Offset    =    (-1056);
  26398. +     MyCaos.a6        =(ULONG) GfxBase;    
  26399. +     PPCCallOS(&MyCaos);
  26400. + }
  26401. + #define    WritePixel(rp, x, y)    _WritePixel(GRAPHICS_BASE_NAME, rp, x, y)
  26402. + static __inline LONG
  26403. + _WritePixel(void *GfxBase, struct RastPort *rp, long x, long y)
  26404. + {
  26405. + struct Caos    MyCaos;
  26406. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26407. + //    MyCaos.M68kStart    =    NULL;
  26408. + //    MyCaos.M68kSize        =    0;
  26409. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26410. + //    MyCaos.PPCStart        =    NULL;
  26411. + //    MyCaos.PPCSize        =    0;
  26412. +     MyCaos.a1        =(ULONG) rp;
  26413. +     MyCaos.d0        =(ULONG) x;
  26414. +     MyCaos.d1        =(ULONG) y;
  26415. +     MyCaos.caos_Un.Offset    =    (-324);
  26416. +     MyCaos.a6        =(ULONG) GfxBase;    
  26417. +     return((LONG)PPCCallOS(&MyCaos));
  26418. + }
  26419. + #define    WritePixelArray8(rp, xstart, ystart, xstop, ystop, array, temprp)    _WritePixelArray8(GRAPHICS_BASE_NAME, rp, xstart, ystart, xstop, ystop, array, temprp)
  26420. + static __inline LONG
  26421. + _WritePixelArray8(void *GfxBase, struct RastPort *rp, unsigned long xstart, unsigned long ystart, unsigned long xstop, unsigned long ystop, UBYTE *array, struct RastPort *temprp)
  26422. + {
  26423. + struct Caos    MyCaos;
  26424. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26425. + //    MyCaos.M68kStart    =    NULL;
  26426. + //    MyCaos.M68kSize        =    0;
  26427. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26428. + //    MyCaos.PPCStart        =    NULL;
  26429. + //    MyCaos.PPCSize        =    0;
  26430. +     MyCaos.a0        =(ULONG) rp;
  26431. +     MyCaos.d0        =(ULONG) xstart;
  26432. +     MyCaos.d1        =(ULONG) ystart;
  26433. +     MyCaos.d2        =(ULONG) xstop;
  26434. +     MyCaos.d3        =(ULONG) ystop;
  26435. +     MyCaos.a2        =(ULONG) array;
  26436. +     MyCaos.a1        =(ULONG) temprp;
  26437. +     MyCaos.caos_Un.Offset    =    (-786);
  26438. +     MyCaos.a6        =(ULONG) GfxBase;    
  26439. +     return((LONG)PPCCallOS(&MyCaos));
  26440. + }
  26441. + #define    WritePixelLine8(rp, xstart, ystart, width, array, tempRP)    _WritePixelLine8(GRAPHICS_BASE_NAME, rp, xstart, ystart, width, array, tempRP)
  26442. + static __inline LONG
  26443. + _WritePixelLine8(void *GfxBase, struct RastPort *rp, unsigned long xstart, unsigned long ystart, unsigned long width, UBYTE *array, struct RastPort *tempRP)
  26444. + {
  26445. + struct Caos    MyCaos;
  26446. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26447. + //    MyCaos.M68kStart    =    NULL;
  26448. + //    MyCaos.M68kSize        =    0;
  26449. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26450. + //    MyCaos.PPCStart        =    NULL;
  26451. + //    MyCaos.PPCSize        =    0;
  26452. +     MyCaos.a0        =(ULONG) rp;
  26453. +     MyCaos.d0        =(ULONG) xstart;
  26454. +     MyCaos.d1        =(ULONG) ystart;
  26455. +     MyCaos.d2        =(ULONG) width;
  26456. +     MyCaos.a2        =(ULONG) array;
  26457. +     MyCaos.a1        =(ULONG) tempRP;
  26458. +     MyCaos.caos_Un.Offset    =    (-774);
  26459. +     MyCaos.a6        =(ULONG) GfxBase;    
  26460. +     return((LONG)PPCCallOS(&MyCaos));
  26461. + }
  26462. + #define    XorRectRegion(region, rectangle)    _XorRectRegion(GRAPHICS_BASE_NAME, region, rectangle)
  26463. + static __inline BOOL
  26464. + _XorRectRegion(void *GfxBase, struct Region *region, struct Rectangle *rectangle)
  26465. + {
  26466. + struct Caos    MyCaos;
  26467. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26468. + //    MyCaos.M68kStart    =    NULL;
  26469. + //    MyCaos.M68kSize        =    0;
  26470. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26471. + //    MyCaos.PPCStart        =    NULL;
  26472. + //    MyCaos.PPCSize        =    0;
  26473. +     MyCaos.a0        =(ULONG) region;
  26474. +     MyCaos.a1        =(ULONG) rectangle;
  26475. +     MyCaos.caos_Un.Offset    =    (-558);
  26476. +     MyCaos.a6        =(ULONG) GfxBase;    
  26477. +     return((BOOL)PPCCallOS(&MyCaos));
  26478. + }
  26479. + #define    XorRegionRegion(srcRegion, destRegion)    _XorRegionRegion(GRAPHICS_BASE_NAME, srcRegion, destRegion)
  26480. + static __inline BOOL
  26481. + _XorRegionRegion(void *GfxBase, struct Region *srcRegion, struct Region *destRegion)
  26482. + {
  26483. + struct Caos    MyCaos;
  26484. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26485. + //    MyCaos.M68kStart    =    NULL;
  26486. + //    MyCaos.M68kSize        =    0;
  26487. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26488. + //    MyCaos.PPCStart        =    NULL;
  26489. + //    MyCaos.PPCSize        =    0;
  26490. +     MyCaos.a0        =(ULONG) srcRegion;
  26491. +     MyCaos.a1        =(ULONG) destRegion;
  26492. +     MyCaos.caos_Un.Offset    =    (-618);
  26493. +     MyCaos.a6        =(ULONG) GfxBase;    
  26494. +     return((BOOL)PPCCallOS(&MyCaos));
  26495. + }
  26496. + #endif /* SASC Pragmas */
  26497. + #endif /* !_PPCPRAGMA_GRAPHICS_H */
  26498. diff -c2 -d -P -r include_h/powerup/ppcpragmas/icon_pragmas.h includenew/powerup/ppcpragmas/icon_pragmas.h
  26499. *** include_h/powerup/ppcpragmas/icon_pragmas.h    Thu Jan  1 00:00:00 1970
  26500. --- includenew/powerup/ppcpragmas/icon_pragmas.h    Thu Nov  2 22:27:14 2000
  26501. ***************
  26502. *** 0 ****
  26503. --- 1,250 ----
  26504. + /* Automatically generated header! Do not edit! */
  26505. + #ifndef _PPCPRAGMA_ICON_H
  26506. + #define _PPCPRAGMA_ICON_H
  26507. + #ifdef __GNUC__
  26508. + #ifndef _PPCINLINE__ICON_H
  26509. + #include <powerup/ppcinline/icon.h>
  26510. + #endif
  26511. + #else
  26512. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  26513. + #include <powerup/ppclib/interface.h>
  26514. + #endif
  26515. + #ifndef POWERUP_GCCLIB_PROTOS_H
  26516. + #include <powerup/gcclib/powerup_protos.h>
  26517. + #endif
  26518. + #ifndef NO_PPCINLINE_STDARG
  26519. + #define NO_PPCINLINE_STDARG
  26520. + #endif/* SAS C PPC inlines */
  26521. + #ifndef ICON_BASE_NAME
  26522. + #define ICON_BASE_NAME IconBase
  26523. + #endif /* !ICON_BASE_NAME */
  26524. + #define    AddFreeList(freelist, mem, size)    _AddFreeList(ICON_BASE_NAME, freelist, mem, size)
  26525. + static __inline BOOL
  26526. + _AddFreeList(void *IconBase, struct FreeList *freelist, APTR mem, unsigned long size)
  26527. + {
  26528. + struct Caos    MyCaos;
  26529. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26530. + //    MyCaos.M68kStart    =    NULL;
  26531. + //    MyCaos.M68kSize        =    0;
  26532. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26533. + //    MyCaos.PPCStart        =    NULL;
  26534. + //    MyCaos.PPCSize        =    0;
  26535. +     MyCaos.a0        =(ULONG) freelist;
  26536. +     MyCaos.a1        =(ULONG) mem;
  26537. +     MyCaos.a2        =(ULONG) size;
  26538. +     MyCaos.caos_Un.Offset    =    (-72);
  26539. +     MyCaos.a6        =(ULONG) IconBase;    
  26540. +     return((BOOL)PPCCallOS(&MyCaos));
  26541. + }
  26542. + #define    BumpRevision(newname, oldname)    _BumpRevision(ICON_BASE_NAME, newname, oldname)
  26543. + static __inline UBYTE *
  26544. + _BumpRevision(void *IconBase, UBYTE *newname, UBYTE *oldname)
  26545. + {
  26546. + struct Caos    MyCaos;
  26547. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26548. + //    MyCaos.M68kStart    =    NULL;
  26549. + //    MyCaos.M68kSize        =    0;
  26550. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26551. + //    MyCaos.PPCStart        =    NULL;
  26552. + //    MyCaos.PPCSize        =    0;
  26553. +     MyCaos.a0        =(ULONG) newname;
  26554. +     MyCaos.a1        =(ULONG) oldname;
  26555. +     MyCaos.caos_Un.Offset    =    (-108);
  26556. +     MyCaos.a6        =(ULONG) IconBase;    
  26557. +     return((UBYTE *)PPCCallOS(&MyCaos));
  26558. + }
  26559. + #define    DeleteDiskObject(name)    _DeleteDiskObject(ICON_BASE_NAME, name)
  26560. + static __inline BOOL
  26561. + _DeleteDiskObject(void *IconBase, UBYTE *name)
  26562. + {
  26563. + struct Caos    MyCaos;
  26564. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26565. + //    MyCaos.M68kStart    =    NULL;
  26566. + //    MyCaos.M68kSize        =    0;
  26567. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26568. + //    MyCaos.PPCStart        =    NULL;
  26569. + //    MyCaos.PPCSize        =    0;
  26570. +     MyCaos.a0        =(ULONG) name;
  26571. +     MyCaos.caos_Un.Offset    =    (-138);
  26572. +     MyCaos.a6        =(ULONG) IconBase;    
  26573. +     return((BOOL)PPCCallOS(&MyCaos));
  26574. + }
  26575. + #define    FindToolType(toolTypeArray, typeName)    _FindToolType(ICON_BASE_NAME, toolTypeArray, typeName)
  26576. + static __inline UBYTE *
  26577. + _FindToolType(void *IconBase, UBYTE **toolTypeArray, UBYTE *typeName)
  26578. + {
  26579. + struct Caos    MyCaos;
  26580. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26581. + //    MyCaos.M68kStart    =    NULL;
  26582. + //    MyCaos.M68kSize        =    0;
  26583. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26584. + //    MyCaos.PPCStart        =    NULL;
  26585. + //    MyCaos.PPCSize        =    0;
  26586. +     MyCaos.a0        =(ULONG) toolTypeArray;
  26587. +     MyCaos.a1        =(ULONG) typeName;
  26588. +     MyCaos.caos_Un.Offset    =    (-96);
  26589. +     MyCaos.a6        =(ULONG) IconBase;    
  26590. +     return((UBYTE *)PPCCallOS(&MyCaos));
  26591. + }
  26592. + #define    FreeDiskObject(diskobj)    _FreeDiskObject(ICON_BASE_NAME, diskobj)
  26593. + static __inline void
  26594. + _FreeDiskObject(void *IconBase, struct DiskObject *diskobj)
  26595. + {
  26596. + struct Caos    MyCaos;
  26597. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26598. + //    MyCaos.M68kStart    =    NULL;
  26599. + //    MyCaos.M68kSize        =    0;
  26600. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26601. + //    MyCaos.PPCStart        =    NULL;
  26602. + //    MyCaos.PPCSize        =    0;
  26603. +     MyCaos.a0        =(ULONG) diskobj;
  26604. +     MyCaos.caos_Un.Offset    =    (-90);
  26605. +     MyCaos.a6        =(ULONG) IconBase;    
  26606. +     PPCCallOS(&MyCaos);
  26607. + }
  26608. + #define    FreeFreeList(freelist)    _FreeFreeList(ICON_BASE_NAME, freelist)
  26609. + static __inline void
  26610. + _FreeFreeList(void *IconBase, struct FreeList *freelist)
  26611. + {
  26612. + struct Caos    MyCaos;
  26613. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26614. + //    MyCaos.M68kStart    =    NULL;
  26615. + //    MyCaos.M68kSize        =    0;
  26616. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26617. + //    MyCaos.PPCStart        =    NULL;
  26618. + //    MyCaos.PPCSize        =    0;
  26619. +     MyCaos.a0        =(ULONG) freelist;
  26620. +     MyCaos.caos_Un.Offset    =    (-54);
  26621. +     MyCaos.a6        =(ULONG) IconBase;    
  26622. +     PPCCallOS(&MyCaos);
  26623. + }
  26624. + #define    GetDefDiskObject(type)    _GetDefDiskObject(ICON_BASE_NAME, type)
  26625. + static __inline struct DiskObject *
  26626. + _GetDefDiskObject(void *IconBase, long type)
  26627. + {
  26628. + struct Caos    MyCaos;
  26629. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26630. + //    MyCaos.M68kStart    =    NULL;
  26631. + //    MyCaos.M68kSize        =    0;
  26632. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26633. + //    MyCaos.PPCStart        =    NULL;
  26634. + //    MyCaos.PPCSize        =    0;
  26635. +     MyCaos.d0        =(ULONG) type;
  26636. +     MyCaos.caos_Un.Offset    =    (-120);
  26637. +     MyCaos.a6        =(ULONG) IconBase;    
  26638. +     return((struct DiskObject *)PPCCallOS(&MyCaos));
  26639. + }
  26640. + #define    GetDiskObject(name)    _GetDiskObject(ICON_BASE_NAME, name)
  26641. + static __inline struct DiskObject *
  26642. + _GetDiskObject(void *IconBase, UBYTE *name)
  26643. + {
  26644. + struct Caos    MyCaos;
  26645. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26646. + //    MyCaos.M68kStart    =    NULL;
  26647. + //    MyCaos.M68kSize        =    0;
  26648. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26649. + //    MyCaos.PPCStart        =    NULL;
  26650. + //    MyCaos.PPCSize        =    0;
  26651. +     MyCaos.a0        =(ULONG) name;
  26652. +     MyCaos.caos_Un.Offset    =    (-78);
  26653. +     MyCaos.a6        =(ULONG) IconBase;    
  26654. +     return((struct DiskObject *)PPCCallOS(&MyCaos));
  26655. + }
  26656. + #define    GetDiskObjectNew(name)    _GetDiskObjectNew(ICON_BASE_NAME, name)
  26657. + static __inline struct DiskObject *
  26658. + _GetDiskObjectNew(void *IconBase, UBYTE *name)
  26659. + {
  26660. + struct Caos    MyCaos;
  26661. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26662. + //    MyCaos.M68kStart    =    NULL;
  26663. + //    MyCaos.M68kSize        =    0;
  26664. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26665. + //    MyCaos.PPCStart        =    NULL;
  26666. + //    MyCaos.PPCSize        =    0;
  26667. +     MyCaos.a0        =(ULONG) name;
  26668. +     MyCaos.caos_Un.Offset    =    (-132);
  26669. +     MyCaos.a6        =(ULONG) IconBase;    
  26670. +     return((struct DiskObject *)PPCCallOS(&MyCaos));
  26671. + }
  26672. + #define    MatchToolValue(typeString, value)    _MatchToolValue(ICON_BASE_NAME, typeString, value)
  26673. + static __inline BOOL
  26674. + _MatchToolValue(void *IconBase, UBYTE *typeString, UBYTE *value)
  26675. + {
  26676. + struct Caos    MyCaos;
  26677. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26678. + //    MyCaos.M68kStart    =    NULL;
  26679. + //    MyCaos.M68kSize        =    0;
  26680. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26681. + //    MyCaos.PPCStart        =    NULL;
  26682. + //    MyCaos.PPCSize        =    0;
  26683. +     MyCaos.a0        =(ULONG) typeString;
  26684. +     MyCaos.a1        =(ULONG) value;
  26685. +     MyCaos.caos_Un.Offset    =    (-102);
  26686. +     MyCaos.a6        =(ULONG) IconBase;    
  26687. +     return((BOOL)PPCCallOS(&MyCaos));
  26688. + }
  26689. + #define    PutDefDiskObject(diskObject)    _PutDefDiskObject(ICON_BASE_NAME, diskObject)
  26690. + static __inline BOOL
  26691. + _PutDefDiskObject(void *IconBase, struct DiskObject *diskObject)
  26692. + {
  26693. + struct Caos    MyCaos;
  26694. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26695. + //    MyCaos.M68kStart    =    NULL;
  26696. + //    MyCaos.M68kSize        =    0;
  26697. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26698. + //    MyCaos.PPCStart        =    NULL;
  26699. + //    MyCaos.PPCSize        =    0;
  26700. +     MyCaos.a0        =(ULONG) diskObject;
  26701. +     MyCaos.caos_Un.Offset    =    (-126);
  26702. +     MyCaos.a6        =(ULONG) IconBase;    
  26703. +     return((BOOL)PPCCallOS(&MyCaos));
  26704. + }
  26705. + #define    PutDiskObject(name, diskobj)    _PutDiskObject(ICON_BASE_NAME, name, diskobj)
  26706. + static __inline BOOL
  26707. + _PutDiskObject(void *IconBase, UBYTE *name, struct DiskObject *diskobj)
  26708. + {
  26709. + struct Caos    MyCaos;
  26710. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26711. + //    MyCaos.M68kStart    =    NULL;
  26712. + //    MyCaos.M68kSize        =    0;
  26713. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26714. + //    MyCaos.PPCStart        =    NULL;
  26715. + //    MyCaos.PPCSize        =    0;
  26716. +     MyCaos.a0        =(ULONG) name;
  26717. +     MyCaos.a1        =(ULONG) diskobj;
  26718. +     MyCaos.caos_Un.Offset    =    (-84);
  26719. +     MyCaos.a6        =(ULONG) IconBase;    
  26720. +     return((BOOL)PPCCallOS(&MyCaos));
  26721. + }
  26722. + #endif /* SASC Pragmas */
  26723. + #endif /* !_PPCPRAGMA_ICON_H */
  26724. diff -c2 -d -P -r include_h/powerup/ppcpragmas/iffparse_pragmas.h includenew/powerup/ppcpragmas/iffparse_pragmas.h
  26725. *** include_h/powerup/ppcpragmas/iffparse_pragmas.h    Thu Jan  1 00:00:00 1970
  26726. --- includenew/powerup/ppcpragmas/iffparse_pragmas.h    Thu Nov  2 22:27:14 2000
  26727. ***************
  26728. *** 0 ****
  26729. --- 1,804 ----
  26730. + /* Automatically generated header! Do not edit! */
  26731. + #ifndef _PPCPRAGMA_IFFPARSE_H
  26732. + #define _PPCPRAGMA_IFFPARSE_H
  26733. + #ifdef __GNUC__
  26734. + #ifndef _PPCINLINE__IFFPARSE_H
  26735. + #include <powerup/ppcinline/iffparse.h>
  26736. + #endif
  26737. + #else
  26738. + #ifndef POWERUP_PPCLIB_INTERFACE_H
  26739. + #include <powerup/ppclib/interface.h>
  26740. + #endif
  26741. + #ifndef POWERUP_GCCLIB_PROTOS_H
  26742. + #include <powerup/gcclib/powerup_protos.h>
  26743. + #endif
  26744. + #ifndef NO_PPCINLINE_STDARG
  26745. + #define NO_PPCINLINE_STDARG
  26746. + #endif/* SAS C PPC inlines */
  26747. + #ifndef IFFPARSE_BASE_NAME
  26748. + #define IFFPARSE_BASE_NAME IFFParseBase
  26749. + #endif /* !IFFPARSE_BASE_NAME */
  26750. + #define    AllocIFF()    _AllocIFF(IFFPARSE_BASE_NAME)
  26751. + static __inline struct IFFHandle *
  26752. + _AllocIFF(void *IFFParseBase)
  26753. + {
  26754. + struct Caos    MyCaos;
  26755. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26756. + //    MyCaos.M68kStart    =    NULL;
  26757. + //    MyCaos.M68kSize        =    0;
  26758. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26759. + //    MyCaos.PPCStart        =    NULL;
  26760. + //    MyCaos.PPCSize        =    0;
  26761. +     MyCaos.caos_Un.Offset    =    (-30);
  26762. +     MyCaos.a6        =(ULONG) IFFParseBase;    
  26763. +     return((struct IFFHandle *)PPCCallOS(&MyCaos));
  26764. + }
  26765. + #define    AllocLocalItem(type, id, ident, dataSize)    _AllocLocalItem(IFFPARSE_BASE_NAME, type, id, ident, dataSize)
  26766. + static __inline struct LocalContextItem *
  26767. + _AllocLocalItem(void *IFFParseBase, long type, long id, long ident, long dataSize)
  26768. + {
  26769. + struct Caos    MyCaos;
  26770. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26771. + //    MyCaos.M68kStart    =    NULL;
  26772. + //    MyCaos.M68kSize        =    0;
  26773. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26774. + //    MyCaos.PPCStart        =    NULL;
  26775. + //    MyCaos.PPCSize        =    0;
  26776. +     MyCaos.d0        =(ULONG) type;
  26777. +     MyCaos.d1        =(ULONG) id;
  26778. +     MyCaos.d2        =(ULONG) ident;
  26779. +     MyCaos.d3        =(ULONG) dataSize;
  26780. +     MyCaos.caos_Un.Offset    =    (-186);
  26781. +     MyCaos.a6        =(ULONG) IFFParseBase;    
  26782. +     return((struct LocalContextItem *)PPCCallOS(&MyCaos));
  26783. + }
  26784. + #define    CloseClipboard(clipHandle)    _CloseClipboard(IFFPARSE_BASE_NAME, clipHandle)
  26785. + static __inline void
  26786. + _CloseClipboard(void *IFFParseBase, struct ClipboardHandle *clipHandle)
  26787. + {
  26788. + struct Caos    MyCaos;
  26789. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26790. + //    MyCaos.M68kStart    =    NULL;
  26791. + //    MyCaos.M68kSize        =    0;
  26792. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26793. + //    MyCaos.PPCStart        =    NULL;
  26794. + //    MyCaos.PPCSize        =    0;
  26795. +     MyCaos.a0        =(ULONG) clipHandle;
  26796. +     MyCaos.caos_Un.Offset    =    (-252);
  26797. +     MyCaos.a6        =(ULONG) IFFParseBase;    
  26798. +     PPCCallOS(&MyCaos);
  26799. + }
  26800. + #define    CloseIFF(iff)    _CloseIFF(IFFPARSE_BASE_NAME, iff)
  26801. + static __inline void
  26802. + _CloseIFF(void *IFFParseBase, struct IFFHandle *iff)
  26803. + {
  26804. + struct Caos    MyCaos;
  26805. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26806. + //    MyCaos.M68kStart    =    NULL;
  26807. + //    MyCaos.M68kSize        =    0;
  26808. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26809. + //    MyCaos.PPCStart        =    NULL;
  26810. + //    MyCaos.PPCSize        =    0;
  26811. +     MyCaos.a0        =(ULONG) iff;
  26812. +     MyCaos.caos_Un.Offset    =    (-48);
  26813. +     MyCaos.a6        =(ULONG) IFFParseBase;    
  26814. +     PPCCallOS(&MyCaos);
  26815. + }
  26816. + #define    CollectionChunk(iff, type, id)    _CollectionChunk(IFFPARSE_BASE_NAME, iff, type, id)
  26817. + static __inline LONG
  26818. + _CollectionChunk(void *IFFParseBase, struct IFFHandle *iff, long type, long id)
  26819. + {
  26820. + struct Caos    MyCaos;
  26821. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26822. + //    MyCaos.M68kStart    =    NULL;
  26823. + //    MyCaos.M68kSize        =    0;
  26824. +     MyCaos.PPCCacheMode    =    IF_CACHEFLUSHALL;
  26825. + //    MyCaos.PPCStart        =    NULL;
  26826. + //    MyCaos.PPCSize        =    0;
  26827. +     MyCaos.a0        =(ULONG) iff;
  26828. +     MyCaos.d0        =(ULONG) type;
  26829. +     MyCaos.d1        =(ULONG) id;
  26830. +     MyCaos.caos_Un.Offset    =    (-138);
  26831. +     MyCaos.a6        =(ULONG) IFFParseBase;    
  26832. +     return((LONG)PPCCallOS(&MyCaos));
  26833. + }
  26834. + #define    CollectionChunks(iff, propArray, numPairs)    _CollectionChunks(IFFPARSE_BASE_NAME, iff, propArray, numPairs)
  26835. + static __inline LONG
  26836. + _CollectionChunks(void *IFFParseBase, struct IFFHandle *iff, LONG *propArray, long numPairs)
  26837. + {
  26838. + struct Caos    MyCaos;
  26839. +     MyCaos.M68kCacheMode    =    IF_CACHEFLUSHALL;
  26840. + //