File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ impl MsixCapability {
39
39
}
40
40
}
41
41
42
+ pub fn get_enabled ( & self , access : impl ConfigRegionAccess ) -> bool {
43
+ let control = unsafe { access. read ( self . address . address , self . address . offset ) } ;
44
+ control. get_bit ( 31 )
45
+ }
46
+
42
47
/// Enable/disable masking of all interrupts for this PCI function.
43
48
///
44
49
/// Individual interrupt sources can be masked using mask field of the corresponding entry in
@@ -51,6 +56,11 @@ impl MsixCapability {
51
56
}
52
57
}
53
58
59
+ pub fn get_function_mask ( & self , access : impl ConfigRegionAccess ) -> bool {
60
+ let control = unsafe { access. read ( self . address . address , self . address . offset ) } ;
61
+ control. get_bit ( 30 )
62
+ }
63
+
54
64
/// The index of the BAR that contains the MSI-X table.
55
65
pub fn table_bar ( & self ) -> u8 {
56
66
self . table . get_bits ( 0 ..3 ) as u8
You can’t perform that action at this time.
0 commit comments