summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@daemonic.se>2019-06-15 11:02:07 +0200
committerNiclas Zeising <zeising@daemonic.se>2019-07-10 18:56:58 +0200
commite8c7e461e43e96f7cf8b121d20d83dc6d8997f91 (patch)
tree2b1caaa35a57f4217b556605ffa0aa7b26f8bc3a /src
parentb40f387048a5c7b280d0c83d3af9d34ceca7f4f8 (diff)
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 <zeising@daemonic.se>
Diffstat (limited to 'src')
-rw-r--r--src/freebsd_pci.c6
1 files changed, 6 insertions, 0 deletions
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,
};