Deleted Added
full compact
ctl_frontend.h (268685) ctl_frontend.h (268688)
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: stable/10/sys/cam/ctl/ctl_frontend.h 268685 2014-07-15 17:08:04Z mav $
31 * $FreeBSD: stable/10/sys/cam/ctl/ctl_frontend.h 268688 2014-07-15 17:10:48Z mav $
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 int (*fe_init_t)(void);
50typedef void (*fe_shutdown_t)(void);
51typedef void (*port_func_t)(void *onoff_arg);
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 int (*fe_init_t)(void);
50typedef void (*fe_shutdown_t)(void);
51typedef void (*port_func_t)(void *onoff_arg);
52typedef int (*port_info_func_t)(void *onoff_arg, struct sbuf *sb);
52typedef int (*lun_func_t)(void *arg, struct ctl_id targ_id, int lun_id);
53typedef uint32_t (*lun_map_func_t)(void *arg, uint32_t lun_id);
54typedef int (*fe_ioctl_t)(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
55 struct thread *td);
56
57#define CTL_FRONTEND_DECLARE(name, driver) \
58 static int name ## _modevent(module_t mod, int type, void *data) \
59 { \

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

209 struct ctl_frontend *frontend;
210 ctl_port_type port_type; /* passed to CTL */
211 int num_requested_ctl_io; /* passed to CTL */
212 char *port_name; /* passed to CTL */
213 int physical_port; /* passed to CTL */
214 int virtual_port; /* passed to CTL */
215 port_func_t port_online; /* passed to CTL */
216 port_func_t port_offline; /* passed to CTL */
53typedef int (*lun_func_t)(void *arg, struct ctl_id targ_id, int lun_id);
54typedef uint32_t (*lun_map_func_t)(void *arg, uint32_t lun_id);
55typedef int (*fe_ioctl_t)(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
56 struct thread *td);
57
58#define CTL_FRONTEND_DECLARE(name, driver) \
59 static int name ## _modevent(module_t mod, int type, void *data) \
60 { \

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

210 struct ctl_frontend *frontend;
211 ctl_port_type port_type; /* passed to CTL */
212 int num_requested_ctl_io; /* passed to CTL */
213 char *port_name; /* passed to CTL */
214 int physical_port; /* passed to CTL */
215 int virtual_port; /* passed to CTL */
216 port_func_t port_online; /* passed to CTL */
217 port_func_t port_offline; /* passed to CTL */
218 port_info_func_t port_info; /* passed to CTL */
217 void *onoff_arg; /* passed to CTL */
218 lun_func_t lun_enable; /* passed to CTL */
219 lun_func_t lun_disable; /* passed to CTL */
220 lun_map_func_t lun_map; /* passed to CTL */
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 int max_targets; /* passed to CTL */

--- 106 unchanged lines hidden ---
219 void *onoff_arg; /* passed to CTL */
220 lun_func_t lun_enable; /* passed to CTL */
221 lun_func_t lun_disable; /* passed to CTL */
222 lun_map_func_t lun_map; /* passed to CTL */
223 void *targ_lun_arg; /* passed to CTL */
224 void (*fe_datamove)(union ctl_io *io); /* passed to CTL */
225 void (*fe_done)(union ctl_io *io); /* passed to CTL */
226 int max_targets; /* passed to CTL */

--- 106 unchanged lines hidden ---