···3939PointerAlignment: Right
4040SortIncludes: false
4141SpaceBeforeParens: Never
4242-SpacesInContainerLiterals: false4242+SpacesInContainerLiterals: false
4343+AlignConsecutiveAssignments: true
4444+AlignConsecutiveDeclarations: true
4545+BinPackArguments: false
4646+BinPackParameters: false
+19-19
os/include/kernel/atag.h
···2222 */
2323enum ATAG_TYPE
2424{
2525- ATAG_NONE = 0, /**< Empty tag used to end the list */
2626- ATAG_CORE = 0x54410001, /**< First tag used to start the list */
2727- ATAG_MEM = 0x54410002, /**< Describes a physical area of memory */
2525+ ATAG_NONE = 0, /**< Empty tag used to end the list */
2626+ ATAG_CORE = 0x54410001, /**< First tag used to start the list */
2727+ ATAG_MEM = 0x54410002, /**< Describes a physical area of memory */
2828 ATAG_VIDEOTEXT = 0x54410003, /**< VGA text screen information */
2929- ATAG_RAMDISK = 0x54410004, /**< Describes how the ramdisk will be used */
3030- ATAG_INITRD2 = 0x54420005, /**< Describes where the compressed ramdisk
2929+ ATAG_RAMDISK = 0x54410004, /**< Describes how the ramdisk will be used */
3030+ ATAG_INITRD2 = 0x54420005, /**< Describes where the compressed ramdisk
3131 image is placed in memory */
3232- ATAG_SERIAL = 0x54410006, /**< Board serial number */
3232+ ATAG_SERIAL = 0x54410006, /**< Board serial number */
3333 ATAG_REVISION = 0x54410007, /**< Board revision */
3434 ATAG_VIDEOLFB = 0x54410008, /**< Framebuffer information */
3535- ATAG_CMDLINE = 0x54410009 /**< Command line */
3535+ ATAG_CMDLINE = 0x54410009 /**< Command line */
3636};
37373838/**
···132132 */
133133typedef struct atag_videolfb
134134{
135135- uint16_t width; /**< Width of buffer */
136136- uint16_t height; /**< Height */
137137- uint16_t depth; /**< Bits/pixel */
138138- uint16_t linelength; /**< Length of a line in bytes */
139139- uint32_t address; /**< Base address of buffer */
140140- uint32_t size; /**< Size of buffer */
135135+ uint16_t width; /**< Width of buffer */
136136+ uint16_t height; /**< Height */
137137+ uint16_t depth; /**< Bits/pixel */
138138+ uint16_t linelength; /**< Length of a line in bytes */
139139+ uint32_t address; /**< Base address of buffer */
140140+ uint32_t size; /**< Size of buffer */
141141 unsigned char redsize; /**< Number of red bits in each pixel */
142142 unsigned char redpos; /**< Position of red bits in pixel */
143143 unsigned char greensize; /**< Number of green bits in each pixel */
···168168 atag_header header; /**< Standard header */
169169 union
170170 {
171171- atag_core core; /**< Core tag */
172172- atag_mem mem; /**< Memory tag */
173173- atag_ramdisk ramdisk; /**< Ramdisk tag */
174174- atag_initrd2 initrd2; /**< Initrd2 tag */
175175- atag_serial serial; /**< Serial tag */
171171+ atag_core core; /**< Core tag */
172172+ atag_mem mem; /**< Memory tag */
173173+ atag_ramdisk ramdisk; /**< Ramdisk tag */
174174+ atag_initrd2 initrd2; /**< Initrd2 tag */
175175+ atag_serial serial; /**< Serial tag */
176176 atag_revision revision; /**< Revision tag */
177177 atag_videolfb videolfb; /**< Videolfb tag */
178178- atag_cmdline cmdline; /**< Cmdline tag */
178178+ atag_cmdline cmdline; /**< Cmdline tag */
179179 };
180180} atag_t; /**< ATAG structure */
181181
+1-1
os/include/kernel/framebuffer.h
···2626 uint32_t width; /**< Width of the framebuffer in pixels */
2727 uint32_t height; /**< Height of the framebuffer in pixels */
2828 uint32_t pitch; /**< Number of bytes per row */
2929- void *buf; /**< Pointer to the framebuffer */
2929+ void *buf; /**< Pointer to the framebuffer */
3030 uint32_t buf_size; /**< Size of the framebuffer in bytes */
3131 uint32_t chars_width; /**< Width of the framebuffer in characters */
3232 uint32_t chars_height; /**< Height of the framebuffer in characters */
···4848 */
4949typedef struct
5050{
5151- uint8_t channel : 4; /**< The channel to send the message to */
5252- uint32_t data : 28; /**< The data to send */
5151+ uint8_t channel : 4; /**< The channel to send the message to */
5252+ uint32_t data : 28; /**< The data to send */
5353} mail_message_t;
54545555/**
···7373typedef struct
7474{
7575 uint32_t reserved : 30; /**< Reserved for future use */
7676- uint8_t empty : 1; /**< The empty flag */
7777- uint8_t full : 1; /**< The full flag */
7676+ uint8_t empty : 1; /**< The empty flag */
7777+ uint8_t full : 1; /**< The full flag */
7878} mail_status_t; /**< The status of the mailbox */
79798080/**
···105105 */
106106typedef enum
107107{
108108- REQUEST = 0x00000000, /**< Request code */
108108+ REQUEST = 0x00000000, /**< Request code */
109109 RESPONSE_SUCCESS = 0x80000000, /**< Response success code */
110110- RESPONSE_ERROR = 0x80000001 /**< Response error code */
110110+ RESPONSE_ERROR = 0x80000001 /**< Response error code */
111111} buffer_req_res_code_t;
112112113113/**
···119119 */
120120typedef struct
121121{
122122- uint32_t size; /**< Size includes the size itself */
122122+ uint32_t size; /**< Size includes the size itself */
123123 buffer_req_res_code_t req_res_code; /**< Request or response code */
124124 uint32_t tags[1]; /**< The tags start here. Will use overrun to make large
125125 enough */
···138138 */
139139typedef enum
140140{
141141- NULL_TAG = 0, /**< The end of the tag list */
142142- FB_ALLOCATE_BUFFER = 0x00040001, /**< Allocate a framebuffer */
143143- FB_RELESE_BUFFER = 0x00048001, /**< Release a framebuffer */
141141+ NULL_TAG = 0, /**< The end of the tag list */
142142+ FB_ALLOCATE_BUFFER = 0x00040001, /**< Allocate a framebuffer */
143143+ FB_RELESE_BUFFER = 0x00048001, /**< Release a framebuffer */
144144 FB_GET_PHYSICAL_DIMENSIONS = 0x00040003, /**< Get the physical dimensions
145145 of the framebuffer */
146146 FB_SET_PHYSICAL_DIMENSIONS = 0x00048003, /**< Set the physical dimensions
···171171 */
172172typedef struct
173173{
174174- void *fb_addr; /**< The address of the framebuffer */
174174+ void *fb_addr; /**< The address of the framebuffer */
175175 uint32_t fb_size; /**< The size of the framebuffer */
176176} fb_allocate_res_t; /**< The response value buffer for FB_ALLOCATE_BUFFER */
177177
+9-9
os/include/kernel/memory.h
···2222 */
2323typedef struct
2424{
2525- uint8_t allocated : 1; /**< This page is allocated to something */
2626- uint8_t kernel_page : 1; /**< This page is a part of the kernel */
2727- uint8_t kernel_heap_page : 1; /**< This page is a part of the kernel */
2828- uint32_t reserved : 29; /**< Reserved */
2929-} page_flags_t; /**< Page flags */
2525+ uint8_t allocated : 1; /**< This page is allocated to something */
2626+ uint8_t kernel_page : 1; /**< This page is a part of the kernel */
2727+ uint8_t kernel_heap_page : 1; /**< This page is a part of the kernel */
2828+ uint32_t reserved : 29; /**< Reserved */
2929+} page_flags_t; /**< Page flags */
30303131DEFINE_LIST(page); /**< List of pages */
3232···3939 */
4040typedef struct page
4141{
4242- uint32_t vaddr_mapped; /**< Virtual address mapped to this page */
4343- page_flags_t flags; /**< Page flags */
4444- DEFINE_LINK(page); /**< Link to the next page */
4545-} page_t; /**< Page */
4242+ uint32_t vaddr_mapped; /**< Virtual address mapped to this page */
4343+ page_flags_t flags; /**< Page flags */
4444+ DEFINE_LINK(page); /**< Link to the next page */
4545+} page_t; /**< Page */
46464747/**
4848 * @brief Kernel heap
+9-9
os/include/peripherals/aux.h
···2121 AUX_BASE = (GPIO_BASE + 0x15000),
22222323 /* The offsets for reach register for the UART */
2424- AUX_ENABLES = (AUX_BASE + 0x04), /**< Auxiliary Enables */
2525- AUX_MU_IO_REG = (AUX_BASE + 0x40), /**< Mini UART I/O Data */
2626- AUX_MU_IER_REG = (AUX_BASE + 0x44), /**< Mini UART Interrupt Enable */
2727- AUX_MU_IIR_REG = (AUX_BASE + 0x48), /**< Mini UART Interrupt Identify */
2828- AUX_MU_LCR_REG = (AUX_BASE + 0x4C), /**< Mini UART Line Control */
2929- AUX_MU_MCR_REG = (AUX_BASE + 0x50), /**< Mini UART Model Control */
3030- AUX_MU_LSR_REG = (AUX_BASE + 0x54), /**< Mini UART Line Status */
3131- AUX_MU_MSR_REG = (AUX_BASE + 0x58), /**< Mini UART Modem Status */
3232- AUX_MU_SCRATCH = (AUX_BASE + 0x5C), /**< Mini UART Scratch */
2424+ AUX_ENABLES = (AUX_BASE + 0x04), /**< Auxiliary Enables */
2525+ AUX_MU_IO_REG = (AUX_BASE + 0x40), /**< Mini UART I/O Data */
2626+ AUX_MU_IER_REG = (AUX_BASE + 0x44), /**< Mini UART Interrupt Enable */
2727+ AUX_MU_IIR_REG = (AUX_BASE + 0x48), /**< Mini UART Interrupt Identify */
2828+ AUX_MU_LCR_REG = (AUX_BASE + 0x4C), /**< Mini UART Line Control */
2929+ AUX_MU_MCR_REG = (AUX_BASE + 0x50), /**< Mini UART Model Control */
3030+ AUX_MU_LSR_REG = (AUX_BASE + 0x54), /**< Mini UART Line Status */
3131+ AUX_MU_MSR_REG = (AUX_BASE + 0x58), /**< Mini UART Modem Status */
3232+ AUX_MU_SCRATCH = (AUX_BASE + 0x5C), /**< Mini UART Scratch */
3333 AUX_MU_CNTL_REG = (AUX_BASE + 0x60), /**< Mini UART Extra Control */
3434 AUX_MU_STAT_REG = (AUX_BASE + 0x64), /**< Mini UART Extra Status */
3535 AUX_MU_BAUD_REG = (AUX_BASE + 0x68) /**< Mini UART Baudrate */