1 //! Common part shared across all the devices. 2 3 use bitflags::bitflags; 4 5 bitflags! { 6 pub(crate) struct Feature: u64 { 7 // device independent 8 const NOTIFY_ON_EMPTY = 1 << 24; // legacy 9 const ANY_LAYOUT = 1 << 27; // legacy 10 const RING_INDIRECT_DESC = 1 << 28; 11 const RING_EVENT_IDX = 1 << 29; 12 const UNUSED = 1 << 30; // legacy 13 const VERSION_1 = 1 << 32; // detect legacy 14 15 // since virtio v1.1 16 const ACCESS_PLATFORM = 1 << 33; 17 const RING_PACKED = 1 << 34; 18 const IN_ORDER = 1 << 35; 19 const ORDER_PLATFORM = 1 << 36; 20 const SR_IOV = 1 << 37; 21 const NOTIFICATION_DATA = 1 << 38; 22 } 23 } 24