Normalize POST initialization function name suffixes.

The POST phase has to invoke many initialization functions, and these
functions can have complex inter-dependencies.  Try to categorize the
functions into 4 classes:

preinit - functions called very early in POST where function ordering
    is very important and the code has limited access to other

init - functions that initialize internal interfaces and standard
    external interfaces.  This code is generally not dependent on
    particular hardware and typically does not communicate directly
    with any hardware devices.

setup - functions which access hardware or are dependent on particular
    hardware or platform devices.

prepboot - functions that finalize internal interfaces and that
    prepare for the boot phase.

This patch attempts to normalize the suffixes - functions that used
_init(), _setup(), _finalize(), or similar that did not follow the
above pattern were renamed.  Other than function name changes, there
should be no code impact to this patch.

Signed-off-by: Kevin O'Connor <>
diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h
index 044cd32..f69a5ac 100644
--- a/vgasrc/vgahw.h
+++ b/vgasrc/vgahw.h
@@ -7,7 +7,7 @@
 #include "clext.h" // clext_set_mode
 #include "bochsvga.h" // bochsvga_set_mode
 #include "stdvga.h" // stdvga_set_mode
-#include "geodevga.h" // geodevga_init
+#include "geodevga.h" // geodevga_setup
 static inline struct vgamode_s *vgahw_find_mode(int mode) {
@@ -34,14 +34,14 @@
         stdvga_list_modes(seg, dest, last);
-static inline int vgahw_init(void) {
+static inline int vgahw_setup(void) {
-        return clext_init();
+        return clext_setup();
-        return bochsvga_init();
+        return bochsvga_setup();
-        return geodevga_init();
-    return stdvga_init();
+        return geodevga_setup();
+    return stdvga_setup();
 static inline int vgahw_get_window(struct vgamode_s *vmode_g, int window) {