]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Move pci_request_region and _lkpi_pci_iomap into .c
authorWarner Losh <imp@FreeBSD.org>
Tue, 5 Apr 2022 05:06:14 +0000 (23:06 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 5 Apr 2022 14:40:11 +0000 (08:40 -0600)
commit4859994c42950600b57e9d2259bd027562eefbe3
treea756f425fe4021decde44af4365f2037c8b39915
parent2cd55de380d3d6f02c9b40ea53a319b477268f1c
linuxkpi: Move pci_request_region and _lkpi_pci_iomap into .c

Both pci_request_region and _lkpi_pci_iomap encode the size of struct
pci_mmio_region into their code. Move from .h to .c files to move that
knowledge from the client drivers into the linuxkpi module.

Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34773

(cherry picked from commit 1cdb25340f8ee5dd145b0dc370cbab1bd7bdca65)
sys/compat/linuxkpi/common/include/linux/pci.h
sys/compat/linuxkpi/common/src/linux_pci.c