Skip to content

Commit 467c8ec

Browse files
Erik Schillingandreeaflorescu
Erik Schilling
authored andcommitted
virtio-bindings: add scsi bindings
We plan to add scsi support to vhost-device. Signed-off-by: Erik Schilling <[email protected]>
1 parent 9929fdb commit 467c8ec

File tree

4 files changed

+716
-3
lines changed

4 files changed

+716
-3
lines changed

crates/virtio-bindings/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Upcoming Release
22

33
- Regenerate bindings with Linux 6.2.
4+
- Added bindings for virtio_scsi.h
45

56
# v0.2.0
67

crates/virtio-bindings/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ git checkout v5.0
3131
# Step 2: Generate the bindings from the kernel headers. We need to
3232
# generate a file for each one of the virtio headers we're interested on.
3333
# For the moment, we're generating "virtio_blk", "virtio_gpu", "virtio_mmio",
34-
# "virtio_net" and "virtio_ring". Feel free to add additional header files if
34+
# "virtio_net", "virtio_ring" and "virtio_scsi". Feel free to add additional header files if
3535
# you need them for your project.
3636
make headers_install INSTALL_HDR_PATH=v5_0_headers
3737
cd v5_0_headers
38-
for i in virtio_blk virtio_config virtio_gpu virtio_mmio virtio_net virtio_ring ; do \
38+
for i in virtio_blk virtio_config virtio_gpu virtio_mmio virtio_net virtio_ring virtio_scsi ; do \
3939
bindgen include/linux/$i.h -o $i.rs \
4040
--allowlist-file include/linux/$i.h \
4141
--with-derive-default \

crates/virtio-bindings/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ pub mod virtio_gpu;
1313
pub mod virtio_mmio;
1414
pub mod virtio_net;
1515
pub mod virtio_ring;
16+
pub mod virtio_scsi;
1617

1718
pub mod bindings {
18-
pub use super::{virtio_blk, virtio_config, virtio_mmio, virtio_net, virtio_ring};
19+
pub use super::{virtio_blk, virtio_config, virtio_mmio, virtio_net, virtio_ring, virtio_scsi};
1920
}

0 commit comments

Comments
 (0)