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)
Sun, Feb 8, 10:21 PM
Unknown Object (File)
Sat, Feb 7, 9:35 PM
Unknown Object (File)
Fri, Feb 6, 8:35 AM
Unknown Object (File)
Jan 17 2026, 3:20 AM
Unknown Object (File)
Dec 1 2025, 6:04 AM
Unknown Object (File)
Nov 30 2025, 2:37 PM
Unknown Object (File)
Nov 7 2025, 2:39 AM
Unknown Object (File)
Nov 6 2025, 12:57 AM
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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36070
Build 32959: arc lint + arc unit