aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-01-03 17:43:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-01-03 17:43:37 -0500
commit1ca05b0f393c0201c0e8efe87831edddb6a53532 (patch)
tree4419fdb78cba0962313f8e6bcf35d16a3401183e /vgasrc
parentb5bb9db8425b3b463e634874e3a201a354d55ac7 (diff)
downloadseabios-1ca05b0f393c0201c0e8efe87831edddb6a53532.tar.gz
Be sure to add "void" to all function prototypes that take no args.
Omitting "void" leads to a K&R style declaration which was not intended.
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/clext.c6
-rw-r--r--vgasrc/vga.c2
-rw-r--r--vgasrc/vgaio.c18
-rw-r--r--vgasrc/vgatables.h22
4 files changed, 24 insertions, 24 deletions
diff --git a/vgasrc/clext.c b/vgasrc/clext.c
index 13e3c2bd..36ccad35 100644
--- a/vgasrc/clext.c
+++ b/vgasrc/clext.c
@@ -315,7 +315,7 @@ cirrus_switch_mode_setregs(u16 *data, u16 port)
}
static u16
-cirrus_get_crtc()
+cirrus_get_crtc(void)
{
if (inb(VGAREG_READ_MISC_OUTPUT) & 1)
return VGAREG_VGA_CRTC_ADDRESS;
@@ -364,14 +364,14 @@ cirrus_set_video_mode(u8 mode)
}
static int
-cirrus_check()
+cirrus_check(void)
{
outw(0x9206, VGAREG_SEQU_ADDRESS);
return inb(VGAREG_SEQU_DATA) == 0x12;
}
void
-cirrus_init()
+cirrus_init(void)
{
dprintf(1, "cirrus init\n");
if (! cirrus_check())
diff --git a/vgasrc/vga.c b/vgasrc/vga.c
index 888c7111..e38298e7 100644
--- a/vgasrc/vga.c
+++ b/vgasrc/vga.c
@@ -1330,7 +1330,7 @@ handle_10(struct bregs *regs)
****************************************************************/
static void
-init_bios_area()
+init_bios_area(void)
{
// init detected hardware BIOS Area
// set 80x25 color (not clear from RBIL but usual)
diff --git a/vgasrc/vgaio.c b/vgasrc/vgaio.c
index d341b89a..ffded345 100644
--- a/vgasrc/vgaio.c
+++ b/vgasrc/vgaio.c
@@ -19,14 +19,14 @@
****************************************************************/
void
-vgahw_screen_disable()
+vgahw_screen_disable(void)
{
inb(VGAREG_ACTL_RESET);
outb(0x00, VGAREG_ACTL_ADDRESS);
}
void
-vgahw_screen_enable()
+vgahw_screen_enable(void)
{
inb(VGAREG_ACTL_RESET);
outb(0x20, VGAREG_ACTL_ADDRESS);
@@ -65,7 +65,7 @@ vgahw_set_overscan_border_color(u8 color)
}
u8
-vgahw_get_overscan_border_color()
+vgahw_get_overscan_border_color(void)
{
inb(VGAREG_ACTL_RESET);
outb(0x11, VGAREG_ACTL_ADDRESS);
@@ -240,7 +240,7 @@ vgahw_set_pel_mask(u8 val)
}
u8
-vgahw_get_pel_mask()
+vgahw_get_pel_mask(void)
{
return inb(VGAREG_PEL_MASK);
}
@@ -288,7 +288,7 @@ vgahw_set_text_block_specifier(u8 spec)
}
void
-get_font_access()
+get_font_access(void)
{
outw(0x0100, VGAREG_SEQU_ADDRESS);
outw(0x0402, VGAREG_SEQU_ADDRESS);
@@ -300,7 +300,7 @@ get_font_access()
}
void
-release_font_access()
+release_font_access(void)
{
outw(0x0100, VGAREG_SEQU_ADDRESS);
outw(0x0302, VGAREG_SEQU_ADDRESS);
@@ -318,7 +318,7 @@ release_font_access()
****************************************************************/
static u16
-get_crtc()
+get_crtc(void)
{
return GET_BDA(crtc_address);
}
@@ -365,7 +365,7 @@ vgahw_set_scan_lines(u8 lines)
// Get vertical display end
u16
-vgahw_get_vde()
+vgahw_get_vde(void)
{
u16 crtc_addr = get_crtc();
outb(0x12, crtc_addr);
@@ -545,7 +545,7 @@ vgahw_enable_video_addressing(u8 disable)
}
void
-vgahw_init()
+vgahw_init(void)
{
// switch to color mode and enable CPU access 480 lines
outb(0xc3, VGAREG_WRITE_MISC_OUTPUT);
diff --git a/vgasrc/vgatables.h b/vgasrc/vgatables.h
index e5f3309c..1e76b3aa 100644
--- a/vgasrc/vgatables.h
+++ b/vgasrc/vgatables.h
@@ -169,11 +169,11 @@ void vgafb_load_font(u16 seg, void *src_far, u16 count
, u16 start, u8 destflags, u8 fontsize);
// vgaio.c
-void vgahw_screen_disable();
-void vgahw_screen_enable();
+void vgahw_screen_disable(void);
+void vgahw_screen_enable(void);
void vgahw_set_border_color(u8 color);
void vgahw_set_overscan_border_color(u8 color);
-u8 vgahw_get_overscan_border_color();
+u8 vgahw_get_overscan_border_color(void);
void vgahw_set_palette(u8 palid);
void vgahw_set_single_palette_reg(u8 reg, u8 val);
u8 vgahw_get_single_palette_reg(u8 reg);
@@ -185,33 +185,33 @@ void vgahw_read_video_dac_state(u8 *pmode, u8 *curpage);
void vgahw_set_dac_regs(u16 seg, u8 *data_far, u8 start, int count);
void vgahw_get_dac_regs(u16 seg, u8 *data_far, u8 start, int count);
void vgahw_set_pel_mask(u8 val);
-u8 vgahw_get_pel_mask();
+u8 vgahw_get_pel_mask(void);
void vgahw_save_dac_state(u16 seg, struct saveDACcolors *info);
void vgahw_restore_dac_state(u16 seg, struct saveDACcolors *info);
void vgahw_sequ_write(u8 index, u8 value);
void vgahw_grdc_write(u8 index, u8 value);
void vgahw_set_text_block_specifier(u8 spec);
-void get_font_access();
-void release_font_access();
+void get_font_access(void);
+void release_font_access(void);
void vgahw_set_cursor_shape(u8 start, u8 end);
void vgahw_set_active_page(u16 address);
void vgahw_set_cursor_pos(u16 address);
void vgahw_set_scan_lines(u8 lines);
-u16 vgahw_get_vde();
+u16 vgahw_get_vde(void);
void vgahw_save_state(u16 seg, struct saveVideoHardware *info);
void vgahw_restore_state(u16 seg, struct saveVideoHardware *info);
void vgahw_set_mode(struct VideoParam_s *vparam_g);
void vgahw_enable_video_addressing(u8 disable);
-void vgahw_init();
+void vgahw_init(void);
// clext.c
void cirrus_set_video_mode(u8 mode);
-void cirrus_init();
+void cirrus_init(void);
// vbe.c -- not implemented yet.
#define VBE_DISPI_DISABLED 0x00
void dispi_set_enable(int enable);
-void vbe_init();
-int vbe_has_vbe_display();
+void vbe_init(void);
+int vbe_has_vbe_display(void);
#endif // vgatables.h