Deleted Added
full compact
ida_disk.c (74841) ida_disk.c (74890)
1/*-
2 * Copyright (c) 1999,2000 Jonathan Lemon
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

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

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

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

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

227 va = pmap_kenter_temporary(trunc_page(0), i);
228 }
229
230 error = ida_command(drv->controller, CMD_WRITE, va,
231 PAGE_SIZE * dumppages, drv->drive, blkno, DMA_DATA_OUT);
232 if (error)
233 return (error);
234
27 */
28
29/*
30 * Disk driver for Compaq SMART RAID adapters.
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>

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

227 va = pmap_kenter_temporary(trunc_page(0), i);
228 }
229
230 error = ida_command(drv->controller, CMD_WRITE, va,
231 PAGE_SIZE * dumppages, drv->drive, blkno, DMA_DATA_OUT);
232 if (error)
233 return (error);
234
235 if (addr % (1024 * 1024) == 0) {
236#ifdef HW_WDOG
237 if (wdog_tickler)
238 (*wdog_tickler)();
239#endif
240 printf("%ld ", (long)(count * DEV_BSIZE)/(1024 * 1024));
241 }
235 if (dumpstatus(addr, (long)(count * DEV_BSIZE)) < 0)
236 return (EINTR);
242
243 blkno += blkcnt * dumppages;
244 count -= blkcnt * dumppages;
245 addr += PAGE_SIZE * dumppages;
237
238 blkno += blkcnt * dumppages;
239 count -= blkcnt * dumppages;
240 addr += PAGE_SIZE * dumppages;
246
247 if (cncheckc() == 0x03)
248 return (EINTR);
249 else
250 printf("[CTRL-C to abort] ");
251 }
252 return (0);
253}
254
255void
256idad_intr(struct bio *bp)
257{
258 struct idad_softc *drv = (struct idad_softc *)bp->bio_driver1;

--- 81 unchanged lines hidden ---
241 }
242 return (0);
243}
244
245void
246idad_intr(struct bio *bp)
247{
248 struct idad_softc *drv = (struct idad_softc *)bp->bio_driver1;

--- 81 unchanged lines hidden ---