summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k/dev/pm_direct.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-11-25 18:32:12 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-11-25 18:32:12 +0000
commit06601d07c3f3a948ad4b435e9cce75bf9077f455 (patch)
tree9251a36ae3d19312fbc860cddc0107339e4181c8 /sys/arch/mac68k/dev/pm_direct.c
parentab3b10696322bc78ecdd88ea3d7b1c61c975f342 (diff)
Move towards a more flexible and generic interrupt system, as well as better
zs behaviour. From NetBSD; integration work by Martin Reindl
Diffstat (limited to 'sys/arch/mac68k/dev/pm_direct.c')
-rw-r--r--sys/arch/mac68k/dev/pm_direct.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/arch/mac68k/dev/pm_direct.c b/sys/arch/mac68k/dev/pm_direct.c
index 9602a3e5741..3ed9b2ae26e 100644
--- a/sys/arch/mac68k/dev/pm_direct.c
+++ b/sys/arch/mac68k/dev/pm_direct.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pm_direct.c,v 1.6 2003/03/14 10:47:36 miod Exp $ */
+/* $OpenBSD: pm_direct.c,v 1.7 2004/11/25 18:32:10 miod Exp $ */
/* pm_direct.c 1.22 01/09/97 Takashi Hamada */
/*
@@ -173,7 +173,6 @@ extern int adbStarting; /* doing ADB reinit, so do "polling" differently */
/*
* Define the external functions
*/
-extern int zshard(int); /* from zs.c */
extern void adb_comp_exec(void); /* from adb_direct.c */
@@ -255,7 +254,7 @@ pm_wait_busy(delay)
{
while(PM_IS_ON) {
#ifdef PM_GRAB_SI
- zshard(0); /* grab any serial interrupts */
+ (void)intr_dispatch(0x70);
#endif
if ((--delay) < 0)
return( 1 ); /* timeout */
@@ -273,7 +272,7 @@ pm_wait_free(delay)
{
while(PM_IS_OFF) {
#ifdef PM_GRAB_SI
- zshard(0); /* grab any serial interrupts */
+ (void)intr_dispatch(0x70);
#endif
if ((--delay) < 0)
return( 0 ); /* timeout */
@@ -980,7 +979,7 @@ pm_adb_op(buffer, compRout, data, command)
if ((via_reg(VIA1, vIFR) & 0x10) == 0x10)
pm_intr();
#ifdef PM_GRAB_SI
- zshard(0); /* grab any serial interrupts */
+ (void)intr_dispatch(0x70);
#endif
if ((--delay) < 0)
return( -1 );