Commit Graph

67 Commits

Author SHA1 Message Date
Jeremy Soller c52e17dd46 Even more fixes for 32-bit x86 2024-02-16 21:00:13 -07:00
Enver Balalic 7439262994 ihdad, rtl8139d, rtl8168d, virtio-core, xhcid: Fix aarch64 build 2024-02-10 19:03:36 +01:00
bjorn3 67d3015e2e Add helper for allocating a single MSI/MSI-X interrupt vector
It doesn't actually configure the device to emit it though, but does
make this easier to do.
2024-01-25 14:43:44 +01:00
bjorn3 354c351b19 Unify device info printing between drivers 2024-01-23 13:01:40 +01:00
bjorn3 77b97bb2ed Introduce PciBar::physmap_mem helper 2024-01-23 12:02:40 +01:00
bjorn3 bd6716efe4 Make legacy_interrupt_line an Option
Drivers don't need to know the exact legacy_interrupt_pin in use.
Just if legacy interrupts are enabled and if so which
legacy_interrupt_line is used.
2024-01-22 19:35:06 +01:00
bjorn3 a5d0c7c354 Use pci_types for reading BARs
This simplifies a lot of code and adds support for 64bit BARs.
2024-01-22 15:54:18 +01:00
bjorn3 5192816de7 Introduce expect_port and expect_mem helpers 2024-01-21 21:12:24 +01:00
bjorn3 1890293e86 Introduce a FullDeviceId type and pass it in pcid_interface 2024-01-21 15:18:56 +01:00
bjorn3 dc13752d74 Force usage of pcid_interface 2024-01-20 19:42:06 +01:00
bjorn3 de7677604e Use hex instead of decimal in all config.toml
This matches the way basically everyone prints PCI ids
2024-01-20 17:59:38 +01:00
4lDO2 04f60cf7be Fix ihdad. 2023-12-16 13:12:17 +01:00
4lDO2 ea73da92bf Replace all physalloc usages with Dma. 2023-12-12 12:03:03 +01:00
Jeremy Soller 15e523c8eb alxd,ihdad,rtl8168d: support MMIO on 32-bit systems 2023-09-09 11:19:17 -06:00
Jeremy Soller 61e9512468 Update redox_syscall to 0.4 2023-09-07 20:49:37 -06:00
4lDO2 8555b8ab3d Remove physmap in non-initfs drivers too. 2023-07-18 11:01:17 +02:00
4lDO2 a5a3f3341f Remove all usages of physunmap. 2023-06-11 11:33:27 +02:00
Jeremy Soller 5bbe2e3f4c ahci, ihda, pci, xhci: logging adjustments 2023-02-15 19:30:59 -07:00
Jeremy Soller 98a3106749 ihda, usbhid, xhci: logging adjustments 2023-02-15 19:24:50 -07:00
Jeremy Soller 00720cc95b ihdad: adjust log levels 2023-02-15 19:17:55 -07:00
Jeremy Soller e0bf7a95f5 ihda: Remove LineOut from supported devices, it breaks some laptops 2022-12-18 10:59:58 -07:00
Jeremy Soller fc4a69ccf9 ihda: Fix copy pasted rtl8168 names 2022-11-23 11:47:19 -07:00
Jeremy Soller 336a25d644 ihda: fix compilation on i686 2022-11-21 15:52:54 -07:00
Jeremy Soller 7448cbff2d ihda: Select output based on pin sense and prioritized device type 2022-11-21 14:38:10 -07:00
Jeremy Soller 91c4085488 ihda: remove unused HDANode members 2022-11-21 14:25:52 -07:00
Jeremy Soller 7eada2053b Adjust volume in audiod instead 2022-11-21 09:56:23 -07:00
Jeremy Soller 9315af5e41 Match ac97 and hda buffering 2022-11-20 13:16:51 -07:00
Jeremy Soller 860dd2ee31 ihda: Reduce default volume 2022-11-19 08:21:32 -07:00
Jeremy Soller ff205ad65d ihda: Enable MSI and use pcid channel 2022-11-19 08:18:51 -07:00
Jeremy Soller 4dc0cba159 ihda: Improvements to configure, add codec file 2022-11-18 14:37:11 -07:00
Jeremy Soller aadf2ec9dc ihda: Add 1ms polling 2022-11-18 14:36:28 -07:00
Jeremy Soller 7c3f177ec0 ihda: Set correct intctl based on number of streams 2022-11-18 14:25:34 -07:00
Jeremy Soller 304dcad78b ihda: Use default connection for finding dac 2022-11-16 14:56:11 -07:00
Jeremy Soller 2cdfb46a71 Use audiohw: instead of hda: 2022-11-15 12:43:22 -07:00
Jeremy Soller c993b0ef40 ihdad: Turn on by default 2022-11-15 11:07:48 -07:00
Jeremy Soller c63fe7f2d6 ihdad: attempt to enable headphone jacks 2022-11-15 11:07:37 -07:00
Jeremy Soller 0fe60a00fc ihdad: improve logging 2022-11-15 10:58:00 -07:00
Jeremy Soller c8ca7940d4 ihdad: increase buffers to 4 to eliminate stuttering (mostly) 2022-11-15 09:02:25 -07:00
4lDO2 af873f7626 Update redox_syscall dependency. 2022-07-27 17:55:39 +02:00
4lDO2 21e30b7339 Replace syscall::clone() with libc::fork(). 2022-07-27 16:25:01 +02:00
Jeremy Soller 00de428d6b Workarounds for x86 32-bit 2022-07-26 17:20:34 -06:00
4lDO2 07f10fb4d1 Update redox_syscall to v0.2.12 2022-03-24 16:06:00 +01:00
4lDO2 d426ffacea Update toolchain to 2022-03-18. 2022-03-19 15:06:29 +01:00
Jeremy Soller 4a8059302f Disable ihdad, it causes issues on real hardware 2022-02-11 08:53:41 -07:00
Jeremy Soller 36b3af4262 ihdad logging 2021-12-01 16:14:15 -07:00
4lDO2 7a2b3d7656 Update dependencies. 2021-06-17 18:18:27 +02:00
Jeremy Soller be101621cc Update to newer syscall 2020-08-02 15:25:03 -06:00
Wren Turkal 00b8ad9fc2 Remove unnecessary unsafe declarations.
The removed unsafe statements were identified by rustc as unneeded during
compilation.

Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-07-14 12:56:44 +00:00
Jeremy Soller c1b4292675 Improve ahcid interrupt handling 2020-02-22 19:46:28 -07:00
Jeremy Soller 8da1c13b73 Use BAR size for ihda 2019-09-04 20:44:24 -06:00