opnsense-src/sys/dev/pci
Enji Cooper 6b41d9082e chore: replace {0, 0} with {DEV,KOBJ}METHOD_END
Both of the aforementioned macros have been present in FreeBSD
for well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for
`DEVMETHOD_END`.

Adapt all hardcoded references of `{0, 0}` with `DEVMETHOD_END`
and `KOBJMETHOD_END` as appropriate. This helps ensure that
future adaptations to drivers following patterns documented
in driver(9) can be made more easily/without issue.

MFC after:	1 week
Differential Revision:	 https://reviews.freebsd.org/D55414

MFC notes:
	All conflicts were dropped as they didn't apply to code in branch.

Conflicts:
	sys/dev/flash/w25n.c
	sys/dev/nvd/nvd.c
	sys/dev/nvme/nvme_sim.c
	sys/dev/sound/pci/hdsp-pcm.c
	sys/dev/sound/pci/hdsp.c
	sys/dev/ufshci/ufshci_pci.c

(cherry picked from commit 0fc6c3f731a2cca3120798806c330a3081c9424b)
2026-04-30 07:39:21 +02:00
..
controller sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
fixup_pci.c chore: replace {0, 0} with {DEV,KOBJ}METHOD_END 2026-04-30 07:39:21 +02:00
hostb_pci.c chore: replace {0, 0} with {DEV,KOBJ}METHOD_END 2026-04-30 07:39:21 +02:00
ignore_pci.c chore: replace {0, 0} with {DEV,KOBJ}METHOD_END 2026-04-30 07:39:21 +02:00
isa_pci.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pci.c pci: Add helper routines to manage PME in device drivers 2025-04-29 10:44:58 -04:00
pci_dw.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pci_dw.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_dw_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pci_dw_mv.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pci_host_generic.c pci_host_generic: Use SYS_RES_MEMORY for the parent of I/O resource ranges 2025-04-29 10:18:35 -04:00
pci_host_generic.h pci: avoid accidental clobbering of regs on some fdt platforms 2025-04-29 10:17:50 -04:00
pci_host_generic_acpi.c pci: avoid accidental clobbering of regs on some fdt platforms 2025-04-29 10:17:50 -04:00
pci_host_generic_acpi.h pci_host_generic:Add pcib_request_feature on ACPI 2025-04-01 10:43:57 -07:00
pci_host_generic_den0115.c sys: Use the new arm_smccc_invoke macros 2024-10-21 15:03:27 +00:00
pci_host_generic_fdt.c pci: avoid accidental clobbering of regs on some fdt platforms 2025-04-29 10:17:50 -04:00
pci_host_generic_fdt.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pci_iov.c pci: Consistently use pci_vf_* for suballocated VF memory resources 2025-02-27 08:09:23 -05:00
pci_iov.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_iov_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pci_iov_private.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
pci_iov_schema.c iovctl: allow vlan restrictions to be passed to the driver 2024-07-01 18:06:05 +02:00
pci_pci.c pcib: Clear any pending slot status events during attach 2025-04-29 10:46:40 -04:00
pci_private.h pci: Renove #ifdef PCI_IOV from declarations now used unconditionally 2025-02-27 08:09:24 -05:00
pci_subr.c sys: Set the type of allocated bus resources 2025-02-27 08:09:23 -05:00
pci_user.c pci_user.c: Cosmetic fixes 2024-12-27 10:29:23 -05:00
pcib_if.m sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
pcib_private.h pcib: Add helper routines for [de]activating PCI_RES_BUS resources 2025-02-27 08:09:19 -05:00
pcib_support.c sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
pcireg.h pci: Don't cache the count of MSI/MSI-X messages before allocation 2025-04-29 10:24:32 -04:00
pcivar.h pci: Add helper routines to manage PME in device drivers 2025-04-29 10:44:58 -04:00
schema_private.h sys: Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:11 -06:00
vga_pci.c chore: replace {0, 0} with {DEV,KOBJ}METHOD_END 2026-04-30 07:39:21 +02:00