summaryrefslogtreecommitdiffstats
path: root/include/linux/nvram.h
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2019-01-15 15:18:56 +1100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 10:21:45 +0100
commit95ac14b8a32817dcd1f13ae4787891484966d2d5 (patch)
treef84907733d23686a5e2a7d8d81a46d686fad3c7c /include/linux/nvram.h
parentebcebc7f456c677a2a8fca31c70913fd9a983ad9 (diff)
downloadlinux-95ac14b8a32817dcd1f13ae4787891484966d2d5.tar.gz
linux-95ac14b8a32817dcd1f13ae4787891484966d2d5.tar.bz2
linux-95ac14b8a32817dcd1f13ae4787891484966d2d5.zip
powerpc: Implement nvram ioctls
Add the powerpc-specific ioctls to the nvram module. This allows the nvram module to replace the generic_nvram module. Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/nvram.h')
-rw-r--r--include/linux/nvram.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nvram.h b/include/linux/nvram.h
index 9df85703735c..9e3a957c8f1f 100644
--- a/include/linux/nvram.h
+++ b/include/linux/nvram.h
@@ -31,8 +31,10 @@ struct nvram_ops {
void (*write_byte)(unsigned char, int);
ssize_t (*read)(char *, size_t, loff_t *);
ssize_t (*write)(char *, size_t, loff_t *);
+#if defined(CONFIG_X86) || defined(CONFIG_M68K)
long (*initialize)(void);
long (*set_checksum)(void);
+#endif
};
extern const struct nvram_ops arch_nvram_ops;