]> git.lizzy.rs Git - plan9front.git/blob - sys/src/9/ppc/fns.h
pc/vga*: use 64-bit physical addresses and check pci membar types and sizes
[plan9front.git] / sys / src / 9 / ppc / fns.h
1 #include "../port/portfns.h"
2
3 void    clockinit(void);
4 void    clockintr(Ureg*);
5 void    cpuidprint(void);
6 void    cycles(uvlong*);
7 void    dbgputc(int c);
8 void    dcacheenb(void);
9 void    dcflush(void*, ulong);
10 void    dczap(void*, ulong);
11 void    delay(int);
12 void    delayloopinit(void);
13 void    dmiss(void);
14 void    dumpregs(Ureg*);
15 void    eieio(void);
16 void    evenaddr(ulong);
17 void    faultpower(Ureg*, ulong addr, int read);
18 void    flashprogpower(int);
19 void    fpgareset(void);
20 void    fprestore(FPsave*);
21 void    fpsave(FPsave*);
22 void    fptrap(Ureg*);
23 char*   getconf(char*);
24 ulong   getdar(void);
25 ulong   getdcmp(void);
26 ulong   getdec(void);
27 ulong   getdmiss(void);
28 ulong   getdsisr(void);
29 ulong   gethash1(void);
30 ulong   gethash2(void);
31 ulong   gethid0(void);
32 ulong   gethid1(void);
33 ulong   geticmp(void);
34 ulong   geticmp(void);
35 ulong   getimiss(void);
36 ulong   getmsr(void);
37 ulong   getpvr(void);
38 ulong   getrpa(void);
39 ulong   getsdr1(void);
40 ulong   getsr(int);
41 ulong   getsrr1(void);
42 void    gotopc(ulong);
43 void    hwintrinit(void);
44 void    icacheenb(void);
45 void    icflush(void*, ulong);
46 void    idle(void);
47 #define idlehands()             /* nothing to do in the runproc */
48 void    imiss(void);
49 int     inb(int);
50 void    intr(Ureg*);
51 void    intrenable(int, void (*)(Ureg*, void*), void*, char*);
52 void    intrdisable(int, void (*)(Ureg*, void*), void*, char*);
53 int     ioalloc(int, int, int, char*);
54 void    iofree(int);
55 int     iprint(char*, ...);
56 int     isaconfig(char*, int, ISAConf*);
57 void    kfpinit(void);
58 #define kmapinval()
59 void    links(void);
60 void    vectordisable(Vctl *);
61 int     vectorenable(Vctl *);
62 void    intack(void);
63 void    intend(int);
64 int     intvec(void);
65 void    l2disable(void);
66 void    mmuinit(void);
67 void    mmusweep(void*);
68 int     newmmupid(void);
69 void    outb(int, int);
70 int     pcicfgr16(Pcidev*, int);
71 int     pcicfgr32(Pcidev*, int);
72 int     pcicfgr8(Pcidev*, int);
73 void    pcicfgw16(Pcidev*, int, int);
74 void    pcicfgw32(Pcidev*, int, int);
75 void    pcicfgw8(Pcidev*, int, int);
76 void    procsave(Proc*);
77 void    procsetup(Proc*);
78 void    procfork(Proc*);
79 void    putdcmp(ulong);
80 void    putdec(ulong);
81 void    puthash1(ulong);
82 void    puthash2(ulong);
83 void    puthid0(ulong);
84 void    puthid2(ulong);
85 void    puticmp(ulong);
86 void    puticmp(ulong);
87 void    putmsr(ulong);
88 void    putrpa(ulong);
89 void    putsdr1(ulong);
90 void    putsdr1(ulong);
91 void    putsr(int, ulong);
92 void    putsrr1(ulong);
93 void    sethvec(int, void (*)(void));
94 void    setmvec(int, void (*)(void), void (*)(void));
95 void    sharedseginit(void);
96 void    console(void);
97 void    sync(void);
98 int     tas(void*);
99 void    timeradd(Timer *);
100 void    timerdel(Timer *);
101 void    timerinit(void);
102 void    tlbflush(ulong);
103 void    tlbflushall(void);
104 void    tlbld(ulong);
105 void    tlbli(ulong);
106 void    tlbvec(void);
107 void    touser(void*);
108 void    trapinit(void);
109 void    trapvec(void);
110 #define userureg(ur) (((ur)->status & MSR_PR) != 0)
111 #define waserror()      (up->nerrlab++, setlabel(&up->errlab[up->nerrlab-1]))
112 #define KADDR(a)        ((void*)((ulong)(a)|KZERO))
113 #define PADDR(a)        ((((ulong)(a)&0xf0000000)==0xf0000000)?(ulong)(a):((ulong)(a)&~KZERO))
114 #define coherence()     eieio()
115 Pcidev* pcimatch(Pcidev*, int, int);
116 Pcidev* pcimatchtbdf(int);
117 void    procrestore(Proc*);
118
119 #ifdef ucuconf
120 extern ulong getpll(void);
121 extern ulong getl2cr(void);
122 extern void putl2cr(ulong);
123 #endif