Deleted Added
full compact
isp_library.c (208997) isp_library.c (218691)
1/*-
2 * Copyright (c) 1997-2009 by Matthew Jacob
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 *

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

30 */
31#ifdef __NetBSD__
32#include <sys/cdefs.h>
33__KERNEL_RCSID(0, "$NetBSD$");
34#include <dev/ic/isp_netbsd.h>
35#endif
36#ifdef __FreeBSD__
37#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997-2009 by Matthew Jacob
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 *

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

30 */
31#ifdef __NetBSD__
32#include <sys/cdefs.h>
33__KERNEL_RCSID(0, "$NetBSD$");
34#include <dev/ic/isp_netbsd.h>
35#endif
36#ifdef __FreeBSD__
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/sys/dev/isp/isp_library.c 208997 2010-06-10 19:38:07Z mjacob $");
38__FBSDID("$FreeBSD: head/sys/dev/isp/isp_library.c 218691 2011-02-14 21:50:51Z marius $");
39#include <dev/isp/isp_freebsd.h>
40#endif
41#ifdef __OpenBSD__
42#include <dev/ic/isp_openbsd.h>
43#endif
44#ifdef __linux__
45#include "isp_linux.h"
46#endif

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

586 * Build a EXEC IOCB A64 command that points to the VP MODIFY command
587 */
588 MBSINIT(&mbs, MBOX_EXEC_COMMAND_IOCB_A64, MBLOGALL, 0);
589 mbs.param[1] = QENTRY_LEN;
590 mbs.param[2] = DMA_WD1(fcp->isp_scdma);
591 mbs.param[3] = DMA_WD0(fcp->isp_scdma);
592 mbs.param[6] = DMA_WD3(fcp->isp_scdma);
593 mbs.param[7] = DMA_WD2(fcp->isp_scdma);
39#include <dev/isp/isp_freebsd.h>
40#endif
41#ifdef __OpenBSD__
42#include <dev/ic/isp_openbsd.h>
43#endif
44#ifdef __linux__
45#include "isp_linux.h"
46#endif

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

586 * Build a EXEC IOCB A64 command that points to the VP MODIFY command
587 */
588 MBSINIT(&mbs, MBOX_EXEC_COMMAND_IOCB_A64, MBLOGALL, 0);
589 mbs.param[1] = QENTRY_LEN;
590 mbs.param[2] = DMA_WD1(fcp->isp_scdma);
591 mbs.param[3] = DMA_WD0(fcp->isp_scdma);
592 mbs.param[6] = DMA_WD3(fcp->isp_scdma);
593 mbs.param[7] = DMA_WD2(fcp->isp_scdma);
594 MEMORYBARRIER(isp, SYNC_SFORDEV, 0, 2 * QENTRY_LEN);
594 MEMORYBARRIER(isp, SYNC_SFORDEV, 0, 2 * QENTRY_LEN, chan);
595 isp_control(isp, ISPCTL_RUN_MBOXCMD, &mbs);
596 if (mbs.param[0] != MBOX_COMMAND_COMPLETE) {
597 FC_SCRATCH_RELEASE(isp, chan);
598 return (EIO);
599 }
595 isp_control(isp, ISPCTL_RUN_MBOXCMD, &mbs);
596 if (mbs.param[0] != MBOX_COMMAND_COMPLETE) {
597 FC_SCRATCH_RELEASE(isp, chan);
598 return (EIO);
599 }
600 MEMORYBARRIER(isp, SYNC_SFORCPU, QENTRY_LEN, QENTRY_LEN);
600 MEMORYBARRIER(isp, SYNC_SFORCPU, QENTRY_LEN, QENTRY_LEN, chan);
601 isp_get_vp_modify(isp, (vp_modify_t *)&scp[QENTRY_LEN], vp);
602
603#ifdef ISP_TARGET_MODE
604 isp_del_all_wwn_entries(isp, chan);
605#endif
606 /*
607 * Release Scratch
608 */

--- 3226 unchanged lines hidden ---
601 isp_get_vp_modify(isp, (vp_modify_t *)&scp[QENTRY_LEN], vp);
602
603#ifdef ISP_TARGET_MODE
604 isp_del_all_wwn_entries(isp, chan);
605#endif
606 /*
607 * Release Scratch
608 */

--- 3226 unchanged lines hidden ---