public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/8] IoLib class library
@ 2017-01-10 23:55 Leo Duran
  2017-01-10 23:55 ` [PATCH 1/8] MdePkg: Expand BaseIoLibIntrinsic (IoLib class) library Leo Duran
                   ` (8 more replies)
  0 siblings, 9 replies; 25+ messages in thread
From: Leo Duran @ 2017-01-10 23:55 UTC (permalink / raw)
  To: edk2-devel
  Cc: liming.gao, michael.d.kinney, lersek, jordan.l.justen, jeff.fan,
	brijesh.singh, Leo Duran

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



^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2017-01-17  2:50 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-10 23:55 [PATCH 0/8] IoLib class library Leo Duran
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox