(&self, offset: u64)
| 216 | } |
| 217 | |
| 218 | fn accessed(&self, offset: u64) -> Option<(PciCapabilityId, u64)> { |
| 219 | if let Some(msi) = &self.msi |
| 220 | && offset >= u64::from(msi.cap_offset) |
| 221 | && offset < u64::from(msi.cap_offset) + msi.cfg.size() |
| 222 | { |
| 223 | return Some(( |
| 224 | PciCapabilityId::MessageSignalledInterrupts, |
| 225 | u64::from(msi.cap_offset), |
| 226 | )); |
| 227 | } |
| 228 | |
| 229 | if let Some(msix) = &self.msix |
| 230 | && offset == u64::from(msix.cap_offset) |
| 231 | { |
| 232 | return Some((PciCapabilityId::MsiX, u64::from(msix.cap_offset))); |
| 233 | } |
| 234 | |
| 235 | None |
| 236 | } |
| 237 | |
| 238 | fn msix_table_accessed(&self, bar_index: u32, offset: u64) -> bool { |
| 239 | if let Some(msix) = &self.msix { |
no test coverage detected