mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Kernel: Add base support for VirtIO devices
Based on pull #3236 by tomuta, this adds helper methods for generic device initialization, and partily-broken virtqueue helper methods Co-authored-by: Tom <tomut@yahoo.com> Co-authored-by: Sahan <sahan.h.fernando@gmail.com>
This commit is contained in:
committed by
Andreas Kling
parent
40a1f89d67
commit
62303d46d1
@@ -254,7 +254,7 @@ u32 get_BAR5(Address address)
|
||||
|
||||
u32 get_BAR(Address address, u8 bar)
|
||||
{
|
||||
ASSERT(bar <= 5);
|
||||
VERIFY(bar <= 5);
|
||||
switch (bar) {
|
||||
case 0:
|
||||
return get_BAR0(address);
|
||||
@@ -269,7 +269,7 @@ u32 get_BAR(Address address, u8 bar)
|
||||
case 5:
|
||||
return get_BAR5(address);
|
||||
default:
|
||||
ASSERT_NOT_REACHED();
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user