xref: /titanic_50/usr/src/grub/grub-0.97/netboot/osdep.h (revision 1b8adde7ba7d5e04395c141c5400dc2cffd7d809)
1*1b8adde7SWilliam Kucharski #ifndef	_OSDEP_H
2*1b8adde7SWilliam Kucharski #define _OSDEP_H
3*1b8adde7SWilliam Kucharski 
4*1b8adde7SWilliam Kucharski #define __unused __attribute__((unused))
5*1b8adde7SWilliam Kucharski #define __aligned __attribute__((aligned(16)))
6*1b8adde7SWilliam Kucharski 
7*1b8adde7SWilliam Kucharski #include "io.h"
8*1b8adde7SWilliam Kucharski #include "byteswap.h"
9*1b8adde7SWilliam Kucharski #include "latch.h"
10*1b8adde7SWilliam Kucharski 
11*1b8adde7SWilliam Kucharski #if defined(__sun)
12*1b8adde7SWilliam Kucharski typedef	unsigned long Address;
13*1b8adde7SWilliam Kucharski #endif
14*1b8adde7SWilliam Kucharski 
15*1b8adde7SWilliam Kucharski /* ANSI prototyping macro */
16*1b8adde7SWilliam Kucharski #ifdef	__STDC__
17*1b8adde7SWilliam Kucharski #  define	P(x)	x
18*1b8adde7SWilliam Kucharski #else
19*1b8adde7SWilliam Kucharski #  define	P(x)	()
20*1b8adde7SWilliam Kucharski #endif
21*1b8adde7SWilliam Kucharski 
22*1b8adde7SWilliam Kucharski #endif
23