File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " pci_types"
3- version = " 0.7 .0"
3+ version = " 0.8 .0"
44authors = [" Isaac Woods" ]
55repository = " https://github.com/rust-osdev/pci_types"
66description = " Library with types for handling PCI devices"
Original file line number Diff line number Diff line change @@ -78,16 +78,16 @@ pub trait ConfigRegionAccess {
7878 fn function_exists ( & self , address : PciAddress ) -> bool ;
7979
8080 /// Performs a PCI read at `address` with `offset`.
81- ///
81+ ///
8282 /// # Safety
83- ///
83+ ///
8484 /// `address` and `offset` must be valid for PCI reads.
8585 unsafe fn read ( & self , address : PciAddress , offset : u16 ) -> u32 ;
8686
8787 /// Performs a PCI write at `address` with `offset`.
88- ///
88+ ///
8989 /// # Safety
90- ///
90+ ///
9191 /// `address` and `offset` must be valid for PCI writes.
9292 unsafe fn write ( & self , address : PciAddress , offset : u16 , value : u32 ) ;
9393}
@@ -388,9 +388,9 @@ impl EndpointHeader {
388388 }
389389
390390 /// Write to a BAR, setting the address for a device to use.
391- ///
391+ ///
392392 /// # Safety
393- ///
393+ ///
394394 /// The supplied value must be a valid BAR value (refer to the PCIe specification for
395395 /// requirements) and must be of the correct size (i.e. no larger than `u32::MAX` for 32-bit
396396 /// 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