patch-2.4.5 linux/include/asm-ppc/prom.h
Next file: linux/include/asm-ppc/ptrace.h
Previous file: linux/include/asm-ppc/processor.h
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Mon May 21 15:02:06 2001
- Orig file:
v2.4.4/linux/include/asm-ppc/prom.h
- Orig date:
Mon Jan 22 15:41:15 2001
diff -u --recursive --new-file v2.4.4/linux/include/asm-ppc/prom.h linux/include/asm-ppc/prom.h
@@ -1,4 +1,7 @@
/*
+ * BK Id: SCCS/s.prom.h 1.11 05/18/01 08:18:10 patch
+ */
+/*
* Definitions for talking to the Open Firmware PROM on
* Power Macintosh computers.
*
@@ -15,7 +18,7 @@
extern char *prom_display_paths[];
extern unsigned int prom_num_displays;
-#ifndef CONFIG_MACH_SPECIFIC
+#ifdef CONFIG_ALL_PPC
extern int have_of;
#endif
@@ -35,13 +38,6 @@
unsigned int size;
};
-struct translation_property {
- unsigned int virt;
- unsigned int size;
- unsigned int phys;
- unsigned int flags;
-};
-
struct property {
char *name;
int length;
@@ -64,6 +60,10 @@
struct device_node *sibling;
struct device_node *next; /* next device of same type */
struct device_node *allnext; /* next in list of all nodes */
+#if 0 /* Don't change this structure for now or you'll break BootX ! */
+ int n_addr_cells;
+ int n_size_cells;
+#endif
};
struct prom_args;
@@ -88,6 +88,8 @@
int *lenp);
extern void prom_add_property(struct device_node* np, struct property* prop);
extern void prom_get_irq_senses(unsigned char *, int, int);
+extern int prom_n_addr_cells(struct device_node* np);
+extern int prom_n_size_cells(struct device_node* np);
extern void print_properties(struct device_node *node);
extern int call_rtas(const char *service, int nargs, int nret,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)