Deleted Added
full compact
ctl_tpc_local.c (279004) ctl_tpc_local.c (284798)
1/*-
2 * Copyright (c) 2014 Alexander Motin <mav@FreeBSD.org>
3 * Copyright (c) 2004, 2005 Silicon Graphics International Corp.
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:

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

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2014 Alexander Motin <mav@FreeBSD.org>
3 * Copyright (c) 2004, 2005 Silicon Graphics International Corp.
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:

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

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/ctl_tpc_local.c 279004 2015-02-19 14:36:03Z mav $");
29__FBSDID("$FreeBSD: stable/10/sys/cam/ctl/ctl_tpc_local.c 284798 2015-06-25 07:11:48Z mav $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/types.h>
35#include <sys/lock.h>
36#include <sys/module.h>
37#include <sys/mutex.h>

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

64};
65
66static struct tpcl_softc tpcl_softc;
67
68static int tpcl_init(void);
69static void tpcl_shutdown(void);
70static void tpcl_online(void *arg);
71static void tpcl_offline(void *arg);
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/kernel.h>
34#include <sys/types.h>
35#include <sys/lock.h>
36#include <sys/module.h>
37#include <sys/mutex.h>

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

64};
65
66static struct tpcl_softc tpcl_softc;
67
68static int tpcl_init(void);
69static void tpcl_shutdown(void);
70static void tpcl_online(void *arg);
71static void tpcl_offline(void *arg);
72static int tpcl_lun_enable(void *arg, struct ctl_id target_id, int lun_id);
73static int tpcl_lun_disable(void *arg, struct ctl_id target_id, int lun_id);
72static int tpcl_lun_enable(void *arg, int lun_id);
73static int tpcl_lun_disable(void *arg, int lun_id);
74static void tpcl_datamove(union ctl_io *io);
75static void tpcl_done(union ctl_io *io);
76
77
78static struct ctl_frontend tpcl_frontend =
79{
80 .name = "tpc",
81 .init = tpcl_init,

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

147}
148
149static void
150tpcl_offline(void *arg)
151{
152}
153
154static int
74static void tpcl_datamove(union ctl_io *io);
75static void tpcl_done(union ctl_io *io);
76
77
78static struct ctl_frontend tpcl_frontend =
79{
80 .name = "tpc",
81 .init = tpcl_init,

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

147}
148
149static void
150tpcl_offline(void *arg)
151{
152}
153
154static int
155tpcl_lun_enable(void *arg, struct ctl_id target_id, int lun_id)
155tpcl_lun_enable(void *arg, int lun_id)
156{
157
158 return (0);
159}
160
161static int
156{
157
158 return (0);
159}
160
161static int
162tpcl_lun_disable(void *arg, struct ctl_id target_id, int lun_id)
162tpcl_lun_disable(void *arg, int lun_id)
163{
164
165 return (0);
166}
167
168static void
169tpcl_datamove(union ctl_io *io)
170{

--- 203 unchanged lines hidden ---
163{
164
165 return (0);
166}
167
168static void
169tpcl_datamove(union ctl_io *io)
170{

--- 203 unchanged lines hidden ---