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)
Dec 22 2023, 11:07 PM
Unknown Object (File)
Dec 20 2023, 9:23 PM
Unknown Object (File)
Oct 24 2023, 10:14 PM
Unknown Object (File)
Oct 20 2023, 11:46 AM
Unknown Object (File)
Sep 30 2023, 5:50 AM
Unknown Object (File)
Jul 10 2023, 11:16 PM
Unknown Object (File)
Jun 11 2023, 7:38 PM
Unknown Object (File)
May 18 2023, 7:45 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