diff options
author | bde <bde@FreeBSD.org> | 1998-10-22 05:58:45 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-10-22 05:58:45 +0000 |
commit | df88297cad3e438e774e13137af8eaff53c0fc7f (patch) | |
tree | d694ec5d94b6e29be85865e36be61cbb2bea66dc /sys/dev/ppc | |
parent | 7a07480a8f242db0c438040f3beb4ce7b2c7cde2 (diff) | |
download | FreeBSD-src-df88297cad3e438e774e13137af8eaff53c0fc7f.zip FreeBSD-src-df88297cad3e438e774e13137af8eaff53c0fc7f.tar.gz |
Initialize isa_devtab entries for interrupt handlers in individual
device drivers, not in ioconf.c. Use a different hack in isa_device.h
so that a new config(8) is not required yet.
pc98 parts approved by: kato
Diffstat (limited to 'sys/dev/ppc')
-rw-r--r-- | sys/dev/ppc/ppc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c index 4dc6a44..39f4b4e 100644 --- a/sys/dev/ppc/ppc.c +++ b/sys/dev/ppc/ppc.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ppc.c,v 1.8 1998/09/13 20:57:06 nsouch Exp $ + * $Id: ppc.c,v 1.9 1998/09/20 14:47:01 nsouch Exp $ * */ #include "ppc.h" @@ -124,6 +124,7 @@ static void ppc_wfifo(int unit, char byte) { w_fifo(ppcdata[unit], byte); } static void ppc_reset_epp_timeout(int); static void ppc_ecp_sync(int); +static ointhand2_t ppcintr; static int ppc_exec_microseq(int, struct ppb_microseq **); static int ppc_generic_setmode(int, int); @@ -189,7 +190,7 @@ ppc_ecp_sync(int unit) { return; } -void +static void ppcintr(int unit) { /* call directly upper code */ @@ -1276,6 +1277,8 @@ ppcattach(struct isa_device *isdp) ppc_modes[ppc->ppc_mode], (PPB_IS_EPP(ppc->ppc_mode)) ? ppc_epp_protocol[ppc->ppc_epp] : ""); + isdp->id_ointr = ppcintr; + /* * Prepare ppbus data area for upper level code. */ |