Browse Source

Move constants together.

Andrew Walbran 2 years ago
parent
commit
d1b76bd4c7
1 changed files with 1 additions and 2 deletions
  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};
 
 const MAGIC_VALUE: u32 = 0x7472_6976;
+const CONFIG_SPACE_OFFSET: usize = 0x100;
 
 /// MMIO Device Legacy Register Interface.
 ///
@@ -272,5 +273,3 @@ impl Transport for VirtIOHeader {
         }
     }
 }
-
-const CONFIG_SPACE_OFFSET: usize = 0x100;