Deleted Added
full compact
camcontrol.c (235897) camcontrol.c (236285)
1/*
2 * Copyright (c) 1997-2007 Kenneth D. Merry
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

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1997-2007 Kenneth D. Merry
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

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

22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sbin/camcontrol/camcontrol.c 235897 2012-05-24 11:07:39Z mav $");
30__FBSDID("$FreeBSD: head/sbin/camcontrol/camcontrol.c 236285 2012-05-30 03:54:10Z eadler $");
31
32#include <sys/ioctl.h>
33#include <sys/stdint.h>
34#include <sys/types.h>
35#include <sys/endian.h>
36#include <sys/sbuf.h>
37
38#include <stdio.h>

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

3399 ccb->cts.xport_specific.valid = 0;
3400 ccb->cts.proto_specific.valid = 0;
3401 if (spi && disc_enable != -1) {
3402 spi->valid |= CTS_SPI_VALID_DISC;
3403 if (disc_enable == 0)
3404 spi->flags &= ~CTS_SPI_FLAGS_DISC_ENB;
3405 else
3406 spi->flags |= CTS_SPI_FLAGS_DISC_ENB;
31
32#include <sys/ioctl.h>
33#include <sys/stdint.h>
34#include <sys/types.h>
35#include <sys/endian.h>
36#include <sys/sbuf.h>
37
38#include <stdio.h>

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

3399 ccb->cts.xport_specific.valid = 0;
3400 ccb->cts.proto_specific.valid = 0;
3401 if (spi && disc_enable != -1) {
3402 spi->valid |= CTS_SPI_VALID_DISC;
3403 if (disc_enable == 0)
3404 spi->flags &= ~CTS_SPI_FLAGS_DISC_ENB;
3405 else
3406 spi->flags |= CTS_SPI_FLAGS_DISC_ENB;
3407 didsettings++;
3407 }
3408 if (scsi && tag_enable != -1) {
3409 if ((cpi.hba_inquiry & PI_TAG_ABLE) == 0) {
3410 warnx("HBA does not support tagged queueing, "
3411 "so you cannot modify tag settings");
3412 retval = 1;
3413 goto ratecontrol_bailout;
3414 }

--- 2746 unchanged lines hidden ---
3408 }
3409 if (scsi && tag_enable != -1) {
3410 if ((cpi.hba_inquiry & PI_TAG_ABLE) == 0) {
3411 warnx("HBA does not support tagged queueing, "
3412 "so you cannot modify tag settings");
3413 retval = 1;
3414 goto ratecontrol_bailout;
3415 }

--- 2746 unchanged lines hidden ---