mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 03:26:10 +00:00
Kernel: Clarify and make it easy to not use raw numbers
Let's put the PCI IDs as enums in the PCI namespace so they're free to pollute that namespace, but it's also more easier to use them.
This commit is contained in:
parent
b4e230a7bb
commit
3fae7ca113
Notes:
sideshowbarker
2024-07-18 11:03:45 +09:00
Author: https://github.com/supercomputer7
Commit: 3fae7ca113
Pull-request: https://github.com/SerenityOS/serenity/pull/8399
Reviewed-by: https://github.com/alimpfard ✅
9 changed files with 25 additions and 21 deletions
|
@ -6,19 +6,22 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
namespace Kernel {
|
||||
namespace Kernel::PCI {
|
||||
|
||||
enum class PCIVendorID {
|
||||
enum VendorID {
|
||||
VirtIO = 0x1af4,
|
||||
Intel = 0x8086,
|
||||
WCH = 0x1c00,
|
||||
RedHat = 0x1b36,
|
||||
Realtek = 0x10ec
|
||||
Realtek = 0x10ec,
|
||||
QEMUOld = 0x1234,
|
||||
VirtualBox = 0x80ee
|
||||
};
|
||||
|
||||
enum class PCIDeviceID {
|
||||
enum DeviceID {
|
||||
VirtIOConsole = 0x1003,
|
||||
VirtIOEntropy = 0x1005,
|
||||
VirtIOGPU = 0x1050,
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue