mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Kernel: Implement a naive version of virtconsole by memcpying to physical page
This patch allocates a physical page for each of the virtqueues and memcpys to it when receiving a buffer to get a physical, aligned contiguous buffer as required by the virtio specification. Co-authored-by: Sahan <sahan.h.fernando@gmail.com>
This commit is contained in:
parent
42b1eb5af1
commit
ecfa7cb824
8 changed files with 35 additions and 18 deletions
|
@ -56,6 +56,7 @@ namespace Kernel {
|
|||
|
||||
#define VIRTIO_F_VERSION_1 ((u64)1 << 32)
|
||||
#define VIRTIO_F_RING_PACKED ((u64)1 << 34)
|
||||
#define VIRTIO_F_IN_ORDER ((u64)1 << 35)
|
||||
|
||||
#define VIRTIO_PCI_CAP_COMMON_CFG 1
|
||||
#define VIRTIO_PCI_CAP_NOTIFY_CFG 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue