git: 7cafe75c8c52 - main - pci: Make generic_pcie_read_ivar non static
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Dec 2024 18:19:03 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=7cafe75c8c52deffcb3e64200eb4187a52cf202d commit 7cafe75c8c52deffcb3e64200eb4187a52cf202d Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2024-12-12 16:30:16 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2024-12-12 18:00:23 +0000 pci: Make generic_pcie_read_ivar non static Allow this to be called from attachments to allow more ivars to be implemented. Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D48046 --- sys/dev/pci/pci_host_generic.c | 4 +--- sys/dev/pci/pci_host_generic.h | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/pci_host_generic.c b/sys/dev/pci/pci_host_generic.c index e9a9e99b4b17..373a54a25a4d 100644 --- a/sys/dev/pci/pci_host_generic.c +++ b/sys/dev/pci/pci_host_generic.c @@ -67,8 +67,6 @@ static uint32_t generic_pcie_read_config(device_t dev, u_int bus, u_int slot, static void generic_pcie_write_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, uint32_t val, int bytes); static int generic_pcie_maxslots(device_t dev); -static int generic_pcie_read_ivar(device_t dev, device_t child, int index, - uintptr_t *result); static int generic_pcie_write_ivar(device_t dev, device_t child, int index, uintptr_t value); @@ -362,7 +360,7 @@ generic_pcie_maxslots(device_t dev) return (31); /* max slots per bus acc. to standard */ } -static int +int generic_pcie_read_ivar(device_t dev, device_t child, int index, uintptr_t *result) { diff --git a/sys/dev/pci/pci_host_generic.h b/sys/dev/pci/pci_host_generic.h index 688345e92db5..7aa8852fd30a 100644 --- a/sys/dev/pci/pci_host_generic.h +++ b/sys/dev/pci/pci_host_generic.h @@ -97,5 +97,6 @@ struct resource *pci_host_generic_core_alloc_resource(device_t, device_t, int, int *, rman_res_t, rman_res_t, rman_res_t, u_int); int pci_host_generic_core_release_resource(device_t, device_t, struct resource *); +int generic_pcie_read_ivar(device_t, device_t, int, uintptr_t *); #endif /* __PCI_HOST_GENERIC_H_ */