\r
if (Status == EFI_BUFFER_TOO_SMALL) {\r
if (gDebugPortDevice->DebugPortVariable != NULL) {\r
- gBS->FreePool (gDebugPortDevice->DebugPortVariable);\r
+ FreePool (gDebugPortDevice->DebugPortVariable);\r
}\r
\r
DebugPortDevice->DebugPortVariable = AllocatePool (DataSize);\r
}\r
\r
if (EfiIsDevicePathEnd (DevicePath)) {\r
- gBS->FreePool (gDebugPortDevice->DebugPortVariable);\r
+ FreePool (gDebugPortDevice->DebugPortVariable);\r
DebugPortDevice->DebugPortVariable = NULL;\r
} else {\r
- gBS->CopyMem (\r
- &DebugPortDevice->BaudRate,\r
- &((UART_DEVICE_PATH *) DevicePath)->BaudRate,\r
- sizeof (((UART_DEVICE_PATH *) DevicePath)->BaudRate)\r
- );\r
+ CopyMem (\r
+ &DebugPortDevice->BaudRate,\r
+ &((UART_DEVICE_PATH *) DevicePath)->BaudRate,\r
+ sizeof (((UART_DEVICE_PATH *) DevicePath)->BaudRate)\r
+ );\r
DebugPortDevice->ReceiveFifoDepth = DEBUGPORT_UART_DEFAULT_FIFO_DEPTH;\r
DebugPortDevice->Timeout = DEBUGPORT_UART_DEFAULT_TIMEOUT;\r
- gBS->CopyMem (\r
- &DebugPortDevice->Parity,\r
- &((UART_DEVICE_PATH *) DevicePath)->Parity,\r
- sizeof (((UART_DEVICE_PATH *) DevicePath)->Parity)\r
- );\r
- gBS->CopyMem (\r
- &DebugPortDevice->DataBits,\r
- &((UART_DEVICE_PATH *) DevicePath)->DataBits,\r
- sizeof (((UART_DEVICE_PATH *) DevicePath)->DataBits)\r
- );\r
- gBS->CopyMem (\r
- &DebugPortDevice->StopBits,\r
- &((UART_DEVICE_PATH *) DevicePath)->StopBits,\r
- sizeof (((UART_DEVICE_PATH *) DevicePath)->StopBits)\r
- );\r
+ CopyMem (\r
+ &DebugPortDevice->Parity,\r
+ &((UART_DEVICE_PATH *) DevicePath)->Parity,\r
+ sizeof (((UART_DEVICE_PATH *) DevicePath)->Parity)\r
+ );\r
+ CopyMem (\r
+ &DebugPortDevice->DataBits,\r
+ &((UART_DEVICE_PATH *) DevicePath)->DataBits,\r
+ sizeof (((UART_DEVICE_PATH *) DevicePath)->DataBits)\r
+ );\r
+ CopyMem (\r
+ &DebugPortDevice->StopBits,\r
+ &((UART_DEVICE_PATH *) DevicePath)->StopBits,\r
+ sizeof (((UART_DEVICE_PATH *) DevicePath)->StopBits)\r
+ );\r
}\r
}\r
}\r
Status = EFI_UNSUPPORTED;\r
}\r
\r
- gBS->FreePool (Dp1);\r
+ FreePool (Dp1);\r
if (EFI_ERROR (Status)) {\r
return Status;\r
}\r
DebugPortDP.Header.Type = MESSAGING_DEVICE_PATH;\r
DebugPortDP.Header.SubType = MSG_VENDOR_DP;\r
SetDevicePathNodeLength (&(DebugPortDP.Header), sizeof (DebugPortDP));\r
- gBS->CopyMem (&DebugPortDP.Guid, &gEfiDebugPortDevicePathGuid, sizeof (EFI_GUID));\r
+ CopyMem (&DebugPortDP.Guid, &gEfiDebugPortDevicePathGuid, sizeof (EFI_GUID));\r
\r
Dp1 = DevicePathFromHandle (ControllerHandle);\r
if (Dp1 == NULL) {\r
ControllerHandle\r
);\r
\r
- gBS->FreePool (gDebugPortDevice->DebugPortDevicePath);\r
+ FreePool (gDebugPortDevice->DebugPortDevicePath);\r
\r
return EFI_SUCCESS;\r
} else {\r
// Clean up allocations\r
//\r
if (gDebugPortDevice->DebugPortVariable != NULL) {\r
- gBS->FreePool (gDebugPortDevice->DebugPortVariable);\r
+ FreePool (gDebugPortDevice->DebugPortVariable);\r
}\r
\r
- gBS->FreePool (gDebugPortDevice);\r
+ FreePool (gDebugPortDevice);\r
\r
return EFI_SUCCESS;\r
}\r