tw_cl_intr.c (169400) | tw_cl_intr.c (172496) |
---|---|
1/* 2 * Copyright (c) 2004-07 Applied Micro Circuits Corporation. 3 * Copyright (c) 2004-05 Vinod Kashyap 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * | 1/* 2 * Copyright (c) 2004-07 Applied Micro Circuits Corporation. 3 * Copyright (c) 2004-05 Vinod Kashyap 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/twa/tw_cl_intr.c 169400 2007-05-09 04:16:32Z scottl $ | 27 * $FreeBSD: head/sys/dev/twa/tw_cl_intr.c 172496 2007-10-09 17:43:57Z scottl $ |
28 */ 29 30/* 31 * AMCC'S 3ware driver for 9000 series storage controllers. 32 * 33 * Author: Vinod Kashyap 34 * Modifications by: Adam Radford | 28 */ 29 30/* 31 * AMCC'S 3ware driver for 9000 series storage controllers. 32 * 33 * Author: Vinod Kashyap 34 * Modifications by: Adam Radford |
35 * Modifications by: Manjunath Ranganathaiah |
|
35 */ 36 37 38/* 39 * Common Layer interrupt handling functions. 40 */ 41 42 --- 26 unchanged lines hidden (view full) --- 69 TW_INT32 rc = TW_CL_FALSE; 70 71 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered"); 72 73 /* If we don't have controller context, bail */ 74 if (ctlr == NULL) 75 goto out; 76 | 36 */ 37 38 39/* 40 * Common Layer interrupt handling functions. 41 */ 42 43 --- 26 unchanged lines hidden (view full) --- 70 TW_INT32 rc = TW_CL_FALSE; 71 72 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered"); 73 74 /* If we don't have controller context, bail */ 75 if (ctlr == NULL) 76 goto out; 77 |
78 /* If we get an interrupt while resetting, it is a shared 79 one for another device, so just bail */ 80 if (ctlr->state & TW_CLI_CTLR_STATE_RESET_IN_PROGRESS) 81 goto out; 82 |
|
77 /* 78 * Synchronize access between writes to command and control registers 79 * in 64-bit environments, on G66. 80 */ 81 if (ctlr->state & TW_CLI_CTLR_STATE_G66_WORKAROUND_NEEDED) 82 tw_osl_get_lock(ctlr_handle, ctlr->io_lock); 83 84 /* Read the status register to determine the type of interrupt. */ --- 738 unchanged lines hidden --- | 83 /* 84 * Synchronize access between writes to command and control registers 85 * in 64-bit environments, on G66. 86 */ 87 if (ctlr->state & TW_CLI_CTLR_STATE_G66_WORKAROUND_NEEDED) 88 tw_osl_get_lock(ctlr_handle, ctlr->io_lock); 89 90 /* Read the status register to determine the type of interrupt. */ --- 738 unchanged lines hidden --- |