sbp.c (122528) | sbp.c (122529) |
---|---|
1/* 2 * Copyright (c) 2003 Hidetoshi Shimokawa 3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 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: --- 17 unchanged lines hidden (view full) --- 26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 * | 1/* 2 * Copyright (c) 2003 Hidetoshi Shimokawa 3 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 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: --- 17 unchanged lines hidden (view full) --- 26 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 27 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 28 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 30 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 * POSSIBILITY OF SUCH DAMAGE. 33 * |
34 * $FreeBSD: head/sys/dev/firewire/sbp.c 122528 2003-11-12 03:45:10Z simokawa $ | 34 * $FreeBSD: head/sys/dev/firewire/sbp.c 122529 2003-11-12 04:06:21Z simokawa $ |
35 * 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/module.h> 41#include <sys/bus.h> 42#include <sys/sysctl.h> --- 1094 unchanged lines hidden (view full) --- 1137 sdev = (struct sbp_dev *)xfer->sc; 1138 1139SBP_DEBUG(1) 1140 sbp_show_sdev_info(sdev, 2); 1141 printf("%s\n", __FUNCTION__); 1142END_DEBUG 1143 if (xfer->resp != 0) { 1144 /* XXX */ | 35 * 36 */ 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/module.h> 41#include <sys/bus.h> 42#include <sys/sysctl.h> --- 1094 unchanged lines hidden (view full) --- 1137 sdev = (struct sbp_dev *)xfer->sc; 1138 1139SBP_DEBUG(1) 1140 sbp_show_sdev_info(sdev, 2); 1141 printf("%s\n", __FUNCTION__); 1142END_DEBUG 1143 if (xfer->resp != 0) { 1144 /* XXX */ |
1145 printf("%s: xfer->resp != 0\n", __FUNCTION__); | 1145 printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); |
1146 } 1147 sbp_xfer_free(xfer); 1148 sdev->flags &= ~ORB_POINTER_ACTIVE; 1149 1150 if ((sdev->flags & ORB_POINTER_NEED) != 0) { 1151 struct sbp_ocb *ocb; 1152 1153 sdev->flags &= ~ORB_POINTER_NEED; --- 49 unchanged lines hidden (view full) --- 1203SBP_DEBUG(1) 1204 struct sbp_dev *sdev; 1205 sdev = (struct sbp_dev *)xfer->sc; 1206 sbp_show_sdev_info(sdev, 2); 1207 printf("sbp_cmd_callback\n"); 1208END_DEBUG 1209 if (xfer->resp != 0) { 1210 /* XXX */ | 1146 } 1147 sbp_xfer_free(xfer); 1148 sdev->flags &= ~ORB_POINTER_ACTIVE; 1149 1150 if ((sdev->flags & ORB_POINTER_NEED) != 0) { 1151 struct sbp_ocb *ocb; 1152 1153 sdev->flags &= ~ORB_POINTER_NEED; --- 49 unchanged lines hidden (view full) --- 1203SBP_DEBUG(1) 1204 struct sbp_dev *sdev; 1205 sdev = (struct sbp_dev *)xfer->sc; 1206 sbp_show_sdev_info(sdev, 2); 1207 printf("sbp_cmd_callback\n"); 1208END_DEBUG 1209 if (xfer->resp != 0) { 1210 /* XXX */ |
1211 printf("%s: xfer->resp != 0\n", __FUNCTION__); | 1211 printf("%s: xfer->resp = %d\n", __FUNCTION__, xfer->resp); |
1212 } 1213 sbp_xfer_free(xfer); 1214 return; 1215} 1216 1217static void 1218sbp_doorbell(struct sbp_dev *sdev) 1219{ --- 348 unchanged lines hidden (view full) --- 1568 ld = xfer->recv.buf; 1569printf("sbp %x %d %d %08x %08x %08x %08x\n", 1570 xfer->resp, xfer->recv.len, xfer->recv.off, ntohl(ld[0]), ntohl(ld[1]), ntohl(ld[2]), ntohl(ld[3])); 1571printf("sbp %08x %08x %08x %08x\n", ntohl(ld[4]), ntohl(ld[5]), ntohl(ld[6]), ntohl(ld[7])); 1572printf("sbp %08x %08x %08x %08x\n", ntohl(ld[8]), ntohl(ld[9]), ntohl(ld[10]), ntohl(ld[11])); 1573*/ 1574 sbp = (struct sbp_softc *)xfer->sc; 1575 if (xfer->resp != 0){ | 1212 } 1213 sbp_xfer_free(xfer); 1214 return; 1215} 1216 1217static void 1218sbp_doorbell(struct sbp_dev *sdev) 1219{ --- 348 unchanged lines hidden (view full) --- 1568 ld = xfer->recv.buf; 1569printf("sbp %x %d %d %08x %08x %08x %08x\n", 1570 xfer->resp, xfer->recv.len, xfer->recv.off, ntohl(ld[0]), ntohl(ld[1]), ntohl(ld[2]), ntohl(ld[3])); 1571printf("sbp %08x %08x %08x %08x\n", ntohl(ld[4]), ntohl(ld[5]), ntohl(ld[6]), ntohl(ld[7])); 1572printf("sbp %08x %08x %08x %08x\n", ntohl(ld[8]), ntohl(ld[9]), ntohl(ld[10]), ntohl(ld[11])); 1573*/ 1574 sbp = (struct sbp_softc *)xfer->sc; 1575 if (xfer->resp != 0){ |
1576 printf("sbp_recv: xfer->resp != 0\n"); | 1576 printf("sbp_recv: xfer->resp = %d\n", xfer->resp); |
1577 goto done0; 1578 } 1579 if (xfer->recv.payload == NULL){ 1580 printf("sbp_recv: xfer->recv.payload == NULL\n"); 1581 goto done0; 1582 } 1583 rfp = &xfer->recv.hdr; 1584 if(rfp->mode.wreqb.tcode != FWTCODE_WREQB){ --- 1208 unchanged lines hidden --- | 1577 goto done0; 1578 } 1579 if (xfer->recv.payload == NULL){ 1580 printf("sbp_recv: xfer->recv.payload == NULL\n"); 1581 goto done0; 1582 } 1583 rfp = &xfer->recv.hdr; 1584 if(rfp->mode.wreqb.tcode != FWTCODE_WREQB){ --- 1208 unchanged lines hidden --- |