kexts: add generic vga/fb tty driver

This commit is contained in:
2023-06-10 21:41:46 +01:00
parent d09ad5838e
commit 4cd9ebcb4f
9 changed files with 395 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
#ifndef FBCON_H_
#define FBCON_H_
#include <socks/status.h>
#include <stdint.h>
struct fbcon_priv {
struct device *fbdev;
union {
uint32_t *fb_pixels;
uint16_t *fb_cells;
};
unsigned long fb_pitch;
struct tty_driver_ops *tty_ops;
};
struct device;
struct tty_driver_ops;
extern kern_status_t init_fbcon_console(struct device *tty, struct device *fb);
extern kern_status_t init_vgacon_console(struct device *tty, struct device *fb);
#endif