link.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. #ifndef __LINK
  2. #define __LINK
  3. #include <default.h>
  4. /* Begin Auto-Generated Part */
  5. #define NULL ((void*)0)
  6. #ifndef __HAVE_Bool
  7. #define __HAVE_Bool
  8. enum Bool{FALSE,TRUE};
  9. #endif
  10. #ifndef __HAVE_ESQ
  11. #define __HAVE_ESQ
  12. typedef unsigned char ESQ;
  13. #endif
  14. #ifndef __HAVE_CESI
  15. #define __HAVE_CESI
  16. typedef const ESQ*CESI;
  17. #endif
  18. #ifndef __HAVE_ESI
  19. #define __HAVE_ESI
  20. typedef ESQ*ESI;
  21. #endif
  22. #ifndef __HAVE_size_t
  23. #define __HAVE_size_t
  24. typedef unsigned long size_t;
  25. #endif
  26. #ifndef __HAVE_SYM_STR
  27. #define __HAVE_SYM_STR
  28. typedef CESI SYM_STR;
  29. #endif
  30. typedef struct{unsigned short hVar;union{const void*pVar;struct{unsigned short FindFlags;unsigned short NameSym;}DirVars;}extra;const char*VarName;unsigned long VarSize;unsigned short Index;unsigned short Unknown;unsigned char VarType;unsigned char VarCompat;}LIO_CTX;
  31. #define getcalc ({__need_in_use_bit;_rom_call(void,(SYM_STR),54);})
  32. #define LIO_Get _rom_call(unsigned short,(LIO_CTX*),57)
  33. #define LIO_GetMultiple ({__need_in_use_bit;_rom_call(short,(LIO_CTX*),59);})
  34. #define LIO_Receive ({__need_in_use_bit;_rom_call(unsigned short,(LIO_CTX*,short,short),58);})
  35. #define LIO_RecvData _rom_call(unsigned short,(void*,long,long),5B)
  36. #define LIO_Send _rom_call(unsigned short,(LIO_CTX*,short),56)
  37. #define LIO_SendData _rom_call(unsigned short,(const void*,long),5A)
  38. #define LIO_SendProduct _rom_call(unsigned short,(LIO_CTX*,short),253)
  39. #define _OSCheckLinkOpen _rom_call(unsigned short,(void),5E3)
  40. #if MIN_AMS>=205
  41. #define OSCheckLinkOpen _OSCheckLinkOpen
  42. #elif !defined(UNOFFICIAL_OS_SUPPORT)
  43. #define OSCheckLinkOpen() (TIOS_entries>0x5E3?_OSCheckLinkOpen():((!!(*(unsigned char*)(unsigned long)*((unsigned short*)_rom_call_addr(24A)+7)))))
  44. #endif
  45. #define OSCheckSilentLink _rom_call(short,(void),24A)
  46. #define OSLinkClose _rom_call(void,(void),24E)
  47. #define OSLinkCmd ({__need_in_use_bit;_rom_call(void,(short),24B);})
  48. #define OSLinkOpen _rom_call(void,(void),24D)
  49. #define flush_link OSLinkOpen
  50. #define OSLinkReset _rom_call(void,(void),24C)
  51. #define reset_link OSLinkReset
  52. #define OSLinkTxQueueActive _rom_call(short,(void),252)
  53. #define OSLinkTxQueueInquire _rom_call(unsigned short,(void),251)
  54. #define tx_free OSLinkTxQueueInquire
  55. #define OSReadLinkBlock _rom_call(unsigned short,(char*,short),24F)
  56. #define receive OSReadLinkBlock
  57. #define OSWriteLinkBlock _rom_call(short,(const char*,short),250)
  58. #define transmit OSWriteLinkBlock
  59. #define sendcalc ({__need_in_use_bit;_rom_call(unsigned short,(SYM_STR,short,short,unsigned char*),55);})
  60. #if MIN_AMS>=200
  61. #define LIO_SendIdList _rom_call(unsigned short,(short),3D0)
  62. #endif
  63. /* End Auto-Generated Part */
  64. #endif