From e8c7e461e43e96f7cf8b121d20d83dc6d8997f91 Mon Sep 17 00:00:00 2001 From: Niclas Zeising Date: Sat, 15 Jun 2019 11:02:07 +0200 Subject: freebsd_pci: format freebsd_pci_methods Format freebsd_pci_methods a bit, adding some whitespace and assigning NULL to methods not implemented. This makes it easier to see the names of various methods, as well as which methods are not implemented. Idea from src/linux_sysfs.c Signed-off-by: Niclas Zeising --- src/freebsd_pci.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/freebsd_pci.c b/src/freebsd_pci.c index dc67895..06f2d28 100644 --- a/src/freebsd_pci.c +++ b/src/freebsd_pci.c @@ -770,10 +770,15 @@ static const struct pci_system_methods freebsd_pci_methods = { .probe = pci_device_freebsd_probe, .map_range = pci_device_freebsd_map_range, .unmap_range = pci_device_freebsd_unmap_range, + .read = pci_device_freebsd_read, .write = pci_device_freebsd_write, + .fill_capabilities = pci_fill_capabilities_generic, + .enable = NULL, + .boot_vga = NULL, .has_kernel_driver = pci_device_freebsd_has_kernel_driver, + .open_device_io = pci_device_freebsd_open_io, .open_legacy_io = pci_device_freebsd_open_legacy_io, .close_io = pci_device_freebsd_close_io, @@ -783,6 +788,7 @@ static const struct pci_system_methods freebsd_pci_methods = { .write32 = pci_device_freebsd_write32, .write16 = pci_device_freebsd_write16, .write8 = pci_device_freebsd_write8, + .map_legacy = pci_device_freebsd_map_legacy, .unmap_legacy = pci_device_freebsd_unmap_legacy, }; -- cgit v1.2.3