xref: /aosp_15_r20/external/crosvm/virtio_sys/src/lib.rs (revision bb4ee6a4ae7042d18b07a98463b9c8b875e44b39)
1 // Copyright 2017 The ChromiumOS Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 //! virtio bindings.
6 
7 #![allow(non_upper_case_globals)]
8 #![allow(non_camel_case_types)]
9 #![allow(non_snake_case)]
10 
11 #[cfg(any(target_os = "android", target_os = "linux"))]
12 pub mod vhost;
13 #[cfg(any(target_os = "android", target_os = "linux"))]
14 pub mod vhost_ioctl;
15 pub mod virtio_config;
16 pub mod virtio_fs;
17 pub mod virtio_ids;
18 pub mod virtio_mmio;
19 pub mod virtio_net;
20 pub mod virtio_ring;
21 pub mod virtio_scsi;
22 pub mod virtio_vsock;
23 
24 #[cfg(any(target_os = "android", target_os = "linux"))]
25 pub use crate::vhost_ioctl::*;
26 pub use crate::virtio_mmio::*;
27