mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
Kernel: Fix up various PCI-related function signatures
- Make things const when they don't need to be non-const. - Don't return AK::String when it's always a string literal anyway. - Remove excessive get_ prefixes per coding style.
This commit is contained in:
parent
15cffc4089
commit
44e889785a
4 changed files with 29 additions and 25 deletions
|
@ -33,16 +33,18 @@ namespace Kernel {
|
|||
|
||||
#define PCI_MMIO_CONFIG_SPACE_SIZE 4096
|
||||
|
||||
uint32_t PCI::MMIOAccess::get_segments_count()
|
||||
uint32_t PCI::MMIOAccess::segment_count() const
|
||||
{
|
||||
return m_segments.size();
|
||||
}
|
||||
uint8_t PCI::MMIOAccess::get_segment_start_bus(u32 seg)
|
||||
|
||||
uint8_t PCI::MMIOAccess::segment_start_bus(u32 seg) const
|
||||
{
|
||||
ASSERT(m_segments.contains(seg));
|
||||
return m_segments.get(seg).value()->get_start_bus();
|
||||
}
|
||||
uint8_t PCI::MMIOAccess::get_segment_end_bus(u32 seg)
|
||||
|
||||
uint8_t PCI::MMIOAccess::segment_end_bus(u32 seg) const
|
||||
{
|
||||
ASSERT(m_segments.contains(seg));
|
||||
return m_segments.get(seg).value()->get_end_bus();
|
||||
|
@ -213,10 +215,12 @@ PCI::MMIOSegment::MMIOSegment(PhysicalAddress segment_base_addr, u8 start_bus, u
|
|||
, m_end_bus(end_bus)
|
||||
{
|
||||
}
|
||||
|
||||
u8 PCI::MMIOSegment::get_start_bus()
|
||||
{
|
||||
return m_start_bus;
|
||||
}
|
||||
|
||||
u8 PCI::MMIOSegment::get_end_bus()
|
||||
{
|
||||
return m_end_bus;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue