]> git.lizzy.rs Git - plan9front.git/blob - sys/src/9/mtx/fns.h
merge
[plan9front.git] / sys / src / 9 / mtx / fns.h
1 #include "../port/portfns.h"
2
3 ulong   cankaddr(ulong);
4 int     cistrcmp(char*, char*);
5 int     cistrncmp(char*, char*, int);
6 void    clockinit(void);
7 void    clockintr(Ureg*);
8 void    clockintrsched(void);
9 int     cmpswap(long*, long, long);
10 #define coherence()     eieio()
11 void    cpuidprint(void);
12 #define cycles(x)       do{}while(0)
13 void    dcflush(void*, ulong);
14 void    delay(int);
15 void    dumpregs(Ureg*);
16 void    delayloopinit(void);
17 void    eieio(void);
18 void    evenaddr(ulong);
19 void    faultpower(Ureg*, ulong addr, int read);
20 void    fprestore(FPsave*);
21 void    fpsave(FPsave*);
22 char*   getconf(char*);
23 ulong   getdar(void);
24 ulong   getdec(void);
25 ulong   getdsisr(void);
26 ulong   gethid0(void);
27 ulong   gethid1(void);
28 ulong   getmsr(void);
29 ulong   getpvr(void);
30 void    gotopc(ulong);
31 int     havetimer(void);
32 void    hwintrinit(void);
33 void    i8250console(void);
34 void    i8259init(void);
35 int     i8259intack(void);
36 int     i8259enable(Vctl*);
37 int     i8259vecno(int);
38 int     i8259disable(int);
39 void    icflush(void*, ulong);
40 #define idlehands()                     /* nothing to do in the runproc */
41 int     inb(int);
42 void    insb(int, void*, int);
43 ushort  ins(int);
44 void    inss(int, void*, int);
45 ulong   inl(int);
46 void    insl(int, void*, int);
47 void    intr(Ureg*);
48 void    intrenable(int, void (*)(Ureg*, void*), void*, int, char*);
49 int     ioalloc(int, int, int, char*);
50 void    iofree(int);
51 void    ioinit(void);
52 int     iprint(char*, ...);
53 int     isaconfig(char*, int, ISAConf*);
54 #define kexit(a)
55 #define kmapinval()
56 void    links(void);
57 void    mmuinit(void);
58 void    mmusweep(void*);
59 void    mpicdisable(int);
60 void    mpicenable(int, Vctl*);
61 int     mpiceoi(int);
62 int     mpicintack(void);
63 int     newmmupid(void);
64 void    outb(int, int);
65 void    outsb(int, void*, int);
66 void    outs(int, ushort);
67 void    outss(int, void*, int);
68 void    outl(int, ulong);
69 void    outsl(int, void*, int);
70 int     pciscan(int, Pcidev **);
71 ulong pcibarsize(Pcidev *, int);
72 int     pcicfgr8(Pcidev*, int);
73 int     pcicfgr16(Pcidev*, int);
74 int     pcicfgr32(Pcidev*, int);
75 void    pcicfgw8(Pcidev*, int, int);
76 void    pcicfgw16(Pcidev*, int, int);
77 void    pcicfgw32(Pcidev*, int, int);
78 void pciclrbme(Pcidev*);
79 void    pcihinv(Pcidev*);
80 uchar pciipin(Pcidev *, uchar);
81 Pcidev* pcimatch(Pcidev*, int, int);
82 Pcidev* pcimatchtbdf(int);
83 void    pcireset(void);
84 void    pcisetbme(Pcidev*);
85 #define procrestore(p)
86 void    procsave(Proc*);
87 void    procsetup(Proc*);
88 void    procfork(Proc*);
89 void    putdec(ulong);
90 void    puthid0(ulong);
91 void    puthid1(ulong);
92 void    putmsr(ulong);
93 void    putsdr1(ulong);
94 void    putsr(int, ulong);
95 void    raveninit(void);
96 void    sync(void);
97 int     tas(void*);
98 void    timeradd(Timer *);
99 void    timerdel(Timer *);
100 void    touser(void*);
101 void    trapinit(void);
102 void    trapvec(void);
103 void    tlbflush(ulong);
104 void    tlbflushall(void);
105 #define userureg(ur) (((ur)->status & MSR_PR) != 0)
106 void    watchreset(void);
107
108 #define waserror()      (up->nerrlab++, setlabel(&up->errlab[up->nerrlab-1]))
109 #define KADDR(a)        ((void*)((ulong)(a)|KZERO))
110 #define PADDR(a)        ((ulong)(a)&~KZERO)