mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:57:45 +00:00
Everywhere: Re-format with clang-format-11
Compared to version 10 this fixes a bunch of formatting issues, mostly around structs/classes with attributes like [[gnu::packed]], and incorrect insertion of spaces in parameter types ("T &"/"T &&"). I also removed a bunch of // clang-format off/on and FIXME comments that are no longer relevant - on the other hand it tried to destroy a couple of neatly formatted comments, so I had to add some as well.
This commit is contained in:
parent
2568a93b5d
commit
bbe787a0af
54 changed files with 130 additions and 230 deletions
|
@ -65,14 +65,12 @@ enum class TimerConfiguration : u32 {
|
|||
};
|
||||
};
|
||||
|
||||
struct [[gnu::packed]] HPETRegister
|
||||
{
|
||||
struct [[gnu::packed]] HPETRegister {
|
||||
volatile u32 low;
|
||||
volatile u32 high;
|
||||
};
|
||||
|
||||
struct [[gnu::packed]] TimerStructure
|
||||
{
|
||||
struct [[gnu::packed]] TimerStructure {
|
||||
volatile u32 capabilities;
|
||||
volatile u32 interrupt_routing;
|
||||
HPETRegister comparator_value;
|
||||
|
@ -80,16 +78,14 @@ struct [[gnu::packed]] TimerStructure
|
|||
u64 reserved;
|
||||
};
|
||||
|
||||
struct [[gnu::packed]] HPETCapabilityRegister
|
||||
{
|
||||
struct [[gnu::packed]] HPETCapabilityRegister {
|
||||
// Note: We must do a 32 bit access to offsets 0x0, or 0x4 only, according to HPET spec.
|
||||
volatile u32 attributes;
|
||||
volatile u32 main_counter_tick_period;
|
||||
u64 reserved;
|
||||
};
|
||||
|
||||
struct [[gnu::packed]] HPETRegistersBlock
|
||||
{
|
||||
struct [[gnu::packed]] HPETRegistersBlock {
|
||||
HPETCapabilityRegister capabilities;
|
||||
HPETRegister configuration;
|
||||
u64 reserved1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue