From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from esa1.hc3370-68.iphmx.com (esa1.hc3370-68.iphmx.com [216.71.145.142]) by mx.groups.io with SMTP id smtpd.web11.3280.1587635655505438317 for ; Thu, 23 Apr 2020 02:54:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@citrix.com header.s=securemail header.b=gWW/F9IM; spf=pass (domain: citrix.com, ip: 216.71.145.142, mailfrom: anthony.perard@citrix.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1587635656; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gOY8Pp7D9JPcfRRnkV+mq2LwAP1OrYshh+pVbsTsjXE=; b=gWW/F9IMoF5AIMRnGLZAp24lPkHhuUI9ulXjeldbQOlJ6WvrqhluMr0r 7RsAVRk29sZOMoMzYmtumApfuEC+Q3Y067dKBqSDyNypmXo9WVsaB6114 gsq8UaNTlzS0+TKsC/psXNYZAObDyM+/+HeKUZdtWBHhfCO6nZFLbtOdw 8=; Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=anthony.perard@citrix.com; spf=Pass smtp.mailfrom=anthony.perard@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of anthony.perard@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa1.hc3370-68.iphmx.com: domain of anthony.perard@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="anthony.perard@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa1.hc3370-68.iphmx.com; envelope-from="anthony.perard@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: DJplUP6AUC1SUNzfptI0nFOcVVlzGNJijTlOp53RZDOl78jB/XSLD1/+pDAD4xrF4L5oYZZOz6 VHXc0FC2fAhQa6KeJ6rPPlD17gpTRBvwzjiSiLIwc98gUYKyqnHmm1CxbX5ekiBtrx8K9e/FF+ NoiNyz4gtHQqiSbud7UrJeH6Ahr02gIsaTX8XvpAMR1CUmk2f1UDNuJ7vE5fNiCUMEXs+eflA+ 0g68EB2weD9l9OvaGWj2MC4pLrsgS2nuqPP4a1gD2f7oXtzgl6Q7A0U97CD9DY4DDBVC1v60hN 7nY= X-SBRS: 2.7 X-MesageID: 16368776 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.73,306,1583211600"; d="scan'208";a="16368776" From: "Anthony PERARD" To: CC: Laszlo Ersek , Ard Biesheuvel , Jordan Justen , Julien Grall , Anthony Perard Subject: [PATCH v2 3/5] OvmfPkg/PlatformDebugLibIoPort: factor out debug port detection Date: Thu, 23 Apr 2020 10:53:56 +0100 Message-ID: <20200423095358.2518197-4-anthony.perard@citrix.com> X-Mailer: git-send-email 2.26.1 In-Reply-To: <20200423095358.2518197-1-anthony.perard@citrix.com> References: <20200423095358.2518197-1-anthony.perard@citrix.com> MIME-Version: 1.0 Return-Path: anthony.perard@citrix.com Content-Transfer-Encoding: base64 Content-Type: text/plain RmFjdG9yIG91dCBkZWJ1ZyB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