xref: /plan9-contrib/sys/src/9/pcboot/expand.h (revision 1936bb650459bace06c38a45b60888b47e5cd459)
1 /* normally defined in ../port/portdat.h */
2 #define	ROUND(s, sz)	(((s)+(sz-1))&~(sz-1))
3 #define	PGROUND(s)	ROUNDUP(s, BY2PG)
4 #define HOWMANY(x, y)	(((x)+((y)-1))/(y))
5 #define ROUNDUP(x, y)	(HOWMANY((x), (y))*(y))	/* ceiling */
6 
7 void cgainit(void);
8 void cgaputc(int);
9 int inb(int);
10 void outb(int, int);
11