diff options
| author | KATO Takenori <kato@FreeBSD.org> | 2002-03-20 12:22:31 +0000 |
|---|---|---|
| committer | KATO Takenori <kato@FreeBSD.org> | 2002-03-20 12:22:31 +0000 |
| commit | 68ee1c91c8bf9298596b81135f48bd2144c5d9c0 (patch) | |
| tree | 767ea75c6c412d6668619add3b30606991deffaa /sys/pc98/cbus | |
| parent | 237a429e2202977352a73b5ed76fba46a0ed2a31 (diff) | |
Notes
Diffstat (limited to 'sys/pc98/cbus')
| -rw-r--r-- | sys/pc98/cbus/cbus_dma.c | 2 | ||||
| -rw-r--r-- | sys/pc98/cbus/clock.c | 22 | ||||
| -rw-r--r-- | sys/pc98/cbus/pcrtc.c | 22 | ||||
| -rw-r--r-- | sys/pc98/cbus/pmc.c | 10 | ||||
| -rw-r--r-- | sys/pc98/cbus/sio.c | 98 | ||||
| -rw-r--r-- | sys/pc98/cbus/sio_cbus.c | 4 |
6 files changed, 79 insertions, 79 deletions
diff --git a/sys/pc98/cbus/cbus_dma.c b/sys/pc98/cbus/cbus_dma.c index 987aa37a29f24..b5e662be24f4b 100644 --- a/sys/pc98/cbus/cbus_dma.c +++ b/sys/pc98/cbus/cbus_dma.c @@ -97,7 +97,7 @@ #define DMA2_MODE (IO_DMA2 + 2*11) /* mode register */ #define DMA2_FFC (IO_DMA2 + 2*12) /* clear first/last FF */ -static int isa_dmarangecheck __P((caddr_t va, u_int length, int chan)); +static int isa_dmarangecheck(caddr_t va, u_int length, int chan); #ifdef PC98 static caddr_t dma_bouncebuf[4]; diff --git a/sys/pc98/cbus/clock.c b/sys/pc98/cbus/clock.c index 2834dca799ef2..b8b9e3fae84f4 100644 --- a/sys/pc98/cbus/clock.c +++ b/sys/pc98/cbus/clock.c @@ -109,8 +109,8 @@ #include <i386/isa/intr_machdep.h> /* The interrupt triggered by the 8254 (timer) chip */ int apic_8254_intr; -static u_long read_intr_count __P((int vec)); -static void setup_8254_mixed_mode __P((void)); +static u_long read_intr_count(int vec); +static void setup_8254_mixed_mode(void); #endif /* @@ -169,7 +169,7 @@ static int i8254_ticked; * timer0_state == 0 case. We should use inthand_add()/inthand_remove() * to switch between clkintr() and a slightly different timerintr(). */ -static void (*new_function) __P((struct clockframe *frame)); +static void (*new_function)(struct clockframe *frame); static u_int new_rate; #ifndef PC98 static u_char rtc_statusa = RTCSA_DIVIDER | RTCSA_NOPROF; @@ -188,16 +188,16 @@ static u_char timer0_state; static u_char timer1_state; #endif static u_char timer2_state; -static void (*timer_func) __P((struct clockframe *frame)) = hardclock; +static void (*timer_func)(struct clockframe *frame) = hardclock; #ifdef PC98 -static void rtc_serialcombit __P((int)); -static void rtc_serialcom __P((int)); -static int rtc_inb __P((void)); -static void rtc_outb __P((int)); +static void rtc_serialcombit(int); +static void rtc_serialcom(int); +static int rtc_inb(void); +static void rtc_outb(int); #endif -static unsigned i8254_get_timecount __P((struct timecounter *tc)); -static unsigned tsc_get_timecount __P((struct timecounter *tc)); +static unsigned i8254_get_timecount(struct timecounter *tc); +static unsigned tsc_get_timecount(struct timecounter *tc); static void set_timer_freq(u_int freq, int intr_freq); static struct timecounter tsc_timecounter = { @@ -304,7 +304,7 @@ clkintr(struct clockframe frame) * The acquire and release functions must be called at ipl >= splclock(). */ int -acquire_timer0(int rate, void (*function) __P((struct clockframe *frame))) +acquire_timer0(int rate, void (*function)(struct clockframe *frame)) { static int old_rate; diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c index 2834dca799ef2..b8b9e3fae84f4 100644 --- a/sys/pc98/cbus/pcrtc.c +++ b/sys/pc98/cbus/pcrtc.c @@ -109,8 +109,8 @@ #include <i386/isa/intr_machdep.h> /* The interrupt triggered by the 8254 (timer) chip */ int apic_8254_intr; -static u_long read_intr_count __P((int vec)); -static void setup_8254_mixed_mode __P((void)); +static u_long read_intr_count(int vec); +static void setup_8254_mixed_mode(void); #endif /* @@ -169,7 +169,7 @@ static int i8254_ticked; * timer0_state == 0 case. We should use inthand_add()/inthand_remove() * to switch between clkintr() and a slightly different timerintr(). */ -static void (*new_function) __P((struct clockframe *frame)); +static void (*new_function)(struct clockframe *frame); static u_int new_rate; #ifndef PC98 static u_char rtc_statusa = RTCSA_DIVIDER | RTCSA_NOPROF; @@ -188,16 +188,16 @@ static u_char timer0_state; static u_char timer1_state; #endif static u_char timer2_state; -static void (*timer_func) __P((struct clockframe *frame)) = hardclock; +static void (*timer_func)(struct clockframe *frame) = hardclock; #ifdef PC98 -static void rtc_serialcombit __P((int)); -static void rtc_serialcom __P((int)); -static int rtc_inb __P((void)); -static void rtc_outb __P((int)); +static void rtc_serialcombit(int); +static void rtc_serialcom(int); +static int rtc_inb(void); +static void rtc_outb(int); #endif -static unsigned i8254_get_timecount __P((struct timecounter *tc)); -static unsigned tsc_get_timecount __P((struct timecounter *tc)); +static unsigned i8254_get_timecount(struct timecounter *tc); +static unsigned tsc_get_timecount(struct timecounter *tc); static void set_timer_freq(u_int freq, int intr_freq); static struct timecounter tsc_timecounter = { @@ -304,7 +304,7 @@ clkintr(struct clockframe frame) * The acquire and release functions must be called at ipl >= splclock(). */ int -acquire_timer0(int rate, void (*function) __P((struct clockframe *frame))) +acquire_timer0(int rate, void (*function)(struct clockframe *frame)) { static int old_rate; diff --git a/sys/pc98/cbus/pmc.c b/sys/pc98/cbus/pmc.c index feafd8b74e972..b317d700f28d6 100644 --- a/sys/pc98/cbus/pmc.c +++ b/sys/pc98/cbus/pmc.c @@ -51,11 +51,11 @@ struct pmc_isa_softc { int flags; }; -static int pmc_isa_alloc_resources __P((device_t)); -static void pmc_isa_release_resources __P((device_t)); -static int pmc_isa_probe __P((device_t)); -static int pmc_isa_attach __P((device_t)); -static int pmc_isa_detach __P((device_t)); +static int pmc_isa_alloc_resources(device_t); +static void pmc_isa_release_resources(device_t); +static int pmc_isa_probe(device_t); +static int pmc_isa_attach(device_t); +static int pmc_isa_detach(device_t); #define PMC_ISA_PORT 0x8f0 #define PMC_ISA_PORTSIZE 4 diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c index b49506d12a418..129214d2e6ed6 100644 --- a/sys/pc98/cbus/sio.c +++ b/sys/pc98/cbus/sio.c @@ -369,26 +369,26 @@ struct com_s { }; #ifdef COM_ESP -static int espattach __P((struct com_s *com, Port_t esp_port)); +static int espattach(struct com_s *com, Port_t esp_port); #endif static timeout_t siobusycheck; -static u_int siodivisor __P((u_long rclk, speed_t speed)); +static u_int siodivisor(u_long rclk, speed_t speed); static timeout_t siodtrwakeup; -static void comhardclose __P((struct com_s *com)); -static void sioinput __P((struct com_s *com)); -static void siointr1 __P((struct com_s *com)); -static void siointr __P((void *arg)); -static int commctl __P((struct com_s *com, int bits, int how)); -static int comparam __P((struct tty *tp, struct termios *t)); -static void siopoll __P((void *)); -static void siosettimeout __P((void)); -static int siosetwater __P((struct com_s *com, speed_t speed)); -static void comstart __P((struct tty *tp)); -static void comstop __P((struct tty *tp, int rw)); +static void comhardclose(struct com_s *com); +static void sioinput(struct com_s *com); +static void siointr1(struct com_s *com); +static void siointr(void *arg); +static int commctl(struct com_s *com, int bits, int how); +static int comparam(struct tty *tp, struct termios *t); +static void siopoll(void *); +static void siosettimeout(void); +static int siosetwater(struct com_s *com, speed_t speed); +static void comstart(struct tty *tp); +static void comstop(struct tty *tp, int rw); static timeout_t comwakeup; -static void disc_optim __P((struct tty *tp, struct termios *t, - struct com_s *com)); +static void disc_optim(struct tty *tp, struct termios *t, + struct com_s *com); char sio_driver_name[] = "sio"; static struct mtx sio_lock; @@ -464,33 +464,33 @@ static int sysclock; #define IS_8251(if_type) (!(if_type & 0x10)) #define COM1_EXT_CLOCK 0x40000 -static void commint __P((dev_t dev)); -static void com_tiocm_set __P((struct com_s *com, int msr)); -static void com_tiocm_bis __P((struct com_s *com, int msr)); -static void com_tiocm_bic __P((struct com_s *com, int msr)); -static int com_tiocm_get __P((struct com_s *com)); -static int com_tiocm_get_delta __P((struct com_s *com)); -static void pc98_msrint_start __P((dev_t dev)); -static void com_cflag_and_speed_set __P((struct com_s *com, int cflag, int speed)); -static int pc98_ttspeedtab __P((struct com_s *com, int speed, u_int *divisor)); -static int pc98_get_modem_status __P((struct com_s *com)); +static void commint(dev_t dev); +static void com_tiocm_set(struct com_s *com, int msr); +static void com_tiocm_bis(struct com_s *com, int msr); +static void com_tiocm_bic(struct com_s *com, int msr); +static int com_tiocm_get(struct com_s *com); +static int com_tiocm_get_delta(struct com_s *com); +static void pc98_msrint_start(dev_t dev); +static void com_cflag_and_speed_set(struct com_s *com, int cflag, int speed); +static int pc98_ttspeedtab(struct com_s *com, int speed, u_int *divisor); +static int pc98_get_modem_status(struct com_s *com); static timeout_t pc98_check_msr; -static void pc98_set_baud_rate __P((struct com_s *com, u_int count)); -static void pc98_i8251_reset __P((struct com_s *com, int mode, int command)); -static void pc98_disable_i8251_interrupt __P((struct com_s *com, int mod)); -static void pc98_enable_i8251_interrupt __P((struct com_s *com, int mod)); -static int pc98_check_i8251_interrupt __P((struct com_s *com)); -static int pc98_i8251_get_cmd __P((struct com_s *com)); -static int pc98_i8251_get_mod __P((struct com_s *com)); -static void pc98_i8251_set_cmd __P((struct com_s *com, int x)); -static void pc98_i8251_or_cmd __P((struct com_s *com, int x)); -static void pc98_i8251_clear_cmd __P((struct com_s *com, int x)); -static void pc98_i8251_clear_or_cmd __P((struct com_s *com, int clr, int x)); -static int pc98_check_if_type __P((device_t dev, struct siodev *iod)); -static int pc98_check_8251vfast __P((void)); -static int pc98_check_8251fifo __P((void)); -static void pc98_check_sysclock __P((void)); -static void pc98_set_ioport __P((struct com_s *com)); +static void pc98_set_baud_rate(struct com_s *com, u_int count); +static void pc98_i8251_reset(struct com_s *com, int mode, int command); +static void pc98_disable_i8251_interrupt(struct com_s *com, int mod); +static void pc98_enable_i8251_interrupt(struct com_s *com, int mod); +static int pc98_check_i8251_interrupt(struct com_s *com); +static int pc98_i8251_get_cmd(struct com_s *com); +static int pc98_i8251_get_mod(struct com_s *com); +static void pc98_i8251_set_cmd(struct com_s *com, int x); +static void pc98_i8251_or_cmd(struct com_s *com, int x); +static void pc98_i8251_clear_cmd(struct com_s *com, int x); +static void pc98_i8251_clear_or_cmd(struct com_s *com, int clr, int x); +static int pc98_check_if_type(device_t dev, struct siodev *iod); +static int pc98_check_8251vfast(void); +static int pc98_check_8251fifo(void); +static void pc98_check_sysclock(void); +static void pc98_set_ioport(struct com_s *com); #define com_int_Tx_disable(com) \ pc98_disable_i8251_interrupt(com,IEN_Tx|IEN_TxEMP) @@ -3929,17 +3929,17 @@ struct siocnstate { }; #ifndef __alpha__ -static speed_t siocngetspeed __P((Port_t, u_long rclk)); +static speed_t siocngetspeed(Port_t, u_long rclk); #endif -static void siocnclose __P((struct siocnstate *sp, Port_t iobase)); -static void siocnopen __P((struct siocnstate *sp, Port_t iobase, int speed)); -static void siocntxwait __P((Port_t iobase)); +static void siocnclose(struct siocnstate *sp, Port_t iobase); +static void siocnopen(struct siocnstate *sp, Port_t iobase, int speed); +static void siocntxwait(Port_t iobase); #ifdef __alpha__ -int siocnattach __P((int port, int speed)); -int siogdbattach __P((int port, int speed)); -int siogdbgetc __P((void)); -void siogdbputc __P((int c)); +int siocnattach(int port, int speed); +int siogdbattach(int port, int speed); +int siogdbgetc(void); +void siogdbputc(int c); #else static cn_probe_t siocnprobe; static cn_init_t siocninit; diff --git a/sys/pc98/cbus/sio_cbus.c b/sys/pc98/cbus/sio_cbus.c index fabee705dd8aa..bfcfcc35bab25 100644 --- a/sys/pc98/cbus/sio_cbus.c +++ b/sys/pc98/cbus/sio_cbus.c @@ -42,8 +42,8 @@ #include <isa/isavar.h> -static int sio_isa_attach __P((device_t dev)); -static int sio_isa_probe __P((device_t dev)); +static int sio_isa_attach(device_t dev); +static int sio_isa_probe(device_t dev); static device_method_t sio_isa_methods[] = { /* Device interface */ |
