File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ impl<T: ConfigRegionAccess> PciDevice<T> {
137
137
/// no_cache determines if we set the `Cache Disable` flag in the page-table-entry.
138
138
/// Returns (virtual-pointer, size) if successful, else None (if bar non-existent or IOSpace)
139
139
pub fn memory_map_bar ( & self , index : u8 , no_cache : bool ) -> Option < ( VirtAddr , usize ) > {
140
- let ( address, size, prefetchable, width ) = match self . get_bar ( index) {
140
+ let ( address, size, prefetchable, _width ) = match self . get_bar ( index) {
141
141
Some ( Bar :: Io { .. } ) => {
142
142
warn ! ( "Cannot map IOBar!" ) ;
143
143
return None ;
@@ -168,10 +168,6 @@ impl<T: ConfigRegionAccess> PciDevice<T> {
168
168
169
169
debug ! ( "Mapping bar {index} at {address:#x} with length {size:#x}" ) ;
170
170
171
- if width != 64 {
172
- warn ! ( "Currently only mapping of 64 bit bars is supported!" ) ;
173
- return None ;
174
- }
175
171
if !prefetchable {
176
172
warn ! ( "Currently only mapping of prefetchable bars is supported!" ) ;
177
173
}
You can’t perform that action at this time.
0 commit comments