]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Extend SERIAL_IO with DeviceTypeGuid
authorOleksiy Yakovlev <oleksiyy@ami.com>
Wed, 13 May 2020 19:52:42 +0000 (03:52 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 15 May 2020 05:05:52 +0000 (05:05 +0000)
EFI_SERIAL_IO_PROTOCOL_REVISION incremented to 0x00010001.
CONST EFI_GUID *DeviceTypeGuid field added to the protocol structure.
UEFI 2.8 mantis 1832.

Signed-off-by: Oleksiy Yakovlev <oleksiyy@ami.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com>
MdePkg/Include/Protocol/SerialIo.h

index 51eaa53809590262385a5ae227d16be968d0fd5a..e2e0c61eeb0a9b4b7efc4dfbe4877d98f826756b 100644 (file)
@@ -263,6 +263,7 @@ typedef struct {
 } EFI_SERIAL_IO_MODE;\r
 \r
 #define EFI_SERIAL_IO_PROTOCOL_REVISION    0x00010000\r
+#define EFI_SERIAL_IO_PROTOCOL_REVISION1p1 0x00010001\r
 #define SERIAL_IO_INTERFACE_REVISION  EFI_SERIAL_IO_PROTOCOL_REVISION\r
 \r
 ///\r
@@ -287,6 +288,14 @@ struct _EFI_SERIAL_IO_PROTOCOL {
   /// Pointer to SERIAL_IO_MODE data.\r
   ///\r
   EFI_SERIAL_IO_MODE          *Mode;\r
+  ///\r
+  /// Pointer to a GUID identifying the device connected to the serial port.\r
+  /// This field is NULL when the protocol is installed by the serial port\r
+  /// driver and may be populated by a platform driver for a serial port\r
+  /// with a known device attached. The field will remain NULL if there is\r
+  /// no platform serial device identification information available.\r
+  ///\r
+  CONST EFI_GUID              *DeviceTypeGuid; // Revision 1.1\r
 };\r
 \r
 extern EFI_GUID gEfiSerialIoProtocolGuid;\r