-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The default bindings are generated from the 5.0.0 Linux userspace API. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
- Loading branch information
Samuel Ortiz
committed
Jul 24, 2019
1 parent
4e48309
commit 5372554
Showing
4 changed files
with
2,295 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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::*; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#![allow(clippy::all)] | ||
#![allow(non_upper_case_globals)] | ||
#![allow(non_camel_case_types)] | ||
#![allow(non_snake_case)] | ||
|
||
pub mod vfio; |
Oops, something went wrong.