fns.h 3.0 KB

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