mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:08:10 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -20,17 +20,17 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
NonnullRefPtr<AHCIPort> AHCIPort::create(const AHCIPortHandler& handler, volatile AHCI::PortRegisters& registers, u32 port_index)
|
||||
NonnullRefPtr<AHCIPort> AHCIPort::create(AHCIPortHandler const& handler, volatile AHCI::PortRegisters& registers, u32 port_index)
|
||||
{
|
||||
return adopt_ref(*new AHCIPort(handler, registers, port_index));
|
||||
}
|
||||
|
||||
AHCIPort::AHCIPort(const AHCIPortHandler& handler, volatile AHCI::PortRegisters& registers, u32 port_index)
|
||||
AHCIPort::AHCIPort(AHCIPortHandler const& handler, volatile AHCI::PortRegisters& registers, u32 port_index)
|
||||
: m_port_index(port_index)
|
||||
, m_port_registers(registers)
|
||||
, m_parent_handler(handler)
|
||||
, m_interrupt_status((volatile u32&)m_port_registers.is)
|
||||
, m_interrupt_enable((volatile u32&)m_port_registers.ie)
|
||||
, m_interrupt_status((u32 volatile&)m_port_registers.is)
|
||||
, m_interrupt_enable((u32 volatile&)m_port_registers.ie)
|
||||
{
|
||||
if (is_interface_disabled()) {
|
||||
m_disabled_by_firmware = true;
|
||||
|
@ -319,7 +319,7 @@ bool AHCIPort::initialize()
|
|||
return true;
|
||||
}
|
||||
|
||||
const char* AHCIPort::try_disambiguate_sata_status()
|
||||
char const* AHCIPort::try_disambiguate_sata_status()
|
||||
{
|
||||
switch (m_port_registers.ssts & 0xf) {
|
||||
case 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue