| 20 | /// into its allocated portion of address space. |
| 21 | #[allow(unused_variables)] |
| 22 | pub trait BusDevice: Send { |
| 23 | /// Reads at `offset` from this device |
| 24 | fn read(&mut self, base: u64, offset: u64, data: &mut [u8]) {} |
| 25 | /// Writes at `offset` into this device |
| 26 | fn write(&mut self, base: u64, offset: u64, data: &[u8]) -> Option<Arc<Barrier>> { |
| 27 | None |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | #[allow(unused_variables)] |
| 32 | pub trait BusDeviceSync: Send + Sync { |
nothing calls this directly
no outgoing calls
no test coverage detected