File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " pci_types"
3
- version = " 0.7 .0"
3
+ version = " 0.8 .0"
4
4
authors = [" Isaac Woods" ]
5
5
repository = " https://github.com/rust-osdev/pci_types"
6
6
description = " Library with types for handling PCI devices"
Original file line number Diff line number Diff line change @@ -78,16 +78,16 @@ pub trait ConfigRegionAccess {
78
78
fn function_exists ( & self , address : PciAddress ) -> bool ;
79
79
80
80
/// Performs a PCI read at `address` with `offset`.
81
- ///
81
+ ///
82
82
/// # Safety
83
- ///
83
+ ///
84
84
/// `address` and `offset` must be valid for PCI reads.
85
85
unsafe fn read ( & self , address : PciAddress , offset : u16 ) -> u32 ;
86
86
87
87
/// Performs a PCI write at `address` with `offset`.
88
- ///
88
+ ///
89
89
/// # Safety
90
- ///
90
+ ///
91
91
/// `address` and `offset` must be valid for PCI writes.
92
92
unsafe fn write ( & self , address : PciAddress , offset : u16 , value : u32 ) ;
93
93
}
@@ -388,9 +388,9 @@ impl EndpointHeader {
388
388
}
389
389
390
390
/// Write to a BAR, setting the address for a device to use.
391
- ///
391
+ ///
392
392
/// # Safety
393
- ///
393
+ ///
394
394
/// The supplied value must be a valid BAR value (refer to the PCIe specification for
395
395
/// requirements) and must be of the correct size (i.e. no larger than `u32::MAX` for 32-bit
396
396
/// BARs). In the case of a 64-bit BAR, the supplied slot should be the first slot of the pair.
You can’t perform that action at this time.
0 commit comments