Deleted Added
full compact
ctl_frontend.h (284797) ctl_frontend.h (284798)
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 284797 2015-06-25 07:10:51Z mav $
31 * $FreeBSD: stable/10/sys/cam/ctl/ctl_frontend.h 284798 2015-06-25 07:11: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_
40#define _CTL_FRONTEND_H_
41
42typedef enum {
43 CTL_PORT_STATUS_NONE = 0x00,
44 CTL_PORT_STATUS_ONLINE = 0x01
45} ctl_port_status;
46
47typedef int (*fe_init_t)(void);
48typedef void (*fe_shutdown_t)(void);
49typedef void (*port_func_t)(void *onoff_arg);
50typedef int (*port_info_func_t)(void *onoff_arg, struct sbuf *sb);
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_
40#define _CTL_FRONTEND_H_
41
42typedef enum {
43 CTL_PORT_STATUS_NONE = 0x00,
44 CTL_PORT_STATUS_ONLINE = 0x01
45} ctl_port_status;
46
47typedef int (*fe_init_t)(void);
48typedef void (*fe_shutdown_t)(void);
49typedef void (*port_func_t)(void *onoff_arg);
50typedef int (*port_info_func_t)(void *onoff_arg, struct sbuf *sb);
51typedef int (*lun_func_t)(void *arg, struct ctl_id targ_id, int lun_id);
51typedef int (*lun_func_t)(void *arg, int lun_id);
52typedef int (*fe_ioctl_t)(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
53 struct thread *td);
54
55#define CTL_FRONTEND_DECLARE(name, driver) \
56 static int name ## _modevent(module_t mod, int type, void *data) \
57 { \
58 switch (type) { \
59 case MOD_LOAD: \

--- 276 unchanged lines hidden ---
52typedef int (*fe_ioctl_t)(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
53 struct thread *td);
54
55#define CTL_FRONTEND_DECLARE(name, driver) \
56 static int name ## _modevent(module_t mod, int type, void *data) \
57 { \
58 switch (type) { \
59 case MOD_LOAD: \

--- 276 unchanged lines hidden ---