Changeset 06e1e95 in mainline for kernel/genarch


Ignore:
Timestamp:
2006-09-14T17:09:21Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1d1f5d3
Parents:
e5ecc02
Message:

C99 compliant header guards (hopefully) everywhere in the kernel.
Formatting and indentation changes.
Small improvements in sparc64.

Location:
kernel/genarch
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/acpi/acpi.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ACPI_H__
    36 #define __ACPI_H__
     35#ifndef KERN_ACPI_H_
     36#define KERN_ACPI_H_
    3737
    3838#include <arch/types.h>
     
    8989extern int acpi_sdt_check(uint8_t *sdt);
    9090
    91 #endif /* __ACPI_H__ */
     91#endif /* KERN_ACPI_H_ */
    9292
    93  /** @}
     93/** @}
    9494 */
    95 
  • kernel/genarch/include/acpi/madt.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __MADT_H__
    36 #define __MADT_H__
     35#ifndef KERN_MADT_H_
     36#define KERN_MADT_H_
    3737
    3838#include <genarch/acpi/acpi.h>
     
    144144extern void acpi_madt_parse(void);
    145145
    146 #endif /* __MADT_H__ */
     146#endif /* KERN_MADT_H_ */
    147147
    148  /** @}
     148/** @}
    149149 */
    150 
  • kernel/genarch/include/fb/fb.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef _FB_H_
    36 #define _FB_H_
     35#ifndef KERN_FB_H_
     36#define KERN_FB_H_
    3737
    3838#include <typedefs.h>
     
    4444#endif
    4545
    46  /** @}
     46/** @}
    4747 */
    48 
  • kernel/genarch/include/fb/font-8x16.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __FONT_8X16_H__
    36 #define __FONT_8X16_H__
     35#ifndef KERN_FONT_8X16_H_
     36#define KERN_FONT_8X16_H_
    3737
    3838#define FONT_GLIPHS             256
     
    4343#endif
    4444
    45  /** @}
     45/** @}
    4646 */
    47 
  • kernel/genarch/include/mm/as_ht.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __AS_HT_H__
    36 #define __AS_HT_H__
     35#ifndef KERN_AS_HT_H_
     36#define KERN_AS_HT_H_
    3737
    3838#include <mm/as.h>
  • kernel/genarch/include/mm/as_pt.h

    re5ecc02 r06e1e95  
    3333 */
    3434
    35 #ifndef __AS_PT_H__
    36 #define __AS_PT_H__
     35#ifndef KERN_AS_PT_H_
     36#define KERN_AS_PT_H_
    3737
    3838#include <mm/as.h>
  • kernel/genarch/include/mm/asid_fifo.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarchmm
     29/** @addtogroup genarchmm
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __ASID_FIFO_H__
    36 #define __ASID_FIFO_H__
     35#ifndef KERN_ASID_FIFO_H_
     36#define KERN_ASID_FIFO_H_
    3737
    3838extern void asid_fifo_init(void);
     
    4040#endif
    4141
    42  /** @}
     42/** @}
    4343 */
    44 
  • kernel/genarch/include/mm/page_ht.h

    re5ecc02 r06e1e95  
    3737#ifdef CONFIG_PAGE_HT
    3838
    39 #ifndef __PAGE_HT_H__
    40 #define __PAGE_HT_H__
     39#ifndef KERN_PAGE_HT_H_
     40#define KERN_PAGE_HT_H_
    4141
    4242#include <mm/page.h>
  • kernel/genarch/include/mm/page_pt.h

    re5ecc02 r06e1e95  
    4141#ifdef CONFIG_PAGE_PT
    4242
    43 #ifndef __PAGE_PT_H__
    44 #define __PAGE_PT_H__
     43#ifndef KERN_PAGE_PT_H_
     44#define KERN_PAGE_PT_H_
    4545
    4646#include <arch/types.h>
  • kernel/genarch/include/softint/division.h

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    3333 */
    3434
    35 #ifndef __SOFTINT_DIVISION_H__
    36 #define __SOFTINT_DIVISION_H__
    37 
     35#ifndef KERN_DIVISION_H_
     36#define KERN_DIVISION_H_
    3837
    3938/* 32bit integer division */
     
    6564#endif
    6665
    67 
    68  /** @}
     66/** @}
    6967 */
    70 
  • kernel/genarch/src/acpi/acpi.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29 
    30  /** @addtogroup genarch
     29/** @addtogroup genarch
    3130 * @{
    3231 */
     
    184183}
    185184
    186 
    187  /** @}
     185/** @}
    188186 */
    189 
  • kernel/genarch/src/acpi/madt.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    244244#endif /* CONFIG_SMP */
    245245
    246  /** @}
    247  */
    248 
     246/** @}
     247 */
  • kernel/genarch/src/fb/fb.c

    re5ecc02 r06e1e95  
    305305       
    306306        switch (ch) {
    307                 case '\n':
    308                         invert_cursor();
    309                         position += columns;
    310                         position -= position % columns;
    311                         break;
    312                 case '\r':
    313                         invert_cursor();
    314                         position -= position % columns;
    315                         break;
    316                 case '\b':
    317                         invert_cursor();
    318                         if (position % columns)
    319                                 position--;
    320                         break;
    321                 case '\t':
    322                         invert_cursor();
    323                         do {
    324                                 draw_char(' ');
    325                                 position++;
    326                         } while ((position % 8) && position < columns * rows);
    327                         break;
    328                 default:
    329                         draw_char(ch);
     307        case '\n':
     308                invert_cursor();
     309                position += columns;
     310                position -= position % columns;
     311                break;
     312        case '\r':
     313                invert_cursor();
     314                position -= position % columns;
     315                break;
     316        case '\b':
     317                invert_cursor();
     318                if (position % columns)
     319                        position--;
     320                break;
     321        case '\t':
     322                invert_cursor();
     323                do {
     324                        draw_char(' ');
    330325                        position++;
     326                } while ((position % 8) && position < columns * rows);
     327                break;
     328        default:
     329                draw_char(ch);
     330                position++;
    331331        }
    332332       
     
    359359{
    360360        switch (bpp) {
    361                 case 8:
    362                         rgb2scr = rgb_1byte;
    363                         scr2rgb = byte1_rgb;
    364                         pixelbytes = 1;
    365                         break;
    366                 case 16:
    367                         rgb2scr = rgb_2byte;
    368                         scr2rgb = byte2_rgb;
    369                         pixelbytes = 2;
    370                         break;
    371                 case 24:
    372                         rgb2scr = rgb_3byte;
    373                         scr2rgb = byte3_rgb;
    374                         if (align)
    375                                 pixelbytes = 4;
    376                         else
    377                                 pixelbytes = 3;
    378                         break;
    379                 case 32:
    380                         rgb2scr = rgb_4byte;
    381                         scr2rgb = byte4_rgb;
     361        case 8:
     362                rgb2scr = rgb_1byte;
     363                scr2rgb = byte1_rgb;
     364                pixelbytes = 1;
     365                break;
     366        case 16:
     367                rgb2scr = rgb_2byte;
     368                scr2rgb = byte2_rgb;
     369                pixelbytes = 2;
     370                break;
     371        case 24:
     372                rgb2scr = rgb_3byte;
     373                scr2rgb = byte3_rgb;
     374                if (align)
    382375                        pixelbytes = 4;
    383                         break;
    384                 default:
    385                         panic("Unsupported bpp");
     376                else
     377                        pixelbytes = 3;
     378                break;
     379        case 32:
     380                rgb2scr = rgb_4byte;
     381                scr2rgb = byte4_rgb;
     382                pixelbytes = 4;
     383                break;
     384        default:
     385                panic("Unsupported bpp");
    386386        }
    387387       
  • kernel/genarch/src/fb/font-8x16.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    46484648};
    46494649
    4650  /** @}
     4650/** @}
    46514651 */
    4652 
  • kernel/genarch/src/kbd/ns16550.c

    re5ecc02 r06e1e95  
    105105
    106106/** Wait until the controller reads its data. */
    107 void ns16550_wait(void) {
     107void ns16550_wait(void)
     108{
    108109}
    109110
  • kernel/genarch/src/mm/as_pt.c

    re5ecc02 r06e1e95  
    142142/** @}
    143143 */
    144 
  • kernel/genarch/src/softint/division.c

    re5ecc02 r06e1e95  
    2727 */
    2828
    29  /** @addtogroup genarch       
     29/** @addtogroup genarch
    3030 * @{
    3131 */
     
    192192}
    193193
    194 
    195 
    196  /** @}
     194/** @}
    197195 */
    198 
Note: See TracChangeset for help on using the changeset viewer.