/* If no initialization is required, then return RETURN_SUCCESS. If the serial device was successfully initialized, then return RETURN_SUCCESS. If the serial device could not be initialized, then return RETURN_DEVICE_ERROR. */
RETURN_STATUS EFIAPI SerialPortInitialize(VOID)
/* If no initialization is required, then return RETURN_SUCCESS. If the serial device was successfully initialized, then return RETURN_SUCCESS. If the serial device could not be initialized, then return RETURN_DEVICE_ERROR. */
RETURN_STATUS EFIAPI SerialPortInitialize(VOID)
{
  struct cb_cbmem_ref  *CbMemRef;
  CbMemRef = FindCbTag (CB_TAG_CBMEM_CONSOLE);
  if (CbMemRef == NULL) {
    return RETURN_DEVICE_ERROR;
  }
  mCbConsole = (VOID *)(UINTN)CbMemRef->cbmem_addr;
  if (mCbConsole == NULL) {
    return RETURN_DEVICE_ERROR;
  }
  return RETURN_SUCCESS;
}