浏览代码

Move constants together.

Andrew Walbran 2 年之前
父节点
当前提交
d1b76bd4c7
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/transport/mmio.rs

+ 1 - 2
src/transport/mmio.rs

@@ -2,6 +2,7 @@ use super::{DeviceStatus, DeviceType, Transport};
 use volatile::{ReadOnly, Volatile, WriteOnly};
 use volatile::{ReadOnly, Volatile, WriteOnly};
 
 
 const MAGIC_VALUE: u32 = 0x7472_6976;
 const MAGIC_VALUE: u32 = 0x7472_6976;
+const CONFIG_SPACE_OFFSET: usize = 0x100;
 
 
 /// MMIO Device Legacy Register Interface.
 /// MMIO Device Legacy Register Interface.
 ///
 ///
@@ -272,5 +273,3 @@ impl Transport for VirtIOHeader {
         }
         }
     }
     }
 }
 }
-
-const CONFIG_SPACE_OFFSET: usize = 0x100;