diff options
author | nyan <nyan@FreeBSD.org> | 2000-10-15 04:54:17 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2000-10-15 04:54:17 +0000 |
commit | 6df9be0e35b54b58c1514f3c2d88aaf3a62b256e (patch) | |
tree | ce86369bb07675fa0dcba83eeaec714ce02d6727 /sys/pc98/cbus | |
parent | 3a05390ac27985a3d69dc03063e56f783e9422d5 (diff) | |
download | FreeBSD-src-6df9be0e35b54b58c1514f3c2d88aaf3a62b256e.zip FreeBSD-src-6df9be0e35b54b58c1514f3c2d88aaf3a62b256e.tar.gz |
Fixed warnings.
Diffstat (limited to 'sys/pc98/cbus')
-rw-r--r-- | sys/pc98/cbus/30line.h | 10 | ||||
-rw-r--r-- | sys/pc98/cbus/clock.c | 2 | ||||
-rw-r--r-- | sys/pc98/cbus/fdc.c | 10 | ||||
-rw-r--r-- | sys/pc98/cbus/gdc.c | 29 | ||||
-rw-r--r-- | sys/pc98/cbus/pcrtc.c | 2 |
5 files changed, 31 insertions, 22 deletions
diff --git a/sys/pc98/cbus/30line.h b/sys/pc98/cbus/30line.h index 15b7295..c62ec41 100644 --- a/sys/pc98/cbus/30line.h +++ b/sys/pc98/cbus/30line.h @@ -94,21 +94,28 @@ static void master_gdc_cmd(unsigned int); static void master_gdc_prm(unsigned int); static void master_gdc_word_prm(unsigned int); +#ifdef LINE30 static void master_gdc_fifo_empty(void); +#endif static void master_gdc_wait_vsync(void); static void gdc_cmd(unsigned int); +#ifdef LINE30 static void gdc_prm(unsigned int); static void gdc_word_prm(unsigned int); static void gdc_fifo_empty(void); +#endif static void gdc_wait_vsync(void); +#ifdef LINE30 static int check_gdc_clock(void); static int gdc_INFO = _25L; +#endif static int gdc_FH = _24KHZ; static void initialize_gdc(unsigned int, int); +#ifdef LINE30 static unsigned int master_param[2][2][8] = { {{78, 8, 7, 9, 7, 7, 25, 400}, /* 400/24k */ {_CR-2, _VS, _HS-1, _HFP-1, _HBP-1, _VFP, _VBP, _LF}}, /* 480/24k */ @@ -135,5 +142,6 @@ static unsigned int slave_param[2][6][8] = { static int SlavePCH[2] = {40,80}; static int MasterPCH = 80; static int SlaveScrlLF[3] = {400,400,_LF}; - #endif + +#endif /* __PC98_PC98_30LINE_H__ */ diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c index 88ec706..90a31e6 100644 --- a/sys/pc98/cbus/clock.c +++ b/sys/pc98/cbus/clock.c @@ -1129,6 +1129,8 @@ inittodr(time_t base) second); /* sec now contains the number of seconds, since Jan 1 1970, in the local time zone */ + + s = splhigh(); #else /* IBM-PC */ /* Look if we have a RTC present and the time is valid */ if (!(rtcin(RTC_STATUSD) & RTCSD_PWR)) diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c index a21cb8a..c72c41e 100644 --- a/sys/pc98/cbus/fdc.c +++ b/sys/pc98/cbus/fdc.c @@ -865,7 +865,11 @@ fdc_read_ivar(device_t dev, device_t child, int which, uintptr_t *result) static int fdc_probe(device_t dev) { +#ifdef PC98 + int error; +#else int error, ic_type; +#endif struct fdc_data *fdc; fdc = device_get_softc(dev); @@ -1157,12 +1161,18 @@ DRIVER_MODULE(fdc, pccard, fdc_pccard_driver, fdc_devclass, 0, 0); static int fd_probe(device_t dev) { +#ifdef PC98 + u_int fdt; +#else int i; u_int fdt, st0, st3; +#endif struct fd_data *fd; struct fdc_data *fdc; fdsu_t fdsu; +#ifndef PC98 static int fd_fifo = 0; +#endif fdsu = *(int *)device_get_ivars(dev); /* xxx cheat a bit... */ fd = device_get_softc(dev); diff --git a/sys/pc98/cbus/gdc.c b/sys/pc98/cbus/gdc.c index 4543e0f..3dad2bc 100644 --- a/sys/pc98/cbus/gdc.c +++ b/sys/pc98/cbus/gdc.c @@ -37,10 +37,11 @@ #include <sys/kernel.h> #include <sys/bus.h> +#include <sys/fbio.h> + #include <vm/vm.h> #include <vm/pmap.h> -#include <machine/console.h> #include <machine/md_var.h> #include <machine/pc/bios.h> @@ -287,7 +288,6 @@ static video_adapter_t biosadapter[1]; /* video driver declarations */ static int gdc_configure(int flags); -static int gdc_nop(void); static int gdc_err(video_adapter_t *adp, ...); static vi_probe_t gdc_probe; static vi_init_t gdc_init; @@ -377,7 +377,6 @@ static int gdc_init_done = FALSE; /* local functions */ static int map_gen_mode_num(int type, int color, int mode); static int probe_adapters(void); -static void dump_buffer(u_char *buf, size_t len); #define prologue(adp, flag, err) \ if (!gdc_init_done || !((adp)->va_flags & (flag))) \ @@ -515,10 +514,12 @@ static void master_gdc_word_prm(unsigned int wpmtr) master_gdc_prm((wpmtr >> 8) & 0x00ff); } +#ifdef LINE30 static void master_gdc_fifo_empty(void) { while ( (inb(IO_GDC1) & 4) == 0); } +#endif static void master_gdc_wait_vsync(void) { @@ -532,6 +533,7 @@ static void gdc_cmd(unsigned int cmd) outb( IO_GDC2+2, cmd); } +#ifdef LINE30 static void gdc_prm(unsigned int pmtr) { while ( (inb(IO_GDC2) & 2) != 0); @@ -548,6 +550,7 @@ static void gdc_fifo_empty(void) { while ( (inb(IO_GDC2) & 0x04) == 0); } +#endif static void gdc_wait_vsync(void) { @@ -555,6 +558,7 @@ static void gdc_wait_vsync(void) while ( (inb(IO_GDC2) & 0x20) == 0); } +#ifdef LINE30 static int check_gdc_clock(void) { if ((inb(IO_SYSPORT) & 0x80) == 0){ @@ -563,6 +567,7 @@ static int check_gdc_clock(void) return _2_5MHZ; } } +#endif static void initialize_gdc(unsigned int mode, int isGraph) { @@ -767,12 +772,6 @@ gdc_set_origin(video_adapter_t *adp, off_t offset) return 0; } -static int -gdc_nop(void) -{ - return 0; -} - /* entry points */ static int @@ -1244,18 +1243,6 @@ gdc_dev_ioctl(video_adapter_t *adp, u_long cmd, caddr_t arg) } } -static void -dump_buffer(u_char *buf, size_t len) -{ - int i; - - for(i = 0; i < len;) { - printf("%02x ", buf[i]); - if ((++i % 16) == 0) - printf("\n"); - } -} - /* * diag(): * Print some information about the video adapter and video modes, diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c index 88ec706..90a31e6 100644 --- a/sys/pc98/cbus/pcrtc.c +++ b/sys/pc98/cbus/pcrtc.c @@ -1129,6 +1129,8 @@ inittodr(time_t base) second); /* sec now contains the number of seconds, since Jan 1 1970, in the local time zone */ + + s = splhigh(); #else /* IBM-PC */ /* Look if we have a RTC present and the time is valid */ if (!(rtcin(RTC_STATUSD) & RTCSD_PWR)) |