toaruos/base/usr/include/kernel/video.h

27 lines
625 B
C
Raw Normal View History

2018-03-16 15:56:19 +03:00
#pragma once
#define IO_VID_WIDTH 0x5001
#define IO_VID_HEIGHT 0x5002
#define IO_VID_DEPTH 0x5003
#define IO_VID_ADDR 0x5004
#define IO_VID_SIGNAL 0x5005
#define IO_VID_SET 0x5006
#define IO_VID_STRIDE 0x5007
#define IO_VID_DRIVER 0x5008
#define IO_VID_REINIT 0x5009
2018-03-16 15:56:19 +03:00
struct vid_size {
uint32_t width;
uint32_t height;
};
2018-03-16 15:56:19 +03:00
#ifdef _KERNEL_
extern void lfb_set_resolution(uint16_t x, uint16_t y);
extern uint16_t lfb_resolution_x;
extern uint16_t lfb_resolution_y;
extern uint16_t lfb_resolution_b;
extern uint8_t * lfb_vid_memory;
2018-09-28 17:58:43 +03:00
extern const char * lfb_driver_name;
2021-05-31 04:47:02 +03:00
extern int framebuffer_initialize(void);
2018-03-16 15:56:19 +03:00
#endif