aic79xx_osm.c (203685) | aic79xx_osm.c (237601) |
---|---|
1/*- 2 * Bus independent FreeBSD shim for the aic79xx based Adaptec SCSI controllers 3 * 4 * Copyright (c) 1994-2002, 2004 Justin T. Gibbs. 5 * Copyright (c) 2001-2002 Adaptec Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.c#35 $ 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Bus independent FreeBSD shim for the aic79xx based Adaptec SCSI controllers 3 * 4 * Copyright (c) 1994-2002, 2004 Justin T. Gibbs. 5 * Copyright (c) 2001-2002 Adaptec Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * $Id: //depot/aic7xxx/freebsd/dev/aic7xxx/aic79xx_osm.c#35 $ 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/dev/aic7xxx/aic79xx_osm.c 203685 2010-02-08 20:57:42Z brucec $"); | 36__FBSDID("$FreeBSD: head/sys/dev/aic7xxx/aic79xx_osm.c 237601 2012-06-26 14:51:35Z ken $"); |
37 38#include <dev/aic7xxx/aic79xx_osm.h> 39#include <dev/aic7xxx/aic79xx_inline.h> 40 41#include <sys/kthread.h> 42 43#include "opt_ddb.h" 44#ifdef DDB --- 551 unchanged lines hidden (view full) --- 596 if (ccb->ccb_h.flags & CAM_TAG_ACTION_VALID) 597 hscb->control |= ccb->csio.tag_action; 598 599 ahd_setup_data(ahd, sim, &ccb->csio, scb); 600 } 601 break; 602 } 603#ifdef AHD_TARGET_MODE | 37 38#include <dev/aic7xxx/aic79xx_osm.h> 39#include <dev/aic7xxx/aic79xx_inline.h> 40 41#include <sys/kthread.h> 42 43#include "opt_ddb.h" 44#ifdef DDB --- 551 unchanged lines hidden (view full) --- 596 if (ccb->ccb_h.flags & CAM_TAG_ACTION_VALID) 597 hscb->control |= ccb->csio.tag_action; 598 599 ahd_setup_data(ahd, sim, &ccb->csio, scb); 600 } 601 break; 602 } 603#ifdef AHD_TARGET_MODE |
604 case XPT_NOTIFY_ACK: 605 case XPT_IMMED_NOTIFY: | 604 case XPT_NOTIFY_ACKNOWLEDGE: 605 case XPT_IMMEDIATE_NOTIFY: |
606 { 607 struct ahd_tmode_tstate *tstate; 608 struct ahd_tmode_lstate *lstate; 609 cam_status status; 610 611 status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate, 612 &lstate, TRUE); 613 --- 570 unchanged lines hidden (view full) --- 1184ahd_abort_ccb(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb) 1185{ 1186 union ccb *abort_ccb; 1187 1188 abort_ccb = ccb->cab.abort_ccb; 1189 switch (abort_ccb->ccb_h.func_code) { 1190#ifdef AHD_TARGET_MODE 1191 case XPT_ACCEPT_TARGET_IO: | 606 { 607 struct ahd_tmode_tstate *tstate; 608 struct ahd_tmode_lstate *lstate; 609 cam_status status; 610 611 status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate, 612 &lstate, TRUE); 613 --- 570 unchanged lines hidden (view full) --- 1184ahd_abort_ccb(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb) 1185{ 1186 union ccb *abort_ccb; 1187 1188 abort_ccb = ccb->cab.abort_ccb; 1189 switch (abort_ccb->ccb_h.func_code) { 1190#ifdef AHD_TARGET_MODE 1191 case XPT_ACCEPT_TARGET_IO: |
1192 case XPT_IMMED_NOTIFY: | 1192 case XPT_IMMEDIATE_NOTIFY: |
1193 case XPT_CONT_TARGET_IO: 1194 { 1195 struct ahd_tmode_tstate *tstate; 1196 struct ahd_tmode_lstate *lstate; 1197 struct ccb_hdr_slist *list; 1198 cam_status status; 1199 1200 status = ahd_find_tmode_devs(ahd, sim, abort_ccb, &tstate, 1201 &lstate, TRUE); 1202 1203 if (status != CAM_REQ_CMP) { 1204 ccb->ccb_h.status = status; 1205 break; 1206 } 1207 1208 if (abort_ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) 1209 list = &lstate->accept_tios; | 1193 case XPT_CONT_TARGET_IO: 1194 { 1195 struct ahd_tmode_tstate *tstate; 1196 struct ahd_tmode_lstate *lstate; 1197 struct ccb_hdr_slist *list; 1198 cam_status status; 1199 1200 status = ahd_find_tmode_devs(ahd, sim, abort_ccb, &tstate, 1201 &lstate, TRUE); 1202 1203 if (status != CAM_REQ_CMP) { 1204 ccb->ccb_h.status = status; 1205 break; 1206 } 1207 1208 if (abort_ccb->ccb_h.func_code == XPT_ACCEPT_TARGET_IO) 1209 list = &lstate->accept_tios; |
1210 else if (abort_ccb->ccb_h.func_code == XPT_IMMED_NOTIFY) | 1210 else if (abort_ccb->ccb_h.func_code == XPT_IMMEDIATE_NOTIFY) |
1211 list = &lstate->immed_notifies; 1212 else 1213 list = NULL; 1214 1215 if (list != NULL) { 1216 struct ccb_hdr *curelm; 1217 int found; 1218 --- 376 unchanged lines hidden --- | 1211 list = &lstate->immed_notifies; 1212 else 1213 list = NULL; 1214 1215 if (list != NULL) { 1216 struct ccb_hdr *curelm; 1217 int found; 1218 --- 376 unchanged lines hidden --- |