Changeset 06e1e95 in mainline for kernel/genarch
- Timestamp:
- 2006-09-14T17:09:21Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1d1f5d3
- Parents:
- e5ecc02
- Location:
- kernel/genarch
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/include/acpi/acpi.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __ACPI_H__36 #define __ACPI_H__35 #ifndef KERN_ACPI_H_ 36 #define KERN_ACPI_H_ 37 37 38 38 #include <arch/types.h> … … 89 89 extern int acpi_sdt_check(uint8_t *sdt); 90 90 91 #endif /* __ACPI_H__ */91 #endif /* KERN_ACPI_H_ */ 92 92 93 93 /** @} 94 94 */ 95 -
kernel/genarch/include/acpi/madt.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __MADT_H__36 #define __MADT_H__35 #ifndef KERN_MADT_H_ 36 #define KERN_MADT_H_ 37 37 38 38 #include <genarch/acpi/acpi.h> … … 144 144 extern void acpi_madt_parse(void); 145 145 146 #endif /* __MADT_H__ */146 #endif /* KERN_MADT_H_ */ 147 147 148 148 /** @} 149 149 */ 150 -
kernel/genarch/include/fb/fb.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef _FB_H_36 #define _FB_H_35 #ifndef KERN_FB_H_ 36 #define KERN_FB_H_ 37 37 38 38 #include <typedefs.h> … … 44 44 #endif 45 45 46 46 /** @} 47 47 */ 48 -
kernel/genarch/include/fb/font-8x16.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __FONT_8X16_H__36 #define __FONT_8X16_H__35 #ifndef KERN_FONT_8X16_H_ 36 #define KERN_FONT_8X16_H_ 37 37 38 38 #define FONT_GLIPHS 256 … … 43 43 #endif 44 44 45 45 /** @} 46 46 */ 47 -
kernel/genarch/include/mm/as_ht.h
re5ecc02 r06e1e95 33 33 */ 34 34 35 #ifndef __AS_HT_H__36 #define __AS_HT_H__35 #ifndef KERN_AS_HT_H_ 36 #define KERN_AS_HT_H_ 37 37 38 38 #include <mm/as.h> -
kernel/genarch/include/mm/as_pt.h
re5ecc02 r06e1e95 33 33 */ 34 34 35 #ifndef __AS_PT_H__36 #define __AS_PT_H__35 #ifndef KERN_AS_PT_H_ 36 #define KERN_AS_PT_H_ 37 37 38 38 #include <mm/as.h> -
kernel/genarch/include/mm/asid_fifo.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarchmm 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __ASID_FIFO_H__36 #define __ASID_FIFO_H__35 #ifndef KERN_ASID_FIFO_H_ 36 #define KERN_ASID_FIFO_H_ 37 37 38 38 extern void asid_fifo_init(void); … … 40 40 #endif 41 41 42 42 /** @} 43 43 */ 44 -
kernel/genarch/include/mm/page_ht.h
re5ecc02 r06e1e95 37 37 #ifdef CONFIG_PAGE_HT 38 38 39 #ifndef __PAGE_HT_H__40 #define __PAGE_HT_H__39 #ifndef KERN_PAGE_HT_H_ 40 #define KERN_PAGE_HT_H_ 41 41 42 42 #include <mm/page.h> -
kernel/genarch/include/mm/page_pt.h
re5ecc02 r06e1e95 41 41 #ifdef CONFIG_PAGE_PT 42 42 43 #ifndef __PAGE_PT_H__44 #define __PAGE_PT_H__43 #ifndef KERN_PAGE_PT_H_ 44 #define KERN_PAGE_PT_H_ 45 45 46 46 #include <arch/types.h> -
kernel/genarch/include/softint/division.h
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __SOFTINT_DIVISION_H__ 36 #define __SOFTINT_DIVISION_H__ 37 35 #ifndef KERN_DIVISION_H_ 36 #define KERN_DIVISION_H_ 38 37 39 38 /* 32bit integer division */ … … 65 64 #endif 66 65 67 68 /** @} 66 /** @} 69 67 */ 70 -
kernel/genarch/src/acpi/acpi.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 30 /** @addtogroup genarch 29 /** @addtogroup genarch 31 30 * @{ 32 31 */ … … 184 183 } 185 184 186 187 /** @} 185 /** @} 188 186 */ 189 -
kernel/genarch/src/acpi/madt.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 244 244 #endif /* CONFIG_SMP */ 245 245 246 /** @} 247 */ 248 246 /** @} 247 */ -
kernel/genarch/src/fb/fb.c
re5ecc02 r06e1e95 305 305 306 306 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(' '); 330 325 position++; 326 } while ((position % 8) && position < columns * rows); 327 break; 328 default: 329 draw_char(ch); 330 position++; 331 331 } 332 332 … … 359 359 { 360 360 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) 382 375 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"); 386 386 } 387 387 -
kernel/genarch/src/fb/font-8x16.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 4648 4648 }; 4649 4649 4650 4650 /** @} 4651 4651 */ 4652 -
kernel/genarch/src/kbd/ns16550.c
re5ecc02 r06e1e95 105 105 106 106 /** Wait until the controller reads its data. */ 107 void ns16550_wait(void) { 107 void ns16550_wait(void) 108 { 108 109 } 109 110 -
kernel/genarch/src/mm/as_pt.c
re5ecc02 r06e1e95 142 142 /** @} 143 143 */ 144 -
kernel/genarch/src/softint/division.c
re5ecc02 r06e1e95 27 27 */ 28 28 29 29 /** @addtogroup genarch 30 30 * @{ 31 31 */ … … 192 192 } 193 193 194 195 196 /** @} 194 /** @} 197 195 */ 198
Note:
See TracChangeset
for help on using the changeset viewer.