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
F170461382: D28073.id.diff
Fri, Sep 4, 10:43 PM
F170445648: D28073.id82667.diff
Fri, Sep 4, 9:03 PM
Unknown Object (File)
Fri, Sep 4, 7:10 AM
Unknown Object (File)
Thu, Sep 3, 11:40 PM
Unknown Object (File)
Thu, Sep 3, 10:24 PM
Unknown Object (File)
Wed, Sep 2, 5:15 PM
Unknown Object (File)
Wed, Sep 2, 2:49 PM
Unknown Object (File)
Sun, Aug 30, 2:09 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36070
Build 32959: arc lint + arc unit