patch-2.4.19 linux-2.4.19/arch/mips/galileo-boards/ev64120/compressed/osdep.h

Next file: linux-2.4.19/arch/mips/galileo-boards/ev64120/compressed/pci.c
Previous file: linux-2.4.19/arch/mips/galileo-boards/ev64120/compressed/ns16550.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/arch/mips/galileo-boards/ev64120/compressed/osdep.h linux-2.4.19/arch/mips/galileo-boards/ev64120/compressed/osdep.h
@@ -0,0 +1,36 @@
+#ifndef	__OSDEP_H__
+#define __OSDEP_H__
+
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2, or (at
+ * your option) any later version.
+ */
+
+#if	defined(__linux__) || defined(__FreeBSD__) || defined (__MIPSEB__)
+#define	ETHERBOOT32
+#define ntohl(x) (x)
+#define htonl(x) (x)
+#define ntohs(x) (x)
+#define htons(x) (x)
+
+#endif
+
+
+
+
+/* ANSI prototyping macro */
+#ifdef	__STDC__
+#define	P(x)	x
+#else
+#define	P(x)	()
+#endif
+
+#endif
+
+/*
+ * Local variables:
+ *  c-basic-offset: 8
+ * End:
+ */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)