]> mj.ucw.cz Git - pciutils.git/commit
libpci: Move physical memory mapping mmap() code from ecam/mmio-ports to physmem...
authorPali Rohár <pali@kernel.org>
Mon, 8 May 2023 19:15:07 +0000 (21:15 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Feb 2024 15:18:43 +0000 (16:18 +0100)
commit7d347ab73a39d37bb3134b8a1c7970030a19e009
tree891786ca1320dd18b1c1262e0c65a2bc8f8b90a0
parent370be0ded3a0aaa0fff48c9e2e467ed477bc5745
libpci: Move physical memory mapping mmap() code from ecam/mmio-ports to physmem-posix.c file

This deduplicates physical memory mapping mmap() code found in ecam and
mmio-ports backends into common functions with new physmem API.

This new physmem API allows to implement also non-mmap() variants of
physical memory mapping.
lib/Makefile
lib/ecam.c
lib/mmio-ports.c
lib/physmem-access.h [new file with mode: 0644]
lib/physmem-posix.c [new file with mode: 0644]
lib/physmem.h [new file with mode: 0644]