ctl_frontend.h (268683) | ctl_frontend.h (268685) |
---|---|
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 268683 2014-07-15 17:06:10Z mav $ | 31 * $FreeBSD: stable/10/sys/cam/ctl/ctl_frontend.h 268685 2014-07-15 17:08:04Z 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 (*targ_func_t)(void *arg, struct ctl_id targ_id); | |
53typedef int (*lun_func_t)(void *arg, struct ctl_id targ_id, int lun_id); | 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 { \ 60 switch (type) { \ 61 case MOD_LOAD: \ --- 150 unchanged lines hidden (view full) --- 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 */ 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 */ | 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 { \ 60 switch (type) { \ 61 case MOD_LOAD: \ --- 150 unchanged lines hidden (view full) --- 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 */ 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 */ |
|
220 void *targ_lun_arg; /* passed to CTL */ 221 void (*fe_datamove)(union ctl_io *io); /* passed to CTL */ 222 void (*fe_done)(union ctl_io *io); /* passed to CTL */ 223 int max_targets; /* passed to CTL */ 224 int max_target_id; /* passed to CTL */ 225 int32_t targ_port; /* passed back to FETD */ 226 void *ctl_pool_ref; /* passed back to FETD */ 227 uint32_t max_initiators; /* passed back to FETD */ --- 102 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 int max_targets; /* passed to CTL */ 225 int max_target_id; /* passed to CTL */ 226 int32_t targ_port; /* passed back to FETD */ 227 void *ctl_pool_ref; /* passed back to FETD */ 228 uint32_t max_initiators; /* passed back to FETD */ --- 102 unchanged lines hidden --- |