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, Aug 30, 2:09 PM
Unknown Object (File)
Wed, Aug 26, 3:00 PM
Unknown Object (File)
Sat, Aug 22, 5:56 PM
Unknown Object (File)
Fri, Aug 21, 1:25 PM
Unknown Object (File)
Wed, Aug 19, 7:39 AM
Unknown Object (File)
Wed, Aug 19, 12:12 AM
Unknown Object (File)
Tue, Aug 18, 11:57 PM
Unknown Object (File)
Sun, Aug 16, 3:51 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