-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy pathvpd.idol
64 lines (63 loc) · 1.56 KB
/
vpd.idol
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
52
53
54
55
56
57
58
59
60
61
62
63
64
// VPD server IPC interface
Interface(
name: "Vpd",
ops: {
"read_tmp117_eeprom": (
doc: "Read tmp117 EEPROM",
args: {
"index": "u8",
},
reply: Result(
ok: "[u8; 6]",
err: CLike("VpdError"),
),
),
"read": (
args: {
"index": "u8",
"offset": "u16",
},
reply: Result(
ok: "[u8; 16]",
err: CLike("VpdError"),
),
),
"write": (
args: {
"index": "u8",
"offset": "u16",
"contents": "u8",
},
reply: Result(
ok: "()",
err: CLike("VpdError"),
),
),
"is_locked": (
doc: "Returns true if and only if VPD is locked",
args: {
"index": "u8",
},
reply: Result(
ok: "bool",
err: CLike("VpdError"),
),
),
"permanently_lock": (
doc: "Permanently locks VPD -- CANNOT BE UNDONE",
args: {
"index": "u8",
},
reply: Result(
ok: "()",
err: CLike("VpdError"),
),
),
"num_vpd_devices": (
doc: "Returns the total number of VPD devices in the system",
args: {},
reply: Simple("usize"),
idempotent: true,
),
},
)