cam_xpt.c (621a60d46b7d15397933403c138912c7989cb47b) | cam_xpt.c (fce84cb42b3cf9406e449362a7c5dbb88f13d8f4) |
---|---|
1/* 2 * Implementation of the Common Access Method Transport (XPT) layer. 3 * 4 * Copyright (c) 1997, 1998 Justin T. Gibbs. 5 * Copyright (c) 1997, 1998 Kenneth D. Merry. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 * | 1/* 2 * Implementation of the Common Access Method Transport (XPT) layer. 3 * 4 * Copyright (c) 1997, 1998 Justin T. Gibbs. 5 * Copyright (c) 1997, 1998 Kenneth D. Merry. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 12 unchanged lines hidden (view full) --- 21 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 * $Id: cam_xpt.c,v 1.18 1998/10/10 21:10:36 gibbs Exp $ | 29 * $Id: cam_xpt.c,v 1.19 1998/10/12 21:54:13 ken Exp $ |
30 */ 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/types.h> 34#include <sys/malloc.h> 35#include <sys/device.h> 36#include <sys/kernel.h> 37#include <sys/conf.h> --- 4702 unchanged lines hidden (view full) --- 4740 new_path = malloc(sizeof(*new_path), M_TEMP, M_NOWAIT); 4741 if (new_path == NULL) { 4742 xpt_print_path(path); 4743 printf("xpt_scan_lun: can't allocate path, can't " 4744 "continue\n"); 4745 free(request_ccb, M_TEMP); 4746 return; 4747 } | 30 */ 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/types.h> 34#include <sys/malloc.h> 35#include <sys/device.h> 36#include <sys/kernel.h> 37#include <sys/conf.h> --- 4702 unchanged lines hidden (view full) --- 4740 new_path = malloc(sizeof(*new_path), M_TEMP, M_NOWAIT); 4741 if (new_path == NULL) { 4742 xpt_print_path(path); 4743 printf("xpt_scan_lun: can't allocate path, can't " 4744 "continue\n"); 4745 free(request_ccb, M_TEMP); 4746 return; 4747 } |
4748 status = xpt_compile_path(new_path, periph, path->bus->path_id, | 4748 status = xpt_compile_path(new_path, xpt_periph, 4749 path->bus->path_id, |
4749 path->target->target_id, 4750 path->device->lun_id); 4751 4752 if (status != CAM_REQ_CMP) { 4753 xpt_print_path(path); 4754 printf("xpt_scan_lun: can't compile path, can't " 4755 "continue\n"); 4756 free(request_ccb, M_TEMP); --- 1078 unchanged lines hidden --- | 4750 path->target->target_id, 4751 path->device->lun_id); 4752 4753 if (status != CAM_REQ_CMP) { 4754 xpt_print_path(path); 4755 printf("xpt_scan_lun: can't compile path, can't " 4756 "continue\n"); 4757 free(request_ccb, M_TEMP); --- 1078 unchanged lines hidden --- |