Subversion Repositories HelenOS

Rev

Rev 1789 | Rev 1881 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1789 Rev 1837
Line 33... Line 33...
33
 
33
 
34
#include <ofwarch.h>  
34
#include <ofwarch.h>  
35
#include <ofw.h>
35
#include <ofw.h>
36
#include <printf.h>
36
#include <printf.h>
37
 
37
 
-
 
38
int bpp2align[] = {
-
 
39
    [0] = 0,        /** Invalid bpp. */
-
 
40
    [1] = 1,        /** 8bpp is not aligned. */
-
 
41
    [2] = 2,        /** 16bpp is naturally aligned. */
-
 
42
    [3] = 4,        /** 24bpp is aligned on 4 byte boundary. */
-
 
43
    [4] = 4,        /** 32bpp is naturally aligned. */
-
 
44
};
-
 
45
 
38
void write(const char *str, const int len)
46
void write(const char *str, const int len)
39
{
47
{
40
    int i;
48
    int i;
41
   
49
   
42
    for (i = 0; i < len; i++) {
50
    for (i = 0; i < len; i++) {