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)
Tue, Mar 4, 6:57 PM
Unknown Object (File)
Tue, Feb 25, 7:24 PM
Unknown Object (File)
Sat, Feb 15, 12:51 PM
Unknown Object (File)
Feb 2 2025, 11:13 PM
Unknown Object (File)
Jan 17 2025, 9:45 PM
Unknown Object (File)
Jan 15 2025, 2:05 PM
Unknown Object (File)
Jan 15 2025, 1:56 PM
Unknown Object (File)
Jan 15 2025, 10:27 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable