]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SourceLevelDebugPkg/Include/TransferProtocol.h
Fix a bug in DebugAgent that hang happens when the ACK for GO is lost.
[mirror_edk2.git] / SourceLevelDebugPkg / Include / TransferProtocol.h
index 53e9f7cf3689c26dd8b1e613eefaece6bb36d4a0..42add9164a831e2447c73e3c9e82e9c921c6ea56 100644 (file)
@@ -2,7 +2,7 @@
   Transfer protocol defintions used by debug agent and host. It is only\r
   intended to be used by Debug related module implementation.\r
 \r
-  Copyright (c) 2010 - 2013, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -53,6 +53,8 @@ typedef struct {
 #define DEBUG_COMMAND_REQUEST      (0 << 7)\r
 #define DEBUG_COMMAND_RESPONSE     (1 << 7)\r
 \r
+#define IS_REQUEST(x)              (((x)->Command & DEBUG_COMMAND_RESPONSE) == 0)\r
+\r
 //\r
 // HOST initiated commands\r
 //\r