Commit Graph

751 Commits

Author SHA1 Message Date
4lDO2 433ea455cc Use common::Dma in ahcid. 2023-07-18 12:43:39 +02:00
4lDO2 089e8bac35 Move syscall::Dma to common. 2023-07-18 12:43:06 +02:00
4lDO2 2341e3cb16 Document memory:physical. 2023-07-18 12:24:11 +02:00
4lDO2 25b1f7bfea Update dependencies. 2023-07-18 11:08:03 +02:00
4lDO2 8555b8ab3d Remove physmap in non-initfs drivers too. 2023-07-18 11:01:17 +02:00
4lDO2 c63c266400 Remove physmap in virtio. 2023-07-18 11:01:16 +02:00
4lDO2 477b1c0ada Remove physmap in acpid. 2023-07-18 11:01:16 +02:00
4lDO2 a0d233030b Remove physmap in vesad. 2023-07-18 11:01:16 +02:00
4lDO2 e0a0e2a532 Remove physmap in pcid. 2023-07-18 11:01:16 +02:00
4lDO2 6e94a9e236 Remove physmap for disk drivers. 2023-07-18 11:01:16 +02:00
4lDO2 094e3ba548 Add a crate for driver helpers. 2023-07-18 11:01:08 +02:00
Jeremy Soller 5256a9af47 nvmed: enable async feature 2023-07-17 19:51:53 -06:00
Jeremy Soller 07c3297134 ahcid: Use interrupts 2023-07-17 19:33:25 -06:00
Jeremy Soller f8404a1ea0 Merge branch 'core' into 'master'
inputd: fix failure to switch VT after inital switch

See merge request redox-os/drivers!100
2023-07-17 13:48:48 +00:00
Ron Williams 301becb157 Merge branch 'add-kernel-functions' into 'master'
Add kernel functions and the example driver on README

See merge request redox-os/drivers!99
2023-07-17 06:08:09 +00:00
Anhad Singh 95a84c8cbf inputd: fix failure to switch VT after inital switch
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-15 16:29:48 +10:00
Ribbon 12420a1c8c Add kernel functions and the example driver on README 2023-07-13 13:55:35 +00:00
Jeremy Soller 7123438a4b Merge branch 'update-acpi-todo' into 'master'
Update acpid TODO

See merge request redox-os/drivers!98
2023-07-08 21:30:42 +00:00
Ribbon 8e0d4cd2ca Improve explanation 2023-07-08 20:55:14 +00:00
Ribbon 17869bfd77 Update acpid TODO 2023-07-08 20:47:25 +00:00
Jeremy Soller 706d40dfe6 Merge branch 'document-new-drivers' into 'master'
Document new drivers and explain what is missing on incomplete drivers

See merge request redox-os/drivers!97
2023-07-08 20:42:07 +00:00
Ribbon 2b86dc0bc9 Document new drivers and explain what is missing on incomplete drivers 2023-07-08 20:34:30 +00:00
Jeremy Soller 3320cd2eee Merge branch 'core' into 'master'
drivers: add `virtio-gpu`!

See merge request redox-os/drivers!96
2023-07-07 14:08:58 +00:00
Anhad Singh c5729befe5 inputd: do not reswitch if the same
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-07 17:03:14 +10:00
Anhad Singh 5c4e7b36fa make getty work
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-07 16:51:46 +10:00
Jeremy Soller bfe8536d58 Add rtl8139 driver 2023-07-06 10:32:16 -06:00
Anhad Singh 2cfd62d194 remove patches from virtio-gpu/
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-06 17:38:44 +10:00
Anhad Singh 7e83bd9adf virtio-gpud: indicate the reservation of 0 resource_id
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-05 17:50:51 +10:00
Anhad Singh 320fedbd76 virtio-gpud: get multiple displays to work
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-05 17:49:08 +10:00
Anhad Singh 30146fa81d virtio-gpu: update orbital patch
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-05 13:44:35 +10:00
Anhad Singh 07039e8321 drivers: run fmt.sh
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-05 11:14:06 +10:00
Anhad Singh 2f2720263f drivers: add inputd
Take out the input coalescing from `vesad` into `inputd`.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-05 11:12:53 +10:00
Anhad Singh caa435eae3 virtio_gpud: able to get orbital running :^)
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-04 13:21:41 +10:00
Anhad Singh c0950d0686 virtio-gpu: start working on the scheme
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-04 13:17:58 +10:00
Anhad Singh 7cc2f4eff7 virtio-gpu: start working on the scheme
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-07-03 17:12:59 +10:00
Jeremy Soller f91770ed64 Merge branch 'core' into 'master'
virtio: add `virtio-net` drivers

See merge request redox-os/drivers!95
2023-06-30 12:44:17 +00:00
Jeremy Soller 5a5eb25d91 Merge branch 'master' into 'master'
drivers: add `virtio-blk`

See merge request redox-os/drivers!94
2023-06-30 12:21:53 +00:00
Anhad Singh 4bbda21f0b drivers: start building virtio-gpu
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-29 16:37:59 +10:00
Anhad Singh a720cf6f44 virtio-core::probe: make sure the addr is aligned
sys_physmap() requires the address to be page aligned. This fixes the
panic inside the `virtio-gpu` driver.

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-29 16:36:02 +10:00
Anhad Singh c898e2e01f virtio-core: make send async
This allows for us to do cool stuff such as
`join!(queue.send(read_command), queue.send(write_command),
queue.send(read_command_2))`

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-29 14:21:34 +10:00
Anhad Singh 92fd7fc553 virtio-core::ChainBuilder: automagically add the NEXT flag
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-28 15:06:23 +10:00
Anhad Singh 97e77e21b6 virtio-net: scheme :^)
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-28 12:58:51 +10:00
Anhad Singh 6968a548d9 virtiod: rename to virtio-blkd
* Rename to `virtio-blkd`
* Start working on `virtio-netd`

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-27 10:26:04 +10:00
Anhad Singh eee780fa0f virtiod: split into virtio-core and virtiod
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-27 09:51:16 +10:00
Anhad Singh ea1c855cdc virtiod: make use of the int_roundings feature
* Removes the need to define `round_up` and `div_round_up`

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-26 09:55:48 +10:00
Anhad Singh 65c4317564 virtiod: refactoring
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-23 16:18:14 +10:00
Anhad Singh c176903905 virtio-blk: read and scheme
* Minor code cleanup
* Able to read/write from the disk
* Recycle the descriptors (this is currently done inefficiently, will be
  fixed in a follow up commit)
* Add the disk scheme for virtio-blk with working functionality for seek(),
  read() and open()
* After all of this work, we are successfully able to boot redox from
  virtio-blk!! :)

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-23 12:41:07 +10:00
Anhad Singh 576302a618 virtio-blk: get device config
* Get the device config for virtio-blk
* Log out the # sectors and the block size

Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-20 14:17:31 +10:00
Anhad Singh 8fb5e353ea virtio::transport: setup queue
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-20 14:14:22 +10:00
Anhad Singh 990a9c2716 virtio::transport: finalize features
Signed-off-by: Anhad Singh <andypython@protonmail.com>
2023-06-20 10:14:10 +10:00