0.0.2d: Added BGA support, graphics!
This commit is contained in:
26
include/drivers/graphics/vga.h
Normal file
26
include/drivers/graphics/vga.h
Normal file
@ -0,0 +1,26 @@
|
||||
#ifndef _VGA_GRAPHICS_H
|
||||
#define _VGA_GRAPHICS_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
struct bga_framebuffer
|
||||
{
|
||||
volatile uint8_t* addr;
|
||||
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
|
||||
uint32_t pitch; /* bytes per scanline */
|
||||
uint32_t bpp;
|
||||
};
|
||||
|
||||
|
||||
void bga_defaults(void);
|
||||
void bga_set_video_mode(uint32_t width, uint32_t height, uint32_t bit_depth);
|
||||
|
||||
void bga_putpixel(uint32_t x, uint32_t y, uint32_t color);
|
||||
|
||||
|
||||
void bga_drawline(int x0, int y0, int x1, int y1, uint32_t color);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user