Greg Kroah-Hartman | 6f52b16 | 2017-11-01 15:08:43 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 2 | #ifndef _UAPI_LINUX_NVRAM_H |
| 3 | #define _UAPI_LINUX_NVRAM_H |
| 4 | |
| 5 | #include <linux/ioctl.h> |
| 6 | |
| 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 */ |
| 10 | |
| 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) |
| 15 | |
| 16 | |
| 17 | #endif /* _UAPI_LINUX_NVRAM_H */ |