xref: /plan9/sys/src/9/pcboot/expand.h (revision 12009bff671a91993ae58f16dab833e809f4a6f3)
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