From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.16932.1677656647389427078 for ; Tue, 28 Feb 2023 23:44:07 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=h83WoLja; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: andrei.warkentin@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677656647; x=1709192647; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+LxRVttQVLhqxc14lPHQTCcmrB3zUMfkYbxT1JR2iDU=; b=h83WoLjaO+48J4ihc/OZrGU4la19K7f+wJekXqbti7hH7gUGVyBGGpR5 yNyMD7ZIC90nq8+F1asWRx4Zi3wPVxWZdrV8ohdSXNIIwyn2dbbsb9nkU jNFf/tImDpZaM4Jnk6gzLb2nV+ha0OBxhvLXy3lYBgzXvY+Q3HzR/5lk3 bqrFlwtUnx4W4+6/4e8wytV9sA9eCuQU19uD1R/hm0hl9PtyqfEGa+I05 MKkEitFPDYRr6yz1yqS1FRn2U+aEdgAsv7K6u2Mh5uOV6wU11DsZt+XqK NWzxtLb+QxVzKEkMXevHyvVVpXRNTpFhfpi1o6Vt6frShQfOXh9ESssev g==; X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="396910665" X-IronPort-AV: E=Sophos;i="5.98,224,1673942400"; d="scan'208";a="396910665" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2023 23:44:05 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="667753390" X-IronPort-AV: E=Sophos;i="5.98,224,1673942400"; d="scan'208";a="667753390" Received: from awarkent-mobl1.amr.corp.intel.com ([10.212.124.230]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2023 23:44:05 -0800 From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: Andrei Warkentin , Daniel Schaefer , Sunil V L Subject: [edk2 0/2] RISC-V SBI-backed SerialLib Date: Wed, 1 Mar 2023 01:43:56 -0600 Message-Id: <20230301074358.26356-1-andrei.warkentin@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello! Here are two patches that give a SerialLib backed by SBI console. Both legacy and DBCN mechanisms are supported and have been tested (with UART and HTIF). This is also available at https://github.com/andreiw/edk2-rv-wip/tree/patchset-2 Andrei Warkentin (2): MdePkg: BaseRiscVSbiLib: make more useful to consumers MdePkg: add BaseSerialPortLibRiscVSbi MdePkg/Library/BaseSerialPortLibRiscVSbi/BaseSerialPortLibRiscVSbi.inf | 32 +++ MdePkg/Include/Library/BaseRiscVSbiLib.h | 40 ++- MdePkg/Library/BaseRiscVSbiLib/BaseRiscVSbiLib.c | 3 +- MdePkg/Library/BaseSerialPortLibRiscVSbi/BaseSerialPortLibRiscVSbi.c | 260 ++++++++++++++++++++ MdePkg/Library/BaseSerialPortLibRiscVSbi/BaseSerialPortLibRiscVSbi.uni | 16 ++ 5 files changed, 346 insertions(+), 5 deletions(-) create mode 100644 MdePkg/Library/BaseSerialPortLibRiscVSbi/BaseSerialPortLibRiscVSbi.inf create mode 100644 MdePkg/Library/BaseSerialPortLibRiscVSbi/BaseSerialPortLibRiscVSbi.c create mode 100644 MdePkg/Library/BaseSerialPortLibRiscVSbi/BaseSerialPortLibRiscVSbi.uni -- 2.25.1