Commit Graph

1052 Commits

Author SHA1 Message Date
bjorn3 386a63df42 pcid: Replace get_capabilities with get_vendor_capabilities
While this stops returning raw MSI/MSI-X capabilities from
get_capabilities, the same info can be obtained using
fetch_all_features and feature_info.
2024-06-14 11:12:06 +02:00
Jeremy Soller 8f98e28e97 Merge branch 'fix_virtio_blkd_empty_disk' into 'master'
virtio-blkd: Do not crash when the disk is empty

See merge request redox-os/drivers!164
2024-06-13 22:44:59 +00:00
Jeremy Soller b26b1e7b7f Merge branch 'pcid_cleanup5' into 'master'
Remove PciFunc

See merge request redox-os/drivers!163
2024-06-13 22:40:43 +00:00
bjorn3 47ce36741e virtio-blkd: Avoid crash on ls /scheme 2024-06-13 21:47:22 +02:00
bjorn3 32bcf25f99 virtio-blkd: Do not crash when the disk is empty 2024-06-13 21:33:11 +02:00
bjorn3 d2084e58cb pcid: Remove PciFunc 2024-06-13 15:06:49 +02:00
bjorn3 d3dc2e0f80 pcid: Remove all PciFunc methods 2024-06-13 14:52:02 +02:00
Jeremy Soller b13b7c8e7c ided: detect when controller is DMA capable 2024-06-12 07:57:54 -06:00
Jeremy Soller 75a9a3b48a Merge branch 'minor_changes' into 'master'
Couple of minor changes

See merge request redox-os/drivers!162
2024-06-11 19:17:15 +00:00
bjorn3 f6a709ee5a pcid: Simplify PciFunc::read_range
This also avoids UB caused by creating a slice of uninitialized u8.
2024-06-11 21:05:25 +02:00
bjorn3 dc33cba4c0 Fix typo 2024-06-11 21:05:09 +02:00
Jeremy Soller 8e67869b96 Merge branch 'pcid_cleanup4' into 'master'
Store decoded MSI info instead of full capability in PciFeatureInfo

See merge request redox-os/drivers!161
2024-06-11 18:09:54 +00:00
bjorn3 8e02a87474 pcid: Reduce visibility of MsiCapability and MsixCapability methods 2024-06-11 16:57:58 +02:00
bjorn3 4f583b1cfb Store decoded MSI info instead of full capability in PciFeatureInfo 2024-06-11 16:48:43 +02:00
Jeremy Soller 7a67110109 Merge branch 'pcid_cleanup3' into 'master'
Simplify and refactor handling of MSI/MSI-X

See merge request redox-os/drivers!160
2024-06-10 20:27:54 +00:00
bjorn3 df66633111 pcid: Store decoded MsixInfo instead of full capability in PciFeatureInfo 2024-06-10 21:00:07 +02:00
bjorn3 7c112c34dd pcid: Remove some unused methods on MsixCapability 2024-06-10 19:44:12 +02:00
bjorn3 15c9ad1ba6 pcid: Ensure MSI and MSI-X are not enabled at the same time 2024-06-10 19:44:12 +02:00
bjorn3 588bbfe6a3 pcid: Stop returning feature enable status from fetch_all_features
For the same reason the feature_status method was removed.
2024-06-10 19:44:12 +02:00
bjorn3 e14e56349f pcid: Remove method to get the current feature status
Devices should never change the feature status behind the back of the
driver, so storing the current status after setting it is fine. Drivers
should reset all state when they start to recover from a crashed driver,
so they shouldn't need to get the current feature status at startup
either.
2024-06-10 19:44:12 +02:00
bjorn3 123eef9635 pcid: Move capability offset into the Capability enum
This makes it easier to move to using pci_types for parsing PCI
capabilities.
2024-06-10 19:44:12 +02:00
Jeremy Soller 1fba5f7505 Merge branch 'pcid_cleanup2' into 'master'
Split up pcid's main.rs and remove parsing for unused capabilities

