nvram.h 547 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _UAPI_LINUX_NVRAM_H
  3. #define _UAPI_LINUX_NVRAM_H
  4. #include <linux/ioctl.h>
  5. /* /dev/nvram ioctls */
  6. #define NVRAM_INIT _IO('p', 0x40) /* initialize NVRAM and set checksum */
  7. #define NVRAM_SETCKS _IO('p', 0x41) /* recalculate checksum */
  8. /* for all current systems, this is where NVRAM starts */
  9. #define NVRAM_FIRST_BYTE 14
  10. /* all these functions expect an NVRAM offset, not an absolute */
  11. #define NVRAM_OFFSET(x) ((x)-NVRAM_FIRST_BYTE)
  12. #endif /* _UAPI_LINUX_NVRAM_H */