fns.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #include "../port/portfns.h"
  2. void audiopower(int);
  3. void audioamppower(int);
  4. void audioicpower(int);
  5. void cacheflush(void);
  6. void cachewb(void);
  7. void cachewbaddr(void*);
  8. void cachewbregion(ulong, int);
  9. void dcacheinvalidate(void);
  10. int cistrcmp(char*, char*);
  11. int cistrncmp(char*, char*, int);
  12. void clockinit(void);
  13. ulong clockpower(int);
  14. int cmpswap(long*, long, long);
  15. #define coherence()
  16. #define cycles(x) do{}while(0)
  17. #define dcflush(a, b)
  18. void delay(int);
  19. void µcpower(int);
  20. void deepsleep(void);
  21. void dmainit(void);
  22. void doze(void);
  23. void egpiobits(ulong, int);
  24. void evenaddr(ulong);
  25. ulong findva(ulong, ulong, ulong);
  26. void flashprogpower(int);
  27. void flushmmu(void);
  28. int fpiarm(Ureg *ur);
  29. char* getconf(char*);
  30. ulong getcpuid(void);
  31. ulong getfar(void);
  32. ulong getfsr(void);
  33. ulong getcontrol(void);
  34. ulong getdac(void);
  35. ulong getttb(void);
  36. void* getlink(void);
  37. #define getpgcolor(a) 0
  38. ulong getsp(void);
  39. void icacheinvalidate(void);
  40. void idle(void);
  41. void idlehands(void);
  42. uchar inb(ulong);
  43. ushort ins(ulong);
  44. void inss(ulong, void*, int);
  45. ulong inl(ulong);
  46. void intrdisable(int, int, void (*)(Ureg*, void*), void*, char*);
  47. void intrenable(int, int, void (*)(Ureg*, void*), void*, char*);
  48. void irpower(int);
  49. #define kexit(a)
  50. #define kmapinval()
  51. void lcdpower(int);
  52. void links(void);
  53. void* mapmem(ulong, int, int);
  54. void mappedIvecEnable(void);
  55. void mappedIvecDisable(void);
  56. void* mapspecial(ulong, int);
  57. void meminit(void);
  58. void mmuinit(void);
  59. void mmuenable(void);
  60. void mmudisable(void);
  61. void mmuinvalidate(void);
  62. void mmuinvalidateaddr(ulong);
  63. void mmurestart(void);
  64. ulong mmu_kaddr(ulong);
  65. ulong mmu_paddr(ulong);
  66. int µcputc(Queue*, int);
  67. void noted(Ureg*, ulong);
  68. int notify(Ureg*);
  69. void outb(ulong, uchar);
  70. void outs(ulong, ushort);
  71. void outss(ulong, void*, int);
  72. void outl(ulong, ulong);
  73. void pcmciapower(int);
  74. void pcmcisread(PCMslot*);
  75. int pcmcistuple(int, int, int, void*, int);
  76. PCMmap* pcmmap(int, ulong, int, int);
  77. void pcmunmap(int, PCMmap*);
  78. void penbutton(int, int);
  79. void pentrackxy(int x, int y);
  80. void power_down(void);
  81. void powerinit(void);
  82. void powerkproc(void*);
  83. #define procrestore(p)
  84. void procsave(Proc*);
  85. void procsetup(Proc*);
  86. void putdac(ulong);
  87. void putttb(ulong);
  88. void putpid(ulong);
  89. void resetsuspendtimer(void);
  90. void rs232power(int);
  91. void rtcalarm(ulong);
  92. void sa1110_uartsetup(int);
  93. void screeninit(void);
  94. void screenpower(int);
  95. void serialµcputs(uchar *str, int n);
  96. void setr13(int, ulong*);
  97. uchar* tarlookup(uchar*, char*, int*);
  98. void timersinit(void);
  99. void timeradd(Timer*);
  100. void timerdel(Timer*);
  101. void timerintr(Ureg *, uvlong);
  102. void timerset(uvlong);
  103. void touser(void*);
  104. void trapdump(char *tag);
  105. void trapinit(void);
  106. void trapresume(void);
  107. int tas(void*);
  108. void uartpower(int);
  109. int uartstageoutput(Uart*);
  110. void uartkick(void*);
  111. void uartrecv(Uart*, char);
  112. #define userureg(ur) (((ur)->psr & PsrMask) == PsrMusr)
  113. void vectors(void);
  114. void vtable(void);
  115. void wbflush(void);
  116. #define KADDR(a) (void*)mmu_kaddr((ulong)(a))
  117. #define PADDR(a) mmu_paddr((ulong)(a))
  118. #define waserror() (up->nerrlab++, setlabel(&up->errlab[up->nerrlab-1]))