summaryrefslogtreecommitdiff
path: root/ReferenceCode/ME/Library/Ptt/Include/PttHciRegs.h
blob: cba0c8a313b4c37612580ab411ca2d6fac7e32e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/** @file
  Register definitions for PTT HCI (Platform Trust Technology - Host Controller Interface).

  Conventions:

  - Prefixes:
    Definitions beginning with "R_" are registers
    Definitions beginning with "B_" are bits within registers
    Definitions beginning with "V_" are meaningful values of bits within the registers
    Definitions beginning with "S_" are register sizes
    Definitions beginning with "N_" are the bit position

@copyright
  Copyright (c) 2012 Intel Corporation. All rights reserved
  This software and associated documentation (if any) is furnished
  under a license and may only be used or copied in accordance
  with the terms of the license. Except as permitted by such
  license, no part of this software or documentation may be
  reproduced, stored in a retrieval system, or transmitted in any
  form or by any means without the express written consent of
  Intel Corporation.

  This file contains an 'Intel Peripheral Driver' and uniquely
  identified as "Intel Reference Module" and is
  licensed for Intel CPUs and chipsets under the terms of your
  license agreement with Intel or your vendor.  This file may
  be modified by the user, subject to additional terms of the
  license agreement
**/
#ifndef _PTT_HCI_REGS_H_
#define _PTT_HCI_REGS_H_

#ifdef PTT_FLAG

///
/// FTPM HCI register base address
///
#define R_PTT_HCI_BASE_ADDRESS             0xFED70000

//
// FTPM HCI Control Area
//
#define R_PTT_HCI_CA_RSVD                  0x00
#define R_PTT_HCI_CA_ERROR                 0x04
#define R_PTT_HCI_CA_CANCEL                0x08
#define R_PTT_HCI_CA_START                 0x0C
#define R_PTT_HCI_CA_INT_RSVD              0x10
#define R_PTT_HCI_CA_CMD_SZ                0x18
#define R_PTT_HCI_CA_CMD                   0x1C
#define R_PTT_HCI_CA_RSP_SZ                0x24
#define R_PTT_HCI_CA_RSP                   0x28

//
// FTPM HCI Private Area
//
#define R_PTT_HCI_CMD                      0x40
#define R_PTT_HCI_STS                      0x44

///
/// FTPM HCI Command and Response Buffer
///
#define R_PTT_HCI_CRB                      0x80

//
// R_PTT_HCI_STS Flags
//
#define B_PTT_HCI_STS_ENABLED              0x00000001 ///< BIT0
#define B_PTT_HCI_STS_READY                0x00000002 ///< BIT1
#define B_PTT_HCI_STS_ACM_AS_CRTM          0x00000004 ///< BIT2
#define B_PTT_HCI_STS_STARTUP_EXEC         0x00000008 ///< BIT3

//
// Value written to R_PTT_HCI_CMD and CA_START
// to indicate that a command is available for processing
//
#define V_PTT_HCI_COMMAND_AVAILABLE_START  0x00000001
#define V_PTT_HCI_COMMAND_AVAILABLE_CMD    0x00000000
#define V_PTT_HCI_BUFFER_ADDRESS_RDY       0x00000003

///
/// Ignore bit setting mask for WaitRegisterBits
///
#define V_PTT_HCI_IGNORE_BITS              0x00000000

///
/// All bits clear mask for WaitRegisterBits
///
#define V_PTT_HCI_ALL_BITS_CLEAR           0xFFFFFFFF
#define V_PTT_HCI_START_CLEAR              0x00000001

///
/// Max FTPM command/reponse buffer length
///
#define S_PTT_HCI_CRB_LENGTH               3968 ///< 0xFED70080:0xFED70FFF = 3968 Bytes
// AMI-Core Override for PTT +
#define PM_BASE_ADDRESS	                   0x1800
// AMI-Core Override for PTT -

#endif // PTT_FLAG
#endif