]> 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>
Wed, 6 Apr 2022 17:45:34 +0000 (11:45 -0600)
commit20f0a3ac5be415581e449335576c40090cac76cb
treeb8c6cb147f1091f9535cad862ca2015607b32e07
parent43b329596f19d97375ce3b7cb8ebbd191fea821a
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.

Approved by: re@ (gjb)
Sponsored by: Netflix
Reviewed by: hselasky
Differential Revision: https://reviews.freebsd.org/D34773

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