Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
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 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); |
- | 68 | ||
- | 69 | void fb_redraw(void); |
|
42 | void fb_init(uintptr_t addr, unsigned int x, unsigned int y, unsigned int scan, unsigned int visual); |
70 | void fb_init(fb_properties_t *props); |
43 | 71 | ||
44 | #endif |
72 | #endif |
45 | 73 | ||
46 | /** @} |
74 | /** @} |
47 | */ |
75 | */ |