blob: 95f34e3c63d290cd51f452bc3ec151374f8b6ca0 [file] [log] [blame]
<node name="/" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
<interface name="org.chromium.tpmd.nvram">
<method name="Allocate">
<tp:docstring>
Allocates an nvram at the specified index of the specified size. If
there is a n existing nvram in that slot, fails.
</tp:docstring>
<arg name="index" type="u" direction="in">
<tp:docstring>
Index at which to allocate the nvram object on the TPM.
</tp:docstring>
</arg>
<arg name="size" type="u" direction="in">
<tp:docstring>
Length of the allocated nvram, in bytes.
</tp:docstring>
</arg>
<arg name="options" type="a{sv}" direction="in">
<tp:docstring>
Extra options for this NVRAM area. Supported keys: "LockOnce", with a
boolean value.
</tp:docstring>
</arg>
</method>
<method name="Free">
<tp:docstring>
Frees this nvram region, destroying all data inside it.
</tp:docstring>
<arg name="index" type="u" direction="in">
<tp:docstring>
Index of this nvram region.
</tp:docstring>
</arg>
</method>
<method name="Write">
<tp:docstring>
Writes the supplied bytes to this nvram region. Fails if the region is
not writeable or too few or too many bytes are supplied.
</tp:docstring>
<arg name="index" type="u" direction="in">
<tp:docstring>
Index of this nvram region.
</tp:docstring>
</arg>
<arg name="bytes" type="ay" direction="in">
<tp:docstring>
Bytes to write.
</tp:docstring>
</arg>
</method>
<method name="Read">
<tp:docstring>
Reads bytes from this nvram region. Fails if the region is not allocated
or written.
</tp:docstring>
<arg name="index" type="u" direction="in">
<tp:docstring>
Index of this nvram region.
</tp:docstring>
</arg>
<arg name="bytes" type="ay" direction="out">
<tp:docstring>
The bytes read from this nvram region.
</tp:docstring>
</arg>
</method>
<method name="IsDefined">
<tp:docstring>
Has this nvram region been written?
</tp:docstring>
<arg name="index" type="u" direction="in">
<tp:docstring>
Index of this nvram region.
</tp:docstring>
</arg>
<arg name="defined" type="b" direction="out">
<tp:docstring>
True if this region is defined.
</tp:docstring>
</arg>
</method>
<method name="IsLocked">
<tp:docstring>
Has this nvram region been locked? (i.e., can it no longer be written?)
</tp:docstring>
<arg name="index" type="u" direction="in">
<tp:docstring>
Index of this nvram region.
</tp:docstring>
</arg>
<arg name="locked" type="b" direction="out">
<tp:docstring>
True if this region is locked.
</tp:docstring>
</arg>
</method>
<method name="Size">
<tp:docstring>
The size of this nvram region, in bytes.
</tp:docstring>
<arg name="index" type="u" direction="in">
<tp:docstring>
Index of this nvram region.
</tp:docstring>
</arg>
<arg name="size" type="u" direction="out">
<tp:docstring>
Size of this nvram region.
</tp:docstring>
</arg>
</method>
</interface>
</node>