Loading...
Searching...
No Matches
Go to the documentation of this file.
10#ifndef __TRANSFER_PROTOCOL_H__
11#define __TRANSFER_PROTOCOL_H__
19#define DEBUG_AGENT_REVISION_03 ((0 << 16) | 03)
20#define DEBUG_AGENT_REVISION_04 ((0 << 16) | 04)
21#define DEBUG_AGENT_CAPABILITIES 0
26#define DEBUG_STARTING_SYMBOL_ATTACH (0xFA)
31#define DEBUG_STARTING_SYMBOL_NORMAL (0xFE)
36#define DEBUG_STARTING_SYMBOL_COMPRESS (0xFC)
54#define DEBUG_COMMAND_REQUEST (0 << 7)
55#define DEBUG_COMMAND_RESPONSE (1 << 7)
57#define IS_REQUEST(x) (((x)->Command & DEBUG_COMMAND_RESPONSE) == 0)
62#define DEBUG_COMMAND_RESET (DEBUG_COMMAND_REQUEST | 0x00)
63#define DEBUG_COMMAND_GO (DEBUG_COMMAND_REQUEST | 0x01)
64#define DEBUG_COMMAND_BREAK_CAUSE (DEBUG_COMMAND_REQUEST | 0x02)
65#define DEBUG_COMMAND_SET_HW_BREAKPOINT (DEBUG_COMMAND_REQUEST | 0x03)
66#define DEBUG_COMMAND_CLEAR_HW_BREAKPOINT (DEBUG_COMMAND_REQUEST | 0x04)
67#define DEBUG_COMMAND_SINGLE_STEPPING (DEBUG_COMMAND_REQUEST | 0x05)
68#define DEBUG_COMMAND_SET_SW_BREAKPOINT (DEBUG_COMMAND_REQUEST | 0x06)
69#define DEBUG_COMMAND_READ_MEMORY (DEBUG_COMMAND_REQUEST | 0x07)
70#define DEBUG_COMMAND_WRITE_MEMORY (DEBUG_COMMAND_REQUEST | 0x08)
71#define DEBUG_COMMAND_READ_IO (DEBUG_COMMAND_REQUEST | 0x09)
72#define DEBUG_COMMAND_WRITE_IO (DEBUG_COMMAND_REQUEST | 0x0A)
73#define DEBUG_COMMAND_READ_REGISTER (DEBUG_COMMAND_REQUEST | 0x0B)
74#define DEBUG_COMMAND_WRITE_REGISTER (DEBUG_COMMAND_REQUEST | 0x0C)
75#define DEBUG_COMMAND_READ_ALL_REGISTERS (DEBUG_COMMAND_REQUEST | 0x0D)
76#define DEBUG_COMMAND_ARCH_MODE (DEBUG_COMMAND_REQUEST | 0x0E)
77#define DEBUG_COMMAND_READ_MSR (DEBUG_COMMAND_REQUEST | 0x0F)
78#define DEBUG_COMMAND_WRITE_MSR (DEBUG_COMMAND_REQUEST | 0x10)
79#define DEBUG_COMMAND_SET_DEBUG_SETTING (DEBUG_COMMAND_REQUEST | 0x11)
80#define DEBUG_COMMAND_GET_REVISION (DEBUG_COMMAND_REQUEST | 0x12)
81#define DEBUG_COMMAND_GET_EXCEPTION (DEBUG_COMMAND_REQUEST | 0x13)
82#define DEBUG_COMMAND_SET_VIEWPOINT (DEBUG_COMMAND_REQUEST | 0x14)
83#define DEBUG_COMMAND_GET_VIEWPOINT (DEBUG_COMMAND_REQUEST | 0x15)
84#define DEBUG_COMMAND_DETACH (DEBUG_COMMAND_REQUEST | 0x16)
85#define DEBUG_COMMAND_CPUID (DEBUG_COMMAND_REQUEST | 0x17)
86#define DEBUG_COMMAND_SEARCH_SIGNATURE (DEBUG_COMMAND_REQUEST | 0x18)
87#define DEBUG_COMMAND_HALT (DEBUG_COMMAND_REQUEST | 0x19)
92#define DEBUG_COMMAND_INIT_BREAK (DEBUG_COMMAND_REQUEST | 0x3F)
93#define DEBUG_COMMAND_BREAK_POINT (DEBUG_COMMAND_REQUEST | 0x3E)
94#define DEBUG_COMMAND_MEMORY_READY (DEBUG_COMMAND_REQUEST | 0x3D)
95#define DEBUG_COMMAND_PRINT_MESSAGE (DEBUG_COMMAND_REQUEST | 0x3C)
96#define DEBUG_COMMAND_ATTACH_BREAK (DEBUG_COMMAND_REQUEST | 0x3B)
101#define DEBUG_COMMAND_OK (DEBUG_COMMAND_RESPONSE | 0x00)
102#define DEBUG_COMMAND_RESEND (DEBUG_COMMAND_RESPONSE | 0x01)
103#define DEBUG_COMMAND_ABORT (DEBUG_COMMAND_RESPONSE | 0x02)
115#define DEBUG_COMMAND_IN_PROGRESS (DEBUG_COMMAND_RESPONSE | 0x03)
116#define DEBUG_COMMAND_CONTINUE (DEBUG_COMMAND_RESPONSE | 0x04)
122#define DEBUG_COMMAND_HALT_DEFERRED (DEBUG_COMMAND_RESPONSE | 0x05)
123#define DEBUG_COMMAND_HALT_PROCESSED (DEBUG_COMMAND_RESPONSE | 0x06)
125#define DEBUG_COMMAND_TIMEOUT (DEBUG_COMMAND_RESPONSE | 0x07)
126#define DEBUG_COMMAND_NOT_SUPPORTED (DEBUG_COMMAND_RESPONSE | 0x0F)
131#define DEBUG_DATA_UPPER_LIMIT 0xff
133#define DEBUG_DATA_MAXIMUM_REAL_DATA (DEBUG_DATA_UPPER_LIMIT - sizeof (DEBUG_PACKET_HEADER))
145#define DEBUG_DATA_BREAK_CAUSE_UNKNOWN 0
146#define DEBUG_DATA_BREAK_CAUSE_HW_BREAKPOINT 1
147#define DEBUG_DATA_BREAK_CAUSE_STEPPING 2
148#define DEBUG_DATA_BREAK_CAUSE_SW_BREAKPOINT 3
149#define DEBUG_DATA_BREAK_CAUSE_USER_HALT 4
150#define DEBUG_DATA_BREAK_CAUSE_IMAGE_LOAD 5
151#define DEBUG_DATA_BREAK_CAUSE_IMAGE_UNLOAD 6
152#define DEBUG_DATA_BREAK_CAUSE_SYSTEM_RESET 7
153#define DEBUG_DATA_BREAK_CAUSE_EXCEPTION 8
154#define DEBUG_DATA_BREAK_CAUSE_MEMORY_READY 9
165#define DEBUG_DATA_BREAK_CPU_ARCH_IA16 0
166#define DEBUG_DATA_BREAK_CPU_ARCH_IA32 1
167#define DEBUG_DATA_BREAK_CPU_ARCH_X64 2
175#define DEBUG_DATA_BREAKPOINT_MEMORY_ACCESS (0x3)
176#define DEBUG_DATA_BREAKPOINT_IO_ACCESS (0x2)
177#define DEBUG_DATA_BREAKPOINT_MEMORY_WRITE (0x1)
178#define DEBUG_DATA_BREAKPOINT_MEMORY_EXECUTE (0x0)
179#define DEBUG_DATA_BREAKPOINT_LENGTH_32 (0x3)
180#define DEBUG_DATA_BREAKPOINT_LENGTH_64 (0x2)
181#define DEBUG_DATA_BREAKPOINT_LENGTH_16 (0x1)
182#define DEBUG_DATA_BREAKPOINT_LENGTH_8 (0x0)
298 UINT32 ExceptionData;
311#define DEBUG_AGENT_SETTING_SMM_ENTRY_BREAK 1
312#define DEBUG_AGENT_SETTING_PRINT_ERROR_LEVEL 2
313#define DEBUG_AGENT_SETTING_BOOT_SCRIPT_ENTRY_BREAK 3
317#define DEBUG_AGENT_ERROR BIT0
318#define DEBUG_AGENT_WARNING BIT1
319#define DEBUG_AGENT_INFO BIT2
320#define DEBUG_AGENT_VERBOSE BIT3