mly.c (203108) | mly.c (225950) |
---|---|
1/*- 2 * Copyright (c) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 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 * FOR 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) 2000, 2001 Michael Smith 3 * Copyright (c) 2000 BSDi 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 * FOR 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 * $FreeBSD: head/sys/dev/mly/mly.c 203108 2010-01-28 08:41:30Z mav $ | 27 * $FreeBSD: head/sys/dev/mly/mly.c 225950 2011-10-03 20:32:55Z ken $ |
28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/malloc.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/conf.h> --- 1253 unchanged lines hidden (view full) --- 1289} 1290 1291/******************************************************************************** 1292 * Process a controller event. 1293 */ 1294static void 1295mly_process_event(struct mly_softc *sc, struct mly_event *me) 1296{ | 28 */ 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/malloc.h> 33#include <sys/kernel.h> 34#include <sys/bus.h> 35#include <sys/conf.h> --- 1253 unchanged lines hidden (view full) --- 1289} 1290 1291/******************************************************************************** 1292 * Process a controller event. 1293 */ 1294static void 1295mly_process_event(struct mly_softc *sc, struct mly_event *me) 1296{ |
1297 struct scsi_sense_data *ssd = (struct scsi_sense_data *)&me->sense[0]; 1298 char *fp, *tp; 1299 int bus, target, event, class, action; | 1297 struct scsi_sense_data_fixed *ssd; 1298 char *fp, *tp; 1299 int bus, target, event, class, action; |
1300 | 1300 |
1301 ssd = (struct scsi_sense_data_fixed *)&me->sense[0]; 1302 |
|
1301 /* 1302 * Errors can be reported using vendor-unique sense data. In this case, the 1303 * event code will be 0x1c (Request sense data present), the sense key will 1304 * be 0x09 (vendor specific), the MSB of the ASC will be set, and the 1305 * actual event code will be a 16-bit value comprised of the ASCQ (low byte) 1306 * and low seven bits of the ASC (low seven bits of the high byte). 1307 */ 1308 if ((me->code == 0x1c) && --- 1684 unchanged lines hidden --- | 1303 /* 1304 * Errors can be reported using vendor-unique sense data. In this case, the 1305 * event code will be 0x1c (Request sense data present), the sense key will 1306 * be 0x09 (vendor specific), the MSB of the ASC will be set, and the 1307 * actual event code will be a 16-bit value comprised of the ASCQ (low byte) 1308 * and low seven bits of the ASC (low seven bits of the high byte). 1309 */ 1310 if ((me->code == 0x1c) && --- 1684 unchanged lines hidden --- |