diff options
author | Claudio Carvalho <cclaudio@linux.vnet.ibm.com> | 2016-09-28 05:01:09 -0300 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-10-10 15:29:34 +1100 |
commit | b64d937194e8a51c39c3a32e08ebebc4ae4bf4f5 (patch) | |
tree | 2bc63ff44f8f17c6d96ffecf8b4bc052ffc22926 /libstb/status_codes.h | |
parent | bb725f224c08a4ffde428eb5576231efc528c06e (diff) | |
download | skiboot-b64d937194e8a51c39c3a32e08ebebc4ae4bf4f5.zip skiboot-b64d937194e8a51c39c3a32e08ebebc4ae4bf4f5.tar.gz skiboot-b64d937194e8a51c39c3a32e08ebebc4ae4bf4f5.tar.bz2 |
libstb: add tpm_chip interface
This adds the TPM chip interface for libstb:
- tpm_init(): call drivers' probe to find TPM devices that are
compatible with them.
- tpm_register_chip(): register a TPM chip which includes pointers to
the TPM device and TPM driver structures.
- tpm_add_status_property(): add the status device tree property for
each registered TPM device.
The TPM chip interface is documented in 'libstb/tpm_chip.h' and the tpm device
tree node is documented in 'doc/device-tree/tpm.rst'
Signed-off-by: Claudio Carvalho <cclaudio@linux.vnet.ibm.com>
[stewart@linux.vnet.ibm.com: shuffle unused error path around]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libstb/status_codes.h')
-rw-r--r-- | libstb/status_codes.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libstb/status_codes.h b/libstb/status_codes.h new file mode 100644 index 0000000..240cd95 --- /dev/null +++ b/libstb/status_codes.h @@ -0,0 +1,23 @@ +/* Copyright 2013-2016 IBM Corp. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + * implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __STB_STATUS_CODES_H +#define __STB_STATUS_CODES_H + +/* general return codes */ +#define STB_ERROR -1 + +#endif /* __STB_STATUS_CODES_H */ |