summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-08 22:25:21 +0000
committerphk <phk@FreeBSD.org>1999-08-08 22:25:21 +0000
commitfbf7cf314c3b0a9c60406dca7ca2d3897b51187e (patch)
treea6084887cf1ad27f9f4ffb340e1db4bd209fec71 /sys/dev/ppbus
parent6154e4bd7bf44a1ae3dc72a925e9881cd06ab974 (diff)
downloadFreeBSD-src-fbf7cf314c3b0a9c60406dca7ca2d3897b51187e.zip
FreeBSD-src-fbf7cf314c3b0a9c60406dca7ca2d3897b51187e.tar.gz
Passing the unit number to an interrupt routing is kind of narrowminded,
add a way to get the entire struct ppb_device back.
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r--sys/dev/ppbus/ppb_base.c4
-rw-r--r--sys/dev/ppbus/ppbconf.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/ppbus/ppb_base.c b/sys/dev/ppbus/ppb_base.c
index e5d2111..fed8730 100644
--- a/sys/dev/ppbus/ppb_base.c
+++ b/sys/dev/ppbus/ppb_base.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ppb_base.c,v 1.6 1999/01/10 12:04:54 nsouch Exp $
+ * $Id: ppb_base.c,v 1.7 1999/01/27 20:09:19 dillon Exp $
*
*/
#include <sys/param.h>
@@ -56,6 +56,8 @@ ppb_intr(struct ppb_link *pl)
*/
if (ppb->ppb_owner && ppb->ppb_owner->intr)
(*ppb->ppb_owner->intr)(ppb->ppb_owner->id_unit);
+ if (ppb->ppb_owner && ppb->ppb_owner->bintr)
+ (*ppb->ppb_owner->bintr)(ppb->ppb_owner);
return;
}
diff --git a/sys/dev/ppbus/ppbconf.h b/sys/dev/ppbus/ppbconf.h
index ebed36f..62bd99c 100644
--- a/sys/dev/ppbus/ppbconf.h
+++ b/sys/dev/ppbus/ppbconf.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ppbconf.h,v 1.13 1999/01/30 15:35:39 nsouch Exp $
+ * $Id: ppbconf.h,v 1.14 1999/04/05 15:43:11 peter Exp $
*
*/
#ifndef __PPBCONF_H
@@ -174,6 +174,9 @@ struct ppb_device {
put_xfer[PPB_MAX_XFER];
void (*intr)(int); /* interrupt handler */
+ void (*bintr)(struct ppb_device *); /* interrupt handler */
+
+ void *drv1, *drv2; /* drivers private data */
struct ppb_data *ppb; /* link to the ppbus */
OpenPOWER on IntegriCloud