Commit Graph

495 Commits

Author SHA1 Message Date
jD91mZM2 321f708d0f vesad: Update redox_syscall 2020-08-17 14:39:25 +02: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
Wren Turkal dadc0c6c10 Remove unused imports.
Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-08-01 12:48:06 -07:00
Jeremy Soller 63dc11fbb9 Merge branch 'add_pci_vendor_specific_capability' into 'master'
Add pci vendor specific capability.

See merge request redox-os/drivers!71
2020-08-01 18:18:31 +00:00
Jeremy Soller 7b8485a582 Merge branch 'pci_ids_info' into 'master'
Add more structure cli to pcid.

See merge request redox-os/drivers!67
2020-08-01 18:16:31 +00:00
Wren Turkal 65982d5e02 Add more structure cli to pcid.
This change adds a structopt commandline interface to the pcid tool.
This add some help for the arguments that pcid takes.

Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-08-01 18:16:31 +00:00
Jeremy Soller 9279c4a64b Merge branch 'gitignore_ide_files' into 'master'
Ignore all target directories.

See merge request redox-os/drivers!70
2020-08-01 12:24:56 +00:00
Jeremy Soller 54e9bb544d Merge branch 'fix_cap_parser' into 'master'
Fix buggy assertion in pcid capability parser.

See merge request redox-os/drivers!69
2020-08-01 12:24:06 +00:00
Wren Turkal 39fea64403 Add pci vendor specific capability.
Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-08-01 00:40:30 -07:00
Wren Turkal 3323a143af Ignore all target directories.
When working in an IDE like vscode, it uses rust infrastructure to
check the code, which results in "target" folders in the base of
the crates I am working on. For example, if I am working on pcid
code, I get a "target" folder in the pcid folder. This change
causes git to ignore all those target directories.

Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-07-31 21:58:28 -07:00
Wren Turkal 5db50db7a9 Fix buggy assertion in pcid capability parser.
The pcid capability parsing code has an assertion that checks for dword
alignment. Unfortunately, the check was previously checking for
alignment to qwords. This fixes that.

I found this issue by using qemu to emulate adding different pci
devices. I managed to come across a device that had a capability
aligned on dword, but not qword. That exposed the bug.

Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-07-31 21:39:21 -07:00
Jeremy Soller 5021c68cb3 Merge branch 'fix_pci_bus_scan' into 'master'
Fixed PCI bus scan to scan bus 0xFF.

See merge request redox-os/drivers!68
2020-07-28 13:22:17 +00:00
Wren Turkal 5dfd5f7e7c Fixed PCI bus scan to scan bus 0xFF.
Previously, the PCI bus scan was skipping bus 0xFF. Now it does not.
I used a match expression to make sure that all cases are accounted for.

I also changed the PCI dev scan and PCI func scan to use a match
expression in a similar way to make sure all cases are account. While
this is functionally the same as before, the match expression will not
allow unhandled cases and should be easier to read and make it harder
to introduce bugs.

Signed-off-by: Wren Turkal <wt@penguintechs.org>
2020-07-27 22:49:39 -07:00
Jeremy Soller a16604fc2c e1000d and rtl8168d will use pipe to wait for network: before continuing 2020-07-19 21:04:10 -06:00
Jeremy Soller b99671d8bb Wait for vesad to create display: before continuing 2020-07-16 16:33:29 -06:00
Jeremy Soller bbec25fa3b ps2d: better error logging 2020-07-15 22:24:12 -06:00
Jeremy Soller 24aa9192cb pcid: Fix extra newlines in log 2020-07-15 22:23:34 -06:00
Jeremy Soller 4b06280e1b Merge branch 'remove_unsafe' into 'master'
Remove unsafe declarations.

See merge request redox-os/drivers!65
2020-07-14 12:56:44 +00: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 eedf9edc7d Merge branch 'xhci-32bit-dev' into 'master'
Support xHCs that only support 32-bit physical addresses.

