Subversion Repositories HelenOS

Rev

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

Rev 2927 Rev 3674
Line 36... Line 36...
36
#define KERN_FB_H_
36
#define KERN_FB_H_
37
 
37
 
38
#include <arch/types.h>
38
#include <arch/types.h>
39
#include <synch/spinlock.h>
39
#include <synch/spinlock.h>
40
 
40
 
-
 
41
/**
-
 
42
 * Properties of the framebuffer device.
-
 
43
 */
-
 
44
typedef struct fb_properties {
-
 
45
    /** Physical address of the framebuffer device. */
-
 
46
    uintptr_t addr;
-
 
47
 
-
 
48
    /**
-
 
49
     * Address where the first (top left) pixel is mapped,
-
 
50
     * relative to "addr".
-
 
51
     */
-
 
52
    unsigned int offset;   
-
 
53
 
-
 
54
    /** Screen width in pixels. */
-
 
55
    unsigned int x;
-
 
56
 
-
 
57
    /** Screen height in pixels. */
-
 
58
    unsigned int y;
-
 
59
 
-
 
60
    /** Bytes per one scanline. */
-
 
61
    unsigned int scan;
-
 
62
 
-
 
63
    /** Color model. */
-
 
64
    unsigned int visual;
-
 
65
} fb_properties_t;
-
 
66
 
41
SPINLOCK_EXTERN(fb_lock);
67
SPINLOCK_EXTERN(fb_lock);
42
void fb_init(uintptr_t addr, unsigned int x, unsigned int y, unsigned int scan, unsigned int visual);
68
void fb_init(fb_properties_t *props);
43
 
69
 
44
#endif
70
#endif
45
 
71
 
46
/** @}
72
/** @}
47
 */
73
 */