Deleted Added
full compact
ctl_io.h (312584) ctl_io.h (312834)
1/*-
2 * Copyright (c) 2003 Silicon Graphics International Corp.
3 * Copyright (c) 2014-2015 Alexander Motin <mav@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGES.
30 *
31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_io.h#5 $
1/*-
2 * Copyright (c) 2003 Silicon Graphics International Corp.
3 * Copyright (c) 2014-2015 Alexander Motin <mav@FreeBSD.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
28 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGES.
30 *
31 * $Id: //depot/users/kenm/FreeBSD-test2/sys/cam/ctl/ctl_io.h#5 $
32 * $FreeBSD: stable/11/sys/cam/ctl/ctl_io.h 312584 2017-01-21 08:40:30Z mav $
32 * $FreeBSD: stable/11/sys/cam/ctl/ctl_io.h 312834 2017-01-26 20:49:19Z mav $
33 */
34/*
35 * CAM Target Layer data movement structures/interface.
36 *
37 * Author: Ken Merry <ken@FreeBSD.org>
38 */
39
40#ifndef _CTL_IO_H_

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

161#define CTL_PRIV_LUN 0 /* CTL LUN pointer goes here */
162#define CTL_PRIV_LBA_LEN 1 /* Decoded LBA/len for read/write*/
163#define CTL_PRIV_MODEPAGE 1 /* Modepage info for config write */
164#define CTL_PRIV_BACKEND 2 /* Reserved for block, RAIDCore */
165#define CTL_PRIV_BACKEND_LUN 3 /* Backend LUN pointer */
166#define CTL_PRIV_FRONTEND 4 /* Frontend storage */
167#define CTL_PRIV_FRONTEND2 5 /* Another frontend storage */
168
33 */
34/*
35 * CAM Target Layer data movement structures/interface.
36 *
37 * Author: Ken Merry <ken@FreeBSD.org>
38 */
39
40#ifndef _CTL_IO_H_

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

161#define CTL_PRIV_LUN 0 /* CTL LUN pointer goes here */
162#define CTL_PRIV_LBA_LEN 1 /* Decoded LBA/len for read/write*/
163#define CTL_PRIV_MODEPAGE 1 /* Modepage info for config write */
164#define CTL_PRIV_BACKEND 2 /* Reserved for block, RAIDCore */
165#define CTL_PRIV_BACKEND_LUN 3 /* Backend LUN pointer */
166#define CTL_PRIV_FRONTEND 4 /* Frontend storage */
167#define CTL_PRIV_FRONTEND2 5 /* Another frontend storage */
168
169#define CTL_LUN(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LUN].ptrs[0])
170#define CTL_SOFTC(io) ((io)->io_hdr.ctl_private[CTL_PRIV_LUN].ptrs[1])
171#define CTL_BACKEND_LUN(io) ((io)->io_hdr.ctl_private[CTL_PRIV_BACKEND_LUN].ptrs[0])
172#define CTL_PORT(io) (((struct ctl_softc *)CTL_SOFTC(io))-> \
173 ctl_ports[(io)->io_hdr.nexus.targ_port])
174
169#define CTL_INVALID_PORTNAME 0xFF
170#define CTL_UNMAPPED_IID 0xFF
171
172struct ctl_sg_entry {
173 void *addr;
174 size_t len;
175};
176

--- 414 unchanged lines hidden ---
175#define CTL_INVALID_PORTNAME 0xFF
176#define CTL_UNMAPPED_IID 0xFF
177
178struct ctl_sg_entry {
179 void *addr;
180 size_t len;
181};
182

--- 414 unchanged lines hidden ---