summaryrefslogtreecommitdiff
path: root/drivers/virtio
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2018-10-15 12:21:16 +0300
committerSimon Glass <sjg@chromium.org>2018-11-14 20:16:27 +0300
commit3bf9a8e8460f69022c85f30860911067e4aebca3 (patch)
tree7eb6577c4cf2a185851f8a4e52bf2cf0780f2af1 /drivers/virtio
parent2895c4b7d65e1a65f7d8804126f91ee91e8e2481 (diff)
downloadu-boot-3bf9a8e8460f69022c85f30860911067e4aebca3.tar.xz
x86: Implement arch-specific io accessor routines
At present the generic io{read,write}{8,16,32} routines only support MMIO access. With architecture like x86 that has a separate IO space, these routines cannot be used to access I/O ports. Implement x86-specific version to support both PIO and MMIO access, so that drivers for multiple architectures can use these accessors without the need to know whether it's MMIO or PIO. These are ported from Linux kernel lib/iomap.c, with slight changes. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions