scsi_ch.c (47413) | scsi_ch.c (47625) |
---|---|
1/* 2 * Copyright (c) 1997 Justin T. Gibbs. 3 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 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: --- 10 unchanged lines hidden (view full) --- 19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 1997 Justin T. Gibbs. 3 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry. 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: --- 10 unchanged lines hidden (view full) --- 19 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $Id: scsi_ch.c,v 1.11 1999/05/09 01:25:26 ken Exp $ | 27 * $Id: scsi_ch.c,v 1.12 1999/05/22 22:00:19 gibbs Exp $ |
28 */ 29/* 30 * Derived from the NetBSD SCSI changer driver. 31 * 32 * $NetBSD: ch.c,v 1.32 1998/01/12 09:49:12 thorpej Exp $ 33 * 34 */ 35/* --- 173 unchanged lines hidden (view full) --- 209static struct periph_driver chdriver = 210{ 211 chinit, "ch", 212 TAILQ_HEAD_INITIALIZER(chdriver.units), /* generation */ 0 213}; 214 215DATA_SET(periphdriver_set, chdriver); 216 | 28 */ 29/* 30 * Derived from the NetBSD SCSI changer driver. 31 * 32 * $NetBSD: ch.c,v 1.32 1998/01/12 09:49:12 thorpej Exp $ 33 * 34 */ 35/* --- 173 unchanged lines hidden (view full) --- 209static struct periph_driver chdriver = 210{ 211 chinit, "ch", 212 TAILQ_HEAD_INITIALIZER(chdriver.units), /* generation */ 0 213}; 214 215DATA_SET(periphdriver_set, chdriver); 216 |
217static struct cdevsw ch_cdevsw = 218{ 219 /*d_open*/ chopen, 220 /*d_close*/ chclose, 221 /*d_read*/ noread, 222 /*d_write*/ nowrite, 223 /*d_ioctl*/ chioctl, 224 /*d_stop*/ nostop, 225 /*d_reset*/ noreset, 226 /*d_devtotty*/ nodevtotty, 227 /*d_poll*/ seltrue, 228 /*d_mmap*/ nommap, 229 /*d_strategy*/ nostrategy, 230 /*d_name*/ "ch", 231 /*d_spare*/ NULL, 232 /*d_maj*/ -1, 233 /*d_dump*/ nodump, 234 /*d_psize*/ nopsize, 235 /*d_flags*/ 0, 236 /*d_maxio*/ 0, 237 /*b_maj*/ -1 | 217static struct cdevsw ch_cdevsw = { 218 /* open */ chopen, 219 /* close */ chclose, 220 /* read */ noread, 221 /* write */ nowrite, 222 /* ioctl */ chioctl, 223 /* stop */ nostop, 224 /* reset */ noreset, 225 /* devtotty */ nodevtotty, 226 /* poll */ nopoll, 227 /* mmap */ nommap, 228 /* strategy */ nostrategy, 229 /* name */ "ch", 230 /* parms */ noparms, 231 /* maj */ CH_CDEV_MAJOR, 232 /* dump */ nodump, 233 /* psize */ nopsize, 234 /* flags */ 0, 235 /* maxio */ 0, 236 /* bmaj */ -1 |
238}; 239 240static struct extend_array *chperiphs; 241 242void 243chinit(void) 244{ 245 cam_status status; --- 1463 unchanged lines hidden --- | 237}; 238 239static struct extend_array *chperiphs; 240 241void 242chinit(void) 243{ 244 cam_status status; --- 1463 unchanged lines hidden --- |