Commit Graph

77 Commits

Author SHA1 Message Date
4lDO2 21e30b7339 Replace syscall::clone() with libc::fork(). 2022-07-27 16:25:01 +02:00
4lDO2 322af701d6 Use aligned addresses in physmap. 2022-07-27 15:33:21 +02:00
Jeremy Soller 860821c150 Support compilation on more architectures 2022-07-26 16:01:54 -06:00
Jeremy Soller b4256fdf00 Improve ahcid error format 2022-04-19 18:03:52 -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
4lDO2 7a2b3d7656 Update dependencies. 2021-06-17 18:18:27 +02:00
Jeremy Soller 5a279d4081 Use redox-log in ahcid 2021-06-01 21:37:52 -06:00
Jeremy Soller 31bae74334 Merge branch 'code_hygiene' into 'master'
Code hygiene

See merge request redox-os/drivers!72
2020-08-08 12:55:24 +00:00
Jeremy Soller be101621cc Update to newer syscall 2020-08-02 15:25:03 -06:00
Wren Turkal 6018b6fc49 Fix lint issues from rustc.
Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-08-01 16:52:47 -07:00
4lDO2 f149620e5a Revert "Enable ahcid interrupts"
This reverts commit f00a049439.
2020-05-20 19:49:05 +02:00
Jeremy Soller f00a049439 Enable ahcid interrupts 2020-02-22 20:10:43 -07:00
Jeremy Soller c1b4292675 Improve ahcid interrupt handling 2020-02-22 19:46:28 -07:00
4lDO2 5807909ed1 Add partitioning support to nvmed. 2020-01-09 10:38:31 +11:00
4lDO2 60f05af555 Move the block-io-to-unaligned-io wrapper to its own crate. 2020-01-08 22:34:28 +11:00
4lDO2 5848f668a6 Don't fail when the blocksize couldn't be retrieved.
This is required for ahcid to work with make qemu_efi.
2020-01-05 12:17:47 +11:00
4lDO2 2a7216c342 It (partition support) works! 2020-01-05 10:43:07 +11:00
4lDO2 119f7a5595 Add partition support for ahcid (untested). 2020-01-04 19:35:16 +11:00
Jeremy Soller 2087f0ad03 Fix parsing of bar size 2019-09-04 20:40:18 -06:00
Jeremy Soller eda6bc6f92 Calculate and use PCI BAR memory sizes in most drivers. 2019-09-04 20:38:08 -06:00
Jeremy Soller 217e51f830 ahcid: Handle EOF 2019-07-18 21:04:52 -06:00
Roland Ruckerbauer b50437af8a Fixed deprecated syntax in vesad
2018 edition upgrade & fixes for a bunch of 'future error warnings'

Actually upgrading all crates to 2018 edition
2019-06-29 21:47:52 +02:00
Jeremy Soller 50652ceb93 Temporary patches for Redox with unix target family 2019-04-23 13:25:41 -06:00
Jeremy Soller 7afaadabd9 Ensure that MMIO memory is mapped without caching 2019-04-08 20:22:01 -06:00
Jeremy Soller 25aec9f2a7 Disable interrupts for ahcid 2019-02-18 21:11:41 -07:00
Jeremy Soller c9e0dc4fd5 Go back to polling ahcid to prevent hangs 2019-02-18 21:05:44 -07:00
Jeremy Soller a38dfb3231 Use IRQs to prevent spin loops in ahcid 2019-01-12 12:52:57 -07:00
Jeremy Soller c47c68f44c Update fmap support 2018-12-28 16:19:09 -07:00
Jeremy Soller 0a9b15939e Update to new event 2018-05-20 11:05:10 -06:00
Ian Douglas Scott d893a73e1e ahcid: fix atapi capacity detection 2018-03-11 18:24:23 -07:00
Jeremy Soller 329750afb9 Remove debug prints 2018-03-10 16:02:06 -07:00
Jeremy Soller 78cff3f57c Remove unnecessary parens 2018-01-28 14:49:29 -07:00
Ian Douglas Scott c8154e7607 ahci: refactor duplicated ATA command code into a method 2018-01-06 23:47:45 -08:00
Ian Douglas Scott 9de5eb7045 atapi: Implement read support 2018-01-04 14:20:12 -08:00
Ian Douglas Scott 78ab386268 Move capacity reading to seperate method 2018-01-04 12:25:47 -08:00
Ian Douglas Scott c78d4dcff0 ahci: atapi support (incomplete)
It can currently retrieve the capacity; no reads or writes yet.
2018-01-02 23:03:54 -08:00
Jeremy Soller bd8a377c78 Use capability mode (null namespace) for drivers 2017-10-09 20:36:16 -06:00
Jeremy Soller 8e41cb9f03 Use disk heirarchy 2017-09-30 20:49:11 -06:00
Jeremy Soller 053524acac Remove unused extern crate 2017-08-30 22:03:10 -06:00
Jeremy Soller 473ac85faa Return error when dup buf is not empty 2017-07-22 13:17:48 -06:00
Jeremy Soller 1e7013915b Add path implementation for e1000d and ahcid 2017-04-15 09:57:37 -06:00
Ivan Chebykin 4c93b53de0 Combine thread use statement with previous 2017-03-22 17:01:49 +03:00
Ivan Chebykin b6268ff95c Fix missing use statement 2017-03-22 16:35:32 +03:00
Jeremy Soller beef16096f Use thread::yield_now instead of pause in ahcid, e1000d, and rtl8168d
Remove debugging from e1000d
2017-03-21 20:52:39 -06:00
Adrian Neumann ebc5f86e8c Make enum values List and Disk contain two values instead of a tuple of values. 2017-03-05 15:44:06 +01:00
Corentin Henry d8a35a9a08 remove unused #[macro_use] 2017-01-24 11:09:09 -08:00
Jeremy Soller 4bb229959e Specify crates.io versions 2017-01-13 15:10:16 -07:00
Jeremy Soller 608403765d Refactor to move io into syscall, and use git for crate references 2017-01-09 20:36:36 -07:00
Jeremy Soller cf46a3b5fc Fallback in ahci driver when disk: not available, ability to list disk devices 2017-01-02 08:53:50 -07:00