kexts: add generic vga/fb tty driver
This commit is contained in:
24
kexts/drivers/tty/fbcon/fbcon.h
Normal file
24
kexts/drivers/tty/fbcon/fbcon.h
Normal 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
|
||||
Reference in New Issue
Block a user