1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:37:36 +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:
Andreas Kling 2020-04-08 17:09:49 +02:00
parent 15cffc4089
commit 44e889785a
4 changed files with 29 additions and 25 deletions

View file

@ -41,10 +41,10 @@ public:
static Access& the();
static bool is_initialized();
virtual uint32_t get_segments_count() = 0;
virtual uint8_t get_segment_start_bus(u32 segment) = 0;
virtual uint8_t get_segment_end_bus(u32 segment) = 0;
virtual String get_access_type() = 0;
virtual uint32_t segment_count() const = 0;
virtual uint8_t segment_start_bus(u32 segment) const = 0;
virtual uint8_t segment_end_bus(u32 segment) const = 0;
virtual const char* access_type() const = 0;
virtual void write8_field(Address address, u32 field, u8 value) = 0;
virtual void write16_field(Address address, u32 field, u16 value) = 0;