Deleted Added
full compact
ctl_frontend.h (229997) ctl_frontend.h (254759)
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_frontend.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_frontend.h#2 $
31 * $FreeBSD: head/sys/cam/ctl/ctl_frontend.h 229997 2012-01-12 00:34:33Z ken $
31 * $FreeBSD: head/sys/cam/ctl/ctl_frontend.h 254759 2013-08-24 01:50:31Z trasz $
32 */
33/*
34 * CAM Target Layer front end registration hooks
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_FRONTEND_H_

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

44 CTL_PORT_STATUS_ONLINE = 0x01,
45 CTL_PORT_STATUS_TARG_ONLINE = 0x02,
46 CTL_PORT_STATUS_LUN_ONLINE = 0x04
47} ctl_port_status;
48
49typedef void (*port_func_t)(void *onoff_arg);
50typedef int (*targ_func_t)(void *arg, struct ctl_id targ_id);
51typedef int (*lun_func_t)(void *arg, struct ctl_id targ_id, int lun_id);
32 */
33/*
34 * CAM Target Layer front end registration hooks
35 *
36 * Author: Ken Merry <ken@FreeBSD.org>
37 */
38
39#ifndef _CTL_FRONTEND_H_

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

44 CTL_PORT_STATUS_ONLINE = 0x01,
45 CTL_PORT_STATUS_TARG_ONLINE = 0x02,
46 CTL_PORT_STATUS_LUN_ONLINE = 0x04
47} ctl_port_status;
48
49typedef void (*port_func_t)(void *onoff_arg);
50typedef int (*targ_func_t)(void *arg, struct ctl_id targ_id);
51typedef int (*lun_func_t)(void *arg, struct ctl_id targ_id, int lun_id);
52typedef int (*fe_ioctl_t)(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
53 struct thread *td);
54typedef int (*fe_devid_t)(struct ctl_scsiio *ctsio, int alloc_len);
52
53/*
54 * The ctl_frontend structure is the registration mechanism between a FETD
55 * (Front End Target Driver) and the CTL layer. Here is a description of
56 * the fields:
57 *
58 * port_type: This field tells CTL what kind of front end it is
59 * dealing with. This field serves two purposes.

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

208 int virtual_port; /* passed to CTL */
209 port_func_t port_online; /* passed to CTL */
210 port_func_t port_offline; /* passed to CTL */
211 void *onoff_arg; /* passed to CTL */
212 targ_func_t targ_enable; /* passed to CTL */
213 targ_func_t targ_disable; /* passed to CTL */
214 lun_func_t lun_enable; /* passed to CTL */
215 lun_func_t lun_disable; /* passed to CTL */
55
56/*
57 * The ctl_frontend structure is the registration mechanism between a FETD
58 * (Front End Target Driver) and the CTL layer. Here is a description of
59 * the fields:
60 *
61 * port_type: This field tells CTL what kind of front end it is
62 * dealing with. This field serves two purposes.

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

211 int virtual_port; /* passed to CTL */
212 port_func_t port_online; /* passed to CTL */
213 port_func_t port_offline; /* passed to CTL */
214 void *onoff_arg; /* passed to CTL */
215 targ_func_t targ_enable; /* passed to CTL */
216 targ_func_t targ_disable; /* passed to CTL */
217 lun_func_t lun_enable; /* passed to CTL */
218 lun_func_t lun_disable; /* passed to CTL */
219 fe_ioctl_t ioctl; /* passed to CTL */
220 fe_devid_t devid; /* passed to CTL */
216 void *targ_lun_arg; /* passed to CTL */
217 void (*fe_datamove)(union ctl_io *io); /* passed to CTL */
218 void (*fe_done)(union ctl_io *io); /* passed to CTL */
219 void (*fe_dump)(void); /* passed to CTL */
220 int max_targets; /* passed to CTL */
221 int max_target_id; /* passed to CTL */
222 int32_t targ_port; /* passed back to FETD */
223 void *ctl_pool_ref; /* passed back to FETD */

--- 72 unchanged lines hidden ---
221 void *targ_lun_arg; /* passed to CTL */
222 void (*fe_datamove)(union ctl_io *io); /* passed to CTL */
223 void (*fe_done)(union ctl_io *io); /* passed to CTL */
224 void (*fe_dump)(void); /* passed to CTL */
225 int max_targets; /* passed to CTL */
226 int max_target_id; /* passed to CTL */
227 int32_t targ_port; /* passed back to FETD */
228 void *ctl_pool_ref; /* passed back to FETD */

--- 72 unchanged lines hidden ---