Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _UAPI_LINUX_NVRAM_H
0003 #define _UAPI_LINUX_NVRAM_H
0004 
0005 #include <linux/ioctl.h>
0006 
0007 /* /dev/nvram ioctls */
0008 #define NVRAM_INIT  _IO('p', 0x40) /* initialize NVRAM and set checksum */
0009 #define NVRAM_SETCKS    _IO('p', 0x41) /* recalculate checksum */
0010 
0011 /* for all current systems, this is where NVRAM starts */
0012 #define NVRAM_FIRST_BYTE    14
0013 /* all these functions expect an NVRAM offset, not an absolute */
0014 #define NVRAM_OFFSET(x)   ((x)-NVRAM_FIRST_BYTE)
0015 
0016 
0017 #endif /* _UAPI_LINUX_NVRAM_H */