X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FDebugPortDxe%2FDebugPort.h;h=739b482cf0de24e90509b232a981bd17cdb856e1;hb=7601dbe7c5ed94c859600649fc316918bb3572b3;hp=852cae94815ac7afe88b73983f5927c0eca27147;hpb=49c8b87c66e8034d935ed11673dd8a230e43440a;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.h b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.h index 852cae9481..739b482cf0 100644 --- a/MdeModulePkg/Universal/DebugPortDxe/DebugPort.h +++ b/MdeModulePkg/Universal/DebugPortDxe/DebugPort.h @@ -43,7 +43,7 @@ extern EFI_COMPONENT_NAME2_PROTOCOL gDebugPortComponentName2; // // local type definitions // -#define DEBUGPORT_DEVICE_SIGNATURE EFI_SIGNATURE_32 ('D', 'B', 'G', 'P') +#define DEBUGPORT_DEVICE_SIGNATURE SIGNATURE_32 ('D', 'B', 'G', 'P') // // Device structure used by driver @@ -54,8 +54,6 @@ typedef struct { EFI_HANDLE DebugPortDeviceHandle; VOID *DebugPortVariable; - EFI_DRIVER_BINDING_PROTOCOL DriverBindingInterface; - EFI_COMPONENT_NAME_PROTOCOL ComponentNameInterface; EFI_DEVICE_PATH_PROTOCOL *DebugPortDevicePath; EFI_DEBUGPORT_PROTOCOL DebugPortInterface; @@ -77,7 +75,7 @@ typedef struct { #define DEBUGPORT_UART_DEFAULT_BAUDRATE 115200 #define DEBUGPORT_UART_DEFAULT_PARITY 0 #define DEBUGPORT_UART_DEFAULT_FIFO_DEPTH 16 -#define DEBUGPORT_UART_DEFAULT_TIMEOUT 50000 // 5 ms +#define DEBUGPORT_UART_DEFAULT_TIMEOUT 50000 ///< 5 ms #define DEBUGPORT_UART_DEFAULT_DATA_BITS 8 #define DEBUGPORT_UART_DEFAULT_STOP_BITS 1 @@ -85,13 +83,8 @@ typedef struct { #define IS_UART_DEVICEPATH(dp) (DevicePathType (dp) == MESSAGING_DEVICE_PATH && DevicePathSubType (dp) == MSG_UART_DP) -// -// globals -// -extern DEBUGPORT_DEVICE *gDebugPortDevice; - /** - Debug Port Driver entry pointo. + Debug Port Driver entry point. Reads DebugPort variable to determine what device and settings to use as the debug port. Binds exclusively to SerialIo. Reverts to defaults if no variable