Subversion Repositories HelenOS

Rev

Rev 3618 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3618 Rev 3742
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
/** @addtogroup genarch
29
/** @addtogroup genarch
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
Line 40... Line 40...
40
 
40
 
41
/**
41
/**
42
 * Properties of the framebuffer device.
42
 * Properties of the framebuffer device.
43
 */
43
 */
44
typedef struct fb_properties {
44
typedef struct fb_properties {
45
    /** Physical address of the framebuffer device (as returned by OBP) */
45
    /** Physical address of the framebuffer device. */
46
    uintptr_t addr;
46
    uintptr_t addr;
47
 
47
 
48
    /**
48
    /**
49
     * Address where the first (top left) pixel is mapped,
49
     * Address where the first (top left) pixel is mapped,
50
     * relative to "addr"
50
     * relative to "addr".
51
     */
51
     */
52
    unsigned int fb_start; 
52
    unsigned int offset;   
53
 
53
 
54
    /** Screen width in pixels */
54
    /** Screen width in pixels. */
55
    unsigned int x;
55
    unsigned int x;
56
 
56
 
57
    /** Screen height in pixels */
57
    /** Screen height in pixels. */
58
    unsigned int y;
58
    unsigned int y;
59
 
59
 
60
    /** Bytes per one scanline */
60
    /** Bytes per one scanline. */
61
    unsigned int scan;
61
    unsigned int scan;
62
 
62
 
63
    /** Color model */
63
    /** Color model. */
64
    unsigned int visual;
64
    unsigned int visual;
65
} fb_properties_t;
65
} fb_properties_t;
66
 
66
 
67
SPINLOCK_EXTERN(fb_lock);
67
SPINLOCK_EXTERN(fb_lock);
-
 
68
 
-
 
69
void fb_redraw(void);
68
void fb_init(fb_properties_t *props);
70
void fb_init(fb_properties_t *props);
69
 
71
 
70
#endif
72
#endif
71
 
73
 
72
/** @}
74
/** @}