Deleted Added
full compact
ida_disk.c (83366) ida_disk.c (86313)
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 83366 2001-09-12 08:38:13Z julian $
26 * $FreeBSD: head/sys/dev/ida/ida_disk.c 86313 2001-11-13 01:08:54Z ps $
27 */
28
29/*
30 * Disk driver for Compaq SMART RAID adapters.
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>

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

220 va = pmap_kenter_temporary(trunc_page(0), i);
221 }
222
223 error = ida_command(drv->controller, CMD_WRITE, va,
224 PAGE_SIZE * dumppages, drv->drive, blkno, DMA_DATA_OUT);
225 if (error)
226 return (error);
227
27 */
28
29/*
30 * Disk driver for Compaq SMART RAID adapters.
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>

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

220 va = pmap_kenter_temporary(trunc_page(0), i);
221 }
222
223 error = ida_command(drv->controller, CMD_WRITE, va,
224 PAGE_SIZE * dumppages, drv->drive, blkno, DMA_DATA_OUT);
225 if (error)
226 return (error);
227
228 if (dumpstatus(addr, (long)(count * DEV_BSIZE)) < 0)
228 if (dumpstatus(addr, (off_t)count * DEV_BSIZE) < 0)
229 return (EINTR);
230
231 blkno += blkcnt * dumppages;
232 count -= blkcnt * dumppages;
233 addr += PAGE_SIZE * dumppages;
234 }
235 return (0);
236}

--- 85 unchanged lines hidden ---
229 return (EINTR);
230
231 blkno += blkcnt * dumppages;
232 count -= blkcnt * dumppages;
233 addr += PAGE_SIZE * dumppages;
234 }
235 return (0);
236}

--- 85 unchanged lines hidden ---