mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
vfio-bindings: Initial commit
The default bindings are generated from the 5.0.0 Linux userspace API. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
4e48309660
commit
5372554ed4
12
vfio-bindings/Cargo.toml
Normal file
12
vfio-bindings/Cargo.toml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[package]
|
||||||
|
name = "vfio-bindings"
|
||||||
|
version = "0.0.1"
|
||||||
|
authors = ["The Cloud Hypervisor Authors"]
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
vmm-sys-util = { git = "https://github.com/rust-vmm/vmm-sys-util" }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["v5_0_0"]
|
||||||
|
v5_0_0 = []
|
16
vfio-bindings/src/lib.rs
Normal file
16
vfio-bindings/src/lib.rs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
// Copyright 2017 The Chromium OS Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
|
// found in the LICENSE-BSD-3-Clause file.
|
||||||
|
|
||||||
|
#![allow(non_upper_case_globals)]
|
||||||
|
#![allow(non_camel_case_types)]
|
||||||
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
|
// generated with bindgen linux/uapi/linux/vfio.h --constified-enum '*' --with-derive-default
|
||||||
|
#[cfg(feature = "v5_0_0")]
|
||||||
|
mod v5_0_0;
|
||||||
|
|
||||||
|
pub mod bindings {
|
||||||
|
#[cfg(feature = "v5_0_0")]
|
||||||
|
pub use super::v5_0_0::*;
|
||||||
|
}
|
6
vfio-bindings/src/v5_0_0/mod.rs
Normal file
6
vfio-bindings/src/v5_0_0/mod.rs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#![allow(clippy::all)]
|
||||||
|
#![allow(non_upper_case_globals)]
|
||||||
|
#![allow(non_camel_case_types)]
|
||||||
|
#![allow(non_snake_case)]
|
||||||
|
|
||||||
|
pub mod vfio;
|
2261
vfio-bindings/src/v5_0_0/vfio.rs
Normal file
2261
vfio-bindings/src/v5_0_0/vfio.rs
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user