patch-2.1.79 linux/include/asm-ppc/prom.h
Next file: linux/include/asm-ppc/scatterlist.h
Previous file: linux/include/asm-ppc/processor.h
Back to the patch index
Back to the overall index
- Lines: 64
- Date:
Mon Jan 12 15:18:13 1998
- Orig file:
v2.1.78/linux/include/asm-ppc/prom.h
- Orig date:
Mon Aug 18 18:19:47 1997
diff -u --recursive --new-file v2.1.78/linux/include/asm-ppc/prom.h linux/include/asm-ppc/prom.h
@@ -5,13 +5,22 @@
* Copyright (C) 1996 Paul Mackerras.
*/
+#include <linux/config.h>
+
typedef void *phandle;
typedef void *ihandle;
-extern ihandle prom_stdout;
-extern ihandle prom_chosen;
-extern phandle cpu_node;
-extern char prom_display_path[];
+#ifndef FB_MAX
+#define FB_MAX 8 /* I don't want to include the whole console stuff */
+#endif
+extern char *prom_display_paths[FB_MAX];
+extern unsigned int prom_num_displays;
+
+struct address_range {
+ unsigned int space;
+ unsigned int address;
+ unsigned int size;
+};
struct reg_property {
unsigned int address;
@@ -37,7 +46,7 @@
char *type;
phandle node;
int n_addrs;
- struct reg_property *addrs;
+ struct address_range *addrs;
int n_intrs;
int *intrs;
char *full_name;
@@ -49,17 +58,21 @@
struct device_node *allnext; /* next in list of all nodes */
};
+struct prom_args;
+typedef void (*prom_entry)(struct prom_args *);
+
/* Prototypes */
void abort(void);
-void prom_exit(void);
-void *call_prom(const char *service, int nargs, int nret, ...);
-void prom_print(const char *msg);
-void prom_init(char *params, int unused, void (*)(void *));
-void set_prom_callback(void);
-unsigned long copy_device_tree(unsigned long, unsigned long);
+void prom_init(int, int, prom_entry);
+void finish_device_tree(void);
struct device_node *find_devices(const char *name);
struct device_node *find_type_devices(const char *type);
struct device_node *find_path_device(const char *path);
+struct device_node *find_compatible_devices(const char *type,
+ const char *compat);
+struct device_node *find_phandle(phandle);
unsigned char *get_property(struct device_node *node, const char *name,
int *lenp);
void print_properties(struct device_node *node);
+int call_rtas(const char *service, int nargs, int nret,
+ unsigned long *outputs, ...);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov