vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 1 | ## @file SourceLevelDebugPkg.dec
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 2 | # This package provides target side modules to support source level debug.
|
| 3 | # The target side components includes the Debug Agent Library instance
|
| 4 | # to communicate with host side modules, Debug Communication Library and
|
| 5 | # instances to provide the communication I/O functions between Debug Agent
|
| 6 | # and host, PeCoffExtraActionLib instance to report symbol path information,
|
| 7 | # etc.
|
| 8 | #
|
Shumin Qiu | 4e4a6f3 | 2015-01-19 02:44:10 +0000 | [diff] [blame] | 9 | # Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.<BR>
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 10 | # This program and the accompanying materials are licensed and made available under
|
| 11 | # the terms and conditions of the BSD License that accompanies this distribution.
|
| 12 | # The full text of the license may be found at
|
| 13 | # http://opensource.org/licenses/bsd-license.php.
|
| 14 | #
|
| 15 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
| 16 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
| 17 | #
|
| 18 | ##
|
| 19 |
|
| 20 | [Defines]
|
| 21 | DEC_SPECIFICATION = 0x00010005
|
vanjeff | 894c9c6 | 2012-04-25 08:03:26 +0000 | [diff] [blame] | 22 | PACKAGE_NAME = SourceLevelDebugPkg
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 23 | PACKAGE_UNI_FILE = SourceLevelDebugPkg.uni
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 24 | PACKAGE_GUID = DBF00C27-D8D7-443d-918B-4E85CDA1373B
|
Ruiyu Ni | 29b3a74 | 2015-08-24 06:38:24 +0000 | [diff] [blame] | 25 | PACKAGE_VERSION = 0.96
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 26 |
|
| 27 | [Includes]
|
| 28 | Include
|
| 29 |
|
| 30 | [Includes.IA32]
|
| 31 | Include/Ia32
|
| 32 |
|
| 33 | [Includes.X64]
|
| 34 | Include/Ia32
|
| 35 |
|
| 36 | [LibraryClasses]
|
| 37 | ## @libraryclass Provides communication I/O functions between Debug Agent and HOST.
|
| 38 | ##
|
| 39 | DebugCommunicationLib|Include/Library/DebugCommunicationLib.h
|
| 40 |
|
| 41 | [Guids]
|
| 42 | ## MdeModule package token space guid
|
| 43 | # Include/Guid/DebugAgentGuid.h
|
| 44 | gEfiDebugAgentGuid = {0x865a5a9b, 0xb85d, 0x474c, { 0x84, 0x55, 0x65, 0xd1, 0xbe, 0x84, 0x4b, 0xe2 }}
|
| 45 | gEfiSourceLevelDebugPkgTokenSpaceGuid = {0x865a5aab, 0xb85d, 0x474c, { 0x84, 0x55, 0x65, 0xd1, 0xbe, 0x84, 0x4b, 0xe2 }}
|
| 46 |
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 47 | #
|
| 48 | # [Error.gEfiSourceLevelDebugPkgTokenSpaceGuid]
|
| 49 | # 0x80000001 | Invalid value provided.
|
| 50 | #
|
| 51 |
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 52 | [PcdsFixedAtBuild, PcdsPatchableInModule]
|
| 53 | ## The memory BAR of usb debug port, it may be different with the memory bar of ehci host controller.
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 54 | # Note that the memory BAR address is only used before Pci bus resource allocation.
|
| 55 | # @Prompt Configure usb debug port memory BAR.
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 56 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbDebugPortMemorySpaceBase|0xd0000000|UINT32|0x00000001
|
| 57 |
|
| 58 | ## The memory BAR of ehci host controller, in which usb debug feature is enabled.
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 59 | # Note that the memory BAR address is only used before Pci bus resource allocation.
|
| 60 | # @Prompt Configure ehci host controller memory BAR.
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 61 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbEhciMemorySpaceBase|0xd0000000|UINT32|0x00000002
|
| 62 |
|
| 63 | ## The pci address of ehci host controller, in which usb debug feature is enabled.
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 64 | # The format of pci address is :<BR>
|
| 65 | # -----------------------------------------------------------------------<BR>
|
| 66 | # | Bits 28..31 | Bits 20..27 | Bits 15..19 | Bits 12..14 | Bits 00..11 |<BR>
|
| 67 | # -----------------------------------------------------------------------<BR>
|
| 68 | # | 0 | Bus | Device | Function | 0 |<BR>
|
| 69 | # -----------------------------------------------------------------------<BR>
|
| 70 | # For the value 0x000EF000, it means the pci address at bus 0x0, device 0x1D, function 0x7.
|
| 71 | # @Prompt Configure ehci host controller pci address.
|
| 72 | # @Expression 0x80000001 | (gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbEhciPciAddress & 0xF0000FFF) == 0
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 73 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbEhciPciAddress|0x000EF000|UINT32|0x00000003
|
| 74 |
|
| 75 | ## The mask of exception numbers whose handlers would be ignored and cannot be replaced or
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 76 | # hooked by Debug Agent Library. Masking INT1/INT3 is invalid.
|
| 77 | # @Prompt Configure exception numbers not to be hooked by Debug Agent.
|
| 78 | # @Expression 0x80000001 | (gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdExceptionsIgnoredByDebugger & 0xA) == 0
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 79 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdExceptionsIgnoredByDebugger|0x00000000|UINT32|0x00000004
|
| 80 |
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 81 | ## The method to issue break point to Debug Agent Library when Loading/UnLoading image.<BR><BR>
|
| 82 | # 1: Use I/O Port 84 to issue hardware break point<BR>
|
| 83 | # 2: Use INT3 to issue software break point<BR>
|
| 84 | # @Prompt Configure Loading/UnLoading image break method.
|
| 85 | # @ValidRange 0x80000001 | 1 - 2
|
vanjeff | 18b144e | 2010-09-12 06:43:36 +0000 | [diff] [blame] | 86 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|0x1|UINT8|0x00000005
|
vanjeff | b422b62 | 2013-01-25 02:36:18 +0000 | [diff] [blame] | 87 |
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 88 | ## The data buffer size used by debug port in debug communication library instances.
|
| 89 | # Its value is not suggested to be changed in platform DSC file.
|
| 90 | # @Prompt Assign debug port buffer size.
|
vanjeff | b422b62 | 2013-01-25 02:36:18 +0000 | [diff] [blame] | 91 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugPortHandleBufferSize|0x0|UINT16|0x00000006
|
| 92 |
|
Elvin Li | 2cb6eab | 2014-10-22 05:01:58 +0000 | [diff] [blame] | 93 | ## The memory BAR of xhci host controller, in which usb debug feature is enabled.
|
| 94 | ## Note that the memory BAR address is only used before Pci bus resource allocation.
|
| 95 | # @Prompt Configure ehci host controller memory BAR.
|
| 96 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciMemorySpaceBase|0xD0000000|UINT64|0x00000007
|
| 97 |
|
| 98 | ## The pci address of xhci host controller, in which usb debug feature is enabled.
|
| 99 | # The format of pci address is :<BR>
|
| 100 | # -----------------------------------------------------------------------<BR>
|
| 101 | # | Bits 28..31 | Bits 20..27 | Bits 15..19 | Bits 12..14 | Bits 00..11 |<BR>
|
| 102 | # -----------------------------------------------------------------------<BR>
|
| 103 | # | 0 | Bus | Device | Function | 0 |<BR>
|
| 104 | # -----------------------------------------------------------------------<BR>
|
| 105 | # For the value 0x000A0000, it means the pci address at bus 0x0, device 0x14, function 0x0.
|
| 106 | # @Prompt Configure xhci host controller pci address.
|
| 107 | # @Expression 0x80000001 | (gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciPciAddress & 0xF0000FFF) == 0
|
| 108 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciPciAddress|0x000A0000|UINT32|0x00000008
|
| 109 |
|
| 110 | ## Per XHCI spec, software shall impose a timeout between the detection of the Debug Host
|
| 111 | ## connection and the DbC Run transition to 1. This PCD specifies the timeout value in microsecond.
|
| 112 | # @Prompt Configure debug device detection timeout value.
|
| 113 | gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdUsbXhciDebugDetectTimeout|3000000|UINT64|0x00000009
|
| 114 |
|
Gao, Liming | 865ef84 | 2014-08-28 05:14:21 +0000 | [diff] [blame] | 115 | [UserExtensions.TianoCore."ExtraFiles"]
|
| 116 | SourceLevelDebugPkgExtra.uni
|