Deleted Added
full compact
tws_hdm.c (226026) tws_hdm.c (247551)
1/*
2 * Copyright (c) 2010, LSI Corp.
3 * All rights reserved.
4 * Author : Manjunath Ranganathaiah
5 * Support: freebsdraid@lsi.com
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
1/*
2 * Copyright (c) 2010, LSI Corp.
3 * All rights reserved.
4 * Author : Manjunath Ranganathaiah
5 * Support: freebsdraid@lsi.com
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
33 *
34 * $FreeBSD: head/sys/dev/tws/tws_hdm.c 226026 2011-10-04 21:40:25Z delphij $
34 * $FreeBSD: head/sys/dev/tws/tws_hdm.c 247551 2013-03-01 15:48:31Z kevlo $
35 */
36
37
38#include <dev/tws/tws.h>
39#include <dev/tws/tws_services.h>
40#include <dev/tws/tws_hdm.h>
41
42

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

94
95 }
96
97
98 while( 1 ) {
99 regh = tws_read_reg(sc, TWS_I2O0_IOPOBQPH, 4);
100 regl = tws_read_reg(sc, TWS_I2O0_IOPOBQPL, 4);
101 reg = (((u_int64_t)regh) << 32) | regl;
35 */
36
37
38#include <dev/tws/tws.h>
39#include <dev/tws/tws_services.h>
40#include <dev/tws/tws_hdm.h>
41
42

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

94
95 }
96
97
98 while( 1 ) {
99 regh = tws_read_reg(sc, TWS_I2O0_IOPOBQPH, 4);
100 regl = tws_read_reg(sc, TWS_I2O0_IOPOBQPL, 4);
101 reg = (((u_int64_t)regh) << 32) | regl;
102 TWS_TRACE_DEBUG(sc, "host outbound clenup",reg, regl);
102 TWS_TRACE_DEBUG(sc, "host outbound cleanup",reg, regl);
103 if ( regh == TWS_FIFO_EMPTY32 )
104 break;
105 }
106
107 tws_init_obfl_q(sc);
108 tws_display_ctlr_info(sc);
109 tws_write_reg(sc, TWS_I2O0_HOBDBC, ~0, 4);
110 tws_turn_on_interrupts(sc);

--- 425 unchanged lines hidden ---
103 if ( regh == TWS_FIFO_EMPTY32 )
104 break;
105 }
106
107 tws_init_obfl_q(sc);
108 tws_display_ctlr_info(sc);
109 tws_write_reg(sc, TWS_I2O0_HOBDBC, ~0, 4);
110 tws_turn_on_interrupts(sc);

--- 425 unchanged lines hidden ---