Commit Graph

56 Commits

Author SHA1 Message Date
bjorn3 581d9eea33 Replace a whole bunch more repr(packed) with repr(C, packed) 2025-02-22 16:19:25 +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 2c042f8c98 Fix a ton of unused import warnings 2024-12-26 16:05:04 +01:00
bjorn3 8eabb75524 Update redox-scheme to 0.3.0 2024-12-26 15:50:30 +01:00
Andrey Turkin 2f9e28e23e Rerun cargo fmt to bring CI back to norm 2024-12-18 21:16:17 +03:00
Jeremy Soller 2975f93f30 acpid: fix compilation on riscv64gc 2024-10-31 10:53:05 -06:00
Jeremy Soller e765d9c8e1 acpid: only build dmar for x86_64 2024-10-30 20:43:46 -06:00
Jeremy Soller 71b70482d3 acpid: Only acquire I/O port rights on x86 2024-10-30 14:01:20 -06:00
Jeremy Soller 42970953fc Fix acpid compilation on non-x86 2024-10-30 13:52:19 -06:00
Jeremy Soller 67f4ca3d73 Update redox-scheme 2024-10-18 07:32:38 -06:00
Andrey Turkin 18b688a49c Partial risc-v support 2024-10-17 20:07:17 +03:00
Andrey Turkin 09b5033fbd Wholesale cargo fmt to get CI back to green 2024-10-17 20:07:05 +03:00
Kamil Koczurek 56bfd63173 acpid: update to redox_scheme
* Change symbol serialization to RON
2024-09-30 13:22:24 +02: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
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
4lDO2 a6fee75f15 Phase out / in scheme names. 2023-11-09 14:39:57 +01:00
Jeremy Soller 61e9512468 Update redox_syscall to 0.4 2023-09-07 20:49:37 -06:00
Ron Williams 8c0d255ccd acpid: improved bug fix 2023-07-24 01:15:28 -07:00
Ron Williams 0f6d2b8c81 acpid: fix physmap size bug 2023-07-23 22:48:13 -07:00
4lDO2 477b1c0ada Remove physmap in acpid. 2023-07-18 11:01:16 +02:00
4lDO2 a5a3f3341f Remove all usages of physunmap. 2023-06-11 11:33:27 +02:00
Ron Williams 9fb4a8be04 Add AmlHandler read/write of physaddr 2023-04-13 19:09:07 -07:00
Ron Williams 1baac63934 clean up aml symbols 2023-03-29 01:41:13 -07:00
Ron Williams 23be7ed63c Add serde with separate library for definitions 2023-03-27 20:58:59 -07:00
Ron Williams 9333d9acea temporarily use forked library for AML 2023-03-21 17:14:50 -07:00
Jeremy Soller c26eb11cf1 Support read/write I/O on x86 2023-03-07 19:26:54 -07:00
Jeremy Soller 7d7a706cb3 Update aml to 0.16.3 2023-03-03 18:24:17 -07:00
Jeremy Soller 9ba1358077 Used patched aml 2023-03-02 17:56:19 -07:00
Jeremy Soller 40334044aa Revert "Make acpid a no-op on i686 until aml crate issue is fixed"
This reverts commit 6cd802b9b4.
2023-03-02 17:54:36 -07:00
Jeremy Soller 6cd802b9b4 Make acpid a no-op on i686 until aml crate issue is fixed 2023-03-02 12:01:24 -07:00
Ron Williams 9c739d7648 Add description text in toml format for each symbol in acpi:/symbols 2023-01-28 22:47:28 -08:00
Ron Williams f4564d6caf switch to aml crate, implement acpi:/symbols 2023-01-22 19:42:41 -08: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 da8ecef8a7 Workarounds for aarch64 support 2022-07-26 16:11:45 -06:00
Jeremy Soller 860821c150 Support compilation on more architectures 2022-07-26 16:01:54 -06:00
4lDO2 07f10fb4d1 Update redox_syscall to v0.2.12 2022-03-24 16:06:00 +01:00
Jeremy Soller d31133956d Remove debug: logging from acpid, logd now handles that 2022-02-28 14:02:58 -07:00
Jeremy Soller 88fc91dfb7 Only create acpi scheme after tables are found and parsed 2022-02-28 11:21:47 -07:00
Jeremy Soller 4da3ceb723 Workaround hang on real hardware 2021-08-10 18:25:44 -06:00
4lDO2 7a2b3d7656 Update dependencies. 2021-06-17 18:18:27 +02:00
4lDO2 641feb01b1 Print parsed tables only with debug verbosity. 2021-03-13 12:40:26 +01:00
4lDO2 c6efa649be Add DMAR parsing.
In the future, this will probably be moved into its own driver, probably
called `intelvtdd` or `intelvfiod`. This is because `acpid` already
provides an interface to read from ACPI tables, which `pcid` has used
for quite long (when that scheme was provided by the kernel). AMD
implements IOMMU as a PCI function, so letting these be separate drivers
would certainly be beneficial.

The same thing might apply for HPET or MADT, which are the only ACPI
tables still parsed in the kernel.
2021-03-13 12:34:56 +01:00
4lDO2 391f7c4184 WIP: Improve acpid logging. 2021-03-12 23:45:16 +01:00
4lDO2 3989477669 Also open a file descriptor in debug:.
This is to allow the shutdown logs to reach serial output before the
system shuts down, which is especially useful on QEMU.
2021-03-11 17:50:17 +01:00
4lDO2 5fc0f0fa4e Successfully parse the namespace. 2021-03-11 12:48:34 +01:00