summaryrefslogtreecommitdiffstats
path: root/include/linux/nvram.h
blob: a2e270d64153d65d60c4a6ffbf516307f6b0cf65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _LINUX_NVRAM_H
#define _LINUX_NVRAM_H

#include <linux/ioctl.h>

/* /dev/nvram ioctls */
#define NVRAM_INIT		_IO('p', 0x40) /* initialize NVRAM and set checksum */
#define	NVRAM_SETCKS	_IO('p', 0x41) /* recalculate checksum */

#ifdef __KERNEL__
extern unsigned char nvram_read_byte( int i );
extern void nvram_write_byte( unsigned char c, int i );
extern int nvram_check_checksum( void );
extern void nvram_set_checksum( void );
#endif

#endif  /* _LINUX_NVRAM_H */