aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vgahw.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2024-03-15 10:58:57 -0400
committerKevin O'Connor <kevin@koconnor.net>2024-03-15 10:58:57 -0400
commitd73e18bb70f8bf0c6fd405900dd267948dd6c3b2 (patch)
tree596c69890722b89cd88201653c4a1a1ddbd6e965 /vgasrc/vgahw.h
parent192e23b78418abc23a92a7174ae2294fabe4b8a3 (diff)
downloadseabios-d73e18bb70f8bf0c6fd405900dd267948dd6c3b2.tar.gz
vgasrc: Use curmode_g instead of vmode_g when mode is the current video mode
Many functions are passed a pointer to the current video mode vgamode_s struct. Use the name 'curmode_g' for these functions and use 'vmode_g' for functions that can accept an arbitrary video mode. Hopefully this will make the goals of the functions more clear. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgahw.h')
-rw-r--r--vgasrc/vgahw.h76
1 files changed, 38 insertions, 38 deletions
diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h
index 8b64660e..bd33e208 100644
--- a/vgasrc/vgahw.h
+++ b/vgasrc/vgahw.h
@@ -64,81 +64,81 @@ static inline int vgahw_setup(void) {
return stdvga_setup();
}
-static inline int vgahw_get_window(struct vgamode_s *vmode_g, int window) {
+static inline int vgahw_get_window(struct vgamode_s *curmode_g, int window) {
if (CONFIG_VGA_CIRRUS)
- return clext_get_window(vmode_g, window);
+ return clext_get_window(curmode_g, window);
if (CONFIG_VGA_BOCHS)
- return bochsvga_get_window(vmode_g, window);
+ return bochsvga_get_window(curmode_g, window);
if (CONFIG_VGA_EMULATE_TEXT)
- return cbvga_get_window(vmode_g, window);
- return stdvga_get_window(vmode_g, window);
+ return cbvga_get_window(curmode_g, window);
+ return stdvga_get_window(curmode_g, window);
}
-static inline int vgahw_set_window(struct vgamode_s *vmode_g, int window
+static inline int vgahw_set_window(struct vgamode_s *curmode_g, int window
, int val) {
if (CONFIG_VGA_CIRRUS)
- return clext_set_window(vmode_g, window, val);
+ return clext_set_window(curmode_g, window, val);
if (CONFIG_VGA_BOCHS)
- return bochsvga_set_window(vmode_g, window, val);
+ return bochsvga_set_window(curmode_g, window, val);
if (CONFIG_VGA_EMULATE_TEXT)
- return cbvga_set_window(vmode_g, window, val);
- return stdvga_set_window(vmode_g, window, val);
+ return cbvga_set_window(curmode_g, window, val);
+ return stdvga_set_window(curmode_g, window, val);
}
-static inline int vgahw_get_linelength(struct vgamode_s *vmode_g) {
+static inline int vgahw_get_linelength(struct vgamode_s *curmode_g) {
if (CONFIG_VGA_CIRRUS)
- return clext_get_linelength(vmode_g);
+ return clext_get_linelength(curmode_g);
if (CONFIG_VGA_BOCHS)
- return bochsvga_get_linelength(vmode_g);
+ return bochsvga_get_linelength(curmode_g);
if (CONFIG_VGA_EMULATE_TEXT)
- return cbvga_get_linelength(vmode_g);
- return stdvga_get_linelength(vmode_g);
+ return cbvga_get_linelength(curmode_g);
+ return stdvga_get_linelength(curmode_g);
}
-static inline int vgahw_set_linelength(struct vgamode_s *vmode_g, int val) {
+static inline int vgahw_set_linelength(struct vgamode_s *curmode_g, int val) {
if (CONFIG_VGA_CIRRUS)
- return clext_set_linelength(vmode_g, val);
+ return clext_set_linelength(curmode_g, val);
if (CONFIG_VGA_BOCHS)
- return bochsvga_set_linelength(vmode_g, val);
+ return bochsvga_set_linelength(curmode_g, val);
if (CONFIG_VGA_EMULATE_TEXT)
- return cbvga_set_linelength(vmode_g, val);
- return stdvga_set_linelength(vmode_g, val);
+ return cbvga_set_linelength(curmode_g, val);
+ return stdvga_set_linelength(curmode_g, val);
}
-static inline int vgahw_get_displaystart(struct vgamode_s *vmode_g) {
+static inline int vgahw_get_displaystart(struct vgamode_s *curmode_g) {
if (CONFIG_VGA_CIRRUS)
- return clext_get_displaystart(vmode_g);
+ return clext_get_displaystart(curmode_g);
if (CONFIG_VGA_BOCHS)
- return bochsvga_get_displaystart(vmode_g);
+ return bochsvga_get_displaystart(curmode_g);
if (CONFIG_VGA_EMULATE_TEXT)
- return cbvga_get_displaystart(vmode_g);
- return stdvga_get_displaystart(vmode_g);
+ return cbvga_get_displaystart(curmode_g);
+ return stdvga_get_displaystart(curmode_g);
}
-static inline int vgahw_set_displaystart(struct vgamode_s *vmode_g, int val) {
+static inline int vgahw_set_displaystart(struct vgamode_s *curmode_g, int val) {
if (CONFIG_VGA_CIRRUS)
- return clext_set_displaystart(vmode_g, val);
+ return clext_set_displaystart(curmode_g, val);
if (CONFIG_VGA_BOCHS)
- return bochsvga_set_displaystart(vmode_g, val);
+ return bochsvga_set_displaystart(curmode_g, val);
if (CONFIG_VGA_EMULATE_TEXT)
- return cbvga_set_displaystart(vmode_g, val);
- return stdvga_set_displaystart(vmode_g, val);
+ return cbvga_set_displaystart(curmode_g, val);
+ return stdvga_set_displaystart(curmode_g, val);
}
-static inline int vgahw_get_dacformat(struct vgamode_s *vmode_g) {
+static inline int vgahw_get_dacformat(struct vgamode_s *curmode_g) {
if (CONFIG_VGA_BOCHS)
- return bochsvga_get_dacformat(vmode_g);
+ return bochsvga_get_dacformat(curmode_g);
if (CONFIG_VGA_EMULATE_TEXT)
- return cbvga_get_dacformat(vmode_g);
- return stdvga_get_dacformat(vmode_g);
+ return cbvga_get_dacformat(curmode_g);
+ return stdvga_get_dacformat(curmode_g);
}
-static inline int vgahw_set_dacformat(struct vgamode_s *vmode_g, int val) {
+static inline int vgahw_set_dacformat(struct vgamode_s *curmode_g, int val) {
if (CONFIG_VGA_BOCHS)
- return bochsvga_set_dacformat(vmode_g, val);
+ return bochsvga_set_dacformat(curmode_g, val);
if (CONFIG_VGA_EMULATE_TEXT)
- return cbvga_set_dacformat(vmode_g, val);
- return stdvga_set_dacformat(vmode_g, val);
+ return cbvga_set_dacformat(curmode_g, val);
+ return stdvga_set_dacformat(curmode_g, val);
}
static inline int vgahw_save_restore(int cmd, u16 seg, void *data) {