projects
/
seabios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vgabios: Use vgamode_s in cirrus and bochsvga mode tables.
[seabios.git]
/
vgasrc
/
vgahw.h
diff --git
a/vgasrc/vgahw.h
b/vgasrc/vgahw.h
index fea041a2df0ed5bad1c510bb6fa1aa81cf5c6725..9d8a06793f42e79512737193f1a259e622ec4a52 100644
(file)
--- a/
vgasrc/vgahw.h
+++ b/
vgasrc/vgahw.h
@@
-9,6
+9,14
@@
#include "stdvga.h" // stdvga_set_mode
#include "geodevga.h" // geodevga_init
#include "stdvga.h" // stdvga_set_mode
#include "geodevga.h" // geodevga_init
+static inline struct vgamode_s *vgahw_find_mode(int mode) {
+ if (CONFIG_VGA_CIRRUS)
+ return clext_find_mode(mode);
+ if (CONFIG_VGA_BOCHS)
+ return bochsvga_find_mode(mode);
+ return stdvga_find_mode(mode);
+}
+
static inline int vgahw_set_mode(int mode, int flags) {
if (CONFIG_VGA_CIRRUS)
return clext_set_mode(mode, flags);
static inline int vgahw_set_mode(int mode, int flags) {
if (CONFIG_VGA_CIRRUS)
return clext_set_mode(mode, flags);
@@
-22,7
+30,7
@@
static inline int vgahw_init(void) {
return clext_init();
if (CONFIG_VGA_BOCHS)
return bochsvga_init();
return clext_init();
if (CONFIG_VGA_BOCHS)
return bochsvga_init();
- if (CONFIG_VGA_GEODELX)
+ if (CONFIG_VGA_GEODE
GX2 || CONFIG_VGA_GEODE
LX)
return geodevga_init();
return stdvga_init();
}
return geodevga_init();
return stdvga_init();
}