mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +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:
parent
40a1f89d67
commit
62303d46d1
9 changed files with 832 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue