diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-08-05 11:53:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-08-05 11:53:32 -0400 |
commit | 65bc0a7bc9996b3ca7a65c8e5f1a45abdd4823a4 (patch) | |
tree | 5feebc967ddfee02859b2009591012a95f1298d4 | |
parent | c682ffe671a0044fa218c1352c19894922e53890 (diff) | |
download | seabios-65bc0a7bc9996b3ca7a65c8e5f1a45abdd4823a4.tar.gz |
vgautil: Move definitions from cbvga.h and clext.h to vgautil.h
These files only need to export simple function definitions - move
them to vgautil.h.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r-- | vgasrc/cbvga.c | 1 | ||||
-rw-r--r-- | vgasrc/cbvga.h | 20 | ||||
-rw-r--r-- | vgasrc/clext.c | 1 | ||||
-rw-r--r-- | vgasrc/clext.h | 20 | ||||
-rw-r--r-- | vgasrc/vgabios.c | 1 | ||||
-rw-r--r-- | vgasrc/vgahw.h | 2 | ||||
-rw-r--r-- | vgasrc/vgautil.h | 31 |
7 files changed, 30 insertions, 46 deletions
diff --git a/vgasrc/cbvga.c b/vgasrc/cbvga.c index 9d0adef5..b8216a9e 100644 --- a/vgasrc/cbvga.c +++ b/vgasrc/cbvga.c @@ -5,7 +5,6 @@ // This file may be distributed under the terms of the GNU LGPLv3 license. #include "biosvar.h" // GET_BDA -#include "cbvga.h" // cbvga_setup #include "output.h" // dprintf #include "stdvga.h" // SEG_CTEXT #include "string.h" // memset16_far diff --git a/vgasrc/cbvga.h b/vgasrc/cbvga.h deleted file mode 100644 index fb892c85..00000000 --- a/vgasrc/cbvga.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef __CBVGA_H -#define __CBVGA_H - -#include "types.h" // u16 - -struct vgamode_s *cbvga_find_mode(int mode); -void cbvga_list_modes(u16 seg, u16 *dest, u16 *last); -int cbvga_get_window(struct vgamode_s *vmode_g, int window); -int cbvga_set_window(struct vgamode_s *vmode_g, int window, int val); -int cbvga_get_linelength(struct vgamode_s *vmode_g); -int cbvga_set_linelength(struct vgamode_s *vmode_g, int val); -int cbvga_get_displaystart(struct vgamode_s *vmode_g); -int cbvga_set_displaystart(struct vgamode_s *vmode_g, int val); -int cbvga_get_dacformat(struct vgamode_s *vmode_g); -int cbvga_set_dacformat(struct vgamode_s *vmode_g, int val); -int cbvga_save_restore(int cmd, u16 seg, void *data); -int cbvga_set_mode(struct vgamode_s *vmode_g, int flags); -int cbvga_setup(void); - -#endif // cbvga.h diff --git a/vgasrc/clext.c b/vgasrc/clext.c index 45b5de39..da8b790d 100644 --- a/vgasrc/clext.c +++ b/vgasrc/clext.c @@ -7,7 +7,6 @@ #include "biosvar.h" // GET_GLOBAL #include "bregs.h" // struct bregs -#include "clext.h" // clext_setup #include "hw/pci.h" // pci_config_readl #include "hw/pci_regs.h" // PCI_BASE_ADDRESS_0 #include "output.h" // dprintf diff --git a/vgasrc/clext.h b/vgasrc/clext.h deleted file mode 100644 index cf47a5bf..00000000 --- a/vgasrc/clext.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef __CLEXT_H -#define __CLEXT_H - -#include "types.h" // u16 - -struct vgamode_s *clext_find_mode(int mode); -void clext_list_modes(u16 seg, u16 *dest, u16 *last); -int clext_get_window(struct vgamode_s *vmode_g, int window); -int clext_set_window(struct vgamode_s *vmode_g, int window, int val); -int clext_get_linelength(struct vgamode_s *vmode_g); -int clext_set_linelength(struct vgamode_s *vmode_g, int val); -int clext_get_displaystart(struct vgamode_s *vmode_g); -int clext_set_displaystart(struct vgamode_s *vmode_g, int val); -int clext_save_restore(int cmd, u16 seg, void *data); -int clext_set_mode(struct vgamode_s *vmode_g, int flags); -struct bregs; -void clext_1012(struct bregs *regs); -int clext_setup(void); - -#endif // clext.h diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c index db4f8684..3b9694c6 100644 --- a/vgasrc/vgabios.c +++ b/vgasrc/vgabios.c @@ -7,7 +7,6 @@ #include "biosvar.h" // GET_BDA #include "bregs.h" // struct bregs -#include "clext.h" // clext_1012 #include "config.h" // CONFIG_* #include "output.h" // dprintf #include "std/vbe.h" // VBE_RETURN_STATUS_FAILED diff --git a/vgasrc/vgahw.h b/vgasrc/vgahw.h index 3d9ae394..dab2b4dd 100644 --- a/vgasrc/vgahw.h +++ b/vgasrc/vgahw.h @@ -4,8 +4,6 @@ #include "types.h" // u8 #include "config.h" // CONFIG_* -#include "cbvga.h" // cbvga_setup -#include "clext.h" // clext_set_mode #include "bochsvga.h" // bochsvga_set_mode #include "stdvga.h" // stdvga_set_mode #include "geodevga.h" // geodevga_setup diff --git a/vgasrc/vgautil.h b/vgasrc/vgautil.h index 90fa54da..79c16be7 100644 --- a/vgasrc/vgautil.h +++ b/vgasrc/vgautil.h @@ -4,6 +4,36 @@ #include "types.h" // u8 +// cbvga.c +struct vgamode_s *cbvga_find_mode(int mode); +void cbvga_list_modes(u16 seg, u16 *dest, u16 *last); +int cbvga_get_window(struct vgamode_s *vmode_g, int window); +int cbvga_set_window(struct vgamode_s *vmode_g, int window, int val); +int cbvga_get_linelength(struct vgamode_s *vmode_g); +int cbvga_set_linelength(struct vgamode_s *vmode_g, int val); +int cbvga_get_displaystart(struct vgamode_s *vmode_g); +int cbvga_set_displaystart(struct vgamode_s *vmode_g, int val); +int cbvga_get_dacformat(struct vgamode_s *vmode_g); +int cbvga_set_dacformat(struct vgamode_s *vmode_g, int val); +int cbvga_save_restore(int cmd, u16 seg, void *data); +int cbvga_set_mode(struct vgamode_s *vmode_g, int flags); +int cbvga_setup(void); + +// clext.c +struct vgamode_s *clext_find_mode(int mode); +void clext_list_modes(u16 seg, u16 *dest, u16 *last); +int clext_get_window(struct vgamode_s *vmode_g, int window); +int clext_set_window(struct vgamode_s *vmode_g, int window, int val); +int clext_get_linelength(struct vgamode_s *vmode_g); +int clext_set_linelength(struct vgamode_s *vmode_g, int val); +int clext_get_displaystart(struct vgamode_s *vmode_g); +int clext_set_displaystart(struct vgamode_s *vmode_g, int val); +int clext_save_restore(int cmd, u16 seg, void *data); +int clext_set_mode(struct vgamode_s *vmode_g, int flags); +struct bregs; +void clext_1012(struct bregs *regs); +int clext_setup(void); + // stdvgaio.c u8 stdvga_pelmask_read(void); void stdvga_pelmask_write(u8 val); @@ -36,7 +66,6 @@ int stdvga_set_mode(struct vgamode_s *vmode_g, int flags); void stdvga_set_packed_palette(void); // swcursor.c -struct bregs; void swcursor_pre_handle10(struct bregs *regs); void swcursor_check_event(void); |