[SLOF] [PATCH v2 13/20] Add sml related nodes to vdevice/vtpm node

Stefan Berger stefanb at us.ibm.com
Wed Nov 18 04:02:29 AEDT 2015


From: Stefan Berger <stefanb at linux.vnet.ibm.com>

Add the sml related firmware API calls to the vdevice/vtpm
node and forward these calls to the ibm,vtpm node.

Signed-off-by: Stefan Berger <stefanb at linux.vnet.ibm.com>
---
 board-qemu/slof/vio-vtpm-cdriver.fs | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/board-qemu/slof/vio-vtpm-cdriver.fs b/board-qemu/slof/vio-vtpm-cdriver.fs
index a9e955e..28a5eab 100644
--- a/board-qemu/slof/vio-vtpm-cdriver.fs
+++ b/board-qemu/slof/vio-vtpm-cdriver.fs
@@ -74,6 +74,30 @@ false VALUE vtpm-debug?
 ;
 
 \ firmware API call
+: sml-get-allocated-size ( -- buffer-size)
+    " sml-get-allocated-size" vtpm-call-forward IF
+        \ vtpm-call-forward failed
+        0
+    THEN
+;
+
+\ firmware API call
+: sml-get-handover-size ( -- size)
+    " sml-get-handover-size" vtpm-call-forward IF
+        \ vtpm-call-forward failed
+        0
+    THEN
+;
+
+\ firmware API call
+: sml-handover ( dest size -- )
+    " sml-handover" vtpm-call-forward IF
+        \ vtpm-call-forward failed; clean up stack
+        2drop
+    THEN
+;
+
+\ firmware API call
 : hash-all ( data-ptr data-len hash-ptr -- )
     " hash-all" vtpm-call-forward IF
         \ vtpm-call-forward failed; clean up stack
-- 
2.4.3



More information about the SLOF mailing list