Deleted Added
full compact
isp_target.c (64090) isp_target.c (65140)
1/* $FreeBSD: head/sys/dev/isp/isp_target.c 64090 2000-08-01 06:24:01Z mjacob $ */
1/* $FreeBSD: head/sys/dev/isp/isp_target.c 65140 2000-08-27 23:38:44Z mjacob $ */
2/*
3 * Machine and OS Independent Target Mode Code for the Qlogic SCSI/FC adapters.
4 *
5 * Copyright (c) 1999 by Matthew Jacob
6 * All rights reserved.
7 * mjacob@feral.com
8 *
9 * Redistribution and use in source and binary forms, with or without

--- 510 unchanged lines hidden (view full) ---

520 break;
521 case ASYNC_DEVICE_RESET:
522 /*
523 * Bus Device Reset resets a specific target, so
524 * we pass this as a synthesized message.
525 */
526 MEMZERO(&msg, sizeof msg);
527 if (IS_FC(isp)) {
2/*
3 * Machine and OS Independent Target Mode Code for the Qlogic SCSI/FC adapters.
4 *
5 * Copyright (c) 1999 by Matthew Jacob
6 * All rights reserved.
7 * mjacob@feral.com
8 *
9 * Redistribution and use in source and binary forms, with or without

--- 510 unchanged lines hidden (view full) ---

520 break;
521 case ASYNC_DEVICE_RESET:
522 /*
523 * Bus Device Reset resets a specific target, so
524 * we pass this as a synthesized message.
525 */
526 MEMZERO(&msg, sizeof msg);
527 if (IS_FC(isp)) {
528 msg.nt_iid =
529 ((fcparam *)isp->isp_param)->isp_loopid;
528 msg.nt_iid = FCPARAM(isp)->isp_loopid;
530 } else {
529 } else {
531 msg.nt_iid =
532 ((sdparam *)isp->isp_param)->isp_initiator_id;
530 msg.nt_iid = SDPARAM(isp)->isp_initiator_id;
533 }
534 msg.nt_bus = bus;
535 msg.nt_msg[0] = MSG_BUS_DEV_RESET;
536 (void) isp_async(isp, ISPASYNC_TARGET_MESSAGE, &msg);
537 break;
538 default:
539 isp_prt(isp, ISP_LOGERR,
540 "isp_target_async: unknown event 0x%x", event);

--- 690 unchanged lines hidden ---
531 }
532 msg.nt_bus = bus;
533 msg.nt_msg[0] = MSG_BUS_DEV_RESET;
534 (void) isp_async(isp, ISPASYNC_TARGET_MESSAGE, &msg);
535 break;
536 default:
537 isp_prt(isp, ISP_LOGERR,
538 "isp_target_async: unknown event 0x%x", event);

--- 690 unchanged lines hidden ---