summaryrefslogtreecommitdiff
path: root/sys/src/boot/alphapc/fns.h
blob: 77a1204c17f60e87ce465f82c17503ae156d876c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
uvlong	allocate(int);
int		bootp(char*);
void		consinit(void);
int		devopen(char*);
int		devclose(int);
int		devread(int, uchar*, int, int);
int		devwrite(int, uchar*, int, int);
uvlong	dispatch(uvlong, uvlong, uvlong, uvlong, uvlong);
void		dumpenv(void);
void		firmware(void);
uvlong	gendispatch(uvlong, uvlong, uvlong, uvlong, uvlong, uvlong);
int		getcfields(char*, char**, int, char*);
char*	getconf(char*);
char*	getenv(char*);
uvlong	getptbr(void);
void		kexec(ulong);
uvlong	ldqp(uvlong);
void		meminit(void);
void		mmuinit(void);
ulong	msec(void);
uvlong	rdv(uvlong);
uvlong	paddr(uvlong);
void		panic(char *, ...);
ulong	pcc_cnt(void);
uvlong	pground(uvlong);
void		putstrn(char *, int);
void		setconf(char*);
void		stqp(uvlong, uvlong);
int		swppal(uvlong, uvlong, uvlong, uvlong, uvlong);
void		tlbflush(void);
int		validrgn(ulong, ulong);
void		wrv(uvlong, uvlong);

#define	GSHORT(p)	(((p)[1]<<8)|(p)[0])
#define	GLONG(p)	((GSHORT(p+2)<<16)|GSHORT(p))
#define	GLSHORT(p)	(((p)[0]<<8)|(p)[1])
#define	GLLONG(p)	((GLSHORT(p)<<16)|GLSHORT(p+2))