1 /* Automatically generated header! Do not edit! */
    2 
    3 #ifndef _PPCINLINE_PPC_H
    4 #define _PPCINLINE_PPC_H
    5 
    6 #ifndef __PPCINLINE_MACROS_H
    7 #include <ppcinline/macros.h>
    8 #endif /* !__PPCINLINE_MACROS_H */
    9 
   10 #ifndef PPC_BASE_NAME
   11 #define PPC_BASE_NAME PPCLibBase
   12 #endif /* !PPC_BASE_NAME */
   13 
   14 #define PPCWriteLong(__p0, __p1) \
   15 	LP2NR(162, PPCWriteLong, \
   16 		ULONG *, __p0, a0, \
   17 		ULONG , __p1, d0, \
   18 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   19 
   20 #define PPCWriteByte(__p0, __p1) \
   21 	LP2NR(228, PPCWriteByte, \
   22 		UBYTE *, __p0, a0, \
   23 		UBYTE , __p1, d0, \
   24 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   25 
   26 #define PPCReplyMessage(__p0) \
   27 	LP1(324, BOOL , PPCReplyMessage, \
   28 		void *, __p0, a0, \
   29 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   30 
   31 #define PPCFindTask(__p0) \
   32 	LP1(102, void *, PPCFindTask, \
   33 		char *, __p0, a0, \
   34 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   35 
   36 #define PPCGetPortListAttr(__p0, __p1) \
   37 	LP2(396, ULONG , PPCGetPortListAttr, \
   38 		void *, __p0, a0, \
   39 		ULONG , __p1, d0, \
   40 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   41 
   42 #define PPCSignalTask(__p0, __p1) \
   43 	LP2NR(96, PPCSignalTask, \
   44 		void *, __p0, a0, \
   45 		ULONG , __p1, d0, \
   46 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   47 
   48 #define PPCSetAttrs(__p0) \
   49 	LP1(414, BOOL , PPCSetAttrs, \
   50 		struct TagItem *, __p0, a0, \
   51 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   52 
   53 #define PPCCacheTrashE(__p0, __p1, __p2) \
   54 	LP3NR(432, PPCCacheTrashE, \
   55 		void *, __p0, a0, \
   56 		ULONG , __p1, d0, \
   57 		ULONG , __p2, d1, \
   58 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   59 
   60 #define PPCObtainPort(__p0) \
   61 	LP1(282, void *, PPCObtainPort, \
   62 		struct TagItem *, __p0, a0, \
   63 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   64 
   65 #define PPCAllocVecPooled(__p0, __p1) \
   66 	LP2(258, void *, PPCAllocVecPooled, \
   67 		void *, __p0, a0, \
   68 		ULONG , __p1, d0, \
   69 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   70 
   71 #define PPCGetMessageAttr(__p0, __p1) \
   72 	LP2(306, ULONG , PPCGetMessageAttr, \
   73 		void *, __p0, a0, \
   74 		ULONG , __p1, d0, \
   75 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   76 
   77 #define PPCCloseLibrary(__p0) \
   78 	LP1NR(444, PPCCloseLibrary, \
   79 		void *, __p0, a0, \
   80 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   81 
   82 #define PPCCacheClearE(__p0, __p1, __p2) \
   83 	LP3NR(342, PPCCacheClearE, \
   84 		void *, __p0, a0, \
   85 		ULONG , __p1, d0, \
   86 		ULONG , __p2, d1, \
   87 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   88 
   89 #define PPCAllocPooled(__p0, __p1) \
   90 	LP2(246, void *, PPCAllocPooled, \
   91 		void *, __p0, a0, \
   92 		ULONG , __p1, d0, \
   93 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
   94 
   95 #define PPCRunKernelObjectFPU(__p0, __p1) \
   96 	LP2(150, DOUBLE , PPCRunKernelObjectFPU, \
   97 		void *, __p0, , \
   98 		struct ModuleArgs *, __p1, , \
   99 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  100 
  101 #define PPCCreatePort(__p0) \
  102 	LP1(270, void *, PPCCreatePort, \
  103 		struct TagItem *, __p0, a0, \
  104 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  105 
  106 #define PPCOpenLibrary(__p0, __p1) \
  107 	LP2(438, void *, PPCOpenLibrary, \
  108 		char *, __p0, a0, \
  109 		struct TagItem *, __p1, a1, \
  110 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  111 
  112 #define PPCRunKernelObject(__p0, __p1) \
  113 	LP2(114, ULONG , PPCRunKernelObject, \
  114 		void *, __p0, a0, \
  115 		struct ModuleArgs *, __p1, a1, \
  116 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  117 
  118 #define PPCCreatePortList(__p0, __p1) \
  119 	LP2(366, void *, PPCCreatePortList, \
  120 		void **, __p0, a0, \
  121 		ULONG , __p1, d0, \
  122 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  123 
  124 #define PPCCreateMessage(__p0, __p1) \
  125 	LP2(294, void *, PPCCreateMessage, \
  126 		void *, __p0, a0, \
  127 		ULONG , __p1, d0, \
  128 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  129 
  130 #define PPCGetTaskAttrs(__p0, __p1) \
  131 	LP2(132, ULONG , PPCGetTaskAttrs, \
  132 		void *, __p0, a0, \
  133 		struct TagItem *, __p1, a1, \
  134 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  135 
  136 #define PPCWriteLongFlush(__p0, __p1) \
  137 	LP2NR(204, PPCWriteLongFlush, \
  138 		ULONG *, __p0, a0, \
  139 		ULONG , __p1, d0, \
  140 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  141 
  142 #define PPCCacheInvalidE(__p0, __p1, __p2) \
  143 	LP3NR(348, PPCCacheInvalidE, \
  144 		void *, __p0, a0, \
  145 		ULONG , __p1, d0, \
  146 		ULONG , __p2, d1, \
  147 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  148 
  149 #define PPCDeleteMessage(__p0) \
  150 	LP1NR(300, PPCDeleteMessage, \
  151 		void *, __p0, a0, \
  152 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  153 
  154 #define PPCDeletePort(__p0) \
  155 	LP1(276, BOOL , PPCDeletePort, \
  156 		void *, __p0, a0, \
  157 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  158 
  159 #define PPCGetAttrs(__p0) \
  160 	LP1(138, ULONG , PPCGetAttrs, \
  161 		struct TagItem *, __p0, a0, \
  162 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  163 
  164 #define PPCReadWord(__p0) \
  165 	LP1(210, UWORD , PPCReadWord, \
  166 		UWORD *, __p0, a0, \
  167 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  168 
  169 #define PPCCreatePool(__p0, __p1, __p2) \
  170 	LP3(234, void *, PPCCreatePool, \
  171 		ULONG , __p0, d0, \
  172 		ULONG , __p1, d1, \
  173 		ULONG , __p2, d2, \
  174 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  175 
  176 #define PPCWaitPortList(__p0) \
  177 	LP1(390, void *, PPCWaitPortList, \
  178 		void *, __p0, a0, \
  179 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  180 
  181 #define PPCSetTaskAttrs(__p0, __p1) \
  182 	LP2(192, ULONG , PPCSetTaskAttrs, \
  183 		void *, __p0, a0, \
  184 		struct TagItem *, __p1, a1, \
  185 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  186 
  187 #define PPCAddPortList(__p0, __p1) \
  188 	LP2(378, BOOL , PPCAddPortList, \
  189 		void *, __p0, a0, \
  190 		void *, __p1, a1, \
  191 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  192 
  193 #define PPCGetObjectAttrs(__p0, __p1, __p2) \
  194 	LP3(198, ULONG , PPCGetObjectAttrs, \
  195 		void *, __p0, a0, \
  196 		struct PPCObjectInfo *, __p1, a1, \
  197 		struct TagItem *, __p2, a2, \
  198 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  199 
  200 #define PPCReadByte(__p0) \
  201 	LP1(222, UBYTE , PPCReadByte, \
  202 		UBYTE *, __p0, a0, \
  203 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  204 
  205 #define PPCFindTaskObject(__p0) \
  206 	LP1(144, void *, PPCFindTaskObject, \
  207 		void *, __p0, a0, \
  208 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  209 
  210 #define PPCReadLong(__p0) \
  211 	LP1(156, ULONG , PPCReadLong, \
  212 		ULONG *, __p0, a0, \
  213 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  214 
  215 #define PPCDeletePool(__p0) \
  216 	LP1(240, BOOL , PPCDeletePool, \
  217 		void *, __p0, a0, \
  218 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  219 
  220 #define PPCSetPortListAttr(__p0, __p1, __p2) \
  221 	LP3NR(402, PPCSetPortListAttr, \
  222 		void *, __p0, a0, \
  223 		ULONG , __p1, d0, \
  224 		ULONG , __p2, d1, \
  225 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  226 
  227 #define PPCStopTask(__p0, __p1) \
  228 	LP2(186, BOOL , PPCStopTask, \
  229 		void *, __p0, a0, \
  230 		struct TagItem *, __p1, a1, \
  231 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  232 
  233 #define PPCRemPortList(__p0, __p1) \
  234 	LP2NR(384, PPCRemPortList, \
  235 		void *, __p0, a0, \
  236 		void *, __p1, a1, \
  237 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  238 
  239 #define PPCGetLibSymbol(__p0, __p1) \
  240 	LP2(450, void *, PPCGetLibSymbol, \
  241 		void *, __p0, a0, \
  242 		char *, __p1, a1, \
  243 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  244 
  245 #define PPCLoadObject(__p0) \
  246 	LP1(30, void *, PPCLoadObject, \
  247 		char *, __p0, a0, \
  248 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  249 
  250 #define PPCRunObject(__p0, __p1) \
  251 	LP2(42, ULONG , PPCRunObject, \
  252 		void *, __p0, a0, \
  253 		void *, __p1, a1, \
  254 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  255 
  256 #define PPCAllocVec(__p0, __p1) \
  257 	LP2(60, void *, PPCAllocVec, \
  258 		ULONG , __p0, d0, \
  259 		ULONG , __p1, d1, \
  260 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  261 
  262 #define PPCLoadObjectTagList(__p0) \
  263 	LP1(408, void *, PPCLoadObjectTagList, \
  264 		struct TagItem *, __p0, a0, \
  265 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  266 
  267 #define PPCFreeVec(__p0) \
  268 	LP1(66, void *, PPCFreeVec, \
  269 		void *, __p0, a1, \
  270 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  271 
  272 #define PPCStartTask(__p0, __p1) \
  273 	LP2(180, BOOL , PPCStartTask, \
  274 		void *, __p0, a0, \
  275 		struct TagItem *, __p1, a1, \
  276 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  277 
  278 #define PPCSendMessage(__p0, __p1, __p2, __p3, __p4) \
  279 	LP5(330, BOOL , PPCSendMessage, \
  280 		void *, __p0, a0, \
  281 		void *, __p1, a1, \
  282 		void *, __p2, a2, \
  283 		ULONG , __p3, d0, \
  284 		ULONG , __p4, d1, \
  285 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  286 
  287 #define PPCFreePooled(__p0, __p1, __p2) \
  288 	LP3NR(252, PPCFreePooled, \
  289 		void *, __p0, a0, \
  290 		void *, __p1, a1, \
  291 		ULONG , __p2, d0, \
  292 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  293 
  294 #define PPCCreateTask(__p0, __p1) \
  295 	LP2(84, void *, PPCCreateTask, \
  296 		void *, __p0, a0, \
  297 		struct TagItem *, __p1, a1, \
  298 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  299 
  300 #define PPCReleasePort(__p0) \
  301 	LP1(288, BOOL , PPCReleasePort, \
  302 		void *, __p0, a0, \
  303 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  304 
  305 #define PPCAllocMem(__p0, __p1) \
  306 	LP2(48, void *, PPCAllocMem, \
  307 		ULONG , __p0, d0, \
  308 		ULONG , __p1, d1, \
  309 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  310 
  311 #define PPCDeletePortList(__p0) \
  312 	LP1NR(372, PPCDeletePortList, \
  313 		void *, __p0, a0, \
  314 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  315 
  316 #define PPCDeleteTask(__p0) \
  317 	LP1(90, BOOL , PPCDeleteTask, \
  318 		void *, __p0, a0, \
  319 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  320 
  321 #define PPCGetMessage(__p0) \
  322 	LP1(312, void *, PPCGetMessage, \
  323 		void *, __p0, a0, \
  324 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  325 
  326 #define PPCFreeMem(__p0, __p1) \
  327 	LP2NR(54, PPCFreeMem, \
  328 		void *, __p0, a1, \
  329 		ULONG , __p1, d0, \
  330 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  331 
  332 #define PPCWaitPort(__p0) \
  333 	LP1(336, void *, PPCWaitPort, \
  334 		void *, __p0, a0, \
  335 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  336 
  337 #define PPCUnLoadObject(__p0) \
  338 	LP1NR(36, PPCUnLoadObject, \
  339 		void *, __p0, a0, \
  340 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  341 
  342 #define PPCWriteWord(__p0, __p1) \
  343 	LP2NR(216, PPCWriteWord, \
  344 		UWORD *, __p0, a0, \
  345 		UWORD , __p1, d0, \
  346 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  347 
  348 #define PPCFreeVecPooled(__p0, __p1) \
  349 	LP2NR(264, PPCFreeVecPooled, \
  350 		void *, __p0, a0, \
  351 		void *, __p1, a1, \
  352 		, PPC_BASE_NAME, 0, 0, 0, 0, 0, 0)
  353 
  354 #if defined(USE_INLINE_STDARG) && !defined(__STRICT_ANSI__)
  355 
  356 #include <stdarg.h>
  357 
  358 #define PPCCreateTaskTags(__p0, ...) \
  359 	({ULONG _tags[] = { __VA_ARGS__ }; \
  360 	PPCCreateTask(__p0, (struct TagItem *)_tags);})
  361 
  362 #define PPCCreatePortTags(...) \
  363 	({ULONG _tags[] = { __VA_ARGS__ }; \
  364 	PPCCreatePort((struct TagItem *)_tags);})
  365 
  366 #define PPCGetAttrsTags(...) \
  367 	({ULONG _tags[] = { __VA_ARGS__ }; \
  368 	PPCGetAttrs((struct TagItem *)_tags);})
  369 
  370 #define PPCStopTaskTags(__p0, ...) \
  371 	({ULONG _tags[] = { __VA_ARGS__ }; \
  372 	PPCStopTask(__p0, (struct TagItem *)_tags);})
  373 
  374 #define PPCGetTaskAttrsTags(__p0, ...) \
  375 	({ULONG _tags[] = { __VA_ARGS__ }; \
  376 	PPCGetTaskAttrs(__p0, (struct TagItem *)_tags);})
  377 
  378 #define PPCLoadObjectTags(...) \
  379 	({ULONG _tags[] = { __VA_ARGS__ }; \
  380 	PPCLoadObjectTagList((struct TagItem *)_tags);})
  381 
  382 #define PPCSetAttrsTags(...) \
  383 	({ULONG _tags[] = { __VA_ARGS__ }; \
  384 	PPCSetAttrs((struct TagItem *)_tags);})
  385 
  386 #define PPCGetObjectAttrsTags(__p0, __p1, ...) \
  387 	({ULONG _tags[] = { __VA_ARGS__ }; \
  388 	PPCGetObjectAttrs(__p0, __p1, (struct TagItem *)_tags);})
  389 
  390 #define PPCObtainPortTags(...) \
  391 	({ULONG _tags[] = { __VA_ARGS__ }; \
  392 	PPCObtainPort((struct TagItem *)_tags);})
  393 
  394 #define PPCStartTaskTags(__p0, ...) \
  395 	({ULONG _tags[] = { __VA_ARGS__ }; \
  396 	PPCStartTask(__p0, (struct TagItem *)_tags);})
  397 
  398 #define PPCSetTaskAttrsTags(__p0, ...) \
  399 	({ULONG _tags[] = { __VA_ARGS__ }; \
  400 	PPCSetTaskAttrs(__p0, (struct TagItem *)_tags);})
  401 
  402 #endif
  403 
  404 #endif /* !_PPCINLINE_PPC_H */