]> git.lizzy.rs Git - plan9front.git/blob - sys/src/9/bitsy/fns.h
merge
[plan9front.git] / sys / src / 9 / bitsy / fns.h
1 #include "../port/portfns.h"
2
3 void    audiopower(int);
4 void    audioamppower(int);
5 void    audioicpower(int);
6 void    cacheflush(void);
7 void    cachewb(void);
8 void    cachewbaddr(void*);
9 void    cachewbregion(ulong, int);
10 ulong   cankaddr(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 int     cmpswap(long*, long, long);
17 #define coherence()
18 #define cycles(x)       do{}while(0)
19 #define dcflush(a, b)
20 void    delay(int);
21 void    µcpower(int);
22 void    deepsleep(void);
23 void    dmainit(void);
24 void    doze(void);
25 void    egpiobits(ulong, int);
26 void    evenaddr(ulong);
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    icacheinvalidate(void);
42 void    idle(void);
43 void    idlehands(void);
44 uchar   inb(ulong);
45 ushort  ins(ulong);
46 void    inss(ulong, void*, int);
47 ulong   inl(ulong);
48 void    intrdisable(int, int, void (*)(Ureg*, void*), void*, char*);
49 void    intrenable(int, int, void (*)(Ureg*, void*), void*, char*);
50 void    irpower(int);
51 #define kexit(a)
52 #define kmapinval()
53 void    lcdpower(int);
54 void    links(void);
55 void*   mapmem(ulong, int, int);
56 void    mappedIvecEnable(void);
57 void    mappedIvecDisable(void);
58 void*   mapspecial(ulong, int);
59 void    meminit(void);
60 void    mmuinit(void);
61 void    mmuenable(void);
62 void    mmudisable(void);
63 void    mmuinvalidate(void);
64 void    mmuinvalidateaddr(ulong);
65 void    mmurestart(void);
66 ulong   mmu_kaddr(ulong);
67 ulong   mmu_paddr(ulong);
68 int     µcputc(Queue*, int);
69 void    noted(Ureg*, ulong);
70 int     notify(Ureg*);
71 void    outb(ulong, uchar);
72 void    outs(ulong, ushort);
73 void    outss(ulong, void*, int);
74 void    outl(ulong, ulong);
75 void    pcmciapower(int);
76 void    pcmcisread(PCMslot*);
77 int     pcmcistuple(int, int, int, void*, int);
78 PCMmap* pcmmap(int, ulong, int, int);
79 void    pcmunmap(int, PCMmap*);
80 void    penbutton(int, int);
81 void    pentrackxy(int x, int y);
82 void    power_down(void);
83 void    powerinit(void);
84 void    powerkproc(void*);
85 #define procrestore(p)
86 void    procsave(Proc*);
87 void    procsetup(Proc*);
88 void    procfork(Proc*);
89 void    putdac(ulong);
90 void    putttb(ulong);
91 void    putpid(ulong);
92 void    resetsuspendtimer(void);
93 void    rs232power(int);
94 void    rtcalarm(ulong);
95 void    sa1110_uartsetup(int);
96 void    screeninit(void);
97 void    screenpower(int);
98 void    serialµcputs(uchar *str, int n);
99 void    setr13(int, ulong*);
100 uchar*  tarlookup(uchar*, char*, int*);
101 void    timersinit(void);
102 void    timeradd(Timer*);
103 void    timerdel(Timer*);
104 void    timerset(Tval);
105 void    touser(void*);
106 void    trapdump(char *tag);
107 void    trapinit(void);
108 void    trapresume(void);
109 int     tas(void*);
110 void    uartpower(int);
111 int     uartstageoutput(Uart*);
112 void    uartkick(void*);
113 void    uartrecv(Uart*, char);
114 #define userureg(ur)    (((ur)->psr & PsrMask) == PsrMusr)
115 void    vectors(void);
116 void    vtable(void);
117 void    wbflush(void);
118 #define KADDR(a) (void*)mmu_kaddr((ulong)(a))
119 #define PADDR(a) mmu_paddr((ulong)(a))
120
121 #define waserror()      (up->nerrlab++, setlabel(&up->errlab[up->nerrlab-1]))