Deleted Added
full compact
iir.c (119418) iir.c (120477)
1/*
1/*
2 * Copyright (c) 2000-03 Intel Corporation
2 * Copyright (c) 2000-03 ICP vortex GmbH
3 * Copyright (c) 2002-03 Intel Corporation
4 * Copyright (c) 2003 Adaptec Inc.
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 * notice, this list of conditions, and the following disclaimer,
10 * without modification, immediately at the beginning of the file.

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

25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30/*
31 * iir.c: SCSI dependant code for the Intel Integrated RAID Controller driver
32 *
5 * All Rights Reserved
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions, and the following disclaimer,
12 * without modification, immediately at the beginning of the file.

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

27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32/*
33 * iir.c: SCSI dependant code for the Intel Integrated RAID Controller driver
34 *
33 * Written by: Achim Leubner <achim.leubner@intel.com>
35 * Written by: Achim Leubner <achim_leubner@adaptec.com>
34 * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com>
35 *
36 * credits: Niklas Hallqvist; OpenBSD driver for the ICP Controllers.
37 * Mike Smith; Some driver source code.
38 * FreeBSD.ORG; Great O/S to work on and for.
39 *
36 * Fixes/Additions: Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com>
37 *
38 * credits: Niklas Hallqvist; OpenBSD driver for the ICP Controllers.
39 * Mike Smith; Some driver source code.
40 * FreeBSD.ORG; Great O/S to work on and for.
41 *
40 * TODO:
42 * $Id: iir.c 1.4 2003/08/26 12:29:44 achim Exp $"
41 */
42
43 */
44
43#ident "$Id: iir.c 1.3 2003/03/21 16:28:32 achim Exp $"
44#include <sys/cdefs.h>
45#include <sys/cdefs.h>
45__FBSDID("$FreeBSD: head/sys/dev/iir/iir.c 119418 2003-08-24 17:55:58Z obrien $");
46__FBSDID("$FreeBSD: head/sys/dev/iir/iir.c 120477 2003-09-26 15:36:47Z scottl $");
46
47#define _IIR_C_
48
49/* #include "opt_iir.h" */
50#include <sys/param.h>
51#include <sys/systm.h>
52#include <sys/endian.h>
53#include <sys/eventhandler.h>

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

1453 cpi->max_target = GDT_MAXID - 1;
1454 cpi->max_lun = 7;
1455 cpi->unit_number = cam_sim_unit(sim);
1456 cpi->bus_id = bus;
1457 cpi->initiator_id =
1458 (bus == gdt->sc_virt_bus ? 127 : gdt->sc_bus_id[bus]);
1459 cpi->base_transfer_speed = 3300;
1460 strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
47
48#define _IIR_C_
49
50/* #include "opt_iir.h" */
51#include <sys/param.h>
52#include <sys/systm.h>
53#include <sys/endian.h>
54#include <sys/eventhandler.h>

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

1454 cpi->max_target = GDT_MAXID - 1;
1455 cpi->max_lun = 7;
1456 cpi->unit_number = cam_sim_unit(sim);
1457 cpi->bus_id = bus;
1458 cpi->initiator_id =
1459 (bus == gdt->sc_virt_bus ? 127 : gdt->sc_bus_id[bus]);
1460 cpi->base_transfer_speed = 3300;
1461 strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN);
1461 strncpy(cpi->hba_vid, "Intel Corp.", HBA_IDLEN);
1462 if (gdt->sc_vendor == INTEL_VENDOR_ID)
1463 strncpy(cpi->hba_vid, "Intel Corp.", HBA_IDLEN);
1464 else
1465 strncpy(cpi->hba_vid, "ICP vortex ", HBA_IDLEN);
1462 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
1463 cpi->ccb_h.status = CAM_REQ_CMP;
1464 --gdt_stat.io_count_act;
1465 xpt_done(ccb);
1466 break;
1467 }
1468 default:
1469 GDT_DPRINTF(GDT_D_INVALID, ("gdt_next(%p) cmd 0x%x invalid\n",

--- 564 unchanged lines hidden ---
1466 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
1467 cpi->ccb_h.status = CAM_REQ_CMP;
1468 --gdt_stat.io_count_act;
1469 xpt_done(ccb);
1470 break;
1471 }
1472 default:
1473 GDT_DPRINTF(GDT_D_INVALID, ("gdt_next(%p) cmd 0x%x invalid\n",

--- 564 unchanged lines hidden ---