summaryrefslogtreecommitdiffstats
path: root/sys/dev/musycc
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2000-12-12 23:05:19 +0000
committerjulian <julian@FreeBSD.org>2000-12-12 23:05:19 +0000
commit665c0a9634c4e32f785a874f60fe82cf4ca5b591 (patch)
tree545bb22f6e9f3560227595b1fc8acfef42af9176 /sys/dev/musycc
parentb7a63c8a2a7630dd5ecd2d9077b2cbf7a6c01286 (diff)
downloadFreeBSD-src-665c0a9634c4e32f785a874f60fe82cf4ca5b591.zip
FreeBSD-src-665c0a9634c4e32f785a874f60fe82cf4ca5b591.tar.gz
I always forget this file. It's netgraph, but not one of mine.....
Diffstat (limited to 'sys/dev/musycc')
-rw-r--r--sys/dev/musycc/musycc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/musycc/musycc.c b/sys/dev/musycc/musycc.c
index fa11689..c8f35ff 100644
--- a/sys/dev/musycc/musycc.c
+++ b/sys/dev/musycc/musycc.c
@@ -275,7 +275,6 @@ static struct ng_type ngtypestruct = {
NULL,
musycc_connect,
musycc_rcvdata,
- musycc_rcvdata,
musycc_disconnect,
NULL
};
@@ -665,7 +664,7 @@ musycc_intr0_rx_eom(struct softc *sc, int ch)
md->m = m2;
md->data = vtophys(m2->m_data);
/* Pass the received mbuf upwards. */
- ng_queue_data(sch->hook, m, NULL);
+ NG_SEND_DATA_ONLY(error, sch->hook, m);
} else {
/*
* We didn't get a mbuf cluster,
@@ -1031,7 +1030,8 @@ musycc_newhook(node_p node, hook_p hook, const char *name)
}
static int
-musycc_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, struct mbuf **ret_m, meta_p *ret_meta)
+musycc_rcvdata(hook_p hook, struct mbuf *m, meta_p meta,
+ struct mbuf **ret_m, meta_p *ret_meta, struct ng_mesg **resp)
{
struct softc *sc;
@@ -1211,6 +1211,7 @@ musycc_connect(hook_p hook)
tsleep(&sc->last, PZERO + PCATCH, "con4", hz);
sc->reg->srd = sc->last = 0x0820 + ch;
tsleep(&sc->last, PZERO + PCATCH, "con3", hz);
+ hook->peer->flags |= HK_QUEUE;
return (0);
}
OpenPOWER on IntegriCloud