Deleted Added
full compact
ctl_backend.h (275920) ctl_backend.h (287499)
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 275920 2014-12-18 22:32:22Z mav $
31 * $FreeBSD: head/sys/cam/ctl/ctl_backend.h 287499 2015-09-06 09:54:56Z mav $
32 */
33/*
34 * CTL backend driver definitions
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_BACKEND_H_

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

81 CTL_LUN_FLAG_POWERED_OFF = 0x02,
82 CTL_LUN_FLAG_INOPERABLE = 0x04,
83 CTL_LUN_FLAG_PRIMARY = 0x08,
84 CTL_LUN_FLAG_SERIAL_NUM = 0x10,
85 CTL_LUN_FLAG_DEVID = 0x20,
86 CTL_LUN_FLAG_DEV_TYPE = 0x40,
87 CTL_LUN_FLAG_UNMAP = 0x80,
88 CTL_LUN_FLAG_OFFLINE = 0x100,
32 */
33/*
34 * CTL backend driver definitions
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_BACKEND_H_

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

81 CTL_LUN_FLAG_POWERED_OFF = 0x02,
82 CTL_LUN_FLAG_INOPERABLE = 0x04,
83 CTL_LUN_FLAG_PRIMARY = 0x08,
84 CTL_LUN_FLAG_SERIAL_NUM = 0x10,
85 CTL_LUN_FLAG_DEVID = 0x20,
86 CTL_LUN_FLAG_DEV_TYPE = 0x40,
87 CTL_LUN_FLAG_UNMAP = 0x80,
88 CTL_LUN_FLAG_OFFLINE = 0x100,
89 CTL_LUN_FLAG_SERSEQ_READ = 0x200
89 CTL_LUN_FLAG_READONLY = 0x200
90} ctl_backend_lun_flags;
91
90} ctl_backend_lun_flags;
91
92typedef enum {
93 CTL_LUN_SERSEQ_OFF,
94 CTL_LUN_SERSEQ_READ,
95 CTL_LUN_SERSEQ_ON
96} ctl_lun_serseq;
97
92#ifdef _KERNEL
93
94#define CTL_BACKEND_DECLARE(name, driver) \
95 static int name ## _modevent(module_t mod, int type, void *data) \
96 { \
97 switch (type) { \
98 case MOD_LOAD: \
99 ctl_backend_register( \

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

190 * by the backend.
191 *
192 * The links field is for CTL internal use only, and should not be used by
193 * the backend.
194 */
195struct ctl_be_lun {
196 uint8_t lun_type; /* passed to CTL */
197 ctl_backend_lun_flags flags; /* passed to CTL */
98#ifdef _KERNEL
99
100#define CTL_BACKEND_DECLARE(name, driver) \
101 static int name ## _modevent(module_t mod, int type, void *data) \
102 { \
103 switch (type) { \
104 case MOD_LOAD: \
105 ctl_backend_register( \

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

196 * by the backend.
197 *
198 * The links field is for CTL internal use only, and should not be used by
199 * the backend.
200 */
201struct ctl_be_lun {
202 uint8_t lun_type; /* passed to CTL */
203 ctl_backend_lun_flags flags; /* passed to CTL */
204 ctl_lun_serseq serseq; /* passed to CTL */
198 void *be_lun; /* passed to CTL */
199 uint64_t maxlba; /* passed to CTL */
200 uint32_t blocksize; /* passed to CTL */
201 uint16_t pblockexp; /* passed to CTL */
202 uint16_t pblockoff; /* passed to CTL */
203 uint16_t ublockexp; /* passed to CTL */
204 uint16_t ublockoff; /* passed to CTL */
205 uint32_t atomicblock; /* passed to CTL */

--- 108 unchanged lines hidden ---
205 void *be_lun; /* passed to CTL */
206 uint64_t maxlba; /* passed to CTL */
207 uint32_t blocksize; /* passed to CTL */
208 uint16_t pblockexp; /* passed to CTL */
209 uint16_t pblockoff; /* passed to CTL */
210 uint16_t ublockexp; /* passed to CTL */
211 uint16_t ublockoff; /* passed to CTL */
212 uint32_t atomicblock; /* passed to CTL */

--- 108 unchanged lines hidden ---