1/* |
2 * Copyright (c) 2000-03 ICP vortex GmbH 3 * Copyright (c) 2002-03 Intel Corporation 4 * Copyright (c) 2003 Adaptec Inc. |
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 * |
35 * Written by: Achim Leubner <achim_leubner@adaptec.com> |
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 * |
42 * $Id: iir.c 1.4 2003/08/26 12:29:44 achim Exp $" |
43 */ 44 |
45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/dev/iir/iir.c 120477 2003-09-26 15:36:47Z scottl $"); |
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); |
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); |
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 --- |