See merge request redox-os/drivers!159
2024-06-10 17:43:35 +00:00
bjorn3 027d952c39 pcid: Remove parsing of unused capabilities
This will make it easier to switch to pci_types for capability parsing
in the future.
2024-06-09 20:38:46 +02:00
bjorn3 8f9bbecd0c pcid: Rustfmt main.rs 2024-06-09 20:38:46 +02:00
bjorn3 fd3cf79884 pcid: Move spawning and interacting with subdrivers out of main.rs 2024-06-09 20:38:46 +02:00
Jeremy Soller 59120be16a Merge branch 'pcid_cleanup' into 'master'
More pcid cleanups

See merge request redox-os/drivers!158
2024-06-09 18:10:48 +00:00
bjorn3 eb2e670cd6 pcid: Explain why PciBar is used instead of pcid_types::Bar 2024-06-09 18:53:19 +02:00
bjorn3 b04915673d pcid: Remove ConfigReader and ConfigWriter traits
Only PciFunc implements this trait.
2024-06-09 18:51:55 +02:00
bjorn3 d70cf080bb pcid: Remove with_pci_func_raw 2024-06-09 18:46:35 +02:00
bjorn3 9aed7d560e pcid: Merge CapabilityOffsetsIter into CapabilitiesIter 2024-06-09 18:21:50 +02:00
bjorn3 9d37d15827 pcid: Avoid duplicate read of vendor and device id 2024-06-09 18:14:52 +02:00
bjorn3 1593884938 pcid: Use capability_pointer method instead of a raw read 2024-06-09 18:14:49 +02:00
bjorn3 7f5a340c83 pcid: Remove cap_pointer from PciHeader::PciToPci
It is never used.
2024-06-09 18:14:46 +02:00
bjorn3 ba6b91d561 pcid: Move print_pci_function to a PciHeader method 2024-06-09 16:46:59 +02:00
Jeremy Soller 9bd0a8a0e5 Merge branch 'pci_types_update_interrupt' into 'master'
Use pci_types for setting the interrupt line

See merge request redox-os/drivers!157
2024-06-09 13:10:35 +00:00
bjorn3 4b384066f2 Use pci_types for setting the interrupt line 2024-06-09 15:05:47 +02:00
Jeremy Soller 43f5641285 Merge branch 'update_pci_types' into 'master'
Several pcid cleanups

See merge request redox-os/drivers!156
2024-06-09 12:11:50 +00:00
bjorn3 7ddae5fa03 pcid: Add fixme 2024-06-09 14:03:32 +02:00
bjorn3 3737a70cc1 pcid: Reduce visibility of server handle send/recv 2024-06-09 14:03:16 +02:00
bjorn3 6825d9b2ba pcid: Remove support for connecting to non-default server 2024-06-09 14:03:16 +02:00
bjorn3 785f53c70c pcid: Stop explicitly passing PciAddress to several functions
The PciHeader/PciEndpointHeader argument already contains the
PciAddress.
2024-06-09 14:03:13 +02:00
bjorn3 38a729bc76 Handle some stabilized rustc features 2024-06-09 14:03:13 +02:00
bjorn3 020a3ef631 pcid: Update to pci_types 0.9.0 2024-06-09 14:03:10 +02:00
Jeremy Soller ccfe5ece20 Update feature required for aarch64 yield 2024-05-11 14:16:08 -06:00
Jeremy Soller 67df958d11 Update to new nightly 2024-05-11 14:11:58 -06:00
Jeremy Soller 8caf28793e Implement USB HID scroll 2024-05-01 13:29:21 -06:00
Jeremy Soller fd973a1d7d xhcid: allow configuring multiple interfaces 2024-04-17 09:24:28 -06:00
Jeremy Soller 9ec71c6ba4 xhcid/usbhidd: build out USB HUB driver 2024-04-17 08:51:02 -06:00
Jeremy Soller 68d838650a Init usbhubd 2024-04-16 21:44:37 -06:00
Jeremy Soller f3dc1e0c7e xhcid: add hub descriptor and do not return error if driver not found 2024-04-16 21:26:47 -06:00