Deleted Added
full compact
scsi_ctl.c (274389) scsi_ctl.c (275493)
1/*-
2 * Copyright (c) 2008, 2009 Silicon Graphics International Corp.
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

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

31 */
32/*
33 * Peripheral driver interface between CAM and CTL (CAM Target Layer).
34 *
35 * Author: Ken Merry <ken@FreeBSD.org>
36 */
37
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008, 2009 Silicon Graphics International Corp.
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

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

31 */
32/*
33 * Peripheral driver interface between CAM and CTL (CAM Target Layer).
34 *
35 * Author: Ken Merry <ken@FreeBSD.org>
36 */
37
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/scsi_ctl.c 274389 2014-11-11 17:18:51Z mav $");
39__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/scsi_ctl.c 275493 2014-12-05 07:23:25Z mav $");
40
41#include <sys/param.h>
42#include <sys/queue.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/lock.h>
46#include <sys/mutex.h>
47#include <sys/condvar.h>

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

420 /*
421 * XXX KDM need to figure out whether we're the master or
422 * slave.
423 */
424#ifdef CTLFEDEBUG
425 printf("%s: calling ctl_port_register() for %s%d\n",
426 __func__, cpi->dev_name, cpi->unit_number);
427#endif
40
41#include <sys/param.h>
42#include <sys/queue.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>
45#include <sys/lock.h>
46#include <sys/mutex.h>
47#include <sys/condvar.h>

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

420 /*
421 * XXX KDM need to figure out whether we're the master or
422 * slave.
423 */
424#ifdef CTLFEDEBUG
425 printf("%s: calling ctl_port_register() for %s%d\n",
426 __func__, cpi->dev_name, cpi->unit_number);
427#endif
428 retval = ctl_port_register(port, /*master_SC*/ 1);
428 retval = ctl_port_register(port);
429 if (retval != 0) {
430 printf("%s: ctl_port_register() failed with "
431 "error %d!\n", __func__, retval);
432 mtx_destroy(&softc->lun_softc_mtx);
433 free(softc, M_CTLFE);
434 break;
435 } else {
436 mtx_lock(&ctlfe_list_mtx);

--- 1775 unchanged lines hidden ---
429 if (retval != 0) {
430 printf("%s: ctl_port_register() failed with "
431 "error %d!\n", __func__, retval);
432 mtx_destroy(&softc->lun_softc_mtx);
433 free(softc, M_CTLFE);
434 break;
435 } else {
436 mtx_lock(&ctlfe_list_mtx);

--- 1775 unchanged lines hidden ---