Deleted Added
full compact
twe_freebsd.c (74841) twe_freebsd.c (74890)
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2000 BSDi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2000 Michael Smith
3 * Copyright (c) 2000 BSDi
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/dev/twe/twe_freebsd.c 74841 2001-03-27 06:24:08Z ps $
27 * $FreeBSD: head/sys/dev/twe/twe_freebsd.c 74890 2001-03-28 01:37:29Z ps $
28 */
29
30/*
31 * FreeBSD-specific code.
32 */
33
34#include <sys/param.h>
35#include <sys/cons.h>

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

724 va = pmap_kenter_temporary(trunc_page(0), i);
725 }
726
727 if ((error = twe_dump_blocks(twe_sc, twed_sc->twed_drive->td_unit, blkno, va,
728 (PAGE_SIZE * dumppages) / TWE_BLOCK_SIZE)) != 0)
729 return(error);
730
731
28 */
29
30/*
31 * FreeBSD-specific code.
32 */
33
34#include <sys/param.h>
35#include <sys/cons.h>

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

724 va = pmap_kenter_temporary(trunc_page(0), i);
725 }
726
727 if ((error = twe_dump_blocks(twe_sc, twed_sc->twed_drive->td_unit, blkno, va,
728 (PAGE_SIZE * dumppages) / TWE_BLOCK_SIZE)) != 0)
729 return(error);
730
731
732 if (addr % (1024 * 1024) == 0) {
733#ifdef HW_WDOG
734 if (wdog_tickler)
735 (*wdog_tickler)();
736#endif
737 printf("%ld ", (long)(count * DEV_BSIZE) / (1024 * 1024));
738 }
732 if (dumpstatus(addr, (long)(count * DEV_BSIZE)) < 0)
733 return(EINTR);
739
740 blkno += blkcnt * dumppages;
741 count -= blkcnt * dumppages;
742 addr += PAGE_SIZE * dumppages;
734
735 blkno += blkcnt * dumppages;
736 count -= blkcnt * dumppages;
737 addr += PAGE_SIZE * dumppages;
743
744 if (cncheckc() == 0x03)
745 return(EINTR);
746 else
747 printf("[CTRL-C to abort] ");
748 }
749 return(0);
750}
751
752/********************************************************************************
753 * Handle completion of an I/O request.
754 */
755void

--- 308 unchanged lines hidden ---
738 }
739 return(0);
740}
741
742/********************************************************************************
743 * Handle completion of an I/O request.
744 */
745void

--- 308 unchanged lines hidden ---