hc
2024-03-25 edb30157bad0c0001c32b854271ace01d3b9a16a
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
/** @file
  CNVI policy
 
  Copyright (c) 2019 Intel Corporation. All rights reserved. <BR>
 
  SPDX-License-Identifier: BSD-2-Clause-Patent
**/
 
#ifndef _CNVI_CONFIG_H_
#define _CNVI_CONFIG_H_
 
#define CNVI_CONFIG_REVISION 2
extern EFI_GUID gCnviConfigGuid;
 
#pragma pack (push,1)
 
/**
  CNVi Mode options
**/
typedef enum {
  CnviModeDisabled = 0,
  CnviModeAuto
} CNVI_MODE;
 
/**
  CNVi MfUart1 connection options
**/
typedef enum {
  CnviMfUart1Ish = 0,
  CnviMfUart1SerialIo,
  CnviBtUart1ExtPads,
  CnviBtUart1NotConnected
} CNVI_MFUART1_TYPE;
 
 
/**
  <b>Revision 1</b>:
  - Initial version.
  <b>Revision 2</b>:
  - Remove BtInterface and BtUartType.
 
**/
typedef struct {
  CONFIG_BLOCK_HEADER   Header;               ///< Config Block Header
  /**
    This option allows for automatic detection of Connectivity Solution.
    Auto Detection assumes that CNVi will be enabled when available;
    Disable allows for disabling CNVi.
    CnviModeDisabled = Disabled,
    <b>CnviModeAuto = Auto Detection</b>
  **/
  UINT32 Mode                  :  1;
  /**
    <b>(Test)</b> This option configures Uart type which connects to MfUart1
    For production configuration ISH is the default, for tests SerialIO Uart0 or external pads can be used
    Use CNVI_MFUART1_TYPE enum for selection
    <b>CnviMfUart1Ish = MfUart1 over ISH Uart0</b>,
    CnviMfUart1SerialIo = MfUart1 over SerialIO Uart2,
    CnviBtUart1ExtPads = MfUart1 over exteranl pads,
    CnviBtUart1NotConnected = MfUart1 not connected
  **/
  UINT32 MfUart1Type           :  2;
  UINT32 RsvdBits              : 29;
} PCH_CNVI_CONFIG;
 
#pragma pack (pop)
 
#endif // _CNVI_CONFIG_H_