kernel: Rename PCI::callback_t to PCI::Callback
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
15c89a3592
commit
fa29d6e9b9
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
struct ScanInfo
|
struct ScanInfo
|
||||||
{
|
{
|
||||||
PCI::callback_t callback;
|
PCI::Callback callback;
|
||||||
PCI::Match match;
|
PCI::Match match;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ namespace PCI
|
|||||||
for (u32 slot = 0; slot < 32; slot++) { scan_slot(bus, slot, info); }
|
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);
|
u8 header_type = read8({ 0, 0, 0 }, Field::HeaderType);
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ namespace PCI
|
|||||||
Address address;
|
Address address;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*callback_t)(const Device&);
|
typedef void (*Callback)(const Device&);
|
||||||
|
|
||||||
struct Match
|
struct Match
|
||||||
{
|
{
|
||||||
@ -69,5 +69,5 @@ namespace PCI
|
|||||||
Device::ID read_id(const Device::Address& address);
|
Device::ID read_id(const Device::Address& address);
|
||||||
Device::Type read_type(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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user