See merge request redox-os/drivers!64
2020-06-18 19:17:20 +00:00
4lDO2 6bd4bb814f Support xHCs that only support 32-bit physical addresses. 2020-06-18 19:17:20 +00:00
Jeremy Soller 7ccf8d27b0 Remove pbr patch 2020-05-28 11:54:30 -06:00
Jeremy Soller 713058f183 Update dependencies, add patches 2020-05-22 09:06:03 -06:00
Jeremy Soller f3a35af0de Move ixgbed in-tree 2020-05-22 09:05:22 -06:00
Jeremy Soller 1d5c9d0e39 Merge branch 'pcid-capabilities-fix' into 'master'
Improved PCI capability parsing.

See merge request redox-os/drivers!63
2020-05-21 12:16:22 +00:00
4lDO2 146265682a Improved PCI capability parsing. 2020-05-21 12:16:22 +00:00
Jeremy Soller 294127e4ad Merge branch 'revert-ahci-interrupts' into 'master'
Revert "Enable ahcid interrupts"

See merge request redox-os/drivers!62
2020-05-20 17:57:52 +00:00
4lDO2 f149620e5a Revert "Enable ahcid interrupts"
This reverts commit f00a049439.
2020-05-20 19:49:05 +02:00
Jeremy Soller 5cdce0d527 Merge branch 'nvme-msi' of https://gitlab.redox-os.org/4lDO2/drivers 2020-05-06 08:59:01 -06:00
4lDO2 07b1fe79fa Cleanup, and remove trace log writes for nvmed. 2020-05-03 16:33:56 +02:00
4lDO2 938cce8c8c make qemu_nvme works!
only cleanup left...
2020-05-03 16:02:23 +02:00
4lDO2 3558397859 ASYNC COMMAND SUBMISSION WORKS (partially). 2020-05-03 15:47:09 +02:00
4lDO2 cea6ce7d7a Move the setrens to a later position, in nvmed. 2020-05-02 00:05:04 +02:00
4lDO2 2db3bf4689 Read real block sizes. 2020-05-01 20:00:24 +02:00
4lDO2 1936f05030 NVME WORKS WITH IRQs 2020-05-01 14:14:47 +02:00
4lDO2 64e9eea9b0 Implement asynchronous command __submission__.
Note that by writing submission, I'm referring to blocking until a
submission queue has more entries available. The command completion
handling is already async.
2020-05-01 13:14:31 +02:00
4lDO2 c61e886108 Refactor and rustfmt the nvme driver. 2020-05-01 11:57:55 +02:00
4lDO2 167b994aea WIP: Asyncify IO SQ creation too. 2020-04-30 15:01:35 +02:00
4lDO2 3207f5a009 WIP: Make I/O completion queue creation async. 2020-04-30 14:48:43 +02:00
4lDO2 cbeb0070ec WIP: Asyncify namespace identification. 2020-04-29 20:44:38 +02:00
4lDO2 737870439a Wrap some NVME commands in async (not compiling). 2020-04-29 20:36:35 +02:00
4lDO2 6c2f103841 WIP: Complete the NVME CQ reactor (doesn't compile yet) 2020-04-29 19:35:48 +02:00
4lDO2 d485176bd6 Improve startup interrupt initialization. 2020-04-27 15:59:06 +02:00
4lDO2 e6a46bb6a6 Begin with NVME MSI support. 2020-04-25 23:02:16 +02:00
4lDO2 4016b0c7b8 Fix failing pcid config parsing. 2020-04-23 15:35:44 +02:00
4lDO2 7b69d5b9b5 WIP: Use the enhanced pcid IPC. 2020-04-22 21:21:55 +02:00
4lDO2 07d4ae0e60 Recognize the AHCI-specific SATA PCI capability. 2020-04-22 18:52:51 +02:00
4lDO2 fe95c942ac Add pcid logging. 2020-04-22 18:27:43 +02:00