Remove #ifdef __HAVE_GENERIC_SOFT_INTERRUPTS switch and old interrupt

support.  Ixp12x0 port always uses generic soft interrupt.
This commit is contained in:
igy 2003-03-06 06:17:43 +00:00
parent edcaa77675
commit 3c0a5d1f13
2 changed files with 3 additions and 14 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ixp12x0_com.c,v 1.13 2003/02/22 05:32:00 igy Exp $ */
/* $NetBSD: ixp12x0_com.c,v 1.14 2003/03/06 06:17:43 igy Exp $ */
/*
* Copyright (c) 1998, 1999, 2001, 2002 The NetBSD Foundation, Inc.
* All rights reserved.
@ -77,7 +77,6 @@
*/
#include "opt_com.h"
#include "opt_ddb.h"
#include "opt_kgdb.h"
@ -1232,15 +1231,10 @@ ixpcomintr(void* arg)
COM_UNLOCK(sc);
/* Wake up the poller. */
#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
softintr_schedule(sc->sc_si);
#else
setsoftserial();
#endif
#if NRND > 0 && defined(RND_COM)
rnd_add_uint32(&sc->rnd_source, iir | lsr);
#endif
return (1);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ixp12x0_comvar.h,v 1.4 2003/02/22 05:32:01 igy Exp $ */
/* $NetBSD: ixp12x0_comvar.h,v 1.5 2003/03/06 06:17:43 igy Exp $ */
/*-
* Copyright (c) 2001, The NetBSD Foundation, Inc. All rights reserved.
*
@ -57,11 +57,9 @@ struct ixpcom_softc {
bus_space_tag_t sc_iot;
bus_space_handle_t sc_ioh;
#ifdef __HAVE_GENERIC_SOFT_INTERRUPTS
void *sc_si;
#endif
struct tty *sc_tty;
struct tty *sc_tty;
u_char *sc_rbuf, *sc_ebuf;
@ -95,9 +93,6 @@ struct ixpcom_softc {
int enabled;
};
#if 0
extern struct bus_space ixpcom_bs_tag;
#endif
extern struct ixpcom_softc* ixpcom_sc;
void ixpcom_attach_subr(struct ixpcom_softc *);