aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-powerpc/machdep.h6
-rw-r--r--include/asm-ppc64/system.h2
-rw-r--r--include/asm-ppc64/udbg.h3
3 files changed, 7 insertions, 4 deletions
diff --git a/include/asm-powerpc/machdep.h b/include/asm-powerpc/machdep.h
index 8a0969b6243c..b3a93b476d97 100644
--- a/include/asm-powerpc/machdep.h
+++ b/include/asm-powerpc/machdep.h
@@ -119,6 +119,8 @@ struct machdep_calls {
119 /* Interface for platform error logging */ 119 /* Interface for platform error logging */
120 void (*log_error)(char *buf, unsigned int err_type, int fatal); 120 void (*log_error)(char *buf, unsigned int err_type, int fatal);
121 121
122 unsigned char (*nvram_read_val)(int addr);
123 void (*nvram_write_val)(int addr, unsigned char val);
122 ssize_t (*nvram_write)(char *buf, size_t count, loff_t *index); 124 ssize_t (*nvram_write)(char *buf, size_t count, loff_t *index);
123 ssize_t (*nvram_read)(char *buf, size_t count, loff_t *index); 125 ssize_t (*nvram_read)(char *buf, size_t count, loff_t *index);
124 ssize_t (*nvram_size)(void); 126 ssize_t (*nvram_size)(void);
@@ -165,15 +167,11 @@ struct machdep_calls {
165 unsigned long heartbeat_reset; 167 unsigned long heartbeat_reset;
166 unsigned long heartbeat_count; 168 unsigned long heartbeat_count;
167 169
168 unsigned long (*find_end_of_memory)(void);
169 void (*setup_io_mappings)(void); 170 void (*setup_io_mappings)(void);
170 171
171 void (*early_serial_map)(void); 172 void (*early_serial_map)(void);
172 void (*kgdb_map_scc)(void); 173 void (*kgdb_map_scc)(void);
173 174
174 unsigned char (*nvram_read_val)(int addr);
175 void (*nvram_write_val)(int addr, unsigned char val);
176
177 /* 175 /*
178 * optional PCI "hooks" 176 * optional PCI "hooks"
179 */ 177 */
diff --git a/include/asm-ppc64/system.h b/include/asm-ppc64/system.h
index d1e00933354c..2e17ef7dbeb4 100644
--- a/include/asm-ppc64/system.h
+++ b/include/asm-ppc64/system.h
@@ -148,6 +148,8 @@ struct thread_struct;
148extern struct task_struct * _switch(struct thread_struct *prev, 148extern struct task_struct * _switch(struct thread_struct *prev,
149 struct thread_struct *next); 149 struct thread_struct *next);
150 150
151extern int powersave_nap; /* set if nap mode can be used in idle loop */
152
151/* 153/*
152 * Atomic exchange 154 * Atomic exchange
153 * 155 *
diff --git a/include/asm-ppc64/udbg.h b/include/asm-ppc64/udbg.h
index c786604aef02..8192fb8541cc 100644
--- a/include/asm-ppc64/udbg.h
+++ b/include/asm-ppc64/udbg.h
@@ -28,4 +28,7 @@ extern unsigned long udbg_ifdebug(unsigned long flags);
28extern void __init ppcdbg_initialize(void); 28extern void __init ppcdbg_initialize(void);
29 29
30extern void udbg_init_uart(void __iomem *comport, unsigned int speed); 30extern void udbg_init_uart(void __iomem *comport, unsigned int speed);
31
32struct device_node;
33extern void udbg_init_scc(struct device_node *np);
31#endif 34#endif