Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / uapi / linux / nvram.h
blob4bee8e72dab4acb6fee20dea46c0502be319b5ad
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_LINUX_NVRAM_H
3 #define _UAPI_LINUX_NVRAM_H
5 #include <linux/ioctl.h>
7 /* /dev/nvram ioctls */
8 #define NVRAM_INIT _IO('p', 0x40) /* initialize NVRAM and set checksum */
9 #define NVRAM_SETCKS _IO('p', 0x41) /* recalculate checksum */
11 /* for all current systems, this is where NVRAM starts */
12 #define NVRAM_FIRST_BYTE 14
13 /* all these functions expect an NVRAM offset, not an absolute */
14 #define NVRAM_OFFSET(x) ((x)-NVRAM_FIRST_BYTE)
17 #endif /* _UAPI_LINUX_NVRAM_H */