blob: 28bfb9ab94ca65c1cc34135693e89a3485713108 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _LINUX_NVRAM_H
3#define _LINUX_NVRAM_H
4
David Howells607ca462012-10-13 10:46:48 +01005#include <uapi/linux/nvram.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Linus Torvalds1da177e2005-04-16 15:20:36 -07007/* __foo is foo without grabbing the rtc_lock - get it yourself */
8extern unsigned char __nvram_read_byte(int i);
9extern unsigned char nvram_read_byte(int i);
10extern void __nvram_write_byte(unsigned char c, int i);
11extern void nvram_write_byte(unsigned char c, int i);
12extern int __nvram_check_checksum(void);
13extern int nvram_check_checksum(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#endif /* _LINUX_NVRAM_H */