github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/freebsd/efidev.txt (about) 1 # Copyright 2021 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 # Autogenerated by sys2syz 4 5 include <sys/types.h> 6 include <fcntl.h> 7 include <sys/param.h> 8 include <sys/efi.h> 9 include <efiio.h> 10 11 resource fd_efidev[fd] 12 13 openat$efidev(fd const[AT_FDCWD], file ptr[in, string["/dev/efi"]], flags flags[open_flags], mode const[0]) fd_efidev 14 15 ioctl$EFIIOC_GET_TIME(fd fd_efidev, cmd const[EFIIOC_GET_TIME], arg ptr[out, efi_tm]) 16 ioctl$EFIIOC_SET_TIME(fd fd_efidev, cmd const[EFIIOC_SET_TIME], arg ptr[in, efi_tm]) 17 ioctl$EFIIOC_VAR_GET(fd fd_efidev, cmd const[EFIIOC_VAR_GET], arg ptr[inout, efi_var_ioc]) 18 ioctl$EFIIOC_VAR_NEXT(fd fd_efidev, cmd const[EFIIOC_VAR_NEXT], arg ptr[inout, efi_var_ioc]) 19 ioctl$EFIIOC_VAR_SET(fd fd_efidev, cmd const[EFIIOC_VAR_SET], arg ptr[inout, efi_var_ioc]) 20 21 efi_tm { 22 tm_year int16 23 tm_mon int8[1:12] 24 tm_mday int8[1:31] 25 tm_hour int8[0:23] 26 tm_min int8[0:59] 27 tm_sec int8[0:59] 28 __pad1 int8 29 tm_nsec int32 30 tm_tz int16 31 tm_dst int8 32 __pad2 int8 33 } 34 35 efi_var_ioc { 36 name ptr[in, int16] 37 namesize len[name, int32] 38 vendor uuid 39 attrib int32 40 data ptr[in, array[int8]] 41 datasize len[data, int32] 42 } 43 44 uuid { 45 time_low int32 46 time_mid int16 47 time_hi_and_version int16 48 clock_seq_hi_and_reserved int8 49 clock_seq_low int8 50 node array[int8, 6] 51 }