HomeFreeBSD

pci: Cosmetic cleanups to MSI/MSI-X routines

Description

pci: Cosmetic cleanups to MSI/MSI-X routines

  • Use unsigned integers for various variables. The count argument to the alloc method as well as the IRQ values used with the pcib_if.m methods should also be unsigned eventually.
  • Use mallocarray to allocate arrays
  • Use bool in a few places

Reviewed by: Krzysztof Galazka <krzysztof.galazka@intel.com>
Differential Revision: https://reviews.freebsd.org/D48889

(cherry picked from commit a3835cceb0882494628d5d075f99a86bd3464672)

Details

Provenance
jhbAuthored on Feb 11 2025, 2:11 PM
Differential Revision
D48889: pci: Cosmetic cleanups to MSI/MSI-X routines
Parents
rGcbaa32c28a05: pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges
Branches
Unknown
Tags
Unknown