mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
Kernel/Storage: Rename the method hba_region => default_hba_region
Also, make sure we unmap it after the init process.
This commit is contained in:
parent
4cf6963a1c
commit
5c1073a62d
Notes:
sideshowbarker
2024-07-18 17:13:41 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/5c1073a62dc Pull-request: https://github.com/SerenityOS/serenity/pull/7539
2 changed files with 3 additions and 3 deletions
|
@ -82,7 +82,7 @@ volatile AHCI::HBA& AHCIController::hba() const
|
|||
AHCIController::AHCIController(PCI::Address address)
|
||||
: StorageController()
|
||||
, PCI::DeviceController(address)
|
||||
, m_hba_region(hba_region())
|
||||
, m_hba_region(default_hba_region())
|
||||
, m_capabilities(capabilities())
|
||||
{
|
||||
initialize();
|
||||
|
@ -125,7 +125,7 @@ AHCI::HBADefinedCapabilities AHCIController::capabilities() const
|
|||
};
|
||||
}
|
||||
|
||||
NonnullOwnPtr<Region> AHCIController::hba_region() const
|
||||
NonnullOwnPtr<Region> AHCIController::default_hba_region() const
|
||||
{
|
||||
auto region = MM.allocate_kernel_region(PhysicalAddress(PCI::get_BAR5(pci_address())).page_base(), page_round_up(sizeof(AHCI::HBA)), "AHCI HBA", Region::Access::Read | Region::Access::Write);
|
||||
return region.release_nonnull();
|
||||
|
|
|
@ -48,7 +48,7 @@ private:
|
|||
RefPtr<StorageDevice> device_by_port(u32 index) const;
|
||||
|
||||
volatile AHCI::PortRegisters& port(size_t port_number) const;
|
||||
NonnullOwnPtr<Region> hba_region() const;
|
||||
UNMAP_AFTER_INIT NonnullOwnPtr<Region> default_hba_region() const;
|
||||
volatile AHCI::HBA& hba() const;
|
||||
|
||||
NonnullOwnPtr<Region> m_hba_region;
|
||||
|
|
Loading…
Reference in a new issue