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