Deleted Added
full compact
ctl_backend.h (264191) ctl_backend.h (264274)
1/*-
2 * Copyright (c) 2003 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

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

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGES.
29 *
30 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend.h#2 $
1/*-
2 * Copyright (c) 2003 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

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

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGES.
29 *
30 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_backend.h#2 $
31 * $FreeBSD: head/sys/cam/ctl/ctl_backend.h 264191 2014-04-06 10:13:14Z mav $
31 * $FreeBSD: head/sys/cam/ctl/ctl_backend.h 264274 2014-04-08 20:50:48Z mav $
32 */
33/*
34 * CTL backend driver definitions
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_BACKEND_H_

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

66 *
67 * The SERIAL_NUM flag tells us that the serial_num field is filled in and
68 * valid for use in SCSI INQUIRY VPD page 0x80.
69 *
70 * The DEVID flag tells us that the device_id field is filled in and
71 * valid for use in SCSI INQUIRY VPD page 0x83.
72 *
73 * The DEV_TYPE flag tells us that the device_type field is filled in.
32 */
33/*
34 * CTL backend driver definitions
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_BACKEND_H_

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

66 *
67 * The SERIAL_NUM flag tells us that the serial_num field is filled in and
68 * valid for use in SCSI INQUIRY VPD page 0x80.
69 *
70 * The DEVID flag tells us that the device_id field is filled in and
71 * valid for use in SCSI INQUIRY VPD page 0x83.
72 *
73 * The DEV_TYPE flag tells us that the device_type field is filled in.
74 *
75 * The UNMAP flag tells us that this LUN supports UNMAP.
74 */
75typedef enum {
76 CTL_LUN_FLAG_ID_REQ = 0x01,
77 CTL_LUN_FLAG_POWERED_OFF = 0x02,
78 CTL_LUN_FLAG_INOPERABLE = 0x04,
79 CTL_LUN_FLAG_PRIMARY = 0x08,
80 CTL_LUN_FLAG_SERIAL_NUM = 0x10,
81 CTL_LUN_FLAG_DEVID = 0x20,
76 */
77typedef enum {
78 CTL_LUN_FLAG_ID_REQ = 0x01,
79 CTL_LUN_FLAG_POWERED_OFF = 0x02,
80 CTL_LUN_FLAG_INOPERABLE = 0x04,
81 CTL_LUN_FLAG_PRIMARY = 0x08,
82 CTL_LUN_FLAG_SERIAL_NUM = 0x10,
83 CTL_LUN_FLAG_DEVID = 0x20,
82 CTL_LUN_FLAG_DEV_TYPE = 0x40
84 CTL_LUN_FLAG_DEV_TYPE = 0x40,
85 CTL_LUN_FLAG_UNMAP = 0x80
83} ctl_backend_lun_flags;
84
85#ifdef _KERNEL
86
87#define CTL_BACKEND_DECLARE(name, driver) \
88 static int name ## _modevent(module_t mod, int type, void *data) \
89 { \
90 switch (type) { \

--- 216 unchanged lines hidden ---
86} ctl_backend_lun_flags;
87
88#ifdef _KERNEL
89
90#define CTL_BACKEND_DECLARE(name, driver) \
91 static int name ## _modevent(module_t mod, int type, void *data) \
92 { \
93 switch (type) { \

--- 216 unchanged lines hidden ---