Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Sep 2000 00:54:19 +0900
From:      sanpei@FreeBSD.org
To:        current@FreeBSD.org
Subject:   Please review: small change in sys/i386/isa/clock.c and sys/alpha/alpha/clock.c for PC-Card melody beep code.
Message-ID:  <200009171554.e8HFsJe02816@lavender.sanpei.org>

next in thread | raw e-mail | index | archive | help
Hi.
FreeBSD developers.

  I have a plan to commit PC-Card melody beep code into
5-current(/sys/pccard/pccard_beep.c) from PAO3.  But it needs to
call sysbeepstop@sys/${ARCH}/${BUS}/clock.c function from
pccard_beep.c.

  May I commit below small changes to sys/i386/isa/clock.c and
sys/alpha/alpha/clock.c?

MAIN POINT:
	static void sysbeepstop --> void sysbeepstop.

Full PC-Card melody patch is in below URL.
http://people.FreeBSD.org/~sanpei/5-current/sys-pccard-pccard_beep_melody-20000917.diff

---
MIHIRA, Sanpei Yoshiro
Yokohama, Japan.

--- sys/i386/isa/clock.c.org	Tue May  9 10:16:31 2000
+++ sys/i386/isa/clock.c	Sat May  6 00:50:11 2000
@@ -510,7 +510,7 @@
 #endif
 }
 
-static void
+void
 sysbeepstop(void *chan)
 {
 	outb(IO_PPI, inb(IO_PPI)&0xFC);	/* disable counter2 output to speaker */
--- sys/alpha/alpha/clock.c.org	Fri Sep 15 18:05:23 2000
+++ sys/alpha/alpha/clock.c	Fri Sep 15 18:05:52 2000
@@ -626,7 +626,7 @@
 	return (0);
 }
 
-static void
+void
 sysbeepstop(void *chan)
 {
 	outb(IO_PPI, inb(IO_PPI)&0xFC);	/* disable counter2 output to speaker */
--- sys/i386/include/clock.h.org	Fri Sep 15 18:07:58 2000
+++ sys/i386/include/clock.h	Fri Sep 15 18:09:19 2000
@@ -44,6 +44,7 @@
 int	release_timer1 __P((void));
 #endif
 int	sysbeep __P((int pitch, int period));
+void	sysbeepstop __P((void *chan));
 void	i8254_restore __P((void));
 
 #endif /* _KERNEL */
--- sys/alpha/include/clock.h.org	Mon Sep 18 00:38:54 2000
+++ sys/alpha/include/clock.h	Mon Sep 18 00:39:12 2000
@@ -17,6 +17,7 @@
 
 void	DELAY __P((int usec));
 int	sysbeep __P((int pitch, int period));
+void	sysbeepstop __P((void *chan));
 int	acquire_timer2 __P((int mode));
 int	release_timer2 __P((void));
 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009171554.e8HFsJe02816>