mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
Kernel/PCI: Remove all macros and replace them with enum classes
This commit is contained in:
parent
9d9d57056e
commit
ef9b8ff0c7
11 changed files with 206 additions and 146 deletions
|
@ -65,8 +65,8 @@ UNMAP_AFTER_INIT bool test_pci_io()
|
|||
{
|
||||
dmesgln("Testing PCI via manual probing...");
|
||||
u32 tmp = 0x80000000;
|
||||
IO::out32(PCI_ADDRESS_PORT, tmp);
|
||||
tmp = IO::in32(PCI_ADDRESS_PORT);
|
||||
IO::out32(PCI::address_port, tmp);
|
||||
tmp = IO::in32(PCI::address_port);
|
||||
if (tmp == 0x80000000) {
|
||||
dmesgln("PCI IO supported");
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue