aboutsummaryrefslogtreecommitdiffstats
path: root/sys/freebsd/efidev.txt
blob: 0649524b903edd031f4c5022fe1d4a6deb71d176 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2021 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
# Autogenerated by sys2syz

include <sys/types.h>
include <fcntl.h>
include <sys/param.h>
include <sys/efi.h>
include <efiio.h>

resource fd_efidev[fd]

openat$efidev(fd const[AT_FDCWD], file ptr[in, string["/dev/efi"]], flags flags[open_flags], mode const[0]) fd_efidev

ioctl$EFIIOC_GET_TIME(fd fd_efidev, cmd const[EFIIOC_GET_TIME], arg ptr[out, efi_tm])
ioctl$EFIIOC_SET_TIME(fd fd_efidev, cmd const[EFIIOC_SET_TIME], arg ptr[in, efi_tm])
ioctl$EFIIOC_VAR_GET(fd fd_efidev, cmd const[EFIIOC_VAR_GET], arg ptr[inout, efi_var_ioc])
ioctl$EFIIOC_VAR_NEXT(fd fd_efidev, cmd const[EFIIOC_VAR_NEXT], arg ptr[inout, efi_var_ioc])
ioctl$EFIIOC_VAR_SET(fd fd_efidev, cmd const[EFIIOC_VAR_SET], arg ptr[inout, efi_var_ioc])

efi_tm {
	tm_year	int16
	tm_mon	int8[1:12]
	tm_mday	int8[1:31]
	tm_hour	int8[0:23]
	tm_min	int8[0:59]
	tm_sec	int8[0:59]
	__pad1	int8
	tm_nsec	int32
	tm_tz	int16
	tm_dst	int8
	__pad2	int8
}

efi_var_ioc {
	name		ptr[in, int16]
	namesize	len[name, int32]
	vendor		uuid
	attrib		int32
	data		ptr[in, array[int8]]
	datasize	len[data, int32]
}

uuid {
	time_low			int32
	time_mid			int16
	time_hi_and_version		int16
	clock_seq_hi_and_reserved	int8
	clock_seq_low			int8
	node				array[int8, 6]
}