(msg_ctl: u16)
| 29 | const MSI_MSG_ADDR_LO_MASK: u32 = 0xffff_fffc; |
| 30 | |
| 31 | pub fn msi_num_enabled_vectors(msg_ctl: u16) -> usize { |
| 32 | let field = (msg_ctl >> 4) & 0x7; |
| 33 | |
| 34 | if field > 5 { |
| 35 | return 0; |
| 36 | } |
| 37 | |
| 38 | 1 << field |
| 39 | } |
| 40 | |
| 41 | #[derive(Error, Debug)] |
| 42 | pub enum Error { |
no outgoing calls
no test coverage detected