From a9d7b546d6e78f2787b90cedcb420ecb6f0fd734 Mon Sep 17 00:00:00 2001 From: uch Date: Wed, 13 Jun 2001 19:02:13 +0000 Subject: [PATCH] make this work. --- sys/dev/hpc/hpcin.c | 4 +++- sys/dev/hpc/hpcioman.c | 3 ++- sys/dev/hpc/hpcout.c | 6 +++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sys/dev/hpc/hpcin.c b/sys/dev/hpc/hpcin.c index e3e8b5e735a1..bdd8fe2632b2 100644 --- a/sys/dev/hpc/hpcin.c +++ b/sys/dev/hpc/hpcin.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpcin.c,v 1.2 2001/06/04 18:59:32 uch Exp $ */ +/* $NetBSD: hpcin.c,v 1.3 2001/06/13 19:02:13 uch Exp $ */ /*- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc. @@ -40,6 +40,8 @@ #include #include +#include + #include #include diff --git a/sys/dev/hpc/hpcioman.c b/sys/dev/hpc/hpcioman.c index da279c1383c1..bc4b711efb9d 100644 --- a/sys/dev/hpc/hpcioman.c +++ b/sys/dev/hpc/hpcioman.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpcioman.c,v 1.3 2001/06/04 18:59:32 uch Exp $ */ +/* $NetBSD: hpcioman.c,v 1.4 2001/06/13 19:02:14 uch Exp $ */ /*- * Copyright (c) 1999-2001 The NetBSD Foundation, Inc. @@ -44,6 +44,7 @@ #include #include +#include #include #include diff --git a/sys/dev/hpc/hpcout.c b/sys/dev/hpc/hpcout.c index 1ff54b2a2352..ba71d661ed04 100644 --- a/sys/dev/hpc/hpcout.c +++ b/sys/dev/hpc/hpcout.c @@ -1,4 +1,4 @@ -/* $NetBSD: hpcout.c,v 1.2 2001/06/04 18:59:32 uch Exp $ */ +/* $NetBSD: hpcout.c,v 1.3 2001/06/13 19:02:14 uch Exp $ */ /*- * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc. @@ -40,6 +40,8 @@ #include #include +#include + #include #include @@ -79,6 +81,8 @@ hpcout_attach(struct device *parent, struct device *self, void *aux) struct hpcioman_attach_args *hma = aux; struct hpcout_softc *sc = (void *)self; + sc->sc_hma = *hma; /* structure assignment */ + if (hma->hma_hc == NULL || hma->hma_type == HPCIOMANCF_EVTYPE_DEFAULT || hma->hma_id == HPCIOMANCF_ID_DEFAULT ||