HomeFreeBSD

virtio: Reduce boilerplate for device driver module definitions

Description

virtio: Reduce boilerplate for device driver module definitions

Rather than have every device register itself for both virtio_pci and
virtio_mmio, provide a VIRTIO_DRIVER_MODULE wrapper to declare both,
merge VIRTIO_SIMPLE_PNPTABLE with VIRTIO_SIMPLE_PNPINFO and make the
latter register for both buses. This also has the benefit of abstracting
away the available transports and their names.

Reviewed by: bryanv
Differential Revision: https://reviews.freebsd.org/D28073

Details

Provenance
jrtc27Authored on Jan 21 2021, 1:07 AM
Reviewer
bryanv
Differential Revision
D28073: virtio: Reduce boilerplate for device driver module definitions
Parents
rGbe79a2c60fec: virtio_mmio: Fix V1 device probing spec conformance (section 4.2.3.1.1)
Branches
Unknown
Tags
Unknown