iir.c (246713) | iir.c (254379) |
---|---|
1/*- 2 * Copyright (c) 2000-04 ICP vortex GmbH 3 * Copyright (c) 2002-04 Intel Corporation 4 * Copyright (c) 2003-04 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 --- 29 unchanged lines hidden (view full) --- 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.5 2004/03/30 10:17:53 achim Exp $" 43 */ 44 45#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000-04 ICP vortex GmbH 3 * Copyright (c) 2002-04 Intel Corporation 4 * Copyright (c) 2003-04 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 --- 29 unchanged lines hidden (view full) --- 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.5 2004/03/30 10:17:53 achim Exp $" 43 */ 44 45#include <sys/cdefs.h> |
46__FBSDID("$FreeBSD: head/sys/dev/iir/iir.c 246713 2013-02-12 16:57:20Z kib $"); | 46__FBSDID("$FreeBSD: head/sys/dev/iir/iir.c 254379 2013-08-15 20:03:22Z jkim $"); |
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> --- 339 unchanged lines hidden (view full) --- 394 if (gdt_internal_cmd(gdt, gccb, GDT_CACHESERVICE, GDT_IOCTL, 395 GDT_OEM_STR_RECORD, GDT_INVALID_CHANNEL, 396 sizeof(gdt_oem_str_record_t))) { 397 strncpy(gdt->oem_name, ((gdt_oem_str_record_t *) 398 gccb->gc_scratch)->text.scsi_host_drive_inquiry_vendor_id, 7); 399 gdt->oem_name[7]='\0'; 400 } else { 401 /* Old method, based on PCI ID */ | 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> --- 339 unchanged lines hidden (view full) --- 394 if (gdt_internal_cmd(gdt, gccb, GDT_CACHESERVICE, GDT_IOCTL, 395 GDT_OEM_STR_RECORD, GDT_INVALID_CHANNEL, 396 sizeof(gdt_oem_str_record_t))) { 397 strncpy(gdt->oem_name, ((gdt_oem_str_record_t *) 398 gccb->gc_scratch)->text.scsi_host_drive_inquiry_vendor_id, 7); 399 gdt->oem_name[7]='\0'; 400 } else { 401 /* Old method, based on PCI ID */ |
402 if (gdt->sc_vendor == INTEL_VENDOR_ID) | 402 if (gdt->sc_vendor == INTEL_VENDOR_ID_IIR) |
403 strcpy(gdt->oem_name,"Intel "); 404 else 405 strcpy(gdt->oem_name,"ICP "); 406 } 407 408 /* Scan for cache devices */ 409 for (i = 0; i < cdev_cnt && i < GDT_MAX_HDRIVES; i++) { 410 if (gdt_internal_cmd(gdt, gccb, GDT_CACHESERVICE, GDT_INFO, --- 958 unchanged lines hidden (view full) --- 1369 cpi->max_target = GDT_MAXID - 1; 1370 cpi->max_lun = 7; 1371 cpi->unit_number = cam_sim_unit(sim); 1372 cpi->bus_id = bus; 1373 cpi->initiator_id = 1374 (bus == gdt->sc_virt_bus ? 127 : gdt->sc_bus_id[bus]); 1375 cpi->base_transfer_speed = 3300; 1376 strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); | 403 strcpy(gdt->oem_name,"Intel "); 404 else 405 strcpy(gdt->oem_name,"ICP "); 406 } 407 408 /* Scan for cache devices */ 409 for (i = 0; i < cdev_cnt && i < GDT_MAX_HDRIVES; i++) { 410 if (gdt_internal_cmd(gdt, gccb, GDT_CACHESERVICE, GDT_INFO, --- 958 unchanged lines hidden (view full) --- 1369 cpi->max_target = GDT_MAXID - 1; 1370 cpi->max_lun = 7; 1371 cpi->unit_number = cam_sim_unit(sim); 1372 cpi->bus_id = bus; 1373 cpi->initiator_id = 1374 (bus == gdt->sc_virt_bus ? 127 : gdt->sc_bus_id[bus]); 1375 cpi->base_transfer_speed = 3300; 1376 strncpy(cpi->sim_vid, "FreeBSD", SIM_IDLEN); |
1377 if (gdt->sc_vendor == INTEL_VENDOR_ID) | 1377 if (gdt->sc_vendor == INTEL_VENDOR_ID_IIR) |
1378 strncpy(cpi->hba_vid, "Intel Corp.", HBA_IDLEN); 1379 else 1380 strncpy(cpi->hba_vid, "ICP vortex ", HBA_IDLEN); 1381 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); 1382 cpi->transport = XPORT_SPI; 1383 cpi->transport_version = 2; 1384 cpi->protocol = PROTO_SCSI; 1385 cpi->protocol_version = SCSI_REV_2; --- 545 unchanged lines hidden --- | 1378 strncpy(cpi->hba_vid, "Intel Corp.", HBA_IDLEN); 1379 else 1380 strncpy(cpi->hba_vid, "ICP vortex ", HBA_IDLEN); 1381 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); 1382 cpi->transport = XPORT_SPI; 1383 cpi->transport_version = 2; 1384 cpi->protocol = PROTO_SCSI; 1385 cpi->protocol_version = SCSI_REV_2; --- 545 unchanged lines hidden --- |