diff options
Diffstat (limited to 'tpm2-sys/src/lib.rs')
-rw-r--r-- | tpm2-sys/src/lib.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tpm2-sys/src/lib.rs b/tpm2-sys/src/lib.rs new file mode 100644 index 0000000..456cc87 --- /dev/null +++ b/tpm2-sys/src/lib.rs @@ -0,0 +1,18 @@ +// Copyright 2019 The Chromium OS Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +use std::os::raw::{c_int, c_uchar, c_uint}; + +extern "C" { + pub fn TPM_Manufacture(firstTime: c_int) -> c_int; + pub fn _plat__SetNvAvail(); + pub fn _plat__Signal_PowerOn() -> c_int; + pub fn _TPM_Init(); + pub fn ExecuteCommand( + requestSize: c_uint, + request: *mut c_uchar, + responseSize: *mut c_uint, + response: *mut *mut c_uchar, + ); +} |