Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Wrap call to mpu_intr in NMPU - nowbuildswithout...



details:   https://anonhg.NetBSD.org/src/rev/af623f234f73
branches:  trunk
changeset: 500178:af623f234f73
user:      abs <abs%NetBSD.org@localhost>
date:      Thu Dec 07 14:12:30 2000 +0000

description:
Wrap call to mpu_intr in NMPU - nowbuildswithout 'mpu at fms' in config

diffstat:

 sys/dev/pci/fms.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 176041f6fc21 -r af623f234f73 sys/dev/pci/fms.c
--- a/sys/dev/pci/fms.c Thu Dec 07 12:55:06 2000 +0000
+++ b/sys/dev/pci/fms.c Thu Dec 07 14:12:30 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fms.c,v 1.7 2000/11/14 18:42:55 thorpej Exp $  */
+/*     $NetBSD: fms.c,v 1.8 2000/12/07 14:12:30 abs Exp $      */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -40,6 +40,8 @@
  * Forte Media FM801 Audio Device Driver
  */
 
+#include "mpu.h"
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/kernel.h>
@@ -476,8 +478,10 @@
                        printf("unexpected rec intr\n");
        }
        
+#if NMPU > 0
        if (istat & FM_INTSTATUS_MPU)
                mpu_intr(sc->sc_mpu_dev);
+#endif
 
        bus_space_write_2(sc->sc_iot, sc->sc_ioh, FM_INTSTATUS, 
                          istat & (FM_INTSTATUS_PLAY | FM_INTSTATUS_REC));



Home | Main Index | Thread Index | Old Index