From fc00c656c96528112d05cf0edf8631bd5eaea446 Mon Sep 17 00:00:00 2001 From: Kacper Date: Sun, 7 Dec 2025 20:10:31 +0100 Subject: Add build system scaffolding and libc headers --- include/arch/x86_64/linux/nvram.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/arch/x86_64/linux/nvram.h (limited to 'include/arch/x86_64/linux/nvram.h') diff --git a/include/arch/x86_64/linux/nvram.h b/include/arch/x86_64/linux/nvram.h new file mode 100644 index 00000000..265c2426 --- /dev/null +++ b/include/arch/x86_64/linux/nvram.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _LINUX_NVRAM_H +#define _LINUX_NVRAM_H + +#include + +/* /dev/nvram ioctls */ +#define NVRAM_INIT _IO('p', 0x40) /* initialize NVRAM and set checksum */ +#define NVRAM_SETCKS _IO('p', 0x41) /* recalculate checksum */ + +/* for all current systems, this is where NVRAM starts */ +#define NVRAM_FIRST_BYTE 14 +/* all these functions expect an NVRAM offset, not an absolute */ +#define NVRAM_OFFSET(x) ((x) - NVRAM_FIRST_BYTE) + +#endif /* _LINUX_NVRAM_H */ -- cgit v1.2.3