isp_library.c (302408) | isp_library.c (316084) |
---|---|
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: stable/11/sys/dev/isp/isp_library.c 300052 2016-05-17 13:18:57Z mav $"); | 38__FBSDID("$FreeBSD: stable/11/sys/dev/isp/isp_library.c 316084 2017-03-28 10:11:00Z mav $"); |
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 --- 580 unchanged lines hidden (view full) --- 627 notify.nt_channel = tmp; 628 notify.nt_lun = LUN_ANY; 629 notify.nt_tagval = TAG_ANY; 630 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); 631 } 632#endif 633} 634 | 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 --- 580 unchanged lines hidden (view full) --- 627 notify.nt_channel = tmp; 628 notify.nt_lun = LUN_ANY; 629 notify.nt_tagval = TAG_ANY; 630 isp_async(isp, ISPASYNC_TARGET_NOTIFY, ¬ify); 631 } 632#endif 633} 634 |
635void 636isp_shutdown(ispsoftc_t *isp) 637{ 638 if (IS_FC(isp)) { 639 if (IS_24XX(isp)) { 640 ISP_WRITE(isp, BIU2400_ICR, 0); 641 ISP_WRITE(isp, BIU2400_HCCR, HCCR_2400_CMD_PAUSE); 642 } else { 643 ISP_WRITE(isp, BIU_ICR, 0); 644 ISP_WRITE(isp, HCCR, HCCR_CMD_PAUSE); 645 ISP_WRITE(isp, BIU2100_CSR, BIU2100_FPM0_REGS); 646 ISP_WRITE(isp, FPM_DIAG_CONFIG, FPM_SOFT_RESET); 647 ISP_WRITE(isp, BIU2100_CSR, BIU2100_FB_REGS); 648 ISP_WRITE(isp, FBM_CMD, FBMCMD_FIFO_RESET_ALL); 649 ISP_WRITE(isp, BIU2100_CSR, BIU2100_RISC_REGS); 650 } 651 } else { 652 ISP_WRITE(isp, BIU_ICR, 0); 653 ISP_WRITE(isp, HCCR, HCCR_CMD_PAUSE); 654 } 655} 656 | |
657/* 658 * Functions to move stuff to a form that the QLogic RISC engine understands 659 * and functions to move stuff back to a form the processor understands. 660 * 661 * Each platform is required to provide the 8, 16 and 32 bit 662 * swizzle and unswizzle macros (ISP_IOX{PUT|GET}_{8,16,32}) 663 * 664 * The assumption is that swizzling and unswizzling is mostly done 'in place' --- 2880 unchanged lines hidden --- | 635/* 636 * Functions to move stuff to a form that the QLogic RISC engine understands 637 * and functions to move stuff back to a form the processor understands. 638 * 639 * Each platform is required to provide the 8, 16 and 32 bit 640 * swizzle and unswizzle macros (ISP_IOX{PUT|GET}_{8,16,32}) 641 * 642 * The assumption is that swizzling and unswizzling is mostly done 'in place' --- 2880 unchanged lines hidden --- |