File tree Expand file tree Collapse file tree
pci/pci_core/src/capabilities
storage/nvme_test/src/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ impl PciExpressState {
3636}
3737
3838#[ derive( Inspect ) ]
39- /// PCI Express capability with Function Level Reset support .
39+ /// Configurable PCI Express capability.
4040pub struct PciExpressCapability {
4141 device_capabilities : pci_express:: DeviceCapabilities ,
4242 state : Arc < Mutex < PciExpressState > > ,
@@ -97,7 +97,7 @@ impl PciCapability for PciExpressCapability {
9797 // PCIe Capabilities Register (16 bits) + Next Pointer (8 bits) + Capability ID (8 bits)
9898 // For basic endpoint: Version=2, Device/Port Type=0 (PCI Express Endpoint)
9999 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
101101 }
102102 PciExpressCapabilityHeader :: DEVICE_CAPS => self . device_capabilities . into_bits ( ) ,
103103 PciExpressCapabilityHeader :: DEVICE_CTL_STS => {
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ use pal_async::DefaultDriver;
2626use pal_async:: async_test;
2727use pci_core:: msi:: MsiInterruptSet ;
2828use pci_core:: test_helpers:: TestPciInterruptController ;
29- use std:: sync:: Arc ;
3029use user_driver:: backoff:: Backoff ;
3130use vmcore:: vm_task:: SingleDriverBackend ;
3231use vmcore:: vm_task:: VmTaskDriverSource ;
You can’t perform that action at this time.
0 commit comments