patch-2.4.25 linux-2.4.25/arch/ppc/boot/include/of1275.h
Next file: linux-2.4.25/arch/ppc/boot/of1275/Makefile
Previous file: linux-2.4.25/arch/ppc/boot/include/mpc10x.h
Back to the patch index
Back to the overall index
- Lines: 43
- Date:
2004-02-18 05:36:30.000000000 -0800
- Orig file:
linux-2.4.24/arch/ppc/boot/include/of1275.h
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.24/arch/ppc/boot/include/of1275.h linux-2.4.25/arch/ppc/boot/include/of1275.h
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) Paul Mackerras 1997.
+ * Copyright (C) Leigh Brown 2002.
+ *
+ * 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 of the License, or (at your option) any later version.
+ */
+
+typedef void *prom_handle;
+typedef void *ihandle;
+typedef void *phandle;
+typedef int (*prom_entry)(void *);
+
+#define OF_INVALID_HANDLE ((prom_handle)-1UL)
+
+extern prom_entry of_prom_entry;
+
+/* function declarations */
+
+void * claim(unsigned int virt, unsigned int size, unsigned int align);
+void enter(void);
+void exit(void);
+phandle finddevice(const char *name);
+int getprop(phandle node, const char *name, void *buf, int buflen);
+void ofinit(prom_entry entry);
+int ofstdio(ihandle *stdin, ihandle *stdout, ihandle *stderr);
+int read(ihandle instance, void *buf, int buflen);
+void release(void *virt, unsigned int size);
+int write(ihandle instance, void *buf, int buflen);
+ihandle open(const char *name);
+void close(ihandle instance);
+int setcolor(ihandle instance, int color, int red, int green, int blue);
+phandle instancetopackage(const ihandle instance);
+
+/* inlines */
+
+extern inline void pause(void)
+{
+ enter();
+}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)