~ubuntu-branches/ubuntu/utopic/xen/utopic

« back to all changes in this revision

Viewing changes to tools/vtpm_manager/tcs/tpmddl.h

  • Committer: Bazaar Package Importer
  • Author(s): Bastian Blank
  • Date: 2010-05-06 15:47:38 UTC
  • mto: (1.3.1) (15.1.1 sid) (4.1.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20100506154738-agoz0rlafrh1fnq7
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ===================================================================
 
2
// 
 
3
// Copyright (c) 2005, Intel Corp.
 
4
// All rights reserved.
 
5
//
 
6
// Redistribution and use in source and binary forms, with or without 
 
7
// modification, are permitted provided that the following conditions 
 
8
// are met:
 
9
//
 
10
//   * Redistributions of source code must retain the above copyright 
 
11
//     notice, this list of conditions and the following disclaimer.
 
12
//   * Redistributions in binary form must reproduce the above 
 
13
//     copyright notice, this list of conditions and the following 
 
14
//     disclaimer in the documentation and/or other materials provided 
 
15
//     with the distribution.
 
16
//   * Neither the name of Intel Corporation nor the names of its 
 
17
//     contributors may be used to endorse or promote products derived
 
18
//     from this software without specific prior written permission.
 
19
//
 
20
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
 
21
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
 
22
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 
 
23
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 
 
24
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
 
25
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 
26
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 
 
27
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
28
// HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
 
29
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
 
30
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 
31
// OF THE POSSIBILITY OF SUCH DAMAGE.
 
32
// ===================================================================
 
33
// 
 
34
// tpmddl.c
 
35
// 
 
36
//  This file defines the TDDLI API
 
37
//
 
38
// ==================================================================
 
39
 
 
40
#ifndef __TPMDDL_H__
 
41
#define __TPMDDL_H__
 
42
 
 
43
#define TDDL_CAP_PROP_MANUFACTURER 0x0001
 
44
 
 
45
#define TDDL_E_FAIL 1
 
46
#define TDDL_E_SUCCESS 0
 
47
#define TDDL_SUCCESS 0
 
48
 
 
49
typedef unsigned int TDDL_UINT32;
 
50
typedef TDDL_UINT32 TDDL_RESULT;
 
51
typedef unsigned char TDDL_BYTE;
 
52
 
 
53
TDDL_RESULT TDDL_Open();
 
54
void TDDL_Close();
 
55
TDDL_RESULT TDDL_TransmitData( TDDL_BYTE* in,
 
56
                               TDDL_UINT32 insize,
 
57
                               TDDL_BYTE* out,
 
58
                               TDDL_UINT32* outsize);
 
59
TDDL_RESULT TDDL_GetStatus();
 
60
TDDL_RESULT TDDL_GetCapability( TDDL_UINT32 cap,
 
61
                                TDDL_UINT32 sub,
 
62
                                TDDL_BYTE* buffer,
 
63
                                TDDL_UINT32* size);
 
64
TDDL_RESULT TDDL_SetCapability( TDDL_UINT32 cap,
 
65
                                TDDL_UINT32 sub,
 
66
                                TDDL_BYTE* buffer,
 
67
                                TDDL_UINT32* size);
 
68
 
 
69
#endif // __TPMDDL_H__