summaryrefslogtreecommitdiff
path: root/src/openbsd_pci.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2024-03-30 11:25:14 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2024-03-30 11:25:14 +0100
commit61a255c1c55561eed48ad19ea5f40425766e88cc (patch)
tree1689ea08a594593a2b4817f31225b1efcd9300c4 /src/openbsd_pci.c
parent1161c6d8665a55e80ab247c4f0da09b5765825d1 (diff)
use C99 initializers for struct pci_system_methods
Diffstat (limited to 'src/openbsd_pci.c')
-rw-r--r--src/openbsd_pci.c41
1 files changed, 18 insertions, 23 deletions
diff --git a/src/openbsd_pci.c b/src/openbsd_pci.c
index 1ca98de..daf9118 100644
--- a/src/openbsd_pci.c
+++ b/src/openbsd_pci.c
@@ -594,29 +594,24 @@ pci_device_openbsd_unmap_legacy(struct pci_device *dev, void *addr,
}
static const struct pci_system_methods openbsd_pci_methods = {
- pci_system_openbsd_destroy,
- NULL,
- pci_device_openbsd_read_rom,
- pci_device_openbsd_probe,
- pci_device_openbsd_map_range,
- pci_device_openbsd_unmap_range,
- pci_device_openbsd_read,
- pci_device_openbsd_write,
- pci_fill_capabilities_generic,
- NULL,
- pci_device_openbsd_boot_vga,
- NULL,
- NULL,
- pci_device_openbsd_open_legacy_io,
- NULL,
- pci_device_openbsd_read32,
- pci_device_openbsd_read16,
- pci_device_openbsd_read8,
- pci_device_openbsd_write32,
- pci_device_openbsd_write16,
- pci_device_openbsd_write8,
- pci_device_openbsd_map_legacy,
- pci_device_openbsd_unmap_legacy
+ .destroy = pci_system_openbsd_destroy,
+ .read_rom = pci_device_openbsd_read_rom,
+ .probe = pci_device_openbsd_probe,
+ .map_range = pci_device_openbsd_map_range,
+ .unmap_range = pci_device_openbsd_unmap_range,
+ .read = pci_device_openbsd_read,
+ .write = pci_device_openbsd_write,
+ .fill_capabilities = pci_fill_capabilities_generic,
+ .boot_vga = pci_device_openbsd_boot_vga,
+ .open_legacy_io = pci_device_openbsd_open_legacy_io,
+ .read32 = pci_device_openbsd_read32,
+ .read16 = pci_device_openbsd_read16,
+ .read8 = pci_device_openbsd_read8,
+ .write32 = pci_device_openbsd_write32,
+ .write16 = pci_device_openbsd_write16,
+ .write8 = pci_device_openbsd_write8,
+ .map_legacy = pci_device_openbsd_map_legacy,
+ .unmap_legacy = pci_device_openbsd_unmap_legacy
};
int