Deleted Added
full compact
twe_freebsd.c (91790) twe_freebsd.c (93496)
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 91790 2002-03-07 09:55:41Z msmith $
27 * $FreeBSD: head/sys/dev/twe/twe_freebsd.c 93496 2002-03-31 22:37:00Z phk $
28 */
29
30/*
31 * FreeBSD-specific code.
32 */
33
34#include <sys/param.h>
35#include <sys/cons.h>

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

696 twe_startio(sc->twed_controller);
697 return;
698}
699
700/********************************************************************************
701 * System crashdump support
702 */
703int
28 */
29
30/*
31 * FreeBSD-specific code.
32 */
33
34#include <sys/param.h>
35#include <sys/cons.h>

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

696 twe_startio(sc->twed_controller);
697 return;
698}
699
700/********************************************************************************
701 * System crashdump support
702 */
703int
704twed_dump(dev_t dev)
704twed_dump(dev_t dev, void *virtual, vm_offset_t physical, off_t offset, size_t length)
705{
705{
706
707 /* XXX: this needs modified to the new dump API */
708 return (ENXIO);
709#if 0
706 struct twed_softc *twed_sc = (struct twed_softc *)dev->si_drv1;
707 struct twe_softc *twe_sc = (struct twe_softc *)twed_sc->twed_controller;
708 u_int count, blkno, secsize;
709 vm_offset_t addr = 0;
710 long blkcnt;
711 int dumppages = MAXDUMPPGS;
712 int error;
713 int i;

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

742 if (dumpstatus(addr, (off_t)count * DEV_BSIZE) < 0)
743 return(EINTR);
744
745 blkno += blkcnt * dumppages;
746 count -= blkcnt * dumppages;
747 addr += PAGE_SIZE * dumppages;
748 }
749 return(0);
710 struct twed_softc *twed_sc = (struct twed_softc *)dev->si_drv1;
711 struct twe_softc *twe_sc = (struct twe_softc *)twed_sc->twed_controller;
712 u_int count, blkno, secsize;
713 vm_offset_t addr = 0;
714 long blkcnt;
715 int dumppages = MAXDUMPPGS;
716 int error;
717 int i;

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

746 if (dumpstatus(addr, (off_t)count * DEV_BSIZE) < 0)
747 return(EINTR);
748
749 blkno += blkcnt * dumppages;
750 count -= blkcnt * dumppages;
751 addr += PAGE_SIZE * dumppages;
752 }
753 return(0);
754#endif
750}
751
752/********************************************************************************
753 * Handle completion of an I/O request.
754 */
755void
756twed_intr(twe_bio *bp)
757{

--- 306 unchanged lines hidden ---
755}
756
757/********************************************************************************
758 * Handle completion of an I/O request.
759 */
760void
761twed_intr(twe_bio *bp)
762{

--- 306 unchanged lines hidden ---