]> git.lizzy.rs Git - plan9front.git/blob - sys/src/9/zynq/fns.h
zynq: remove unused statistics fields from Mach structure
[plan9front.git] / sys / src / 9 / zynq / fns.h
1 #include "../port/portfns.h"
2
3 int tas(void *);
4 int cmpswap(long *, long, long);
5 void evenaddr(uintptr);
6 void* kaddr(uintptr);
7 uintptr paddr(void *);
8 uintptr cankaddr(uintptr);
9 void procsave(Proc *);
10 void procrestore(Proc *);
11 void idlehands(void);
12 void sendevent(void);
13 void coherence(void);
14 void procfork(Proc *);
15 void procsetup(Proc *);
16 KMap* kmap(Page *);
17 void kunmap(KMap *);
18
19 #define waserror()      (up->nerrlab++, setlabel(&up->errlab[up->nerrlab-1]))
20 #define getpgcolor(a) 0
21 #define kmapinval()
22 #define KADDR(a) kaddr(a)
23 #define PADDR(a) paddr((void*)(a))
24 #define userureg(ur) (((ur)->psr & PsrMask) == PsrMusr)
25 #define VA(k) ((void*)(k))
26 #define PTR2UINT(p) ((uintptr)(p))
27
28 void uartinit(void);
29 void mmuinit(void);
30 uintptr ttbget(void);
31 void ttbput(uintptr);
32 void cycles(uvlong *);
33 void kexit(Ureg *);
34 ulong getifsr(void);
35 ulong getdfsr(void);
36 uintptr getifar(void);
37 uintptr getdfar(void);
38 void links(void);
39 void* vmap(uintptr, ulong);
40 void timerinit(void);
41 void synccycles(void);
42 void setpmcr(ulong);
43 void setpmcnten(ulong);
44 void* tmpmap(uintptr);
45 void tmpunmap(void*);
46 void flushpg(void *);
47 void setasid(ulong);
48 void flushtlb(void);
49 void touser(void *);
50 void noted(Ureg *, ulong);
51 void l1switch(L1 *, int);
52 void intrenable(int, void (*)(Ureg *, void *), void *, int, char *);
53 void intrinit(void);
54 void intr(Ureg *);
55 int uartconsole(void);
56 long fbctlread(Chan*,void*,long,vlong);
57 long fbctlwrite(Chan*,void*,long,vlong);
58 void fpoff(void);
59 void fpsave(FPsave *);
60 void fprestore(FPsave *);
61 void fpinit(void);
62 void fpclear(void);
63 char* getconf(char *);
64 void invalise(void *, void *);
65 void cleandse(void *, void *);
66 void invaldse(void *, void *);
67 void clinvdse(void *, void *);
68 void invaldln(void *);
69 void cleandln(void *);
70 void clinvdln(void *);
71 void* ucalloc(ulong);
72 void clean2pa(uintptr, uintptr);
73 void inval2pa(uintptr, uintptr);
74 void archinit(void);
75 uintptr palookur(void *);
76 void screeninit(void);
77 int isaconfig(char*, int, ISAConf*);