mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
Kernel: Activate queues and enable interrutps in VirtIODevices
This patch actually enables virtio queues after configuring them so the device can use them, it also enables interrupt handling in VirtIODevice so they are not ignored. Co-authored-by: Sahan <sahan.h.fernando@gmail.com>
This commit is contained in:
parent
4a467c553a
commit
42b1eb5af1
4 changed files with 30 additions and 6 deletions
|
@ -33,7 +33,7 @@ namespace Kernel {
|
|||
|
||||
enum class BufferType {
|
||||
DeviceReadable = 0,
|
||||
DeviceWritable = 1
|
||||
DeviceWritable = 2
|
||||
};
|
||||
|
||||
class VirtIOQueue {
|
||||
|
@ -92,6 +92,7 @@ private:
|
|||
u16 m_free_buffers;
|
||||
u16 m_free_head { 0 };
|
||||
u16 m_used_tail { 0 };
|
||||
u16 m_driver_index_shadow { 0 };
|
||||
|
||||
OwnPtr<VirtIOQueueDescriptor> m_descriptors { nullptr };
|
||||
OwnPtr<VirtIOQueueDriver> m_driver { nullptr };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue