mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-22 21:24:35 +02:00
MdeModulePkg: Introduce EDKII_SERIAL_PORT_LIB_VENDOR_GUID
SERIAL_DXE_FILE_GUID is used in different places, create a single define that other can use. Also fix SerialDxe to actually use EDKII_SERIAL_PORT_LIB_VENDOR_GUID in the device path instead of the FILE_GUID. Suggested-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> Message-Id: <20190606131459.1464-2-anthony.perard@citrix.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
This commit is contained in:
parent
b0663641c9
commit
cf78c9d18a
19
MdeModulePkg/Include/Guid/SerialPortLibVendor.h
Normal file
19
MdeModulePkg/Include/Guid/SerialPortLibVendor.h
Normal file
@ -0,0 +1,19 @@
|
||||
/** @file
|
||||
Define the SerialDxe GUID.
|
||||
|
||||
Copyright (c) 2019, Citrix Systems, Inc.
|
||||
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
#ifndef __SERIAL_PORT_LIB_VENDOR_H__
|
||||
#define __SERIAL_PORT_LIB_VENDOR_H__
|
||||
|
||||
#define EDKII_SERIAL_PORT_LIB_VENDOR_GUID { \
|
||||
0xD3987D4B, 0x971A, 0x435F, \
|
||||
{ 0x8C, 0xAF, 0x49, 0x67, 0xEB, 0x62, 0x72, 0x41 } \
|
||||
}
|
||||
|
||||
extern EFI_GUID gEdkiiSerialPortLibVendorGuid;
|
||||
|
||||
#endif // __SERIAL_PORT_LIB_VENDOR_H__
|
@ -396,6 +396,9 @@
|
||||
## Include/Guid/S3StorageDeviceInitList.h
|
||||
gS3StorageDeviceInitListGuid = { 0x310e9b8c, 0xcf90, 0x421e, { 0x8e, 0x9b, 0x9e, 0xef, 0xb6, 0x17, 0xc8, 0xef } }
|
||||
|
||||
## Include/Guid/SerialPortLibVendor.h
|
||||
gEdkiiSerialPortLibVendorGuid = { 0xD3987D4B, 0x971A, 0x435F, { 0x8C, 0xAF, 0x49, 0x67, 0xEB, 0x62, 0x72, 0x41 } }
|
||||
|
||||
[Ppis]
|
||||
## Include/Ppi/AtaController.h
|
||||
gPeiAtaControllerPpiGuid = { 0xa45e60d1, 0xc719, 0x44aa, { 0xb0, 0x7a, 0xaa, 0x77, 0x7f, 0x85, 0x90, 0x6d }}
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
UefiDriverEntryPoint
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include <Protocol/SerialIo.h>
|
||||
#include <Protocol/DevicePath.h>
|
||||
#include <Guid/SerialPortLibVendor.h>
|
||||
|
||||
typedef struct {
|
||||
VENDOR_DEVICE_PATH Guid;
|
||||
@ -159,7 +160,7 @@ EFI_HANDLE mSerialHandle = NULL;
|
||||
SERIAL_DEVICE_PATH mSerialDevicePath = {
|
||||
{
|
||||
{ HARDWARE_DEVICE_PATH, HW_VENDOR_DP, { sizeof (VENDOR_DEVICE_PATH), 0} },
|
||||
EFI_CALLER_ID_GUID // Use the driver's GUID
|
||||
EDKII_SERIAL_PORT_LIB_VENDOR_GUID
|
||||
},
|
||||
{
|
||||
{ MESSAGING_DEVICE_PATH, MSG_UART_DP, { sizeof (UART_DEVICE_PATH), 0} },
|
||||
|
Loading…
x
Reference in New Issue
Block a user