From: Leo Duran <leo.duran@amd.com>
To: <edk2-devel@lists.01.org>
Cc: <liming.gao@intel.com>, <michael.d.kinney@intel.com>,
<lersek@redhat.com>, <jordan.l.justen@intel.com>,
<jeff.fan@intel.com>, <brijesh.singh@amd.com>,
Leo Duran <leo.duran@amd.com>
Subject: [PATCH 0/8] IoLib class library
Date: Tue, 10 Jan 2017 17:55:46 -0600 [thread overview]
Message-ID: <1484092554-26224-1-git-send-email-leo.duran@amd.com> (raw)
The UefiCpuPkg/CpuIo2Dxe driver and the QemuCfgLib library have duplicate
implementations of I/O Fifo routines. The patch series moves the I/O Fifo
routines into the BaseIoLibIntrinsic library and expands the IoLib class
to include the ported I/O Fifo routines.
The Fifo routines moved from the UefiCpuPkg/CpuIo2Dxe driver support IA32
and X64 natively, and other architectures are supported by simply looping
through the basic IoRead/IoWrite routines as appropiate.
The intent of this patch series is twofold:
1) Integrate I/O Fifo routines into the IoLib class library.
2) Allow override of IoLib as may be required to support specific hardware
implementations, such as AMD's Secure Encrypted Virtualization (SEV).
Leo Duran (8):
MdePkg: Expand BaseIoLibIntrinsic (IoLib class) library
MdePkg/DxeIoLibCpuIo2: Add new Fifo routines in IoLib class
MdePkg/DxeIoLibEsal: Add new Fifo routines in IoLib class
MdePkg/PeiIoLibCpuIo: Add new Fifo routines in IoLib class
MdePkg/SmmIoLibSmmCpuIo2: Add new Fifo routines in IoLib class
IntelFrameworkPkg/DxeIoLibCpuIo: Add new Fifo routines in IoLib class
UefiCpuPkg: Modify CpuIo2Dxe to use new IoLib class library
OvmfPkg: Modify QemuFwCfgLib to use new IoLib class library
IntelFrameworkPkg/Library/DxeIoLibCpuIo/IoLib.c | 203 +++++++++++++++++++++
MdePkg/Include/Library/IoLib.h | 158 ++++++++++++++++
.../BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf | 6 +-
.../Library/BaseIoLibIntrinsic}/Ia32/IoFifo.asm | 1 +
.../Library/BaseIoLibIntrinsic}/Ia32/IoFifo.nasm | 1 +
MdePkg/Library/BaseIoLibIntrinsic/IoLibArm.c | 182 ++++++++++++++++++
MdePkg/Library/BaseIoLibIntrinsic/IoLibEbc.c | 179 ++++++++++++++++++
MdePkg/Library/BaseIoLibIntrinsic/IoLibIpf.c | 201 ++++++++++++++++++++
.../Library/BaseIoLibIntrinsic}/X64/IoFifo.asm | 1 +
.../Library/BaseIoLibIntrinsic}/X64/IoFifo.nasm | 1 +
MdePkg/Library/DxeIoLibCpuIo2/IoLib.c | 203 +++++++++++++++++++++
MdePkg/Library/DxeIoLibEsal/IoLib.c | 203 +++++++++++++++++++++
MdePkg/Library/PeiIoLibCpuIo/IoLib.c | 203 +++++++++++++++++++++
MdePkg/Library/SmmIoLibSmmCpuIo2/IoLib.c | 203 +++++++++++++++++++++
OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm | 55 ------
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.c | 54 +-----
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgLib.inf | 7 +-
OvmfPkg/Library/QemuFwCfgLib/QemuFwCfgSecLib.inf | 7 +-
OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm | 52 ------
UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.c | 3 +-
UefiCpuPkg/CpuIo2Dxe/CpuIo2Dxe.inf | 11 +-
UefiCpuPkg/CpuIo2Dxe/IoFifo.h | 176 ------------------
22 files changed, 1751 insertions(+), 359 deletions(-)
rename {UefiCpuPkg/CpuIo2Dxe => MdePkg/Library/BaseIoLibIntrinsic}/Ia32/IoFifo.asm (94%)
rename {UefiCpuPkg/CpuIo2Dxe => MdePkg/Library/BaseIoLibIntrinsic}/Ia32/IoFifo.nasm (94%)
rename {UefiCpuPkg/CpuIo2Dxe => MdePkg/Library/BaseIoLibIntrinsic}/X64/IoFifo.asm (95%)
rename {UefiCpuPkg/CpuIo2Dxe => MdePkg/Library/BaseIoLibIntrinsic}/X64/IoFifo.nasm (95%)
delete mode 100644 OvmfPkg/Library/QemuFwCfgLib/Ia32/IoLibExAsm.nasm
delete mode 100644 OvmfPkg/Library/QemuFwCfgLib/X64/IoLibExAsm.nasm
delete mode 100644 UefiCpuPkg/CpuIo2Dxe/IoFifo.h
--
1.9.1
next reply other threads:[~2017-01-10 23:56 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-10 23:55 Leo Duran [this message]
2017-01-10 23:55 ` [PATCH 1/8] MdePkg: Expand BaseIoLibIntrinsic (IoLib class) library Leo Duran
2017-01-12 1:33 ` Fan, Jeff
2017-01-12 1:36 ` Duran, Leo
2017-01-10 23:55 ` [PATCH 2/8] MdePkg/DxeIoLibCpuIo2: Add new Fifo routines in IoLib class Leo Duran
2017-01-10 23:55 ` [PATCH 3/8] MdePkg/DxeIoLibEsal: " Leo Duran
2017-01-10 23:55 ` [PATCH 4/8] MdePkg/PeiIoLibCpuIo: " Leo Duran
2017-01-10 23:55 ` [PATCH 5/8] MdePkg/SmmIoLibSmmCpuIo2: " Leo Duran
2017-01-10 23:55 ` [PATCH 6/8] IntelFrameworkPkg/DxeIoLibCpuIo: " Leo Duran
2017-01-10 23:55 ` [PATCH 7/8] UefiCpuPkg: Modify CpuIo2Dxe to use new IoLib class library Leo Duran
2017-01-10 23:55 ` [PATCH 8/8] OvmfPkg: Modify QemuFwCfgLib " Leo Duran
2017-01-11 1:41 ` [PATCH 0/8] " Gao, Liming
2017-01-11 1:45 ` Fan, Jeff
2017-01-11 1:52 ` Gao, Liming
2017-01-11 3:37 ` Duran, Leo
2017-01-11 4:06 ` Gao, Liming
2017-01-11 16:29 ` Duran, Leo
2017-01-12 1:22 ` Gao, Liming
2017-01-12 1:34 ` Duran, Leo
2017-01-12 1:39 ` Gao, Liming
2017-01-12 1:51 ` Duran, Leo
2017-01-12 4:25 ` Gao, Liming
2017-01-12 17:13 ` Jordan Justen
2017-01-17 2:50 ` Gao, Liming
2017-01-12 0:25 ` Duran, Leo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1484092554-26224-1-git-send-email-leo.duran@amd.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox