logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

nvram.h (532B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _LINUX_NVRAM_H
  3. #define _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 /* _LINUX_NVRAM_H */