arcmsr.c (247443) | arcmsr.c (249468) |
---|---|
1/* 2******************************************************************************** 3** OS : FreeBSD 4** FILE NAME : arcmsr.c 5** BY : Erich Chen, Ching Huang 6** Description: SCSI RAID Device Driver for 7** ARECA (ARC11XX/ARC12XX/ARC13XX/ARC16XX/ARC188x) 8** SATA/SAS RAID HOST Adapter --- 63 unchanged lines hidden (view full) --- 72** 1.20.00.23 01/30/2012 Ching Huang Fixed Request requeued and Retrying command 73** 1.20.00.24 06/11/2012 Ching Huang Fixed return sense data condition 74** 1.20.00.25 08/17/2012 Ching Huang Fixed hotplug device no function on type A adapter 75** 1.20.00.26 12/14/2012 Ching Huang Added support ARC1214,1224 76****************************************************************************************** 77*/ 78 79#include <sys/cdefs.h> | 1/* 2******************************************************************************** 3** OS : FreeBSD 4** FILE NAME : arcmsr.c 5** BY : Erich Chen, Ching Huang 6** Description: SCSI RAID Device Driver for 7** ARECA (ARC11XX/ARC12XX/ARC13XX/ARC16XX/ARC188x) 8** SATA/SAS RAID HOST Adapter --- 63 unchanged lines hidden (view full) --- 72** 1.20.00.23 01/30/2012 Ching Huang Fixed Request requeued and Retrying command 73** 1.20.00.24 06/11/2012 Ching Huang Fixed return sense data condition 74** 1.20.00.25 08/17/2012 Ching Huang Fixed hotplug device no function on type A adapter 75** 1.20.00.26 12/14/2012 Ching Huang Added support ARC1214,1224 76****************************************************************************************** 77*/ 78 79#include <sys/cdefs.h> |
80__FBSDID("$FreeBSD: head/sys/dev/arcmsr/arcmsr.c 247443 2013-02-28 04:16:47Z delphij $"); | 80__FBSDID("$FreeBSD: head/sys/dev/arcmsr/arcmsr.c 249468 2013-04-14 09:55:48Z mav $"); |
81 82#if 0 83#define ARCMSR_DEBUG1 1 84#endif 85#include <sys/param.h> 86#include <sys/systm.h> 87#include <sys/malloc.h> 88#include <sys/kernel.h> --- 1505 unchanged lines hidden (view full) --- 1594 1595static void arcmsr_rescan_lun(struct AdapterControlBlock *acb, int target, int lun) 1596{ 1597 struct cam_path *path; 1598 union ccb *ccb; 1599 1600 if ((ccb = (union ccb *)xpt_alloc_ccb_nowait()) == NULL) 1601 return; | 81 82#if 0 83#define ARCMSR_DEBUG1 1 84#endif 85#include <sys/param.h> 86#include <sys/systm.h> 87#include <sys/malloc.h> 88#include <sys/kernel.h> --- 1505 unchanged lines hidden (view full) --- 1594 1595static void arcmsr_rescan_lun(struct AdapterControlBlock *acb, int target, int lun) 1596{ 1597 struct cam_path *path; 1598 union ccb *ccb; 1599 1600 if ((ccb = (union ccb *)xpt_alloc_ccb_nowait()) == NULL) 1601 return; |
1602 if (xpt_create_path(&path, xpt_periph, cam_sim_path(acb->psim), target, lun) != CAM_REQ_CMP) | 1602 if (xpt_create_path(&path, NULL, cam_sim_path(acb->psim), target, lun) 1603 != CAM_REQ_CMP) |
1603 { 1604 xpt_free_ccb(ccb); 1605 return; 1606 } 1607/* printf("arcmsr_rescan_lun: Rescan Target=%x, Lun=%x\n", target, lun); */ 1608 bzero(ccb, sizeof(union ccb)); 1609 xpt_setup_ccb(&ccb->ccb_h, path, 5); 1610 ccb->ccb_h.func_code = XPT_SCAN_LUN; --- 2877 unchanged lines hidden --- | 1604 { 1605 xpt_free_ccb(ccb); 1606 return; 1607 } 1608/* printf("arcmsr_rescan_lun: Rescan Target=%x, Lun=%x\n", target, lun); */ 1609 bzero(ccb, sizeof(union ccb)); 1610 xpt_setup_ccb(&ccb->ccb_h, path, 5); 1611 ccb->ccb_h.func_code = XPT_SCAN_LUN; --- 2877 unchanged lines hidden --- |