]> xenbits.xensource.com Git - xen.git/commit
xen/io: provide helpers for multi size MMIO accesses
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 10 Apr 2025 07:26:08 +0000 (09:26 +0200)
committerRoger Pau Monne <roger.pau@citrix.com>
Tue, 29 Apr 2025 12:49:54 +0000 (14:49 +0200)
commiteb627dd6ea58344351e8b31d32866ae5cb127055
treed3ebf96e70c93b4075d2680dd781948a9e77c82f
parent48c9e67594496e1ab030c17b6bc136afe9f48e7f
xen/io: provide helpers for multi size MMIO accesses

Several handlers have the same necessity of reading or writing from or to
an MMIO region using 1, 2, 4 or 8 bytes accesses.  So far this has been
open-coded in the function itself.  Instead provide a new set of handlers
that encapsulate the accesses.

Since the added helpers are not architecture specific, introduce a new
generic io.h header.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmsi.c
xen/arch/x86/mm.c
xen/drivers/vpci/msix.c
xen/include/xen/io.h [new file with mode: 0644]