Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Rename twe_tweio_command_handler() to twe_ccb_wa...
details: https://anonhg.NetBSD.org/src/rev/6e64fba80805
branches: trunk
changeset: 567018:6e64fba80805
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu May 27 23:47:23 2004 +0000
description:
Rename twe_tweio_command_handler() to twe_ccb_wait_handler() and expose it.
diffstat:
sys/dev/pci/twe.c | 10 +++++-----
sys/dev/pci/twevar.h | 4 +++-
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (56 lines):
diff -r c0b4703af35c -r 6e64fba80805 sys/dev/pci/twe.c
--- a/sys/dev/pci/twe.c Thu May 27 20:43:16 2004 +0000
+++ b/sys/dev/pci/twe.c Thu May 27 23:47:23 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: twe.c,v 1.55 2004/04/15 02:03:03 thorpej Exp $ */
+/* $NetBSD: twe.c,v 1.56 2004/05/27 23:47:23 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.55 2004/04/15 02:03:03 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.56 2004/05/27 23:47:23 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1676,8 +1676,8 @@
return (0);
}
-static void
-twe_tweio_command_handler(struct twe_ccb *ccb, int error)
+void
+twe_ccb_wait_handler(struct twe_ccb *ccb, int error)
{
/* Just wake up the sleeper. */
@@ -1738,7 +1738,7 @@
KASSERT(ccb != NULL);
}
- ccb->ccb_tx.tx_handler = twe_tweio_command_handler;
+ ccb->ccb_tx.tx_handler = twe_ccb_wait_handler;
ccb->ccb_tx.tx_context = NULL;
ccb->ccb_tx.tx_dv = &twe->sc_dv;
diff -r c0b4703af35c -r 6e64fba80805 sys/dev/pci/twevar.h
--- a/sys/dev/pci/twevar.h Thu May 27 20:43:16 2004 +0000
+++ b/sys/dev/pci/twevar.h Thu May 27 23:47:23 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: twevar.h,v 1.20 2003/09/23 23:50:05 thorpej Exp $ */
+/* $NetBSD: twevar.h,v 1.21 2004/05/27 23:47:23 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
@@ -132,6 +132,8 @@
int twe_ccb_submit(struct twe_softc *, struct twe_ccb *);
void twe_ccb_unmap(struct twe_softc *, struct twe_ccb *);
+void twe_ccb_wait_handler(struct twe_ccb *, int);
+
int twe_param_get(struct twe_softc *, int, int, size_t,
void (*)(struct twe_ccb *, int), struct twe_param **);
int twe_param_get_1(struct twe_softc *, int, int, uint8_t *);
Home |
Main Index |
Thread Index |
Old Index