14e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park/** @addtogroup MC_RTM
24e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * @{
34e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * MobiCore Version Information
44e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park *
54e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * <!-- Copyright Giesecke & Devrient GmbH 2009-2012 -->
64e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park *
74e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * Redistribution and use in source and binary forms, with or without
84e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * modification, are permitted provided that the following conditions
94e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * are met:
104e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * 1. Redistributions of source code must retain the above copyright
114e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park *    notice, this list of conditions and the following disclaimer.
124e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * 2. Redistributions in binary form must reproduce the above copyright
134e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park *    notice, this list of conditions and the following disclaimer in the
144e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park *    documentation and/or other materials provided with the distribution.
154e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * 3. The name of the author may not be used to endorse or promote
164e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park *    products derived from this software without specific prior
174e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park *    written permission.
184e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park *
194e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
204e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
214e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
224e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
234e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
244e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
254e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
264e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
274e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
284e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
294e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
304e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park */
314e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park
324e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park#ifndef MCVERSIONINFO_H_
334e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park#define MCVERSIONINFO_H_
344e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park
354e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park/** Length of MobiCore product ID string. */
364e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park#define MC_PRODUCT_ID_LEN 64
374e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park
384e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park/** Global MobiCore Version Information.
394e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park */
404e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Parktypedef struct {
414e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    char productId[MC_PRODUCT_ID_LEN]; /** < Product ID of Mobicore; zero-terminated */
424e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    uint32_t versionMci;               /** < Version of Mobicore Control Interface */
434e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    uint32_t versionSo;                /** < Version of Secure Objects */
444e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    uint32_t versionMclf;              /** < Version of MobiCore Load Format */
454e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    uint32_t versionContainer;         /** < Version of MobiCore Container Format */
464e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    uint32_t versionMcConfig;          /** < Version of MobiCore Configuration Block Format */
474e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    uint32_t versionTlApi;             /** < Version of MobiCore Trustlet API Implementation */
484e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    uint32_t versionDrApi;             /** < Version of MobiCore Driver API Implementation */
494e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park    uint32_t versionCmp;               /** < Version of Content Management Protocol */
504e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park} mcVersionInfo_t;
514e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park
524e9e8c9c0169b40318386436d762c3d73cf4c328DongJin Park#endif /** MCVERSIONINFO_H_ */
53