Jeremy Soller
8bf5d60e96
Adjust logging, ensure drivers get unique logfiles
2025-10-24 08:19:34 -06:00
bjorn3
ae84627479
Rustfmt
2025-10-14 20:22:49 +02:00
4lDO2
05f80e6841
Replace removed nightly features.
2025-10-04 16:08:14 +02:00
Jeremy Soller
407533201f
Add tested Thinkpad T60 ethernet to e1000d driver
2025-09-24 17:26:07 -06:00
bjorn3
2945b86b82
pcid: Helper to allocate first MSI interrupt
2025-08-30 19:14:01 +02:00
bjorn3
ea47c97bf8
Check for MSI-X before checking for MSI
2025-08-30 19:14:01 +02:00
bjorn3
0b6b5e0d04
pcid: Move MappedMsixRegs to pcid_interface
2025-08-30 19:14:01 +02:00
Jeremy Soller
36e37958c9
e1000d: do not print in busy loop
2025-07-11 09:06:10 -06:00
bjorn3
5d76acfd74
Update to redox-scheme 0.4
2025-03-14 22:11:30 +01:00
bjorn3
c68a50faf2
storage: Move irq methods out of the scheme structs
2025-03-08 12:38:14 +01:00
bjorn3
e7fe3183b0
Make all pcid_interface methods abort the process on errors
...
Effectively the only way to recover from errors in the communication
with pcid is by restarting the driver from scratch possibly after
restarting pcid. As such moving the aborts from individual drivers to
pcid_interface simplifies drivers while at the same time allowing nicer
error messages.
2025-03-02 12:36:35 +01:00
Jeremy Soller
d83d050c0d
Merge branch 'more_repr_packed_fixes' into 'master'
...
Replace a whole bunch more repr(packed) with repr(C, packed)
See merge request redox-os/drivers!237
2025-02-22 15:27:00 +00:00
bjorn3
581d9eea33
Replace a whole bunch more repr(packed) with repr(C, packed)
2025-02-22 16:19:25 +01:00
bjorn3
23497b1148
Fix standalone compilation of driver-network
...
driver-network does conversions from syscall::Error to std::io::Error
which needs the std feature enabled. Without this change rust-analyzer
would report errors when trying to compile driver-network without any
other crate in the same build to enable the std feature.
2025-02-22 16:13:24 +01:00
bjorn3
23c20b0fa2
Replace a couple direct uses of physmap with map_bar
2025-02-22 16:07:10 +01:00
bjorn3
e973f89139
Remove unnecessary feature gates
...
Some of these have been stabilized while others were likely no longer
used at all.
2025-02-22 14:38:33 +01:00
bjorn3
b1743d800c
Remove all dup impls that only accept empty paths
...
Those dups are handled by the kernel already by creating a new reference
to the underlying file descriptor.
2024-12-27 15:13:42 +01:00
bjorn3
8eabb75524
Update redox-scheme to 0.3.0
2024-12-26 15:50:30 +01:00
bjorn3
20cd7b6dcd
driver-network: Use handle flags and offset stored by the kernel
2024-12-26 15:50:10 +01:00
bjorn3
c4dbcbecf2
Use redox-scheme in driver-network
2024-12-26 15:50:09 +01:00
Andrey Turkin
09b5033fbd
Wholesale cargo fmt to get CI back to green
2024-10-17 20:07:05 +03:00
Kamil Koczurek
d2c82add9d
Move Io/Pio/Mmio from redox_syscall to common
...
* Fix Mmio repr from transparent to packed.
* Rename Mmio::from to Mmio::new.
* Remove dead imports around affected code.
* Minor formatting.
2024-09-30 13:01:36 +02:00
bjorn3
7935ed0248
Deduplicate setup_logging between all drivers
...
This will make it easier to change the way logging is done for all
drivers. This also fixes the log category for a couple of drivers as
well as makes failing to set the logger a fatal error. Only when a
logger is already set is it impossible to set another logger.
2024-07-24 22:00:40 +02:00
bjorn3
fd8dabd1bc
Use the new scheme format in most places
...
The graphics subsystem still uses the old format as orbital manually
parses the fpath result.
2024-07-11 21:14:45 +02:00
ramla-i
93d5ceb465
bug fixes
2024-07-09 12:55:48 -04:00
bjorn3
23ac696491
pcid: Add PciFunctionHandle::map_bar method
...
This will enable the pcid driver interface to safely map the MSI-X table
in the future without having to worry about a BAR being mapped twice.
2024-06-15 15:47:48 +02:00
bjorn3
a3b957c2e5
pcid: Fetch config in PciFunctionHandle::connect_default()
2024-06-15 15:16:09 +02:00
bjorn3
fdb9ea816b
pcid: Rename PcidServerHandle to PciFunctionHandle
2024-06-15 15:05:59 +02:00
bjorn3
3299a070f2
pcid: Also return bar size from physmap_mem and use it in two more drivers
2024-06-15 14:01:06 +02:00
bjorn3
df66633111
pcid: Store decoded MsixInfo instead of full capability in PciFeatureInfo
2024-06-10 21:00:07 +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
Jeremy Soller
e070abc7cb
Fix network device logging paths
2024-04-12 10:37:42 -06:00
4lDO2
4c35e88997
Use latest event queue interface everywhere.
2024-03-31 14:30:04 +02:00
Jacob Lorentzon
ff956fd3bb
Switch to libredox where applicable (fixed)
2024-03-18 22:09:25 +00:00
Jeremy Soller
98078650f8
Revert "Switch to libredox where applicable."
...
This reverts commit 2e7dbf1cc1 .
2024-03-18 15:00:52 -06:00
4lDO2
2e7dbf1cc1
Switch to libredox where applicable.
2024-03-18 19:23:05 +01:00
bjorn3
3e42637066
Fix a panic message
2024-03-06 21:09:38 +01:00
bjorn3
e36b0a8e94
Move all network drivers to net/
2024-02-28 21:31:26 +01:00