File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
pci/pci_core/src/capabilities
storage/nvme_test/src/tests Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl PciExpressState {
36
36
}
37
37
38
38
#[ derive( Inspect ) ]
39
- /// PCI Express capability with Function Level Reset support .
39
+ /// Configurable PCI Express capability.
40
40
pub struct PciExpressCapability {
41
41
device_capabilities : pci_express:: DeviceCapabilities ,
42
42
state : Arc < Mutex < PciExpressState > > ,
@@ -97,7 +97,7 @@ impl PciCapability for PciExpressCapability {
97
97
// PCIe Capabilities Register (16 bits) + Next Pointer (8 bits) + Capability ID (8 bits)
98
98
// For basic endpoint: Version=2, Device/Port Type=0 (PCI Express Endpoint)
99
99
let pcie_caps: u16 = 0x0002 ; // Version 2, Device/Port Type 0
100
- ( pcie_caps as u32 ) << 16 | ( 0x00 << 8 ) | CapabilityId :: PCI_EXPRESS . 0 as u32
100
+ ( pcie_caps as u32 ) << 16 | CapabilityId :: PCI_EXPRESS . 0 as u32
101
101
}
102
102
PciExpressCapabilityHeader :: DEVICE_CAPS => self . device_capabilities . into_bits ( ) ,
103
103
PciExpressCapabilityHeader :: DEVICE_CTL_STS => {
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ use pal_async::DefaultDriver;
26
26
use pal_async:: async_test;
27
27
use pci_core:: msi:: MsiInterruptSet ;
28
28
use pci_core:: test_helpers:: TestPciInterruptController ;
29
- use std:: sync:: Arc ;
30
29
use user_driver:: backoff:: Backoff ;
31
30
use vmcore:: vm_task:: SingleDriverBackend ;
32
31
use vmcore:: vm_task:: VmTaskDriverSource ;
You can’t perform that action at this time.
0 commit comments