113 lines
4.1 KiB
C
113 lines
4.1 KiB
C
/** @file
|
|
Dci policy
|
|
|
|
@copyright
|
|
INTEL CONFIDENTIAL
|
|
Copyright 2015 - 2021 Intel Corporation.
|
|
|
|
The source code contained or described herein and all documents related to the
|
|
source code ("Material") are owned by Intel Corporation or its suppliers or
|
|
licensors. Title to the Material remains with Intel Corporation or its suppliers
|
|
and licensors. The Material may contain trade secrets and proprietary and
|
|
confidential information of Intel Corporation and its suppliers and licensors,
|
|
and is protected by worldwide copyright and trade secret laws and treaty
|
|
provisions. No part of the Material may be used, copied, reproduced, modified,
|
|
published, uploaded, posted, transmitted, distributed, or disclosed in any way
|
|
without Intel's prior express written permission.
|
|
|
|
No license under any patent, copyright, trade secret or other intellectual
|
|
property right is granted to or conferred upon you by disclosure or delivery
|
|
of the Materials, either expressly, by implication, inducement, estoppel or
|
|
otherwise. Any license under such intellectual property rights must be
|
|
express and approved by Intel in writing.
|
|
|
|
Unless otherwise agreed by Intel in writing, you may not remove or alter
|
|
this notice or any other notice embedded in Materials by Intel or
|
|
Intel's suppliers or licensors in any way.
|
|
|
|
This file contains an 'Intel Peripheral Driver' and is 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.
|
|
|
|
@par Specification Reference:
|
|
**/
|
|
#ifndef _DCI_CONFIG_H_
|
|
#define _DCI_CONFIG_H_
|
|
|
|
#define PCH_DCI_PREMEM_CONFIG_REVISION 3
|
|
extern EFI_GUID gDciPreMemConfigGuid;
|
|
|
|
#pragma pack (push,1)
|
|
|
|
typedef enum {
|
|
DciDbcDisabled = 0x0,
|
|
DciDbcUsb2 = 0x1,
|
|
DciDbcUsb3 = 0x2,
|
|
DciDbcBoth = 0x3,
|
|
DciDbcNoChange = 0x4,
|
|
DciDbcMax
|
|
} DCI_DBC_MODE;
|
|
|
|
typedef enum {
|
|
Usb3TcDbgDisabled = 0x0,
|
|
Usb3TcDbgEnabled = 0x1,
|
|
Usb3TcDbgNoChange = 0x2,
|
|
Usb3TcDbgMax
|
|
} DCI_USB3_TYPE_C_DEBUG_MODE;
|
|
|
|
/**
|
|
The PCH_DCI_PREMEM_CONFIG block describes policies related to Direct Connection Interface (DCI)
|
|
|
|
<b>Revision 1</b>:
|
|
- Initial version.
|
|
<b>Revision 2</b>:
|
|
- Added DciModphyPg
|
|
- change to use data in byte unit rather than bit-field
|
|
<b>Revision 3</b>:
|
|
- Deprecated DciModphyPg
|
|
- Added DciClkEnable, KeepEarlyTrace
|
|
**/
|
|
typedef struct {
|
|
CONFIG_BLOCK_HEADER Header; ///< Config Block Header
|
|
/**
|
|
DCI enable.
|
|
Determine if to enable DCI debug from host.
|
|
<b>0:Disabled</b>; 1:Enabled
|
|
**/
|
|
UINT8 DciEn;
|
|
/**
|
|
USB DbC enable mode.
|
|
Disabled: Clear both USB2/3DBCEN; USB2: Set USB2DBCEN; USB3: Set USB3DBCEN; Both: Set both USB2/3DBCEN; No Change: Comply with HW value
|
|
Refer to definition of DCI_USB_DBC_MODE for supported settings.
|
|
0:Disabled; 1:USB2; 2:USB3; 3:Both; <b>4:No Change</b>
|
|
**/
|
|
UINT8 DciDbcMode;
|
|
UINT8 DciModphyPg; ///< Deprecated
|
|
/**
|
|
USB3 Type-C UFP2DFP kenel / platform debug support. No change will do nothing to UFP2DFP configuration.
|
|
When enabled, USB3 Type C UFP (upstream-facing port) may switch to DFP (downstream-facing port) for first connection.
|
|
It must be enabled for USB3 kernel(kernel mode debug) and platform debug(DFx, DMA, Trace) over UFP Type-C receptacle.
|
|
Refer to definition of DCI_USB_TYPE_C_DEBUG_MODE for supported settings.
|
|
0:Disabled; 1:Enabled; <b>2:No Change</b>
|
|
**/
|
|
UINT8 DciUsb3TypecUfpDbg;
|
|
/**
|
|
Determine if to enable or disable DCI clock request in lowest power state.
|
|
0:Disabled; <b>1:Enabled</b>
|
|
**/
|
|
UINT8 DciClkEnable;
|
|
/**
|
|
Early trace is activated by default.
|
|
Enable to keep early trace data and keep tracing; disable to stop tracing;
|
|
When debug probe is connected and granted, force to no change, let host tool to set it.
|
|
<b>0: Disable</b>; 1: Enable early trace; 2:No Change;
|
|
**/
|
|
UINT8 KeepEarlyTrace;
|
|
UINT8 ReservedBytes[2];
|
|
} PCH_DCI_PREMEM_CONFIG;
|
|
|
|
#pragma pack (pop)
|
|
|
|
#endif // _DCI_CONFIG_H_
|