diff --git a/kernel/src/arch/PCI.cpp b/kernel/src/arch/PCI.cpp index 0ac20bbc..b1e89f71 100644 --- a/kernel/src/arch/PCI.cpp +++ b/kernel/src/arch/PCI.cpp @@ -3,7 +3,7 @@ struct ScanInfo { - PCI::callback_t callback; + PCI::Callback callback; PCI::Match match; }; @@ -85,7 +85,7 @@ namespace PCI for (u32 slot = 0; slot < 32; slot++) { scan_slot(bus, slot, info); } } - void scan(callback_t callback, Match match) + void scan(Callback callback, Match match) { u8 header_type = read8({ 0, 0, 0 }, Field::HeaderType); diff --git a/kernel/src/arch/PCI.h b/kernel/src/arch/PCI.h index 99706db9..9157c4aa 100644 --- a/kernel/src/arch/PCI.h +++ b/kernel/src/arch/PCI.h @@ -47,7 +47,7 @@ namespace PCI Address address; }; - typedef void (*callback_t)(const Device&); + typedef void (*Callback)(const Device&); struct Match { @@ -69,5 +69,5 @@ namespace PCI Device::ID read_id(const Device::Address& address); Device::Type read_type(const Device::Address& address); - void scan(callback_t callback, Match match); + void scan(Callback callback, Match match); }