geom_ccd.c (85a219d2017d0e1ffc28eb51592f30df7f2a699e) geom_ccd.c (2186cd9e8d708d8dbddecbfa7652a0c0706f3c68)
1/* $FreeBSD$ */
2
3/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
4
5/*
6 * Copyright (c) 1995 Jason R. Thorpe.
7 * All rights reserved.
8 *

--- 940 unchanged lines hidden (view full) ---

949{
950#ifdef DEBUG
951 if (ccddebug & CCDB_FOLLOW)
952 printf("ccdintr(%x, %x)\n", cs, bp);
953#endif
954 /*
955 * Request is done for better or worse, wakeup the top half.
956 */
1/* $FreeBSD$ */
2
3/* $NetBSD: ccd.c,v 1.22 1995/12/08 19:13:26 thorpej Exp $ */
4
5/*
6 * Copyright (c) 1995 Jason R. Thorpe.
7 * All rights reserved.
8 *

--- 940 unchanged lines hidden (view full) ---

949{
950#ifdef DEBUG
951 if (ccddebug & CCDB_FOLLOW)
952 printf("ccdintr(%x, %x)\n", cs, bp);
953#endif
954 /*
955 * Request is done for better or worse, wakeup the top half.
956 */
957 /* Record device statistics */
958 devstat_end_transaction(&cs->device_stats,
959 bp->b_bcount - bp->b_resid,
960 (bp->b_flags & B_ORDERED) ?
961 DEVSTAT_TAG_ORDERED : DEVSTAT_TAG_SIMPLE,
962 (bp->b_flags & B_READ) ? DEVSTAT_READ :
963 DEVSTAT_WRITE);
964
965 if (bp->b_flags & B_ERROR)
966 bp->b_resid = bp->b_bcount;
957 if (bp->b_flags & B_ERROR)
958 bp->b_resid = bp->b_bcount;
959 devstat_end_transaction_buf(&cs->device_stats, bp);
967 biodone(bp);
968}
969
970/*
971 * Called at interrupt time.
972 * Mark the component as done and if all components are done,
973 * take a ccd interrupt.
974 */

--- 554 unchanged lines hidden ---
960 biodone(bp);
961}
962
963/*
964 * Called at interrupt time.
965 * Mark the component as done and if all components are done,
966 * take a ccd interrupt.
967 */

--- 554 unchanged lines hidden ---