nvram.h 484 B

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