fns.h 3.3 KB

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