Files
edk2-platforms/Features/Intel/Debugging/Usb3DebugFeaturePkg/Usb3DebugFeaturePkg.dec
Isaac Oram 280304c436 Usb3DebugFeaturePkg: Align with feature design guidelines
Remove build of common libraries.  Boards will already have those.

Modified Usb3DebugFeature.dsc to treat libraries like libraries.
Usb3DebugFeaturePkg.dsc uses the component trick for standalone build
testing of the libraries.

Added a PCD to allow board to select between NULL, regular, and IO MMU
library instances.  Prior implementation of Usb3DebugFeature.dsc was not
useful as an includable file because it didn't specify LibaryClass
instance to use.

Removed unused CMOS PCD.

Updated some of the readme sections.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>

Signed-off-by: Isaac Oram <isaac.w.oram@intel.com>
Reviewed-by: Nate DeSimone <nathaniel.l.desimone@intel.com>
2022-02-02 15:26:21 -08:00

56 lines
2.3 KiB
Plaintext

## @file
# This package provides advanced feature functionality for USB3 Debug support.
# This package should only depend on EDK II Core packages, IntelSiliconPkg, and MinPlatformPkg.
#
# The DEC files are used by the utilities that parse DSC and
# INF files to generate AutoGen.c and AutoGen.h files
# for the build infrastructure.
#
# Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
DEC_SPECIFICATION = 0x00010017
PACKAGE_NAME = Usb3DebugFeaturePkg
PACKAGE_GUID = A96B06AE-5C10-4226-9B22-259AFCBB6119
PACKAGE_VERSION = 0.1
[Includes]
Include
[LibraryClasses]
## @libraryclass Provides the capability to get/set USB3 debug port parameters.
Usb3DebugPortParamLib|Include/Library/Usb3DebugPortParamLib.h
## @libraryclass Provide common USB3 debug port functions.
Usb3DebugPortLib|Include/Library/Usb3DebugPortLib.h
[Guids]
gUsb3DebugFeaturePkgTokenSpaceGuid = {0x1cbca3b0, 0x780c, 0x47d0, {0x8a, 0x46, 0xfe, 0x10, 0x77, 0x64, 0xe8, 0xd0}}
[PcdsFeatureFlag]
## This PCD specifies whether StatusCode is reported via USB3 Serial port.
gUsb3DebugFeaturePkgTokenSpaceGuid.PcdUsb3DebugFeatureEnable|FALSE|BOOLEAN|0xA0000001
[PcdsFixedAtBuild]
## This PCD allows the board to select the Usb3DebugPortLib instance desired
# 0 = NULL instance
# 1 = Regular instance
# 2 = IO MMU instance
gUsb3DebugFeaturePkgTokenSpaceGuid.PcdUsb3DebugPortLibInstance|0|UINT8|0xF0000009
## These PCD specify XHCI controller Bus/Device/Function, which are used to enable
# XHCI debug device.
gUsb3DebugFeaturePkgTokenSpaceGuid.PcdUsbSerialXhciBus|0x00|UINT8|0xF0000001
gUsb3DebugFeaturePkgTokenSpaceGuid.PcdUsbSerialXhciDev|0x14|UINT8|0xF0000002
gUsb3DebugFeaturePkgTokenSpaceGuid.PcdUsbSerialXhciFunc|0x00|UINT8|0xF0000003
gUsb3DebugFeaturePkgTokenSpaceGuid.PcdXhciDefaultBaseAddress|0xFEA10000|UINT32|0xF0000004
## This PCD specifies the wait timeout value in microsecond if USB debug cable is detected but host not connected.
# Default timeout value is 2000000 microseconds.
# If user does not want system stall for long time, it can be set to small value.
gUsb3DebugFeaturePkgTokenSpaceGuid.PcdXhciHostWaitTimeout|2000000|UINT64|0xF0000005