6 int devread(int, uchar*, int, int);
7 int devwrite(int, uchar*, int, int);
8 uvlong dispatch(uvlong, uvlong, uvlong, uvlong, uvlong);
11 uvlong gendispatch(uvlong, uvlong, uvlong, uvlong, uvlong, uvlong);
12 int getcfields(char*, char**, int, char*);
23 void panic(char *, ...);
25 uvlong pground(uvlong);
26 void putstrn(char *, int);
28 void stqp(uvlong, uvlong);
29 int swppal(uvlong, uvlong, uvlong, uvlong, uvlong);
31 int validrgn(ulong, ulong);
32 void wrv(uvlong, uvlong);
34 #define GSHORT(p) (((p)[1]<<8)|(p)[0])
35 #define GLONG(p) ((GSHORT(p+2)<<16)|GSHORT(p))
36 #define GLSHORT(p) (((p)[0]<<8)|(p)[1])
37 #define GLLONG(p) ((GLSHORT(p)<<16)|GLSHORT(p+2))