HomeFreeBSD

LinuxKPI: pci: implement pcim_iomap()

Description

LinuxKPI: pci: implement pcim_iomap()

Like pci_iomap() add the devres version pcim_iomap() using the former
to get the resource.

Add a helper function to validate that the bar is within a valid range
and sprinkle that check also to other related functions.

Sponsored by: The FreeBSD Foundation (intially)
MFC after: 3 days
Reviewed by: dumbbell
Differential Revision: https://reviews.freebsd.org/D52067

Details

Provenance
bzAuthored on Jul 31 2025, 5:45 PM
Reviewer
dumbbell
Differential Revision
D52067: LinuxKPI: pci: implement pcim_iomap()
Parents
rG910cf345d0ee: LinuxKPI: pci: implement for_each_pci_dev() and improve pci_get_device()
Branches
Unknown
Tags
Unknown