summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/nvram.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-08-02 03:18:09 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2010-11-30 05:37:45 +0100
commitedc79a2f3ee1c74d915f6a0ce3cb22bf468f5ad5 (patch)
treec8cfb41d324802abb501cc6503a4dcb4d8bb657b /arch/powerpc/include/asm/nvram.h
parentpowerpc/nvram: Change nvram_setup_partition() to use new helper (diff)
downloadlinux-edc79a2f3ee1c74d915f6a0ce3cb22bf468f5ad5.tar.xz
linux-edc79a2f3ee1c74d915f6a0ce3cb22bf468f5ad5.zip
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/asm/nvram.h')
-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 @@
#include <linux/errno.h>
#include <linux/list.h>
+#ifdef CONFIG_PPC_PSERIES
extern int nvram_write_error_log(char * buff, int length,
unsigned int err_type, unsigned int err_seq);
extern int nvram_read_error_log(char * buff, int length,
unsigned int * err_type, unsigned int *err_seq);
extern int nvram_clear_error_log(void);
-
extern int pSeries_nvram_init(void);
+#endif /* CONFIG_PPC_PSERIES */
#ifdef CONFIG_MMIO_NVRAM
extern int mmio_nvram_init(void);
@@ -47,6 +48,13 @@ static inline int mmio_nvram_init(void)
}
#endif
+extern int __init nvram_scan_partitions(void);
+extern loff_t nvram_create_partition(const char *name, int sig,
+ int req_size, int min_size);
+extern int nvram_remove_partition(const char *name, int sig);
+extern int nvram_get_partition_size(loff_t data_index);
+extern loff_t nvram_find_partition(const char *name, int sig, int *out_size);
+
#endif /* __KERNEL__ */
/* PowerMac specific nvram stuffs */