Changeset afbe96a in mainline
- Timestamp:
- 2006-07-04T17:18:24Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0166e99
- Parents:
- 09087d2
- Files:
-
- 12 added
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
fb/fb.c
r09087d2 rafbe96a 71 71 72 72 struct { 73 __u8*fbaddress ;73 uint8_t *fbaddress ; 74 74 75 75 unsigned int xres ; … … 95 95 int cursor_shown; 96 96 /* Double buffering */ 97 __u8*dbdata;97 uint8_t *dbdata; 98 98 unsigned int dboffset; 99 99 unsigned int paused; … … 121 121 unsigned int width; 122 122 unsigned int height; 123 __u8*data;123 uint8_t *data; 124 124 } pixmap_t; 125 125 static pixmap_t pixmaps[MAX_PIXMAPS]; … … 154 154 static void rgb_3byte(void *dst, int rgb) 155 155 { 156 __u8*scr = dst;156 uint8_t *scr = dst; 157 157 #if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN)) 158 158 scr[0] = RED(rgb, 8); … … 170 170 static int byte3_rgb(void *src) 171 171 { 172 __u8*scr = src;172 uint8_t *scr = src; 173 173 #if (defined(BIG_ENDIAN) || defined(FB_BIG_ENDIAN)) 174 174 return scr[0] << 16 | scr[1] << 8 | scr[2]; … … 182 182 { 183 183 /* 5-bit, 6-bits, 5-bits */ 184 *(( __u16*)(dst)) = RED(rgb, 5) << 11 | GREEN(rgb, 6) << 5 | BLUE(rgb, 5);184 *((uint16_t *)(dst)) = RED(rgb, 5) << 11 | GREEN(rgb, 6) << 5 | BLUE(rgb, 5); 185 185 } 186 186 … … 188 188 static int byte2_rgb(void *src) 189 189 { 190 int color = *( __u16*)(src);190 int color = *(uint16_t *)(src); 191 191 return (((color >> 11) & 0x1f) << (16 + 3)) | (((color >> 5) & 0x3f) << (8 + 2)) | ((color & 0x1f) << 3); 192 192 } … … 195 195 static void rgb_1byte(void *dst, int rgb) 196 196 { 197 *( __u8*)dst = RED(rgb, 3) << 5 | GREEN(rgb, 2) << 3 | BLUE(rgb, 3);197 *(uint8_t *)dst = RED(rgb, 3) << 5 | GREEN(rgb, 2) << 3 | BLUE(rgb, 3); 198 198 } 199 199 … … 201 201 static int byte1_rgb(void *src) 202 202 { 203 int color = *( __u8*)src;203 int color = *(uint8_t *)src; 204 204 return (((color >> 5) & 0x7) << (16 + 5)) | (((color >> 3) & 0x3) << (8 + 6)) | ((color & 0x7) << 5); 205 205 } … … 377 377 * @param transparent If false, print background color 378 378 */ 379 static void draw_glyph(viewport_t *vport, __u8glyph, unsigned int sx, unsigned int sy,379 static void draw_glyph(viewport_t *vport,uint8_t glyph, unsigned int sx, unsigned int sy, 380 380 style_t style, int transparent) 381 381 { -
libc/arch/amd64/include/context_offset.h
r09087d2 rafbe96a 9 9 #define OFFSET_R15 0x38 10 10 #define OFFSET_TLS 0x40 11 12 13 /** @}14 */15 11 16 12 -
libc/arch/amd64/include/limits.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcamd64 30 30 * @{ 31 31 */ … … 43 43 #endif 44 44 45 46 47 48 /** @} 45 /** @} 49 46 */ 50 51 -
libc/arch/amd64/include/types.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcamd64 30 30 * @{ 31 31 */ … … 41 41 typedef ssize_t off_t; 42 42 43 typedef char int8_t;43 typedef signed char int8_t; 44 44 typedef short int int16_t; 45 45 typedef int int32_t; … … 51 51 typedef unsigned long long int uint64_t; 52 52 53 typedef uint64_t uintptr_t; 54 53 55 #endif 54 56 55 56 /** @} 57 /** @} 57 58 */ 58 59 -
libc/arch/ia32/include/types.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcia32 30 30 * @{ 31 31 */ … … 51 51 typedef unsigned long long int uint64_t; 52 52 53 typedef uint32_t uintptr_t; 54 53 55 #endif 54 56 55 56 /** @} 57 /** @} 57 58 */ 58 59 -
libc/arch/ia64/include/psthread.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcia64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __LIBC__ia64PSTHREAD_H__36 #define __LIBC__ia64PSTHREAD_H__35 #ifndef LIBC_ia64_PSTHREAD_H_ 36 #define LIBC_ia64_PSTHREAD_H_ 37 37 38 38 #include <types.h> 39 39 #include <align.h> 40 40 #include <libarch/stack.h> 41 #include < arch/types.h>41 #include <libarch/types.h> 42 42 43 43 /* -
libc/arch/ia64/include/types.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcia64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __LIBC__TYPES_H__36 #define __LIBC__TYPES_H__35 #ifndef LIBC_ia64_TYPES_H_ 36 #define LIBC_ia64_TYPES_H_ 37 37 38 38 typedef unsigned long long sysarg_t; … … 51 51 typedef unsigned long int uint64_t; 52 52 53 typedef uint64_t uintptr_t; 54 55 typedef unsigned char __r8; /* Reserve byte */ 56 typedef unsigned short __r16; 57 typedef unsigned int __r32; 58 typedef unsigned long __r64; 59 60 typedef struct __r128{ 61 __r64 lo; 62 __r64 hi; 63 } __r128; 64 53 65 #endif 54 66 55 67 /** @} 56 68 */ 57 -
libc/arch/mips32/include/types.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcmips32 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @ingroup libcmips32eb 33 * @ingroup libcmips32eb 34 34 */ 35 35 36 #ifndef __LIBC__TYPES_H__37 #define __LIBC__TYPES_H__36 #ifndef LIBC_mips32_TYPES_H_ 37 #define LIBC_mips32_TYPES_H_ 38 38 39 39 typedef unsigned int sysarg_t; … … 52 52 typedef unsigned long long int uint64_t; 53 53 54 typedef uint32_t uintptr_t; 55 54 56 #endif 55 57 56 58 /** @} 57 59 */ 58 -
libc/arch/ppc32/include/types.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcppc32 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __LIBC__TYPES_H__36 #define __LIBC__TYPES_H__35 #ifndef LIBC_ppc32_TYPES_H_ 36 #define LIBC_ppc32_TYPES_H_ 37 37 38 38 typedef unsigned int sysarg_t; … … 51 51 typedef unsigned long long int uint64_t; 52 52 53 typedef uint32_t uintptr_t; 54 53 55 #endif 54 56 55 57 /** @} 56 58 */ 57 59 -
libc/arch/ppc64/include/types.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcppc64 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #ifndef __LIBC__TYPES_H__36 #define __LIBC__TYPES_H__35 #ifndef LIBC_ppc64_TYPES_H_ 36 #define LIBC_ppc64_TYPES_H_ 37 37 38 38 typedef unsigned long sysarg_t; … … 51 51 typedef unsigned long int uint64_t; 52 52 53 typedef uint64_t uintptr_t; 54 53 55 #endif 54 56 55 57 /** @} 56 58 */ 57 -
libc/generic/psthread.c
r09087d2 rafbe96a 39 39 #include <thread.h> 40 40 #include <stdio.h> 41 #include < kernel/arch/faddr.h>41 #include <libarch/faddr.h> 42 42 #include <futex.h> 43 43 #include <assert.h> -
libc/generic/thread.c
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 36 36 #include <libc.h> 37 37 #include <stdlib.h> 38 #include < arch/faddr.h>38 #include <libarch/faddr.h> 39 39 #include <kernel/proc/uarg.h> 40 40 #include <psthread.h> … … 153 153 } 154 154 155 156 157 /** @} 155 /** @} 158 156 */ 159 157 -
libc/include/ipc/fb.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libcipc 30 30 * @{ 31 31 */ … … 33 33 */ 34 34 35 #include <arch/types.h> 36 #include <types.h> 37 38 #ifndef __libc__FB_H__ 39 #define __libc__FB_H__ 35 #ifndef LIBC_FB_H_ 36 #define LIBC_FB_H_ 40 37 41 38 #define FB_PUTCHAR 1025 … … 75 72 #endif 76 73 77 78 /** @} 74 /** @} 79 75 */ 80 81 -
libc/include/types.h
r09087d2 rafbe96a 1 1 #include <libarch/types.h> 2 3 4 /** @}5 */6 7 -
libc/include/unistd.h
r09087d2 rafbe96a 27 27 */ 28 28 29 29 /** @addtogroup libc 30 30 * @{ 31 31 */ … … 37 37 38 38 #include <types.h> 39 #include < arch/mm/page.h>39 #include <libarch/config.h> 40 40 41 41 #define NULL 0 … … 50 50 #endif 51 51 52 53 /** @} 52 /** @} 54 53 */ 55 54
Note:
See TracChangeset
for help on using the changeset viewer.