aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-08-01 21:18:09 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-11-29 23:37:45 -0500
commitedc79a2f3ee1c74d915f6a0ce3cb22bf468f5ad5 (patch)
treec8cfb41d324802abb501cc6503a4dcb4d8bb657b /arch/powerpc/include
parentd9626947f20b3dc0992e4ac28b477f7601f8f16e (diff)
powerpc/nvram: Move the log partition stuff to pseries
The nvram log partition stuff currently in nvram_64.c is really pseries specific. It isn't actually used on anything else (despite the fact that we ran the code to setup the partition on anything except powermac) and the log format is specific to pseries RTAS implementation. So move it where it belongs Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include')
-rw-r--r--arch/powerpc/include/asm/nvram.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/nvram.h b/arch/powerpc/include/asm/nvram.h
index 459dc09ecbd8..92efe67d1c57 100644
--- a/arch/powerpc/include/asm/nvram.h
+++ b/arch/powerpc/include/asm/nvram.h
@@ -30,13 +30,14 @@
30#include <linux/errno.h> 30#include <linux/errno.h>
31#include <linux/list.h> 31#include <linux/list.h>
32 32
33#ifdef CONFIG_PPC_PSERIES
33extern int nvram_write_error_log(char * buff, int length, 34extern int nvram_write_error_log(char * buff, int length,
34 unsigned int err_type, unsigned int err_seq); 35 unsigned int err_type, unsigned int err_seq);
35extern int nvram_read_error_log(char * buff, int length, 36extern int nvram_read_error_log(char * buff, int length,
36 unsigned int * err_type, unsigned int *err_seq); 37 unsigned int * err_type, unsigned int *err_seq);
37extern int nvram_clear_error_log(void); 38extern int nvram_clear_error_log(void);
38
39extern int pSeries_nvram_init(void); 39extern int pSeries_nvram_init(void);
40#endif /* CONFIG_PPC_PSERIES */
40 41
41#ifdef CONFIG_MMIO_NVRAM 42#ifdef CONFIG_MMIO_NVRAM
42extern int mmio_nvram_init(void); 43extern int mmio_nvram_init(void);
@@ -47,6 +48,13 @@ static inline int mmio_nvram_init(void)
47} 48}
48#endif 49#endif
49 50
51extern int __init nvram_scan_partitions(void);
52extern loff_t nvram_create_partition(const char *name, int sig,
53 int req_size, int min_size);
54extern int nvram_remove_partition(const char *name, int sig);
55extern int nvram_get_partition_size(loff_t data_index);
56extern loff_t nvram_find_partition(const char *name, int sig, int *out_size);
57
50#endif /* __KERNEL__ */ 58#endif /* __KERNEL__ */
51 59
52/* PowerMac specific nvram stuffs */ 60/* PowerMac specific nvram stuffs */