sbp.c (107653) | sbp.c (108276) |
---|---|
1/* 2 * Copyright (c) 1998,1999,2000,2001 Katsushi Kobayashi and Hidetosh Shimokawa 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 --- 16 unchanged lines hidden (view full) --- 25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 * | 1/* 2 * Copyright (c) 1998,1999,2000,2001 Katsushi Kobayashi and Hidetosh Shimokawa 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 --- 16 unchanged lines hidden (view full) --- 25 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 31 * POSSIBILITY OF SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/sys/dev/firewire/sbp.c 107653 2002-12-06 02:17:30Z simokawa $ | 33 * $FreeBSD: head/sys/dev/firewire/sbp.c 108276 2002-12-26 03:17:59Z simokawa $ |
34 * 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/module.h> 40#include <sys/bus.h> 41#include <sys/mbuf.h> --- 1676 unchanged lines hidden (view full) --- 1718SBP_DEBUG(1) 1719 printf("%s:%d:%d:func_code 0x%04x: " 1720 "Invalid target (target needed)\n", 1721 device_get_nameunit(sbp->fd.dev), 1722 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, 1723 ccb->ccb_h.func_code); 1724END_DEBUG 1725 | 34 * 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/module.h> 40#include <sys/bus.h> 41#include <sys/mbuf.h> --- 1676 unchanged lines hidden (view full) --- 1718SBP_DEBUG(1) 1719 printf("%s:%d:%d:func_code 0x%04x: " 1720 "Invalid target (target needed)\n", 1721 device_get_nameunit(sbp->fd.dev), 1722 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, 1723 ccb->ccb_h.func_code); 1724END_DEBUG 1725 |
1726 ccb->ccb_h.status = CAM_TID_INVALID; | 1726 ccb->ccb_h.status = CAM_DEV_NOT_THERE; |
1727 xpt_done(ccb); 1728 return; 1729 } 1730 break; 1731 case XPT_PATH_INQ: 1732 case XPT_NOOP: 1733 /* The opcodes sometimes aimed at a target (sc is valid), 1734 * sometimes aimed at the SIM (sc is invalid and target is 1735 * CAM_TARGET_WILDCARD) 1736 */ 1737 if (sbp == NULL && 1738 ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) { 1739SBP_DEBUG(0) 1740 printf("%s:%d:%d func_code 0x%04x: " 1741 "Invalid target (no wildcard)\n", 1742 device_get_nameunit(sbp->fd.dev), 1743 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, 1744 ccb->ccb_h.func_code); 1745END_DEBUG | 1727 xpt_done(ccb); 1728 return; 1729 } 1730 break; 1731 case XPT_PATH_INQ: 1732 case XPT_NOOP: 1733 /* The opcodes sometimes aimed at a target (sc is valid), 1734 * sometimes aimed at the SIM (sc is invalid and target is 1735 * CAM_TARGET_WILDCARD) 1736 */ 1737 if (sbp == NULL && 1738 ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) { 1739SBP_DEBUG(0) 1740 printf("%s:%d:%d func_code 0x%04x: " 1741 "Invalid target (no wildcard)\n", 1742 device_get_nameunit(sbp->fd.dev), 1743 ccb->ccb_h.target_id, ccb->ccb_h.target_lun, 1744 ccb->ccb_h.func_code); 1745END_DEBUG |
1746 ccb->ccb_h.status = CAM_TID_INVALID; | 1746 ccb->ccb_h.status = CAM_DEV_NOT_THERE; |
1747 xpt_done(ccb); 1748 return; 1749 } 1750 break; 1751 default: 1752 /* XXX Hm, we should check the input parameters */ 1753 break; 1754 } --- 463 unchanged lines hidden --- | 1747 xpt_done(ccb); 1748 return; 1749 } 1750 break; 1751 default: 1752 /* XXX Hm, we should check the input parameters */ 1753 break; 1754 } --- 463 unchanged lines hidden --- |