wd7000.c (246713) | wd7000.c (257381) |
---|---|
1/*- 2 * Copyright (c) 1994 Ludd, University of Lule}, Sweden. 3 * Copyright (c) 2000 Sergey A. Babkin 4 * All rights reserved. 5 * 6 * Written by Olof Johansson (offe@ludd.luth.se) 1995. 7 * Based on code written by Theo de Raadt (deraadt@fsa.ca). 8 * Resurrected, ported to CAM and generally cleaned up by Sergey Babkin --- 23 unchanged lines hidden (view full) --- 32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 35 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 */ 38 39#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1994 Ludd, University of Lule}, Sweden. 3 * Copyright (c) 2000 Sergey A. Babkin 4 * All rights reserved. 5 * 6 * Written by Olof Johansson (offe@ludd.luth.se) 1995. 7 * Based on code written by Theo de Raadt (deraadt@fsa.ca). 8 * Resurrected, ported to CAM and generally cleaned up by Sergey Babkin --- 23 unchanged lines hidden (view full) --- 32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 35 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 */ 38 39#include <sys/cdefs.h> |
40__FBSDID("$FreeBSD: head/sys/dev/wds/wd7000.c 246713 2013-02-12 16:57:20Z kib $"); | 40__FBSDID("$FreeBSD: head/sys/dev/wds/wd7000.c 257381 2013-10-30 14:04:47Z nwhitehorn $"); |
41 42/* All bugs are subject to removal without further notice */ 43 44/* 45 * offe 01/07/95 46 * 47 * This version of the driver _still_ doesn't implement scatter/gather for the 48 * WD7000-FASST2. This is due to the fact that my controller doesn't seem to --- 994 unchanged lines hidden (view full) --- 1043 int base; 1044 u_int8_t c; 1045 int error; 1046 int n; 1047 1048 wp = (struct wds *)cam_sim_softc(sim); 1049 ccb_h = &csio->ccb_h; 1050 | 41 42/* All bugs are subject to removal without further notice */ 43 44/* 45 * offe 01/07/95 46 * 47 * This version of the driver _still_ doesn't implement scatter/gather for the 48 * WD7000-FASST2. This is due to the fact that my controller doesn't seem to --- 994 unchanged lines hidden (view full) --- 1043 int base; 1044 u_int8_t c; 1045 int error; 1046 int n; 1047 1048 wp = (struct wds *)cam_sim_softc(sim); 1049 ccb_h = &csio->ccb_h; 1050 |
1051 DBG(DBX "wds%d: cmd TARG=%d LUN=%d\n", unit, ccb_h->target_id, 1052 ccb_h->target_lun); | 1051 DBG(DBX "wds%d: cmd TARG=%d LUN=%jx\n", unit, ccb_h->target_id, 1052 (uintmax_t)ccb_h->target_lun); |
1053 1054 if (ccb_h->target_id > 7 || ccb_h->target_id == WDS_HBA_ID) { 1055 ccb_h->status = CAM_TID_INVALID; 1056 xpt_done((union ccb *) csio); 1057 return; 1058 } 1059 if (ccb_h->target_lun > 7) { 1060 ccb_h->status = CAM_LUN_INVALID; --- 383 unchanged lines hidden --- | 1053 1054 if (ccb_h->target_id > 7 || ccb_h->target_id == WDS_HBA_ID) { 1055 ccb_h->status = CAM_TID_INVALID; 1056 xpt_done((union ccb *) csio); 1057 return; 1058 } 1059 if (ccb_h->target_lun > 7) { 1060 ccb_h->status = CAM_LUN_INVALID; --- 383 unchanged lines hidden --- |