mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 03:57:35 +00:00
Everywhere: Fix many spelling errors
This commit is contained in:
parent
6bf91d00ef
commit
3102d8e160
39 changed files with 73 additions and 73 deletions
|
@ -47,7 +47,7 @@ static constexpr u16 UHCI_FRAMELIST_FRAME_INVALID = 0x0001;
|
|||
|
||||
// Port stuff
|
||||
static constexpr u8 UHCI_ROOT_PORT_COUNT = 2;
|
||||
static constexpr u16 UHCI_PORTSC_CURRRENT_CONNECT_STATUS = 0x0001;
|
||||
static constexpr u16 UHCI_PORTSC_CURRENT_CONNECT_STATUS = 0x0001;
|
||||
static constexpr u16 UHCI_PORTSC_CONNECT_STATUS_CHANGED = 0x0002;
|
||||
static constexpr u16 UHCI_PORTSC_PORT_ENABLED = 0x0004;
|
||||
static constexpr u16 UHCI_PORTSC_PORT_ENABLE_CHANGED = 0x0008;
|
||||
|
@ -56,7 +56,7 @@ static constexpr u16 UHCI_PORTSC_RESUME_DETECT = 0x40;
|
|||
static constexpr u16 UHCI_PORTSC_LOW_SPEED_DEVICE = 0x0100;
|
||||
static constexpr u16 UHCI_PORTSC_PORT_RESET = 0x0200;
|
||||
static constexpr u16 UHCI_PORTSC_SUSPEND = 0x1000;
|
||||
static constexpr u16 UCHI_PORTSC_NON_WRITE_CLEAR_BIT_MASK = 0x1FF5; // This is used to mask out the Write Clear bits making sure we don't accidentally clear them.
|
||||
static constexpr u16 UHCI_PORTSC_NON_WRITE_CLEAR_BIT_MASK = 0x1FF5; // This is used to mask out the Write Clear bits making sure we don't accidentally clear them.
|
||||
|
||||
// *BSD and a few other drivers seem to use this number
|
||||
static constexpr u8 UHCI_NUMBER_OF_ISOCHRONOUS_TDS = 128;
|
||||
|
@ -511,7 +511,7 @@ void UHCIController::get_port_status(Badge<UHCIRootHub>, u8 port, HubStatus& hub
|
|||
|
||||
u16 status = port == 0 ? read_portsc1() : read_portsc2();
|
||||
|
||||
if (status & UHCI_PORTSC_CURRRENT_CONNECT_STATUS)
|
||||
if (status & UHCI_PORTSC_CURRENT_CONNECT_STATUS)
|
||||
hub_port_status.status |= PORT_STATUS_CURRENT_CONNECT_STATUS;
|
||||
|
||||
if (status & UHCI_PORTSC_CONNECT_STATUS_CHANGED)
|
||||
|
@ -555,7 +555,7 @@ void UHCIController::reset_port(u8 port)
|
|||
VERIFY(port < NUMBER_OF_ROOT_PORTS);
|
||||
|
||||
u16 port_data = port == 0 ? read_portsc1() : read_portsc2();
|
||||
port_data &= UCHI_PORTSC_NON_WRITE_CLEAR_BIT_MASK;
|
||||
port_data &= UHCI_PORTSC_NON_WRITE_CLEAR_BIT_MASK;
|
||||
port_data |= UHCI_PORTSC_PORT_RESET;
|
||||
if (port == 0)
|
||||
write_portsc1(port_data);
|
||||
|
@ -605,7 +605,7 @@ ErrorOr<void> UHCIController::set_port_feature(Badge<UHCIRootHub>, u8 port, HubF
|
|||
break;
|
||||
case HubFeatureSelector::PORT_SUSPEND: {
|
||||
u16 port_data = port == 0 ? read_portsc1() : read_portsc2();
|
||||
port_data &= UCHI_PORTSC_NON_WRITE_CLEAR_BIT_MASK;
|
||||
port_data &= UHCI_PORTSC_NON_WRITE_CLEAR_BIT_MASK;
|
||||
port_data |= UHCI_PORTSC_SUSPEND;
|
||||
|
||||
if (port == 0)
|
||||
|
@ -632,7 +632,7 @@ ErrorOr<void> UHCIController::clear_port_feature(Badge<UHCIRootHub>, u8 port, Hu
|
|||
dbgln_if(UHCI_DEBUG, "UHCI: clear_port_feature: port={} feature_selector={}", port, (u8)feature_selector);
|
||||
|
||||
u16 port_data = port == 0 ? read_portsc1() : read_portsc2();
|
||||
port_data &= UCHI_PORTSC_NON_WRITE_CLEAR_BIT_MASK;
|
||||
port_data &= UHCI_PORTSC_NON_WRITE_CLEAR_BIT_MASK;
|
||||
|
||||
switch (feature_selector) {
|
||||
case HubFeatureSelector::PORT_ENABLE:
|
||||
|
|
|
@ -730,16 +730,16 @@ ErrorOr<size_t> Plan9FSInode::read_bytes(off_t offset, size_t size, UserOrKernel
|
|||
StringView data;
|
||||
|
||||
// Try readlink first.
|
||||
bool readlink_succeded = false;
|
||||
bool readlink_succeeded = false;
|
||||
if (fs().m_remote_protocol_version >= Plan9FS::ProtocolVersion::v9P2000L && offset == 0) {
|
||||
message << fid();
|
||||
if (auto result = fs().post_message_and_wait_for_a_reply(message); !result.is_error()) {
|
||||
readlink_succeded = true;
|
||||
readlink_succeeded = true;
|
||||
message >> data;
|
||||
}
|
||||
}
|
||||
|
||||
if (!readlink_succeded) {
|
||||
if (!readlink_succeeded) {
|
||||
message = Plan9FS::Message { fs(), Plan9FS::Message::Type::Tread };
|
||||
message << fid() << (u64)offset << (u32)size;
|
||||
TRY(fs().post_message_and_wait_for_a_reply(message));
|
||||
|
|
|
@ -86,7 +86,7 @@ UNMAP_AFTER_INIT void BIOSSysFSDirectory::set_dmi_32_bit_entry_initialization_va
|
|||
auto smbios_entry = Memory::map_typed<SMBIOS::EntryPoint32bit>(m_dmi_entry_point, SMBIOS_SEARCH_AREA_SIZE);
|
||||
m_smbios_structure_table = PhysicalAddress(smbios_entry.ptr()->legacy_structure.smbios_table_ptr);
|
||||
m_dmi_entry_point_length = smbios_entry.ptr()->length;
|
||||
m_smbios_structure_table_length = smbios_entry.ptr()->legacy_structure.smboios_table_length;
|
||||
m_smbios_structure_table_length = smbios_entry.ptr()->legacy_structure.smbios_table_length;
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT NonnullRefPtr<BIOSSysFSDirectory> BIOSSysFSDirectory::must_create(FirmwareSysFSDirectory& firmware_directory)
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace Kernel::SMBIOS {
|
|||
struct [[gnu::packed]] LegacyEntryPoint32bit {
|
||||
char legacy_sig[5];
|
||||
u8 checksum2;
|
||||
u16 smboios_table_length;
|
||||
u16 smbios_table_length;
|
||||
u32 smbios_table_ptr;
|
||||
u16 smbios_tables_count;
|
||||
u8 smbios_bcd_revision;
|
||||
|
|
|
@ -161,7 +161,7 @@ void PIC::remap(u8 offset)
|
|||
IO::out8(PIC0_CTL, ICW1_INIT | ICW1_ICW4);
|
||||
IO::out8(PIC1_CTL, ICW1_INIT | ICW1_ICW4);
|
||||
|
||||
/* ICW2 (upper 5 bits specify ISR indices, lower 3 idunno) */
|
||||
/* ICW2 (upper 5 bits specify ISR indices, lower 3 don't specify anything) */
|
||||
IO::out8(PIC0_CMD, offset);
|
||||
IO::out8(PIC1_CMD, offset + 0x08);
|
||||
|
||||
|
@ -188,7 +188,7 @@ UNMAP_AFTER_INIT void PIC::initialize()
|
|||
IO::out8(PIC0_CTL, ICW1_INIT | ICW1_ICW4);
|
||||
IO::out8(PIC1_CTL, ICW1_INIT | ICW1_ICW4);
|
||||
|
||||
/* ICW2 (upper 5 bits specify ISR indices, lower 3 idunno) */
|
||||
/* ICW2 (upper 5 bits specify ISR indices, lower 3 don't specify anything) */
|
||||
IO::out8(PIC0_CMD, IRQ_VECTOR_BASE);
|
||||
IO::out8(PIC1_CMD, IRQ_VECTOR_BASE + 0x08);
|
||||
|
||||
|
|
|
@ -710,7 +710,7 @@ ErrorOr<void> Process::send_signal(u8 signal, Process* sender)
|
|||
// If the main thread has died, there may still be other threads:
|
||||
if (!receiver_thread) {
|
||||
// The first one should be good enough.
|
||||
// Neither kill(2) nor kill(3) specify any selection precedure.
|
||||
// Neither kill(2) nor kill(3) specify any selection procedure.
|
||||
for_each_thread([&receiver_thread](Thread& thread) -> IterationDecision {
|
||||
receiver_thread = &thread;
|
||||
return IterationDecision::Break;
|
||||
|
|
|
@ -99,17 +99,17 @@ time_t now()
|
|||
};
|
||||
|
||||
unsigned year, month, day, hour, minute, second;
|
||||
bool did_read_rtc_sucessfully = false;
|
||||
bool did_read_rtc_successfully = false;
|
||||
for (size_t attempt = 0; attempt < 5; attempt++) {
|
||||
if (!try_to_read_registers(year, month, day, hour, minute, second))
|
||||
break;
|
||||
if (check_registers_against_preloaded_values(year, month, day, hour, minute, second)) {
|
||||
did_read_rtc_sucessfully = true;
|
||||
did_read_rtc_successfully = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
dmesgln("RTC: {} Year: {}, month: {}, day: {}, hour: {}, minute: {}, second: {}", (did_read_rtc_sucessfully ? "" : "(failed to read)"), year, month, day, hour, minute, second);
|
||||
dmesgln("RTC: {} Year: {}, month: {}, day: {}, hour: {}, minute: {}, second: {}", (did_read_rtc_successfully ? "" : "(failed to read)"), year, month, day, hour, minute, second);
|
||||
|
||||
time_t days_since_epoch = years_to_days_since_epoch(year) + day_of_year(year, month, day);
|
||||
return ((days_since_epoch * 24 + hour) * 60 + minute) * 60 + second;
|
||||
|
|
|
@ -19,7 +19,7 @@ Result<NonnullOwnPtr<MBRPartitionTable>, PartitionTable::Error> MBRPartitionTabl
|
|||
{
|
||||
auto table = make<MBRPartitionTable>(device);
|
||||
if (table->contains_ebr())
|
||||
return { PartitionTable::Error::ConatinsEBR };
|
||||
return { PartitionTable::Error::ContainsEBR };
|
||||
if (table->is_protective_mbr())
|
||||
return { PartitionTable::Error::MBRProtective };
|
||||
if (!table->is_valid())
|
||||
|
|
|
@ -19,7 +19,7 @@ public:
|
|||
enum class Error {
|
||||
Invalid,
|
||||
MBRProtective,
|
||||
ConatinsEBR,
|
||||
ContainsEBR,
|
||||
};
|
||||
|
||||
public:
|
||||
|
|
|
@ -101,7 +101,7 @@ UNMAP_AFTER_INIT OwnPtr<PartitionTable> StorageManagement::try_to_initialize_par
|
|||
return {};
|
||||
return move(gpt_table_or_result.value());
|
||||
}
|
||||
if (mbr_table_or_result.error() == PartitionTable::Error::ConatinsEBR) {
|
||||
if (mbr_table_or_result.error() == PartitionTable::Error::ContainsEBR) {
|
||||
auto ebr_table_or_result = EBRPartitionTable::try_to_initialize(device);
|
||||
if (ebr_table_or_result.is_error())
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue