Page MenuHomeFreeBSD

virtio: Reduce boilerplate for device driver module definitions
ClosedPublic

Authored by jrtc27 on Jan 9 2021, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 24, 7:44 AM
Unknown Object (File)
Mon, Apr 21, 8:37 AM
Unknown Object (File)
Wed, Apr 16, 7:19 AM
Unknown Object (File)
Mon, Apr 14, 1:29 AM
Unknown Object (File)
Mar 20 2025, 10:15 PM
Unknown Object (File)
Mar 18 2025, 11:04 PM
Unknown Object (File)
Mar 13 2025, 10:41 AM
Unknown Object (File)
Mar 12 2025, 12:50 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable