(&self, bar_index: u32, offset: u64)
| 182 | } |
| 183 | |
| 184 | fn table_accessed(&self, bar_index: u32, offset: u64) -> bool { |
| 185 | let table_offset: u64 = u64::from(self.cap.table_offset()); |
| 186 | let table_size: u64 = u64::from(self.cap.table_size()) * (MSIX_TABLE_ENTRY_SIZE as u64); |
| 187 | let table_bir: u32 = self.cap.table_bir(); |
| 188 | |
| 189 | bar_index == table_bir && offset >= table_offset && offset < table_offset + table_size |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | pub(crate) struct Interrupt { |
no test coverage detected