diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-12-01 17:57:09 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-12-01 17:57:09 +0000 |
commit | a62a0f262e0179df8c632f529c95abf54ef78332 (patch) | |
tree | 80e6a7a7d407d08e218332bb3fcccdaf9f28fcc1 /include/linux/nvram.h | |
parent | fd095d09f2d475dc2e8599b1b8bae1cd65e91685 (diff) |
Part #2 merging back my changes ...
Diffstat (limited to 'include/linux/nvram.h')
-rw-r--r-- | include/linux/nvram.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/nvram.h b/include/linux/nvram.h new file mode 100644 index 000000000..9e05db191 --- /dev/null +++ b/include/linux/nvram.h @@ -0,0 +1,18 @@ +#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 ); +extern int nvram_init( void ); +#endif + +#endif /* _LINUX_NVRAM_H */ |