xref: /utopia/UTPA2-700.0.x/projects/tools/lint/mips-linux-gnu_include/linux/nvram.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1*53ee8cc1Swenshuai.xi #ifndef _LINUX_NVRAM_H
2*53ee8cc1Swenshuai.xi #define _LINUX_NVRAM_H
3*53ee8cc1Swenshuai.xi 
4*53ee8cc1Swenshuai.xi #include <linux/ioctl.h>
5*53ee8cc1Swenshuai.xi 
6*53ee8cc1Swenshuai.xi /* /dev/nvram ioctls */
7*53ee8cc1Swenshuai.xi #define NVRAM_INIT	_IO('p', 0x40) /* initialize NVRAM and set checksum */
8*53ee8cc1Swenshuai.xi #define NVRAM_SETCKS	_IO('p', 0x41) /* recalculate checksum */
9*53ee8cc1Swenshuai.xi 
10*53ee8cc1Swenshuai.xi /* for all current systems, this is where NVRAM starts */
11*53ee8cc1Swenshuai.xi #define NVRAM_FIRST_BYTE    14
12*53ee8cc1Swenshuai.xi /* all these functions expect an NVRAM offset, not an absolute */
13*53ee8cc1Swenshuai.xi #define NVRAM_OFFSET(x)   ((x)-NVRAM_FIRST_BYTE)
14*53ee8cc1Swenshuai.xi 
15*53ee8cc1Swenshuai.xi 
16*53ee8cc1Swenshuai.xi #endif  /* _LINUX_NVRAM_H */
17