Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
//
// This file may be distributed under the terms of the GNU LGPLv3 license.
-#include "vgabios.h" // cirrus_init
+#include "clext.h" // clext_init
+#include "vgabios.h" // VBE_VENDOR_STRING
#include "biosvar.h" // GET_GLOBAL
#include "util.h" // dprintf
#include "bregs.h" // struct bregs
#include "biosvar.h" // GET_GLOBAL
#include "util.h" // dprintf
#include "bregs.h" // struct bregs
-cirrus_set_video_mode(u8 mode, u8 noclearmem)
+clext_set_video_mode(u8 mode, u8 noclearmem)
{
dprintf(1, "cirrus mode %d\n", mode);
SET_BDA(vbe_mode, 0);
{
dprintf(1, "cirrus mode %d\n", mode);
SET_BDA(vbe_mode, 0);
****************************************************************/
void
****************************************************************/
void
{
dprintf(1, "cirrus init\n");
if (! cirrus_check())
{
dprintf(1, "cirrus init\n");
if (! cirrus_check())
--- /dev/null
+#ifndef __CLEXT_H
+#define __CLEXT_H
+
+#include "types.h" // u8
+
+int clext_set_video_mode(u8 mode, u8 noclearmem);
+void clext_init(void);
+
+#endif // clext.h
#include "stdvga.h" // stdvga_set_mode
#include "geodelx.h" // geodelx_init
#include "bochsvga.h" // bochsvga_init
#include "stdvga.h" // stdvga_set_mode
#include "geodelx.h" // geodelx_init
#include "bochsvga.h" // bochsvga_init
+#include "clext.h" // clext_init
// XXX
#define DEBUG_VGA_POST 1
// XXX
#define DEBUG_VGA_POST 1
regs->al = 0x30;
if (CONFIG_VGA_CIRRUS) {
regs->al = 0x30;
if (CONFIG_VGA_CIRRUS) {
- int ret = cirrus_set_video_mode(mode, noclearmem);
+ int ret = clext_set_video_mode(mode, noclearmem);
SET_IVT(0x10, SEGOFF(get_global_seg(), (u32)entry_10));
if (CONFIG_VGA_CIRRUS)
SET_IVT(0x10, SEGOFF(get_global_seg(), (u32)entry_10));
if (CONFIG_VGA_CIRRUS)
// XXX - clear screen and display info
// XXX - clear screen and display info
void vgafb_write_pixel(u8 color, u16 x, u16 y);
u8 vgafb_read_pixel(u16 x, u16 y);
void vgafb_write_pixel(u8 color, u16 x, u16 y);
u8 vgafb_read_pixel(u16 x, u16 y);
-// clext.c
-int cirrus_set_video_mode(u8 mode, u8 noclearmem);
-void cirrus_init(void);
-
// vbe.c
#define VBE_OEM_STRING "SeaBIOS VBE(C) 2011"
#define VBE_VENDOR_STRING "SeaBIOS Developers"
// vbe.c
#define VBE_OEM_STRING "SeaBIOS VBE(C) 2011"
#define VBE_VENDOR_STRING "SeaBIOS Developers"